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

API key not valid. Please pass a valid API key。 #142

Open
1 task
sdh1986 opened this issue Jan 30, 2024 · 2 comments
Open
1 task

API key not valid. Please pass a valid API key。 #142

sdh1986 opened this issue Jan 30, 2024 · 2 comments

Comments

@sdh1986
Copy link

sdh1986 commented Jan 30, 2024

How is Gemini Pro Chat deployed?

Node

Describe the bug

Error
API key not valid. Please pass a valid API key. [{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_KEY_INVALID","domain":"googleapis.com","metadata":{"service":"generativelanguage.googleapis.com"}}]

环境介绍:
2台反向代理服务器
2台应用服务器
Cloudflare作为反向代理服务器的负载均衡
搭建完成后可以使用但是经常出现上面的报错,我不知道是什么原因引起的,但是在同样的环境另外一个项目(ChatGPT-Next-Web)它运行的很好。

怀疑:是不是Gemini API 不支持轮询key?但是我如果使用一个密钥问题依旧,请大佬帮忙解答解答我的疑惑,谢谢。

Console Logs

No response

Participation

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

我也遇到了同样的问题

@epoooh
Copy link

epoooh commented Mar 2, 2024

我也是一样的问题,请问有人知道怎么解决吗

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

3 participants