Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/models.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,15 @@ describe("capability flags vs blockrun's catalog", () => {
expect(BLOCKRUN_MODELS.find((m) => m.id === id)?.vision).toBe(true);
}
});

it("marks MiniMax M3 vision-capable so image_url requests reach it", () => {
// The target metadata lists text+image+video input for MiniMax M3, but the
// model was registered without `vision`, so filterByVision() excluded it
// whenever a request carried an image_url content part. M2.7 is text-only
// upstream and must stay without the flag.
expect(BLOCKRUN_MODELS.find((m) => m.id === "minimax/minimax-m3")?.vision).toBe(true);
expect(BLOCKRUN_MODELS.find((m) => m.id === "minimax/minimax-m2.7")?.vision).toBeUndefined();
});
});

describe("OPENCLAW_MODELS integrity", () => {
Expand Down
1 change: 1 addition & 0 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1358,6 +1358,7 @@ export const BLOCKRUN_MODELS: BlockRunModel[] = [
contextWindow: 1048576,
maxOutput: 65536,
reasoning: true,
vision: true,
agentic: true,
toolCalling: true,
},
Expand Down