summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Bing.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-17 22:36:31 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-17 22:36:31 +0100
commit7cd5b3f0c639578dcdaeb354e1071172a7d7f761 (patch)
tree873df62a78b541cf90c49d601717f6b1c577a8b4 /g4f/Provider/Bing.py
parentDelete image.html (diff)
downloadgpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar.gz
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar.bz2
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar.lz
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar.xz
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.tar.zst
gpt4free-7cd5b3f0c639578dcdaeb354e1071172a7d7f761.zip
Diffstat (limited to '')
-rw-r--r--g4f/Provider/Bing.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py
index 5b5f89aa..1e29c4f1 100644
--- a/g4f/Provider/Bing.py
+++ b/g4f/Provider/Bing.py
@@ -66,7 +66,7 @@ class Bing(AsyncGeneratorProvider):
prompt = messages[-1]["content"]
context = create_context(messages[:-1])
- cookies = {**Defaults.cookies, **cookies} if cookies else Defaults.cookies
+ cookies = {**get_default_cookies(), **cookies} if cookies else get_default_cookies()
gpt4_turbo = True if model.startswith("gpt-4-turbo") else False
@@ -146,8 +146,8 @@ class Defaults:
"streamf", "codeint", "langdtwb", "fdwtlst", "fluxprod", "deuct3"
]
- # Default cookies
- cookies = {
+def get_default_cookies():
+ return {
'SRCHD' : 'AF=NOFORM',
'PPLState' : '1',
'KievRPSSecAuth': '',