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

API request return a 500 Server Error frequently #26

Open
jun0wanan opened this issue Feb 29, 2024 · 1 comment
Open

API request return a 500 Server Error frequently #26

jun0wanan opened this issue Feb 29, 2024 · 1 comment

Comments

@jun0wanan
Copy link

你好,

gemini-pro-vision 的api 老错

raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText?key=AIzaSyB2CE2CyMvaa_LPbboyk09rZgTEkmoZoTk

怎么办

@bclswl0827
Copy link
Owner

https://generativelanguage.googleapis.com/v1beta3/models/text-bison-001:generateText?key=AIzaSyB2CE2CyMvaa_LPbboyk09rZgTEkmoZoTk

您说您在使用 gemini-pro-vision 模型,但是 URL 中选用的模型却是 text-bison-001,请检查代码

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