mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-10 19:11:01 +00:00
chore(g4f/Provider/bing/conversation.py): update bundleVersion in create_conversation URLs
This commit is contained in:
parent
7d1fa2c623
commit
fc9cb1f561
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user