fix: infer MiniMax vendor for MiniMax models - #6164
Merged
Calcium-Ion merged 2 commits intoJul 14, 2026
Merged
Conversation
Contributor
WalkthroughThe default vendor rules now recognize models containing ChangesMiniMax vendor mapping
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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 |
JacksonsY
added a commit
to JacksonsY/new-api
that referenced
this pull request
Jul 15, 2026
上游 7c28993..a63364d: - fix: purge authentication data on hard user deletion (QuantumNous#6168) —— 硬删用户时清理 2FA/备份码/Passkey/Token/OAuth 绑定 + 缓存失效(安全修复,跟上游)。后端文件 (model/user.go、token.go、twofa.go、controller/user.go、telegram.go) 自动合并为 并集:上游清理逻辑 + fork 供应商字段/隐藏敏感字段均完整保留(逐文件校验新增行数与 上游一致)。 - fix: infer MiniMax vendor for MiniMax models (QuantumNous#6164) —— 常规修复,跟上游。 - fix(users): prevent large quota values from overflowing (QuantumNous#6134) —— 纯前端「单元格文本 溢出」的显示修复(非整数溢出)。冲突文件 users-columns.tsx 按「界面归我们」保留 fork 版 (语义色 token bg-destructive/warning/success + StatusBadge children API + 卡片式 meta cardRole/cardSpan/contentMode),未采用上游抽出的 user-quota-cell.tsx(其用 base 时代的硬编码色/label API,与 fork 设计系统已分叉),该新组件在本合并中删除。 go build ./... 通过;model/controller 测试(含上游新增 user_authentication/telegram/ task_cas 测试)全绿;前端树与 fork HEAD 等价。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
fux-dev
added a commit
to fux-dev/new-api
that referenced
this pull request
Jul 19, 2026
* fix: infer MiniMax vendor for MiniMax models * Delete model/pricing_default_test.go --------- Co-authored-by: duanxufu <duanxufu@rededa.com>
zhaodechao2008
pushed a commit
to zhaodechao2008/new-api
that referenced
this pull request
Jul 27, 2026
* fix: infer MiniMax vendor for MiniMax models * Delete model/pricing_default_test.go --------- Co-authored-by: duanxufu <duanxufu@rededa.com>
MinTiang
pushed a commit
to MinTiang/new-api
that referenced
this pull request
Aug 6, 2026
* fix: infer MiniMax vendor for MiniMax models * Delete model/pricing_default_test.go --------- Co-authored-by: duanxufu <duanxufu@rededa.com>
biubiubiu125
pushed a commit
to biubiubiu125/newapi
that referenced
this pull request
Aug 8, 2026
* fix: infer MiniMax vendor for MiniMax models * Delete model/pricing_default_test.go --------- Co-authored-by: duanxufu <duanxufu@rededa.com>
330079598
pushed a commit
to 330079598/new-api
that referenced
this pull request
Aug 19, 2026
* fix: infer MiniMax vendor for MiniMax models * Delete model/pricing_default_test.go --------- Co-authored-by: duanxufu <duanxufu@rededa.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Models following the
MiniMax-*naming convention were not correctly associated with the MiniMax vendor in Model Square. As a result, models such asMiniMax-M3could be displayed without a provider.Description
Models using the
MiniMax-*naming convention were not correctly mapped to the MiniMax vendor in Model Square. Consequently, models such asMiniMax-M3could appear without an associated provider.Previously, the default vendor mapping only recognized MiniMax's legacy
abab*model names. This change addsminimaxas an additional case-insensitive matching pattern for the existing MiniMax vendor mapping.A focused regression test has been added to verify that
MiniMax-M3correctly resolves to the MiniMax vendor.This change does not modify the MiniMax channel's default model list.
The issue was reproduced using the Docker image:
calciumion/new-api:v1.0.0-rc.21🚀 Type of Change
📸 Proof of Work
Summary by CodeRabbit