summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Bing.py
diff options
context:
space:
mode:
authorTekky <98614666+xtekky@users.noreply.github.com>2024-01-12 12:51:25 +0100
committerGitHub <noreply@github.com>2024-01-12 12:51:25 +0100
commit4b5fffc26599b7933c9813f2f7d860adac4e1014 (patch)
tree3e3a7bc5183ff08fb5a176efeb61264c87c49ece /g4f/Provider/Bing.py
parent~ | g4f v-0.2.0.1 (diff)
parentMerge branch 'main' into pypi (diff)
downloadgpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar.gz
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar.bz2
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar.lz
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar.xz
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.tar.zst
gpt4free-4b5fffc26599b7933c9813f2f7d860adac4e1014.zip
Diffstat (limited to 'g4f/Provider/Bing.py')
-rw-r--r--g4f/Provider/Bing.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py
index 18a6040b..b0949397 100644
--- a/g4f/Provider/Bing.py
+++ b/g4f/Provider/Bing.py
@@ -33,7 +33,7 @@ class Bing(AsyncGeneratorProvider):
proxy: str = None,
timeout: int = 900,
cookies: dict = None,
- tone: str = Tones.creative,
+ tone: str = Tones.balanced,
image: str = None,
web_search: bool = False,
**kwargs
@@ -212,7 +212,11 @@ def create_message(
'requestId': request_id,
'messageId': request_id,
}},
+ "verbosity": "verbose",
"scenario": "SERP",
+ "plugins":[
+ {"id":"c310c353-b9f0-4d76-ab0d-1dd5e979cf68", "category": 1}
+ ] if web_search else [],
'tone': tone,
'spokenTextMode': 'None',
'conversationId': conversation.conversationId,