zuisong / gemini-openai-proxy

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

Not real streaming output #56

Closed Quilljou closed 5 months ago

Quilljou commented 5 months ago

I tried to deploy it to CF workers. I set it to stream output. But the result seems to be not streaming, All result output when the request ends on the user end. Anything wrong with my operation

zuisong commented 5 months ago

see https://github.com/zuisong/gemini-openai-proxy/pull/55

A redeployment should restore it.

Quilljou commented 5 months ago

Thanks. Btw How do I bypass the wall in the NodeJS project even though I opened the ClashX global proxy? It reports

"delta": {
                "role": "assistant",
                "content": "[GoogleGenerativeAI Error]: Error fetching from google -> [400 Bad Request] User location is not supported for the API use."
            },
zuisong commented 5 months ago

这一块我没有实际经验,可以尝试 tun模式,

代码里设置代理的话,这篇文章或许对你有帮助