Skip to content

Conversation

@dqroid
Copy link
Contributor

@dqroid dqroid commented Mar 10, 2025

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:

122ca44513796fe2c042bab81d039b17

After

4e04511678ef0c25b92bd46c7e811087

78d6e4eaf97f43017030cf08d9a342f9

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.

  • Behavior:
    • Adds support for custom base URL for Google Gemini model in GeminiHandler in gemini.ts.
    • Updates createMessage and completePrompt methods to use googleGeminiBaseUrl.
  • Configuration:
    • Adds googleGeminiBaseUrl to ApiHandlerOptions in api.ts.
    • Updates ClineProvider in ClineProvider.ts to handle googleGeminiBaseUrl in global state.
  • UI:
    • Adds UI elements in ApiOptions.tsx to configure googleGeminiBaseUrl.

This description was created by Ellipsis for 85b54b3. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 10, 2025

⚠️ No Changeset found

Latest commit: 7ece065

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Mar 10, 2025
@mrubens
Copy link
Collaborator

mrubens commented Mar 10, 2025

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.

@hannesrudolph hannesrudolph moved this from New to PR [Greenlit] in Roo Code Roadmap Mar 10, 2025
@dqroid
Copy link
Contributor Author

dqroid commented Mar 11, 2025

Hey! I’ve already resolved the conflicts. Sorry for the mess, I’m still pretty new to TypeScript and github development flow. Thanks~

Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 12, 2025
@mrubens mrubens merged commit 705b3ba into RooCodeInc:main Mar 12, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from PR [Greenlit] to Done in Roo Code Roadmap Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants