feat(ratio-setting): add compatibility for gemma-4 model suffix handling#4063
feat(ratio-setting): add compatibility for gemma-4 model suffix handling#4063sxjeru wants to merge 1 commit intoQuantumNous:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
There was a problem hiding this comment.
Pull request overview
This PR extends the model-name normalization logic used by ratio/price lookups to handle Gemma 4 “reasoning effort” suffixes (e.g., -minimal, -high) by trimming them to the base model name, improving compatibility with upstream model naming variants.
Changes:
- Add
setting/reasoningdependency to reuse the shared effort-suffix parsing logic. - Update
FormatMatchingModelNameto trim Gemma 4 effort suffixes (viareasoning.TrimEffortSuffix) so ratio matching uses the base model name.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
根据 AIS 和相关文档,Gemma 4 已支持通过
thinkingLevel控制思考开关。即使 newapi 支持
gemma-4-26b-a4b-it-minimal。Summary by CodeRabbit
Release Notes