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

XFEstudio/gpt4free

Fix ChatgptAi Provider

4cec1ed9
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -1
Modified g4f/Provider/ChatgptAi.py +2 -1
@@ -65,7 +65,8 @@ class ChatgptAi(AsyncGeneratorProvider):
65 65 async with session.post(
66 66 f"{cls.url}/wp-json/mwai-ui/v1/chats/submit",
67 67 proxy=proxy,
68 json=data
68 json=data,
69 headers={"X-Wp-Nonce": cls._system["restNonce"]}
69 70 ) as response:
70 71 response.raise_for_status()
71 72 async for line in response.content: