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

XFEstudio/gpt4free

Fix streaming in Aura

74a21cdb
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/Aura.py +2 -1
@@ -52,4 +52,5 @@ class Aura(AsyncGeneratorProvider):
52 52 "temperature": 0.5
53 53 }
54 54 async with session.post(f"{cls.url}/api/chat", json=data, proxy=proxy) as response:
55 return response.content.iter_any()
55 async for chunk in response.content.iter_any():
56 yield chunk.decode()