mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-23 17:23:57 +03:00
Merge pull request #1356 from eminemkun/main
Fix Bing provider Cookie issue
This commit is contained in:
commit
5c5ce8c0f7
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user