Skip to content

Commit c6ab1f8

Browse files
author
xiaose
committed
feat: format model
1 parent 03e5384 commit c6ab1f8

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

packages/types/src/providers/minimax.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,6 @@ export const minimaxModels = {
1717
cacheWritesPrice: 0,
1818
cacheReadsPrice: 0,
1919
},
20-
"MiniMax-M1": {
21-
maxTokens: 40_000,
22-
contextWindow: 1_000_000,
23-
supportsImages: false,
24-
supportsPromptCache: false,
25-
inputPrice: 0.4,
26-
outputPrice: 2.2,
27-
cacheWritesPrice: 0,
28-
cacheReadsPrice: 0,
29-
},
3020
} as const satisfies Record<string, ModelInfo>
3121

3222
export const MINIMAX_DEFAULT_TEMPERATURE = 1.0

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe("MiniMaxHandler", () => {
6161
})
6262

6363
it("should return specified model when valid model is provided", () => {
64-
const testModelId: MinimaxModelId = "MiniMax-M1"
64+
const testModelId: MinimaxModelId = "MiniMax-M2"
6565
const handlerWithModel = new MiniMaxHandler({
6666
apiModelId: testModelId,
6767
minimaxApiKey: "test-minimax-api-key",
@@ -71,8 +71,8 @@ describe("MiniMaxHandler", () => {
7171
expect(model.info).toEqual(minimaxModels[testModelId])
7272
})
7373

74-
it("should return MiniMax-M1 model with correct configuration", () => {
75-
const testModelId: MinimaxModelId = "MiniMax-M1"
74+
it("should return MiniMax-M2 model with correct configuration", () => {
75+
const testModelId: MinimaxModelId = "MiniMax-M2"
7676
const handlerWithModel = new MiniMaxHandler({
7777
apiModelId: testModelId,
7878
minimaxApiKey: "test-minimax-api-key",
@@ -134,10 +134,10 @@ describe("MiniMaxHandler", () => {
134134
expect(OpenAI).toHaveBeenCalledWith(expect.objectContaining({ apiKey: undefined }))
135135
})
136136

137-
it("should default to MiniMax-M1 model", () => {
137+
it("should default to MiniMax-M2 model", () => {
138138
const handlerDefault = new MiniMaxHandler({ minimaxApiKey: "test-minimax-api-key" })
139139
const model = handlerDefault.getModel()
140-
expect(model.id).toBe("MiniMax-M1")
140+
expect(model.id).toBe("MiniMax-M2")
141141
})
142142
})
143143

@@ -209,7 +209,7 @@ describe("MiniMaxHandler", () => {
209209
})
210210

211211
it("createMessage should pass correct parameters to MiniMax client", async () => {
212-
const modelId: MinimaxModelId = "MiniMax-M1"
212+
const modelId: MinimaxModelId = ""
213213
const modelInfo = minimaxModels[modelId]
214214
const handlerWithModel = new MiniMaxHandler({
215215
apiModelId: modelId,
@@ -269,8 +269,8 @@ describe("MiniMaxHandler", () => {
269269
})
270270

271271
describe("Model Configuration", () => {
272-
it("should correctly configure MiniMax-M1 model properties", () => {
273-
const model = minimaxModels["MiniMax-M1"]
272+
it("should correctly configure MiniMax-M2 model properties", () => {
273+
const model = minimaxModels["MiniMax-M2"]
274274
expect(model.maxTokens).toBe(25_600)
275275
expect(model.contextWindow).toBe(1_000_192)
276276
expect(model.supportsImages).toBe(false)

0 commit comments

Comments
 (0)