Skip to content

Commit 822343c

Browse files
mrubensroomote
andauthored
Update model key for minimax in MODEL_DEFAULTS (#9778)
Co-authored-by: Roo Code <[email protected]>
1 parent 18117f0 commit 822343c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/api/providers/__tests__/roo.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ vitest.mock("../../providers/fetchers/modelCache", () => ({
102102
inputPrice: 0,
103103
outputPrice: 0,
104104
},
105-
"minimax/minimax-m2": {
105+
"minimax/minimax-m2:free": {
106106
maxTokens: 32_768,
107107
contextWindow: 1_000_000,
108108
supportsImages: false,
@@ -425,12 +425,12 @@ describe("RooHandler", () => {
425425
}
426426
})
427427

428-
it("should apply defaultToolProtocol: native for minimax/minimax-m2", () => {
428+
it("should apply defaultToolProtocol: native for minimax/minimax-m2:free", () => {
429429
const handlerWithMinimax = new RooHandler({
430-
apiModelId: "minimax/minimax-m2",
430+
apiModelId: "minimax/minimax-m2:free",
431431
})
432432
const modelInfo = handlerWithMinimax.getModel()
433-
expect(modelInfo.id).toBe("minimax/minimax-m2")
433+
expect(modelInfo.id).toBe("minimax/minimax-m2:free")
434434
expect((modelInfo.info as any).defaultToolProtocol).toBe("native")
435435
// Verify cached model info is preserved
436436
expect(modelInfo.info.maxTokens).toBe(32_768)
@@ -451,7 +451,7 @@ describe("RooHandler", () => {
451451

452452
it("should not override existing properties when applying MODEL_DEFAULTS", () => {
453453
const handlerWithMinimax = new RooHandler({
454-
apiModelId: "minimax/minimax-m2",
454+
apiModelId: "minimax/minimax-m2:free",
455455
})
456456
const modelInfo = handlerWithMinimax.getModel()
457457
// The defaults should be merged, but not overwrite existing cached values

src/api/providers/fetchers/roo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { DEFAULT_HEADERS } from "../constants"
99
// These override API-provided values for specific models
1010
// Exported so RooHandler.getModel() can also apply these for fallback cases
1111
export const MODEL_DEFAULTS: Record<string, Partial<ModelInfo>> = {
12-
"minimax/minimax-m2": {
12+
"minimax/minimax-m2:free": {
1313
defaultToolProtocol: "native",
1414
},
1515
"anthropic/claude-haiku-4.5": {

0 commit comments

Comments
 (0)