babaohuang / GeminiProChat

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

电脑本地运行报错:[GoogleGenerativeAI Error]: Error fetching from [404 Not Found] #144

Open GreysonHYH opened 5 months ago

GreysonHYH commented 5 months ago

What operating system are you using?

Linux

What browser are you using?

Chrome

Describe the bug

将.env.example改为.env,然后粘贴我的Gemini apikey和在vercel上部署的base url. image

然后npm run dev,报错Error [GoogleGenerativeAI Error]: Error fetching from [404 Not Found] image

这是请求信息: image

我的apikey和baseurl是没有问题的,因为可以部署到Vercel上正常使用,但是在本地不行。

What prompt did you enter?

No response

Console Logs

image

Participation

zsinba commented 5 months ago

the same.

codenamedpkt commented 2 months ago

@GreysonHYH @zsinba 在中國這些不支持Google Gemini的國家,本地部署項目,記得科學上網才行!

luyingwei80 commented 2 months ago

我这边的情况是如果网咯改成HOST,这个问题就能解决。不知道除了3000端口,还有其他什么端口需要映射?