MiniMax: add M2.7 models and update default to M2.7 (#49691)

* MiniMax: add M2.7 models and update default to M2.7

- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to provider catalog and model definitions
- Update default model from MiniMax-M2.5 to MiniMax-M2.7 across onboard, portal, and provider configs
- Update isModernMiniMaxModel to recognize M2.7 prefix
- Update all test fixtures to reflect M2.7 as default

Made-with: Cursor

* MiniMax: add extension test for model definitions

* update 2.7

* feat: add MiniMax M2.7 models and update default (#49691) (thanks @liyuan97)

---------

Co-authored-by: George Zhang <georgezhangtj97@gmail.com>
This commit is contained in:
liyuan97
2026-03-19 00:24:37 +08:00
committed by GitHub
parent 823a09acbe
commit b64f4e313d
29 changed files with 148 additions and 75 deletions

View File

@@ -368,14 +368,14 @@ describe("isModernModelRef", () => {
expect(isModernModelRef({ provider: "opencode", id: "gemini-3-pro" })).toBe(true);
expect(isModernModelRef({ provider: "opencode-go", id: "kimi-k2.5" })).toBe(true);
expect(isModernModelRef({ provider: "opencode-go", id: "glm-5" })).toBe(true);
expect(isModernModelRef({ provider: "opencode-go", id: "minimax-m2.5" })).toBe(true);
expect(isModernModelRef({ provider: "opencode-go", id: "minimax-m2.7" })).toBe(true);
});
it("excludes provider-declined modern models", () => {
providerRuntimeMocks.resolveProviderModernModelRef.mockImplementation(({ provider, context }) =>
provider === "opencode" && context.modelId === "minimax-m2.5" ? false : undefined,
provider === "opencode" && context.modelId === "minimax-m2.7" ? false : undefined,
);
expect(isModernModelRef({ provider: "opencode", id: "minimax-m2.5" })).toBe(false);
expect(isModernModelRef({ provider: "opencode", id: "minimax-m2.7" })).toBe(false);
});
});