Skip to content

fix: revert model ratio - #2524

Merged
Calcium-Ion merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/revert-model-ratio
Dec 25, 2025
Merged

Calcium-Ion merged 1 commit into
QuantumNous:mainfrom
seefs001:fix/revert-model-ratio

Conversation

@seefs001

@seefs001 seefs001 commented Dec 25, 2025 •

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Bug Fixes
    • Updated model name formatting behavior. Model names are no longer trimmed by effort suffix, resulting in the display of complete model names without certain suffix removal previously applied.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai

coderabbitai Bot commented Dec 25, 2025 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

Walkthrough

The reasoning package import was removed from model_ratio.go, and the FormatMatchingModelName function no longer applies effort suffix trimming to model names during formatting operations. This eliminates the dependency's associated name normalization logic.

Changes

Cohort / File(s) Change Summary
Dependency Removal
setting/ratio_setting/model_ratio.go
Removed reasoning package import and eliminated TrimEffortSuffix logic; FormatMatchingModelName now returns unmodified model names without effort suffix trimming

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 A reasoning away, we hop today,
No suffix trimming clouds the way,
The code runs light, unburdened now,
One less import takes a bow,
Simplicity winsβ€”we thump hooray! πŸ₯•

✨ Finishing touches
  • πŸ“ Generate docstrings
πŸ§ͺ Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

πŸ“œ Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 0b1a562 and 559da63.

πŸ“’ Files selected for processing (1)
  • setting/ratio_setting/model_ratio.go

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.

@Calcium-Ion
Calcium-Ion merged commit 8206084 into QuantumNous:main Dec 25, 2025
ennnnny pushed a commit to ennnnny/new-api that referenced this pull request Mar 17, 2026
salem-2007 added a commit to salem-2007/new-api that referenced this pull request Sep 10, 2026
junjundesk pushed a commit to junjundesk/new-api that referenced this pull request Oct 3, 2026
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.

2 participants