GeminiProChat icon indicating copy to clipboard operation
GeminiProChat copied to clipboard

[GoogleGenerativeAI Error]: Error fetching from fetch failed

Open Longqing333 opened this issue 1 year ago • 4 comments

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

  • [ ] I am willing to submit a pull request for this issue.

Longqing333 avatar Dec 23 '23 07:12 Longqing333

same issue

sdu-lifei avatar Dec 23 '23 11:12 sdu-lifei

where is the server located in ?

babaohuang avatar Dec 23 '23 14:12 babaohuang

same issue

Chenxy1986 avatar Dec 26 '23 08:12 Chenxy1986

  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.

stefan-ysh avatar Dec 27 '23 03:12 stefan-ysh