Update dev_chatgpt.py

This commit is contained in:
恍兮惚兮 2024-04-03 02:53:11 +08:00
parent 3ffbe70154
commit fe14b4184e

View File

@ -32,7 +32,7 @@ class TS(basetransdev):
) )
) )
if "This content may violate our usage policies." == res: if "This content may violate our usage policies." == res:
if error: if error or len(self.last) == 0:
raise Exception("This content may violate our usage policies.") raise Exception("This content may violate our usage policies.")
return self.last return self.last
self.last = res self.last = res