XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

Ails Supplementary Identification of Unusual Response Content

38abb0a0
zengrr <47846202+zeng-rr@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -1
Modified g4f/Provider/Ails.py +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