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
[Enhancement]: Add support for custom Google Generative AI Base URL #481
Comments
I was hoping Google could do it but apparently, they won't. |
Using the REST API is too tricky. I have already made a fork of generative-ai-swift to support changing the base URL. |
Released in 0.32.0 beta2 |
|
1.5 models only works for API version v1beta according to this issue google-gemini/generative-ai-python#227 (comment) Maybe we should just wait until they release it. The SDK is only responsible for composing the request and handling the response. Behind the scene it still calls the REST API. |
Since you are already using a proxy, you can try simply rewriting the v1 in the url to v1beta. |
Beta is marked as beta for a reason. The API may not be stable and can break the whole feature when it changes. I can add a feature to allow users to specify the api version in settings. It will be included in the coming major release. |
Released in 0.32.0 |
Before Requesting
What feature do you want?
I want a feature! Because it keeps prompting "User location is not supported for the API use." in my country, I need to build a proxy to use it normally.
The text was updated successfully, but these errors were encountered: