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

XFEstudio/gpt4free

Fix unittests, update Bing Urls

934edc86
Heiner Lohaus <hlohaus@users.noreply.github.com>
提交于

代码差异

1 个文件 +2 -2
Modified g4f/Provider/bing/conversation.py +2 -2
@@ -34,9 +34,9 @@ async def create_conversation(session: ClientSession, headers: dict, tone: str)
34 34 Conversation: An instance representing the created conversation.
35 35 """
36 36 if tone == "Copilot":
37 url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1634.3-nodesign2"
37 url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1686.0"
38 38 else:
39 url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1626.1"
39 url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1686.0"
40 40 async with session.get(url, headers=headers) as response:
41 41 if response.status == 404:
42 42 raise RateLimitError("Response 404: Do less requests and reuse conversations")