diff options
author | eminemkun <teruteruwork@gmail.com> | 2023-12-16 14:59:09 +0100 |
---|---|---|
committer | eminemkun <teruteruwork@gmail.com> | 2023-12-16 14:59:09 +0100 |
commit | ba68db33027692c9b8a4723a752dce23be638d56 (patch) | |
tree | 526bd495a17040153d3767d14d55e581679d69ce /g4f/Provider/Bing.py | |
parent | ~ | g4f v-0.1.9.4 (diff) | |
download | gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar.gz gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar.bz2 gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar.lz gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar.xz gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.tar.zst gpt4free-ba68db33027692c9b8a4723a752dce23be638d56.zip |
Diffstat (limited to 'g4f/Provider/Bing.py')
-rw-r--r-- | g4f/Provider/Bing.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/g4f/Provider/Bing.py b/g4f/Provider/Bing.py index 9e3e7405..af6c5132 100644 --- a/g4f/Provider/Bing.py +++ b/g4f/Provider/Bing.py @@ -439,8 +439,7 @@ async def stream_generate( ): async with ClientSession( timeout=ClientTimeout(total=900), - cookies=cookies, - headers=Defaults.headers, + headers=Defaults.headers if not cookies else {**Defaults.headers, "Cookie": "; ".join(f"{k}={v}" for k, v in cookies.items())}, ) as session: conversation = await create_conversation(session, tone, image, proxy) try: |