Skip to content

Commit 792a53e

Browse files
committed
fix: update test file to use minimax/minimax-m2:free model key
1 parent 7960e25 commit 792a53e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
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

0 commit comments

Comments
 (0)