From f82a60dfb36cad762dc3d830a0552420e3371eda Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Mon, 25 Dec 2023 01:41:29 +0100 Subject: Support Python 3.8 --- g4f/Provider/Bing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f') 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', -- cgit v1.2.3