fix(models): filter dead opencode free model
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
// Free OpenCode models that don't use the "-free" id suffix
|
// Free OpenCode models that don't use the "-free" id suffix
|
||||||
const KNOWN_FREE_OPENCODE_MODELS = ["big-pickle"];
|
const KNOWN_FREE_OPENCODE_MODELS = ["big-pickle"];
|
||||||
|
|
||||||
|
// Upstream returns "Model is unavailable" for this id (2026-09-02) — re-enable when fixed
|
||||||
|
const DEAD_FREE_OPENCODE_MODELS = new Set(["deepseek-v4-flash-free"]);
|
||||||
|
|
||||||
export const FILTERS = {
|
export const FILTERS = {
|
||||||
"openrouter-free": (models) =>
|
"openrouter-free": (models) =>
|
||||||
models
|
models
|
||||||
@@ -15,7 +18,7 @@ export const FILTERS = {
|
|||||||
|
|
||||||
"opencode-free": (models) =>
|
"opencode-free": (models) =>
|
||||||
models
|
models
|
||||||
.filter((m) => m.id?.endsWith("-free") || KNOWN_FREE_OPENCODE_MODELS.includes(m.id))
|
.filter((m) => (m.id?.endsWith("-free") || KNOWN_FREE_OPENCODE_MODELS.includes(m.id)) && !DEAD_FREE_OPENCODE_MODELS.has(m.id))
|
||||||
.map((m) => ({ id: m.id, name: m.id })),
|
.map((m) => ({ id: m.id, name: m.id })),
|
||||||
|
|
||||||
// models.dev returns a large catalog; keep only mimo models
|
// models.dev returns a large catalog; keep only mimo models
|
||||||
|
|||||||
Reference in New Issue
Block a user