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

XFEstudio/gpt4free

fix Equing response error with no stream

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

代码差异

1 个文件 +3 -0
Modified g4f/Provider/Equing.py +3 -0
@@ -53,6 +53,9 @@ class Equing(ABC):
53 53
54 54 response = requests.post('https://next.eqing.tech/api/openai/v1/chat/completions',
55 55 headers=headers, json=json_data, stream=stream)
56 if not stream:
57 yield response.json()["choices"][0]["message"]["content"]
58 return
56 59
57 60 for line in response.iter_content(chunk_size=1024):
58 61 if line: