mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
Fix Bing provider Cookie issue
This commit is contained in:
parent
b615a95a41
commit
ba68db3302
@ -439,8 +439,7 @@ async def stream_generate(
|
|||||||
):
|
):
|
||||||
async with ClientSession(
|
async with ClientSession(
|
||||||
timeout=ClientTimeout(total=900),
|
timeout=ClientTimeout(total=900),
|
||||||
cookies=cookies,
|
headers=Defaults.headers if not cookies else {**Defaults.headers, "Cookie": "; ".join(f"{k}={v}" for k, v in cookies.items())},
|
||||||
headers=Defaults.headers,
|
|
||||||
) as session:
|
) as session:
|
||||||
conversation = await create_conversation(session, tone, image, proxy)
|
conversation = await create_conversation(session, tone, image, proxy)
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user