Update MiniMax structured generation fallback (#1955)
Prefer MiniMax M3 for metadata generation and align the related docs/tests with the newer provider model. Co-authored-by: octo-patch <266937838+octo-patch@users.noreply.github.com> Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
octo-patch
Claude Opus 4.7
parent
ebaecace2b
commit
15d3091104
@@ -171,7 +171,7 @@ For pay-as-you-go, use `ANTHROPIC_API_KEY` with a standard Model Studio key (`sk
|
|||||||
| `qwen3-coder-next` | Optimized for coding |
|
| `qwen3-coder-next` | Optimized for coding |
|
||||||
| `kimi-k2.5` | Vision capable |
|
| `kimi-k2.5` | Vision capable |
|
||||||
| `glm-5` | Zhipu GLM |
|
| `glm-5` | Zhipu GLM |
|
||||||
| `MiniMax-M2.5` | MiniMax |
|
| `MiniMax-M3` | MiniMax |
|
||||||
|
|
||||||
**Additional models (pay-as-you-go):**
|
**Additional models (pay-as-you-go):**
|
||||||
`qwen3-max`, `qwen3.5-flash`, `qwen3-coder-plus`, `qwen3-coder-flash`, `qwen3-vl-plus`, `qwen3-vl-flash`
|
`qwen3-max`, `qwen3.5-flash`, `qwen3-coder-plus`, `qwen3-coder-flash`, `qwen3-vl-plus`, `qwen3-vl-flash`
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ describe("resolveStructuredGenerationProviders", () => {
|
|||||||
status: READY,
|
status: READY,
|
||||||
enabled: true,
|
enabled: true,
|
||||||
models: [
|
models: [
|
||||||
{ provider: "router", id: "minimax-m2.5-free", label: "MiniMax M2.5", isDefault: true },
|
{ provider: "router", id: "minimax-m3-free", label: "MiniMax M3", isDefault: true },
|
||||||
{ provider: "router", id: "nemotron-3-super-free", label: "Nemotron 3 Super" },
|
{ provider: "router", id: "nemotron-3-super-free", label: "Nemotron 3 Super" },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
@@ -87,7 +87,7 @@ describe("resolveStructuredGenerationProviders", () => {
|
|||||||
expect(providers).toEqual([
|
expect(providers).toEqual([
|
||||||
{ provider: "work-claude", model: "claude-haiku-2026" },
|
{ provider: "work-claude", model: "claude-haiku-2026" },
|
||||||
{ provider: "work-codex", model: "gpt-5.4-mini-2026", thinkingOptionId: "low" },
|
{ provider: "work-codex", model: "gpt-5.4-mini-2026", thinkingOptionId: "low" },
|
||||||
{ provider: "router", model: "minimax-m2.5-free" },
|
{ provider: "router", model: "minimax-m3-free" },
|
||||||
{ provider: "router", model: "nemotron-3-super-free" },
|
{ provider: "router", model: "nemotron-3-super-free" },
|
||||||
{ provider: "focused-provider", model: "focused-model", thinkingOptionId: "high" },
|
{ provider: "focused-provider", model: "focused-model", thinkingOptionId: "high" },
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const DEFAULT_STRUCTURED_GENERATION_PROVIDERS: readonly StructuredGenerat
|
|||||||
[
|
[
|
||||||
{ modelSubstring: "haiku" },
|
{ modelSubstring: "haiku" },
|
||||||
{ modelSubstring: "gpt-5.4-mini", thinkingOptionId: "low" },
|
{ modelSubstring: "gpt-5.4-mini", thinkingOptionId: "low" },
|
||||||
{ modelSubstring: "minimax-m2.5" },
|
{ modelSubstring: "minimax-m3" },
|
||||||
{ modelSubstring: "nemotron-3-super" },
|
{ modelSubstring: "nemotron-3-super" },
|
||||||
] as const;
|
] as const;
|
||||||
|
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ The candidate list is assembled in this order:
|
|||||||
2. **Built-in defaults**, matched against the models of the providers you have enabled:
|
2. **Built-in defaults**, matched against the models of the providers you have enabled:
|
||||||
1. a `haiku` model
|
1. a `haiku` model
|
||||||
2. `gpt-5.4-mini` (low reasoning)
|
2. `gpt-5.4-mini` (low reasoning)
|
||||||
3. `minimax-m2.5`
|
3. `minimax-m3`
|
||||||
4. `nemotron-3-super`
|
4. `nemotron-3-super`
|
||||||
3. **The model currently selected** for that agent or draft, as a last resort.
|
3. **The model currently selected** for that agent or draft, as a last resort.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user