babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.24k stars 12.33k forks source link

[GoogleGenerativeAI Error]: Error fetching from fetch failed #83

Open Longqing333 opened 8 months ago

Longqing333 commented 8 months ago

What operating system are you using?

WINDOWS11

What browser are you using?

Chrome

Describe the bug

The way I deploy using docker Google key test ok,Is there a problem with docker deployment? use it run:docker run --name chat --restart always -p 3000:3000 -itd -e GEMINI_API_KEY=Googlekey(test ok.) babaohuang/geminiprochat:latest

What prompt did you enter?

i ask :hello but reture👇: Error [GoogleGenerativeAI Error]: Error fetching from fetch failed

Console Logs

No response

Participation

sdu-lifei commented 8 months ago

same issue

babaohuang commented 8 months ago

where is the server located in ?

Chenxy1986 commented 8 months ago

same issue

stefan-ysh commented 8 months ago
  1. Read README to learn how to build a proxy service
  2. After deploying the proxy service to Vercel, bind a domain name to the deployed proxy service instead of using the url generated by Vercel
  3. Set an environment variable named API_BASE_URL with the value you got from step2 which looks like https://proxy.YOUR_DOMAIN.com
  4. Redeploy your application image

    I hope this helps.