-
Notifications
You must be signed in to change notification settings - Fork 2.6k
support custom base url for gemini in google AI studio #1534
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
support custom base url for gemini in google AI studio #1534
Conversation
|
|
Nice, makes sense to me. Do you mind resolving the conflicts? Or if you don't have time I can give it a shot later. |
|
Hey! I’ve already resolved the conflicts. Sorry for the mess, I’m still pretty new to TypeScript and github development flow. Thanks~ |
mrubens
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Context
Many models in Roo-code settings pane allow users to set a custom base url. The Google Gemini model doesn't support it yet. so I add it.
Implementation
The code is not complicated, just add similar options like Claude Sonnet or Mistra.
Screenshots
Before:
After
How to Test
Get in Touch
Important
Adds support for configuring a custom base URL for the Google Gemini model in Google AI Studio, including backend and UI changes.
GeminiHandleringemini.ts.createMessageandcompletePromptmethods to usegoogleGeminiBaseUrl.googleGeminiBaseUrltoApiHandlerOptionsinapi.ts.ClineProviderinClineProvider.tsto handlegoogleGeminiBaseUrlin global state.ApiOptions.tsxto configuregoogleGeminiBaseUrl.This description was created by
for 85b54b3. It will automatically update as commits are pushed.