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

XFEstudio/gpt4free

chore(g4f/Provider/bing/conversation.py): update bundleVersion in create_conversation URLs

fc9cb1f5
kqlio67 <kqlio67@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -3
Modified g4f/Provider/bing/conversation.py +3 -3
@@ -33,9 +33,9 @@ async def create_conversation(session: StreamSession, headers: dict, tone: str)
33 33 Conversation: An instance representing the created conversation.
34 34 """
35 35 if tone == "Copilot":
36 url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1690.0"
36 url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1809.0"
37 37 else:
38 url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1690.0"
38 url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1809.0"
39 39 async with session.get(url, headers=headers) as response:
40 40 if response.status == 404:
41 41 raise RateLimitError("Response 404: Do less requests and reuse conversations")
@@ -90,4 +90,4 @@ async def delete_conversation(session: StreamSession, conversation: Conversation
90 90 response = await response.json()
91 91 return response["result"]["value"] == "Success"
92 92 except:
93 return False
93 return False