summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/bing
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-26 06:42:47 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-03-26 06:42:47 +0100
commit95bab66dad89b6712bddbb4a20eb89d6cf5236b5 (patch)
treee9653f9026e947d14246b76282f5c198c123e24f /g4f/Provider/bing
parentUpdate min requirements, Add pycryptodome (diff)
downloadgpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar.gz
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar.bz2
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar.lz
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar.xz
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.tar.zst
gpt4free-95bab66dad89b6712bddbb4a20eb89d6cf5236b5.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/bing/conversation.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/bing/conversation.py b/g4f/Provider/bing/conversation.py
index de5716b7..e9cdfe31 100644
--- a/g4f/Provider/bing/conversation.py
+++ b/g4f/Provider/bing/conversation.py
@@ -3,8 +3,9 @@ from __future__ import annotations
from aiohttp import ClientSession
from ...requests import raise_for_status
from ...errors import RateLimitError
+from ...providers.conversation import BaseConversation
-class Conversation:
+class Conversation(BaseConversation):
"""
Represents a conversation with specific attributes.
"""
@@ -32,7 +33,7 @@ async def create_conversation(session: ClientSession, headers: dict, tone: str)
Returns:
Conversation: An instance representing the created conversation.
"""
- if tone == "copilot":
+ if tone == "Copilot":
url = "https://copilot.microsoft.com/turing/conversation/create?bundleVersion=1.1634.3-nodesign2"
else:
url = "https://www.bing.com/turing/conversation/create?bundleVersion=1.1626.1"