Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
GreysonHYH opened this issue Jan 31, 2024 · 3 comments

Comments

@GreysonHYH
Copy link

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

  • I am willing to submit a pull request for this issue.
@zsinba
Copy link

zsinba commented Feb 2, 2024

the same.

@codenamedpkt
Copy link

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

@luyingwei80
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants