summaryrefslogtreecommitdiffstats
path: root/g4f/client
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-20 01:28:08 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-20 01:28:08 +0200
commit80b2e9b80774c558cb863841e7e8214fbc0eca67 (patch)
tree449863877c368037c5951697d37e9bd997cf679a /g4f/client
parentCreate windows release, improve styling (diff)
downloadgpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar.gz
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar.bz2
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar.lz
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar.xz
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.tar.zst
gpt4free-80b2e9b80774c558cb863841e7e8214fbc0eca67.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 1508e566..a97b4d7a 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: