返回提交历史
Modified
g4f/Provider/Equing.py
+3
-0
XFEstudio/gpt4free
fix Equing response error with no stream
c01a8539
代码差异
1 个文件
+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: