Skip to content

Add Gemini 3.1 Pro support and set Gemini default model#11608

Merged
hannesrudolph merged 1 commit intoRooCodeInc:mainfrom
PeterDaveHello:feat/gemini-3-1-model-support
Feb 19, 2026
Merged

Add Gemini 3.1 Pro support and set Gemini default model#11608
hannesrudolph merged 1 commit intoRooCodeInc:mainfrom
PeterDaveHello:feat/gemini-3-1-model-support

Conversation

@PeterDaveHello
Copy link
Contributor

@PeterDaveHello PeterDaveHello commented Feb 19, 2026

Description

This PR adds Gemini 3.1 Pro preview model support to provider metadata and
updates the default Gemini model selection.

Implemented changes:

  • Added gemini-3.1-pro-preview to:
    • packages/types/src/providers/gemini.ts
    • packages/types/src/providers/vertex.ts
  • Added gemini-3.1-pro-preview-customtools to:
    • packages/types/src/providers/gemini.ts
  • Updated geminiDefaultModelId from gemini-3-pro-preview to gemini-3.1-pro-preview.
  • Added medium to Gemini 3.1 supportsReasoningEffort metadata so a user’s medium setting is preserved instead of silently falling back.

Reference URLs:

Test Procedure

  • Type check:
    • pnpm --filter @roo-code/types check-types
  • Provider tests:
    • pnpm --filter roo-cline exec vitest run api/providers/__tests__/gemini.spec.ts api/providers/__tests__/vertex.spec.ts
  • Verify both commands pass.

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: Relevant existing tests were run to verify this change.
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

N/A (no UI changes)

Documentation Updates

  • No documentation updates are required.
  • Yes, documentation updates are required.

Start a new Roo Code Cloud session on this branch

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. Enhancement New feature or request labels Feb 19, 2026
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 19, 2026
@hannesrudolph hannesrudolph merged commit b64334b into RooCodeInc:main Feb 19, 2026
18 checks passed
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Feb 19, 2026
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

Comments