summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2023-12-27 16:54:41 +0100
committerGitHub <noreply@github.com>2023-12-27 16:54:41 +0100
commit1ccdbcb51ced1878ad328e13cc10dfef4243504c (patch)
tree43ed86fc2be30d1ca462ca8cfb2141097440987f
parentMerge pull request #1399 from hlohaus/xyz (diff)
parentSupport Python 3.8 (diff)
downloadgpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar.gz
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar.bz2
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar.lz
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar.xz
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.tar.zst
gpt4free-1ccdbcb51ced1878ad328e13cc10dfef4243504c.zip
-rw-r--r--g4f/Provider/Bing.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py
index dccfc5b1..e03b413f 100644
--- a/g4f/Provider/Bing.py
+++ b/g4f/Provider/Bing.py
@@ -408,14 +408,14 @@ def create_message(conversation: Conversation, prompt: str, tone: str, context:
'traceId': os.urandom(16).hex(),
'isStartOfSession': True,
'requestId': request_id,
- 'message': Defaults.location | {
+ 'message': {**Defaults.location, **{
'author': 'user',
'inputMethod': 'Keyboard',
'text': prompt,
'messageType': 'Chat',
'requestId': request_id,
'messageId': request_id,
- },
+ }},
"scenario": "SERP",
'tone': tone,
'spokenTextMode': 'None',