Repository navigation
[WRONG BRANCH] Refresh MiniMax Flash model metadata #7739
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,7 +23,7 @@ import { | |||||||||||
| ALIBABA_TOKEN_PLAN_CONTEXT_WINDOWS, | ||||||||||||
| ALIBABA_TOKEN_PLAN_MAX_OUTPUT_TOKENS, | ||||||||||||
| MINIMAX_M31_DEFAULT_REASONING_EFFORT, | ||||||||||||
| MINIMAX_M31_FLASH_PREVIEW, | ||||||||||||
| MINIMAX_M31_FLASH, | ||||||||||||
| MINIMAX_MODELS, | ||||||||||||
| MINIMAX_MODELS_BEFORE_M31, | ||||||||||||
| MINIMAX_MODEL_CONTEXT_WINDOWS, | ||||||||||||
|
|
@@ -71,16 +71,16 @@ const ALIBABA_INTL_TOKEN_PLAN_MODELS_BEFORE_1017 = [ | |||||||||||
| ]; | ||||||||||||
|
|
||||||||||||
| /** | ||||||||||||
| * MiniMax-M3.1-Flash-Preview (2026-09-30). MiniMax's /v1/models roster does not list the | ||||||||||||
| * preview, so live discovery cannot add it; the catalog keeps it only when it is configured. | ||||||||||||
| * MiniMax-M3.1-Flash (2026-10-21). MiniMax's /v1/models roster does not list the | ||||||||||||
| * Flash, so live discovery cannot add it; the catalog keeps it only when it is configured. | ||||||||||||
| */ | ||||||||||||
| export const STALE_MODEL_ROSTERS: readonly StaleModelRoster[] = [ | ||||||||||||
| ...["minimax", "minimax-cn"].map(provider => ({ | ||||||||||||
| provider, | ||||||||||||
| from: MINIMAX_MODELS_BEFORE_M31, | ||||||||||||
| to: MINIMAX_MODELS, | ||||||||||||
| contextWindows: { [MINIMAX_M31_FLASH_PREVIEW]: MINIMAX_MODEL_CONTEXT_WINDOWS[MINIMAX_M31_FLASH_PREVIEW]! }, | ||||||||||||
| defaultReasoningEfforts: { [MINIMAX_M31_FLASH_PREVIEW]: MINIMAX_M31_DEFAULT_REASONING_EFFORT }, | ||||||||||||
| contextWindows: { [MINIMAX_M31_FLASH]: MINIMAX_MODEL_CONTEXT_WINDOWS[MINIMAX_M31_FLASH]! }, | ||||||||||||
| defaultReasoningEfforts: { [MINIMAX_M31_FLASH]: MINIMAX_M31_DEFAULT_REASONING_EFFORT }, | ||||||||||||
|
Comment on lines
+82
to
+83
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔎 Supported by static analysis
Seed MiniMax-M3.1-Flash's output limit during roster repair. A partial saved Suggested fix
Committable suggestion
|
||||||||||||
| })), | ||||||||||||
| ...[ | ||||||||||||
| { provider: "alibaba-token-plan", from: ALIBABA_TOKEN_PLAN_MODELS_BEFORE_1017, to: ALIBABA_TOKEN_PLAN_MODELS }, | ||||||||||||
|
|
||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔎 Supported by static analysis
Script executed:
Repository: lidge-jun/opencodex
Length of output: 40315
Script executed:
Repository: lidge-jun/opencodex
Length of output: 22620
Add a MiniMax preview-model rename migration.
MODEL_RENAMEShas no entry forMiniMax-M3.1-Flash-Preview. Therefore, startup leaves that ID in saved model lists, defaults, and model-keyed metadata. The stale-roster migration also does not match a roster containing that ID because it only accepts the eight-modelfromroster. Existing configurations can retain a model selection that the registry no longer seeds.Add the rename for both MiniMax providers and cover the saved fields with a regression test.
🐛 Suggested fix