返回提交历史
Modified
g4f/Provider/Ails.py
+1
-1
XFEstudio/gpt4free
Ails Supplementary Identification of Unusual Response Content
38abb0a0
代码差异
1 个文件
+1
-1
@@ -72,7 +72,7 @@ class Ails(BaseProvider):
72
72
if b"content" in token:
73
73
completion_chunk = json.loads(token.decode().replace("data: ", ""))
74
74
token = completion_chunk["choices"][0]["delta"].get("content")
75
if "ai.ls".lower() in token.lower():
75
if "ai.ls" in token.lower() or "ai.ci" in token.lower():
76
76
raise Exception("Response Error: " + token)
77
77
if token != None:
78
78
yield token