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

Gemini Pro 的请求地址不会配置, 请教 #779

Open
shuohua2000 opened this issue Apr 14, 2024 · 4 comments
Open

Gemini Pro 的请求地址不会配置, 请教 #779

shuohua2000 opened this issue Apr 14, 2024 · 4 comments

Comments

@shuohua2000
Copy link

shuohua2000 commented Apr 14, 2024

这可能不是 Pot 的问题, 但我想是否有人能够给我提供帮助, 谢谢!
我在 Pot 中的 Gemini 翻译有一段时间不能使用了, 我的坐标美国, 可以直接访问的, 但 Pot 中 Gemini 栏是空白的, 也没有出错提示, 就像这样:
剪贴板图片 (1)

今天更新了 Pot 到最新版, Gemini 依然无法使用, 更新后需要填写 Gemini 的请求地址, 我的地址栏是留空的, 于是我尝试在我的 aistudio.google.com 寻找:
剪贴板图片 (4)

随后尝试了填写如下3个地址, 均报错, 我没有API的接入经验, 请原谅:

https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY
https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$API_KEY
https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key={key}

剪贴板图片 (5)

看报错似乎是指我的 API KEY 是错误, 但这是我正确的 Key, 并且在网页翻译的浏览器扩展中测试也可以正常被使用.
已经排除了地域限制, 为什么 Gemini Pro 无法使用? 我的 API 请求地址怎样填写才是正确的? 感谢!

@ITOTI-Y
Copy link

ITOTI-Y commented Apr 20, 2024

生成并复制key,然后把key跳入就行,不要改请求地址
image
image

@shuohua2000
Copy link
Author

生成并复制key,然后把key跳入就行,不要改请求地址 image image

我很奇怪我的请求地址栏是空白的, 可以将默认地址拷贝给我吗, 谢谢!

@ITOTI-Y
Copy link

ITOTI-Y commented Apr 21, 2024

@shuohua2000
Copy link
Author

https://generativelanguage.googleapis.com/v1beta/models/gemini-pro

谢谢, 不知道是什么问题, 用了默认地址, 依然提示429错误. 可能是gemini服务器爆了

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

2 participants