summaryrefslogtreecommitdiffstats
path: root/g4f/client
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-05-20 01:50:03 +0200
committerGitHub <noreply@github.com>2024-05-20 01:50:03 +0200
commit5115cf0e23e9abf2860161794a10e3a40055af4d (patch)
tree47c2a9f631c0ff4e47d8f34906705771164920b2 /g4f/client
parentUpdate DeepInfra.py (diff)
parentAdd some options to messages in gui, saves generated images local (diff)
downloadgpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar.gz
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar.bz2
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar.lz
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar.xz
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.tar.zst
gpt4free-5115cf0e23e9abf2860161794a10e3a40055af4d.zip
Diffstat (limited to 'g4f/client')
-rw-r--r--g4f/client/async_client.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/client/async_client.py b/g4f/client/async_client.py
index 9849c565..dbfa6b70 100644
--- a/g4f/client/async_client.py
+++ b/g4f/client/async_client.py
@@ -171,7 +171,8 @@ async def iter_image_response(
if isinstance(chunk, ImageProviderResponse):
if response_format == "b64_json":
async with ClientSession(
- connector=get_connector(connector, proxy)
+ connector=get_connector(connector, proxy),
+ cookies=chunk.options.get("cookies")
) as session:
async def fetch_image(image):
async with session.get(image) as response: