* MiniMax: add M2.7 models and update default to M2.7 - Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to provider catalog and model definitions - Update default model from MiniMax-M2.5 to MiniMax-M2.7 across onboard, portal, and provider configs - Update isModernMiniMaxModel to recognize M2.7 prefix - Update all test fixtures to reflect M2.7 as default Made-with: Cursor * MiniMax: add extension test for model definitions * update 2.7 * feat: add MiniMax M2.7 models and update default (#49691) (thanks @liyuan97) --------- Co-authored-by: George Zhang <georgezhangtj97@gmail.com>
22 lines
922 B
TypeScript
22 lines
922 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import {
|
|
isMiniMaxModelNotFoundErrorMessage,
|
|
isModelNotFoundErrorMessage,
|
|
} from "./live-model-errors.js";
|
|
|
|
describe("live model error helpers", () => {
|
|
it("detects generic model-not-found messages", () => {
|
|
expect(isModelNotFoundErrorMessage('{"code":404,"message":"model not found"}')).toBe(true);
|
|
expect(isModelNotFoundErrorMessage("model: MiniMax-M2.7-highspeed not found")).toBe(true);
|
|
expect(isModelNotFoundErrorMessage("request ended without sending any chunks")).toBe(false);
|
|
});
|
|
|
|
it("detects bare minimax 404 page-not-found responses", () => {
|
|
expect(isMiniMaxModelNotFoundErrorMessage("404 page not found")).toBe(true);
|
|
expect(isMiniMaxModelNotFoundErrorMessage("Error: 404 404 page not found")).toBe(true);
|
|
expect(isMiniMaxModelNotFoundErrorMessage("request ended without sending any chunks")).toBe(
|
|
false,
|
|
);
|
|
});
|
|
});
|