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

This commit is contained in:
kqlio67 2024-09-11 15:54:53 +03:00
parent 7d1fa2c623
commit fc9cb1f561

View File

@ -33,9 +33,9 @@ async def create_conversation(session: StreamSession, headers: dict, tone: str)
Conversation: An instance representing the created conversation.
"""
if tone == "Copilot":
url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1690.0"
url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1809.0"
else:
url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1690.0"
url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1809.0"
async with session.get(url, headers=headers) as response:
if response.status == 404:
raise RateLimitError("Response 404: Do less requests and reuse conversations")
@ -90,4 +90,4 @@ async def delete_conversation(session: StreamSession, conversation: Conversation
response = await response.json()
return response["result"]["value"] == "Success"
except:
return False
return False