zuisong / gemini-openai-proxy

OpenAI to Google Gemini https://gemini-openai-proxy.deno.dev
https://gemini-openai-proxy.zuisong.workers.dev
MIT License
312 stars 88 forks source link

error sending request for url #64

Closed anyshu closed 2 months ago

anyshu commented 4 months ago

The reponse returned error like below, the base_url is expired?

{"id":"chatcmpl-abc123","object":"chat.completion","created":1721044629,"model":"gpt-4-turbo-preview","choices":[{"message":{"role":"assistant","content":"[GoogleGenerativeAI Error]: Error fetching from google -> error sending request for url (https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-pro-latest:streamGenerateContent?key=xxxxxxxxxxxxxxxxxxxk&alt=sse): error trying to connect: tcp connect error: Cannot assign requested address (os error 99)"},"finish_reason":"stop","index":0,"logprobs":null}]}

zuisong commented 4 months ago

Can you access google server? You can try to run this.

ping generativelanguage.googleapis.com