Repository navigation
feat: 支持 gemini-robotics-er-1.5-preview - #1945
Conversation
WalkthroughAdds pricing and ratio support for the new Gemini Robotics ER 1.5 model: a new audio input price constant and a branch in GetGeminiInputAudioPricePerMillionTokens, plus default/derived model ratio entries handling the "gemini-robotics-er-1.5" prefix. Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant Pricing as operation_setting.tools
participant Ratios as ratio_setting.model_ratio
Note over Caller,Pricing: Price lookup for audio input
Caller->>Pricing: GetGeminiInputAudioPricePerMillionTokens(modelName)
alt modelName startsWith "gemini-robotics-er-1.5"
Pricing-->>Caller: GeminiRoboticsER15InputAudioPrice
else other prefixes
Pricing-->>Caller: Existing mapped price
end
Note over Caller,Ratios: Ratio lookup for completions
Caller->>Ratios: getHardcodedCompletionModelRatio(modelName)
alt modelName startsWith "gemini-robotics-er-1.5"
Ratios-->>Caller: ratio=2.5/0.3, isDefault=false
else other prefixes
Ratios-->>Caller: Existing ratio logic
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🔇 Additional comments (5)
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. Comment |
feat: 支持 gemini-robotics-er-1.5-preview
feat: 支持 gemini-robotics-er-1.5-preview
feat: 支持 gemini-robotics-er-1.5-preview
https://ai.google.dev/gemini-api/docs/pricing?hl=zh-cn#gemini-robotics-er

Summary by CodeRabbit
New Features
Chores