feat(model): add MiniMax provider prefix for cross-platform model normalization (#463)
This commit is contained in:
@@ -40,6 +40,12 @@ describe("addProviderPrefix", () => {
|
||||
expect(addProviderPrefix("qwen-3.5-plus")).toBe("qwen/qwen-3.5-plus")
|
||||
})
|
||||
|
||||
test("prefixes MiniMax models with minimax/", () => {
|
||||
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-M2.7")).toBe("minimax/MiniMax-M2.7")
|
||||
})
|
||||
|
||||
test("defaults unknown models to anthropic/ prefix", () => {
|
||||
expect(addProviderPrefix("some-model")).toBe("anthropic/some-model")
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user