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 API似乎能配置反代了。 #260

Closed
daiaji opened this issue Sep 17, 2024 · 6 comments
Closed

Gemini API似乎能配置反代了。 #260

daiaji opened this issue Sep 17, 2024 · 6 comments

Comments

@daiaji
Copy link
Contributor

daiaji commented Sep 17, 2024

google-gemini/generative-ai-python#188 (comment)

大哥支持一下吧,能搭建反代的平台很多,但能搭建代理的就少些。
实际上让API与形成绑定关系再使用的话,貌似能绕过日请求限制和分钟请求限制。

@NEKOparapa
Copy link
Owner

工作量有点多,而且没几个人用,先暂时不加了

@daiaji
Copy link
Contributor Author

daiaji commented Sep 19, 2024

有空再加也行。

@Alexmalab
Copy link

反代没有卵用,只对generate_content函数生效,不对upload_file函数生效。你若像附带文件。则无效

@Hoshino-Yumetsuki
Copy link

反代没有卵用,只对generate_content函数生效,不对upload_file函数生效。你若像附带文件。则无效

直接通过 workers 或者其他方式反代整个 api 域名,这样也是可以的,反代的函数有效性主要取决于反代方式

@daiaji
Copy link
Contributor Author

daiaji commented Dec 20, 2024

反代没有卵用,只对generate_content函数生效,不对upload_file函数生效。你若像附带文件。则无效

google-gemini/generative-ai-python#610 (comment)
说是配置grpc代理就能全局代理,包括upload_file。

@Alexmalab
Copy link

反代没有卵用,只对generate_content函数生效,不对upload_file函数生效。你若像附带文件。则无效

google-gemini/generative-ai-python#610 (comment) 说是配置grpc代理就能全局代理,包括upload_file。

有用是有用,但是我的应用场景是作为一个项目的模块扩展,全局代理让我的项目也走代理了不好;若他原生不支持代理,那就只能以独立服务的形式部署了

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

4 participants