Skip to content

Add pricing for Gemini 3.1 Pro Preview Custom Tools#148

Merged
mike1858 merged 1 commit intomainfrom
feat/gemini-3.1-pro-preview-custom-tools
Apr 21, 2026
Merged

Add pricing for Gemini 3.1 Pro Preview Custom Tools#148
mike1858 merged 1 commit intomainfrom
feat/gemini-3.1-pro-preview-custom-tools

Conversation

@mike1858
Copy link
Copy Markdown
Member

@mike1858 mike1858 commented Apr 21, 2026

Equivalent pricing to Gemini 3.1 Pro Preview.

Closes #147.

Summary by CodeRabbit

  • New Features
    • Added support for the Gemini 3.1 Pro Preview Customtools model variant with verified pricing for inputs, outputs, and cache operations.

Equivalent pricing to Gemini 3.1 Pro Preview.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 21, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f779056f-2943-446a-b470-3b57b14694d2

📥 Commits

Reviewing files that changed from the base of the PR and between 2ab8f58 and 928f3bc.

📒 Files selected for processing (1)
  • src/models.rs

📝 Walkthrough

Walkthrough

A new model alias "gemini-3.1-pro-preview-customtools" has been added to map to "gemini-3.1-pro-preview" in the model alias table, along with a corresponding unit test verifying the alias resolves correctly and pricing matches expected values.

Changes

Cohort / File(s) Summary
Model Alias Addition
src/models.rs
Added "gemini-3.1-pro-preview-customtools" alias mapping to "gemini-3.1-pro-preview" with a unit test verifying alias resolution and pricing consistency.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Poem

🐰 A customtools alias hops into place,
No more warnings in this space!
Gemini 3.1 pro flows through the stream,
Pricing aligned like a rabbit's dream. ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 75.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding pricing support for a specific Gemini model variant.
Linked Issues check ✅ Passed The PR directly addresses issue #147 by adding the missing pricing alias for gemini-3.1-pro-preview-customtools, resolving the warning about unknown model defaulting to $0.
Out of Scope Changes check ✅ Passed All changes are directly scoped to resolving the linked issue: adding a model alias mapping and corresponding unit test, with no extraneous modifications.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/gemini-3.1-pro-preview-custom-tools

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@mike1858 mike1858 merged commit 2732931 into main Apr 21, 2026
6 checks passed
@mike1858 mike1858 deleted the feat/gemini-3.1-pro-preview-custom-tools branch April 21, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

I get this error when I close splitrail: WARNING: Unknown model: gemini-3.1-pro-preview-customtools. Defaulting to $0.

1 participant