summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2023-12-25 01:41:29 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2023-12-25 01:41:29 +0100
commitf82a60dfb36cad762dc3d830a0552420e3371eda (patch)
treeb66da6efecbc6ee87310ca047e5f366338b7d0b8 /g4f
parentUpdate get_latest_version for docker (diff)
downloadgpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar.gz
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar.bz2
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar.lz
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar.xz
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.tar.zst
gpt4free-f82a60dfb36cad762dc3d830a0552420e3371eda.zip
Diffstat (limited to 'g4f')
-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',