From 0c1cd278b61ce9f912e35aebd7ce5f9b7db219df Mon Sep 17 00:00:00 2001 From: octo-patch Date: Mon, 1 Jun 2026 22:41:44 +0800 Subject: [PATCH] chore(model): refresh MiniMax examples to current M3 flagship The model-name normalization utility advertises MiniMax as a recognized provider prefix via its JSDoc example and unit tests. Update those illustrative references to use the current M3 generation so docs and tests reflect the active flagship model, and drop the deprecated M2.5-highspeed example. Keep M2.7 coverage (still a supported alternative) and add a MiniMax-M3 case to verify the case-insensitive matcher still handles uppercase variants. --- src/utils/model.ts | 2 +- tests/model-utils.test.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/model.ts b/src/utils/model.ts index 8023e7d10..9d1d7f759 100644 --- a/src/utils/model.ts +++ b/src/utils/model.ts @@ -34,7 +34,7 @@ export function resolveClaudeFamilyAlias(model: string): string { * "claude-sonnet-4-6" -> "anthropic/claude-sonnet-4-6" * "gpt-5.4" -> "openai/gpt-5.4" * "gemini-2.0" -> "google/gemini-2.0" - * "minimax-m2.7" -> "minimax/minimax-m2.7" + * "minimax-m3" -> "minimax/minimax-m3" * "anthropic/foo" -> "anthropic/foo" (unchanged) */ export function addProviderPrefix(model: string): string { diff --git a/tests/model-utils.test.ts b/tests/model-utils.test.ts index ee9dc56bf..8b22a7d8b 100644 --- a/tests/model-utils.test.ts +++ b/tests/model-utils.test.ts @@ -41,8 +41,9 @@ describe("addProviderPrefix", () => { }) test("prefixes MiniMax models with minimax/", () => { + expect(addProviderPrefix("minimax-m3")).toBe("minimax/minimax-m3") expect(addProviderPrefix("minimax-m2.7")).toBe("minimax/minimax-m2.7") - expect(addProviderPrefix("minimax-m2.5-highspeed")).toBe("minimax/minimax-m2.5-highspeed") + expect(addProviderPrefix("MiniMax-M3")).toBe("minimax/MiniMax-M3") expect(addProviderPrefix("MiniMax-M2.7")).toBe("minimax/MiniMax-M2.7") })