[Bug] vercel部署的gemini pro不能用
为了提高交流效率,我们设立了官方 QQ 群和 QQ 频道,如果你在使用或者搭建过程中遇到了任何问题,请先第一时间加群或者频道咨询解决,除非是可以稳定复现的 Bug 或者较为有创意的功能建议,否则请不要随意往 Issue 区发送低质无意义帖子。
反馈须知
⚠️ 注意:不遵循此模板的任何帖子都会被立即关闭,如果没有提供下方的信息,我们无法定位你的问题。
请在下方中括号内输入 x 来表示你已经知晓相关内容。
- [x] 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解答;
- [x] 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解答。
- [x] 我确认已经在 Vercel 使用教程 中搜索了此次反馈的问题,没有找到解答。
描述问题 使用vercel部署的,部署参数只填了API KEY,使用的时候是美国节点,不回复内容,只有在前台使用填入KEY的时候才可以用。
如何复现 、
截图 、
一些必要的信息
- 系统:windows 10
- 浏览器: chrome
- 版本: 2.10.1
- 部署方式:vercel
Bot detected the issue body's language is not English, translate it automatically.
Title: [Bug] gemini pro deployed by vercel cannot be used
In order to improve communication efficiency, we have set up an official QQ group and QQ channel. If you encounter any problems during use or construction, please join the group or channel for consultation as soon as possible, unless it is a bug that can be stably reproduced or More creative feature suggestions, otherwise please do not send low-quality and meaningless posts to the Issue area.
Feedback Instructions
⚠️ NOTE: Any post that does not follow this template will be immediately closed and we will not be able to locate your issue without providing the information below.
Please enter x in the square brackets below to indicate that you already know the relevant content.
- [x] I confirm that I have searched for the feedback issue in FAQ. No solution found;
- [x] I confirm that I have searched the Issues list (including those that have been Closed) for this feedback issue, but no answer has been found.
- [x] I confirm that I have searched for the feedback issue in Vercel usage tutorial , no answer found.
Describe the problem Deployed using vercel, the deployment parameters only fill in the API KEY. When used, it is a US node, and the content is not returned. It can only be used when the KEY is filled in at the front desk.
How to reproduce ,
screenshot ,
Some necessary information
- System: windows 10
- Browser: chrome
- Version: 2.10.1
- Deployment method: vercel
我没有这个问题啊
Bot detected the issue body's language is not English, translate it automatically.
I don't have this problem
用不了,错误提示: User location is not supported for the API use.User location is not supported for the API use.
根据 gemini pro 的可用地区 和 vercel edge function 的可用地区 取交集,得到下面的可用区域:
"sfo1", "cle1", "iad1", "pdx1", "bom1", "cpt1", "gru1", "hnd1", "icn1", "kix1", "sin1", "syd1"
所以說如果要用gemini 必需要使用Vercel 部署? 如果部署在本地的機器上面就用不了?
用不了,错误提示: User location is not supported for the API use.User location is not supported for the API use.
@acche 我用cf的配置子域名指向vercel的ip,想国内直接访问,不挂梯子。结果遇到同样的问题。后面通过指定edge function的执行的偏好节点为美国节点,现在可以正常使用
修改地方如下:
你的意思是要覆盖掉源代码里的东西?
