mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 12:54:58 +00:00
docs: tighten subscription guidance and update MiniMax M2.5 refs
This commit is contained in:
@@ -183,7 +183,7 @@ describe("directive behavior", () => {
|
||||
primary: "anthropic/claude-opus-4-5",
|
||||
fallbacks: ["openai/gpt-4.1-mini"],
|
||||
},
|
||||
imageModel: { primary: "minimax/MiniMax-M2.1" },
|
||||
imageModel: { primary: "minimax/MiniMax-M2.5" },
|
||||
models: undefined,
|
||||
},
|
||||
});
|
||||
@@ -206,7 +206,7 @@ describe("directive behavior", () => {
|
||||
models: {
|
||||
"anthropic/claude-opus-4-5": {},
|
||||
"openai/gpt-4.1-mini": {},
|
||||
"minimax/MiniMax-M2.1": { alias: "minimax" },
|
||||
"minimax/MiniMax-M2.5": { alias: "minimax" },
|
||||
},
|
||||
},
|
||||
extra: {
|
||||
@@ -216,14 +216,14 @@ describe("directive behavior", () => {
|
||||
minimax: {
|
||||
baseUrl: "https://api.minimax.io/anthropic",
|
||||
api: "anthropic-messages",
|
||||
models: [{ id: "MiniMax-M2.1", name: "MiniMax M2.1" }],
|
||||
models: [{ id: "MiniMax-M2.5", name: "MiniMax M2.5" }],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
expect(configOnlyProviderText).toContain("Models (minimax");
|
||||
expect(configOnlyProviderText).toContain("minimax/MiniMax-M2.1");
|
||||
expect(configOnlyProviderText).toContain("minimax/MiniMax-M2.5");
|
||||
|
||||
const missingAuthText = await runModelDirectiveText(home, "/model list", {
|
||||
defaults: {
|
||||
|
||||
@@ -119,12 +119,12 @@ describe("directive behavior", () => {
|
||||
config: {
|
||||
agents: {
|
||||
defaults: {
|
||||
model: { primary: "minimax/MiniMax-M2.1" },
|
||||
model: { primary: "minimax/MiniMax-M2.5" },
|
||||
workspace: path.join(home, "openclaw"),
|
||||
models: {
|
||||
"minimax/MiniMax-M2.1": {},
|
||||
"minimax/MiniMax-M2.1-lightning": {},
|
||||
"lmstudio/minimax-m2.1-gs32": {},
|
||||
"minimax/MiniMax-M2.5": {},
|
||||
"minimax/MiniMax-M2.5-Lightning": {},
|
||||
"lmstudio/minimax-m2.5-gs32": {},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -135,29 +135,29 @@ describe("directive behavior", () => {
|
||||
baseUrl: "https://api.minimax.io/anthropic",
|
||||
apiKey: "sk-test",
|
||||
api: "anthropic-messages",
|
||||
models: [makeModelDefinition("MiniMax-M2.1", "MiniMax M2.1")],
|
||||
models: [makeModelDefinition("MiniMax-M2.5", "MiniMax M2.5")],
|
||||
},
|
||||
lmstudio: {
|
||||
baseUrl: "http://127.0.0.1:1234/v1",
|
||||
apiKey: "lmstudio",
|
||||
api: "openai-responses",
|
||||
models: [makeModelDefinition("minimax-m2.1-gs32", "MiniMax M2.1 GS32")],
|
||||
models: [makeModelDefinition("minimax-m2.5-gs32", "MiniMax M2.5 GS32")],
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
body: "/model minimax/m2.1",
|
||||
body: "/model minimax/m2.5",
|
||||
storePath: path.join(home, "sessions-provider-fuzzy.json"),
|
||||
config: {
|
||||
agents: {
|
||||
defaults: {
|
||||
model: { primary: "minimax/MiniMax-M2.1" },
|
||||
model: { primary: "minimax/MiniMax-M2.5" },
|
||||
workspace: path.join(home, "openclaw"),
|
||||
models: {
|
||||
"minimax/MiniMax-M2.1": {},
|
||||
"minimax/MiniMax-M2.1-lightning": {},
|
||||
"minimax/MiniMax-M2.5": {},
|
||||
"minimax/MiniMax-M2.5-Lightning": {},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -169,8 +169,8 @@ describe("directive behavior", () => {
|
||||
apiKey: "sk-test",
|
||||
api: "anthropic-messages",
|
||||
models: [
|
||||
makeModelDefinition("MiniMax-M2.1", "MiniMax M2.1"),
|
||||
makeModelDefinition("MiniMax-M2.1-lightning", "MiniMax M2.1 Lightning"),
|
||||
makeModelDefinition("MiniMax-M2.5", "MiniMax M2.5"),
|
||||
makeModelDefinition("MiniMax-M2.5-Lightning", "MiniMax M2.5 Lightning"),
|
||||
],
|
||||
},
|
||||
},
|
||||
|
||||
@@ -80,7 +80,7 @@ const modelCatalogMocks = vi.hoisted(() => ({
|
||||
{ provider: "openai", id: "gpt-4.1-mini", name: "GPT-4.1 mini" },
|
||||
{ provider: "openai", id: "gpt-5.2", name: "GPT-5.2" },
|
||||
{ provider: "openai-codex", id: "gpt-5.2", name: "GPT-5.2 (Codex)" },
|
||||
{ provider: "minimax", id: "MiniMax-M2.1", name: "MiniMax M2.1" },
|
||||
{ provider: "minimax", id: "MiniMax-M2.5", name: "MiniMax M2.5" },
|
||||
]),
|
||||
resetModelCatalogCacheForTest: vi.fn(),
|
||||
}));
|
||||
|
||||
@@ -19,7 +19,7 @@ vi.mock("../../agents/session-write-lock.js", () => ({
|
||||
|
||||
vi.mock("../../agents/model-catalog.js", () => ({
|
||||
loadModelCatalog: vi.fn(async () => [
|
||||
{ provider: "minimax", id: "m2.1", name: "M2.1" },
|
||||
{ provider: "minimax", id: "m2.5", name: "M2.5" },
|
||||
{ provider: "openai", id: "gpt-4o-mini", name: "GPT-4o mini" },
|
||||
]),
|
||||
}));
|
||||
@@ -921,7 +921,7 @@ describe("applyResetModelOverride", () => {
|
||||
});
|
||||
|
||||
expect(sessionEntry.providerOverride).toBe("minimax");
|
||||
expect(sessionEntry.modelOverride).toBe("m2.1");
|
||||
expect(sessionEntry.modelOverride).toBe("m2.5");
|
||||
expect(sessionCtx.BodyStripped).toBe("summarize");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user