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

XFEstudio/gpt4free

Syntax error Fixed : GptGo.py

4a6bcef3
egcash <85733533+egcash@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/GptGo.py +2 -2
@@ -63,7 +63,7 @@ class GptGo(AsyncGeneratorProvider):
63 63 if line["choices"][0]["finish_reason"] == "stop":
64 64 break
65 65
66 content = line["choices"][0]["delta"].get("content"):
66 content = line["choices"][0]["delta"].get("content")
67 67 if content:
68 68 yield content
69 69
@@ -79,4 +79,4 @@ class GptGo(AsyncGeneratorProvider):
79 79 ("temperature", "float"),
80 80 ]
81 81 param = ", ".join([": ".join(p) for p in params])
82 return f"g4f.provider.{cls.__name__} supports: ({param})"
82 return f"g4f.provider.{cls.__name__} supports: ({param})"