babaohuang / GeminiProChat

Minimal web UI for GeminiPro.
https://geminiprochat.com
MIT License
4.26k stars 12.34k forks source link

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

Open netcmcc opened 8 months ago

netcmcc commented 8 months ago

How is Gemini Pro Chat deployed?

Node

Describe the bug

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

Console Logs

No response

Participation

antergone commented 8 months ago

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

interjc commented 8 months ago

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

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

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

antergone commented 8 months ago

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