gpt4free icon indicating copy to clipboard operation
gpt4free copied to clipboard

An error occurred when generating a picture

Open jiangyao123 opened this issue 10 months ago • 1 comments

error:

raise client_error(req.connection_key, exc) from exc aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host gemini.google.com:443 ssl:default [Connect call failed ('142.251.43.14', 443)]

my code:

from g4f.cookies import set_cookies from g4f.client import Client

set_cookies(".bing.com", { "_U": "..." })

set_cookies(".google.com", { "__Secure-1PSID": "...", "__Secure-1PSIDCC":"...", "__Secure-1PSIDTS":"..." })

client = Client()

response = client.images.generate( model="gemini", prompt="a white siamese cat", ) image_url = response.data[0].url

jiangyao123 avatar Apr 24 '24 06:04 jiangyao123

The internet isn't working. Did you use a proxy? Maybe try a different provider.

hlohaus avatar Apr 24 '24 08:04 hlohaus

Bumping this issue because it has been open for 7 days with no activity. Closing automatically in 7 days unless it becomes active again.

github-actions[bot] avatar May 02 '24 00:05 github-actions[bot]