GeminiProChat icon indicating copy to clipboard operation
GeminiProChat copied to clipboard

能否改为从服务端请求googleapis.com,客户端请求需要过墙

Open netcmcc opened this issue 2 years ago • 3 comments

How is Gemini Pro Chat deployed?

Node

Describe the bug

建议改为服务端请求googleapis.com,这样服务器上统一配置代理,客户端不过墙也能访问。

Console Logs

No response

Participation

  • [ ] I am willing to submit a pull request for this issue.

netcmcc avatar Dec 19 '23 01:12 netcmcc

googleapis.com 这个是什么API? 没太理解什么意思

antergone avatar Dec 19 '23 05:12 antergone

googleapis.com 这个是什么API? 没太理解什么意思

当用户从国内访问的时候,接口会报错:User location is not supported for the API use.

希望浏览器的客户端位置信息不要传递到 Google API

interjc avatar Dec 20 '23 02:12 interjc

googleapis.com 这个是什么API? 没太理解什么意思

当用户从国内访问的时候,接口会报错:User location is not supported for the API use.

希望浏览器的客户端位置信息不要传递到 Google API

跟googleapis没有什么关系。本项目README就有解决方案 我博客也写了解决方案:https://simonmy.com/posts/使用vercel反向代理google-palm-api.html

antergone avatar Dec 20 '23 02:12 antergone