Skip to content
Merged
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
3 changes: 3 additions & 0 deletions src/codex/catalog/parsing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ export const JAWCODE_CATALOG_AUGMENT_PROVIDERS = new Set(["opencode-go", "deepse
export const ROUTED_MODEL_COMPATIBILITY_EXCLUSIONS = new Set([
// Issue #82: Zen Go /models advertises HY3, but Console Go rejects it as outside the lite list.
"opencode-go/hy3-preview",
// Issue #2330: OpenCode Go models absent from current documentation or returning terminal HTTP 400 errors.
"opencode-go/mimo-v2-omni",
"opencode-go/mimo-v2-pro",
]);

export function isRoutedModelCompatibilityExcluded(slug: string): boolean {
Expand Down
2 changes: 1 addition & 1 deletion src/providers/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ const THINKING_TOGGLE_MAP: Record<string, string> = {
max: "enabled",
};
const OPENCODE_GO_THINKING_TOGGLE_MODELS = [
"mimo-v2.5", "mimo-v2.5-pro", "mimo-v2-omni", "mimo-v2-pro", "glm-5", "glm-5.1",
"mimo-v2.5", "mimo-v2.5-pro", "glm-5", "glm-5.1",
];
/**
* Zhipu's domestic BigModel platform. Text families first, then the vision member: modalities are
Expand Down
7 changes: 7 additions & 0 deletions tests/codex-catalog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5319,6 +5319,13 @@ describe("shouldExposeRoutedModel — Gemini image-capable exemption", () => {

test("still filters compatibility-excluded slugs", () => {
expect(shouldExposeRoutedModel({ provider: "opencode-go", id: "hy3-preview" })).toBe(false);
// Issue #2330: uncallable or stale OpenCode Go models
expect(shouldExposeRoutedModel({ provider: "opencode-go", id: "mimo-v2-omni" })).toBe(false);
expect(shouldExposeRoutedModel({ provider: "opencode-go", id: "mimo-v2-pro" })).toBe(false);
// Control / live models are exposed
expect(shouldExposeRoutedModel({ provider: "opencode-free", id: "deepseek-v4-flash-free" })).toBe(true);
expect(shouldExposeRoutedModel({ provider: "opencode-go", id: "grok-4.6" })).toBe(true);
expect(shouldExposeRoutedModel({ provider: "opencode-go", id: "glm-5.2" })).toBe(true);
});
});

Expand Down
Loading