Skip to content

Conversation

@hannesrudolph
Copy link
Collaborator

@hannesrudolph hannesrudolph commented Nov 18, 2025

This PR adds support for the Gemini 3 Pro Preview model and pricing. https://blog.google/products/gemini/gemini-3

Changes:

  • Add gemini-3-pro-preview entry to packages/types/src/providers/gemini.ts with 1M context window and reasoning support metadata.
  • Configure tiered pricing to match the public Gemini 3 Pro Preview pricing (≤200K tokens: $2 input / $12 output, >200K tokens: $4 input / $18 output) as per https://blog.google/products/gemini/gemini-3.
  • Add gemini-3-pro-preview entry to packages/types/src/providers/vertex.ts with the same configuration.
  • Rely on existing Gemini provider cost calculation, which already uses ModelInfo.tiers for billing.

Important

Add gemini-3-pro-preview model to gemini.ts and vertex.ts with specific configurations and tiered pricing.

  • Models:
    • Add gemini-3-pro-preview to geminiModels in gemini.ts with 1M context window, reasoning support, and tiered pricing.
    • Add gemini-3-pro-preview to vertexModels in vertex.ts with similar configurations as in gemini.ts.
  • Pricing:
    • Configure tiered pricing for gemini-3-pro-preview (≤200K tokens: input/2 output, >200K tokens: input/8 output) based on public pricing.
  • Validation:
    • Run npx vitest run and pre-push hooks (lint + type-check) passed.

This description was created by Ellipsis for 652f63f. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. Enhancement New feature or request labels Nov 18, 2025
@roomote
Copy link
Contributor

roomote bot commented Nov 18, 2025

Rooviewer Clock   See task on Roo Cloud

Re-review complete. The previously identified issue remains unresolved.

  • Tier ordering causes incorrect pricing for inputs >200K tokens
Previous reviews

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 18, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 18, 2025
@mrubens mrubens merged commit 9538d82 into main Nov 18, 2025
16 checks passed
@mrubens mrubens deleted the Gemini branch November 18, 2025 16:29
@github-project-automation github-project-automation bot moved this from Triage to Done in Roo Code Roadmap Nov 18, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Nov 18, 2025