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

XFEstudio/gpt4free

Update AItianhu.py

a2b803a5
H Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -3
Modified g4f/Provider/AItianhu.py +4 -3
@@ -72,7 +72,8 @@ class AItianhu(AsyncGeneratorProvider):
72 72 if "detail" not in line:
73 73 raise RuntimeError(f"Response: {line}")
74 74
75 if content := line["detail"]["choices"][0]["delta"].get(
75 content = line["detail"]["choices"][0]["delta"].get(
76 76 "content"
77 ):
78 yield content
77 )
78 if content:
79 yield content