diff --git a/models/liquid/d1.2-ultra.toml b/models/liquid/d1.2-ultra.toml new file mode 100644 index 0000000000..3f50344524 --- /dev/null +++ b/models/liquid/d1.2-ultra.toml @@ -0,0 +1,27 @@ +# https://www.liquid.ai/blog/d1-2 (hosted release, 2026-11-16) +# https://docs.liquid.ai/lfm/models/d1 (per-question input limit and typed answers without generated tokens) +# d1.2 image formats (JPEG, PNG, WebP): https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# d1.2 audio formats (WAV with PCM or float samples, MP3, FLAC, Ogg Opus or Vorbis): https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1314-L1318 +schema = 2 +v2_only = true +type = "decision" +name = "d1.2-ultra" +description = "Higher-accuracy Liquid decision model for classification, span extraction and object localization over shared multimodal state." +family = "liquid-decision" +open_weights = false +release_date = "2026-11-16" + +[modalities] +input = ["text", "image/jpeg", "image/png", "image/webp", "audio/wav", "audio/mpeg", "audio/flac", "audio/ogg"] +output = ["decision"] + +[capabilities] +tools = { supported = false } +reasoning = { supported = false } +temperature = false +top_p = false +top_k = false + +[limit] +context = 65_536 +output = 0 diff --git a/models/liquid/d1.2.toml b/models/liquid/d1.2.toml new file mode 100644 index 0000000000..00b0818e83 --- /dev/null +++ b/models/liquid/d1.2.toml @@ -0,0 +1,27 @@ +# https://www.liquid.ai/blog/d1-2 (hosted release, 2026-11-16) +# https://docs.liquid.ai/lfm/models/d1 (per-question input limit and typed answers without generated tokens) +# d1.2 image formats (JPEG, PNG, WebP): https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# d1.2 audio formats (WAV with PCM or float samples, MP3, FLAC, Ogg Opus or Vorbis): https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1314-L1318 +schema = 2 +v2_only = true +type = "decision" +name = "d1.2" +description = "Classifies text, images and audio, extracts spans and locates objects in images using typed questions." +family = "liquid-decision" +open_weights = false +release_date = "2026-11-16" + +[modalities] +input = ["text", "image/jpeg", "image/png", "image/webp", "audio/wav", "audio/mpeg", "audio/flac", "audio/ogg"] +output = ["decision"] + +[capabilities] +tools = { supported = false } +reasoning = { supported = false } +temperature = false +top_p = false +top_k = false + +[limit] +context = 65_536 +output = 0 diff --git a/models/perplexity/pplx-decider-flash-v1.3.toml b/models/perplexity/pplx-decider-flash-v1.3.toml new file mode 100644 index 0000000000..5210dae271 --- /dev/null +++ b/models/perplexity/pplx-decider-flash-v1.3.toml @@ -0,0 +1,32 @@ +# https://www.perplexity.ai/hub/blog/perplexity-decider (v1.3 release and distillation) +# https://docs.perplexity.ai/docs/decisions/decisions (256K context, image formats and typed decisions) +# https://huggingface.co/perplexity-ai/pplx-decider-flash-v1.3 (Apache-2.0 weights and zero generated tokens) +# https://openrouter.ai/perplexity/pplx-decider-flash-v1.3:free (public release on 2026-11-12) +schema = 2 +v2_only = true +type = "decision" +name = "pplx-decider-flash-v1.3" +family = "pplx-decider-flash" +description = "Smaller model distilled from Decider v1.3 for probabilistic classification and span extraction over text and images." +open_weights = true +release_date = "2026-11-12" +license = "Apache-2.0" + +[modalities] +input = ["text", "image/png", "image/jpeg", "image/webp"] +output = ["decision"] + +[capabilities] +tools = { supported = false } +reasoning = { supported = false } +temperature = false +top_p = false +top_k = false + +[limit] +context = 262_144 +output = 0 + +[[weights]] +label = "Hugging Face" +url = "https://huggingface.co/perplexity-ai/pplx-decider-flash-v1.3" diff --git a/models/perplexity/pplx-decider-v1.3.toml b/models/perplexity/pplx-decider-v1.3.toml new file mode 100644 index 0000000000..a127b7406e --- /dev/null +++ b/models/perplexity/pplx-decider-v1.3.toml @@ -0,0 +1,32 @@ +# https://www.perplexity.ai/hub/blog/perplexity-decider (v1.3 release and distillation) +# https://docs.perplexity.ai/docs/decisions/decisions (256K context, image formats and typed decisions) +# https://huggingface.co/perplexity-ai/pplx-decider-v1.3 (Apache-2.0 weights and zero generated tokens) +# https://openrouter.ai/perplexity/pplx-decider-v1.3:free (public release on 2026-11-12) +schema = 2 +v2_only = true +type = "decision" +name = "pplx-decider-v1.3" +family = "pplx-decider" +description = "Open-weight decision model for classifying text and images, scoring options and extracting verbatim spans." +open_weights = true +release_date = "2026-11-12" +license = "Apache-2.0" + +[modalities] +input = ["text", "image/png", "image/jpeg", "image/webp"] +output = ["decision"] + +[capabilities] +tools = { supported = false } +reasoning = { supported = false } +temperature = false +top_p = false +top_k = false + +[limit] +context = 262_144 +output = 0 + +[[weights]] +label = "Hugging Face" +url = "https://huggingface.co/perplexity-ai/pplx-decider-v1.3" diff --git a/packages/core/src/sync/providers/openrouter.ts b/packages/core/src/sync/providers/openrouter.ts index c48b09e015..01fc295795 100644 --- a/packages/core/src/sync/providers/openrouter.ts +++ b/packages/core/src/sync/providers/openrouter.ts @@ -86,6 +86,7 @@ const CANONICAL_PROVIDER_PREFIXES = { moonshotai: { provider: "moonshotai", metadata: "moonshotai" }, openai: { provider: "openai", metadata: "openai" }, nvidia: { provider: "nvidia", metadata: "nvidia" }, + perplexity: { provider: "perplexity", metadata: "perplexity" }, qwen: { provider: "alibaba", metadata: "alibaba" }, sakana: { provider: "sakana", metadata: "sakana" }, stepfun: { provider: "stepfun", metadata: "stepfun" }, @@ -152,6 +153,8 @@ export const OpenRouterVideoModels = z.object({ export const OpenRouterModel = z.object({ id: z.string(), + description: z.string().nullish(), + alias_target: z.object({ slug: z.string().nullish() }).nullish(), name: z.string(), created: z.number(), hugging_face_id: z.string().nullable(), @@ -221,6 +224,8 @@ export type OpenRouterModel = z.infer; export const openrouter = { id: "openrouter", name: "OpenRouter", + // The translator preserves fixed routes itself. A rolling alias can lose its target. + preserveBaseModels: false, modelsDir: "providers/openrouter/models", async fetchModels() { const headers = process.env.OPENROUTER_API_KEY @@ -285,6 +290,9 @@ export const openrouter = { ]; }, translateModel(model, context) { + const alias = model.id.startsWith("~"); + const slug = alias ? model.alias_target?.slug : undefined; + const targetBase = slug ? context.authored(slug)?.base_model : undefined; const type = mediaType(model); if (type !== undefined) { const current = context.v2?.(model.id); @@ -293,7 +301,7 @@ export const openrouter = { } return { id: model.id, - v2: buildOpenRouterMediaModel(model, type, current), + v2: buildOpenRouterMediaModel(model, type, current, targetBase), header: MEDIA_HEADERS[type], }; } @@ -306,7 +314,9 @@ export const openrouter = { const authored = context.authored(model.id); return authored === undefined ? undefined : { id: model.id, model: authored as SyncedModel }; } - const built = buildOpenRouterModel(model, context.existing(model.id)); + // An alias keeps its own overrides, never facts inherited from its previous target. + const existing = alias ? context.authored(model.id) : context.existing(model.id); + const built = buildOpenRouterModel(model, existing, targetBase); // Factoring compares v1 modality kinds, which collapse all image formats. // Keep a real v2 host-format override when the catalog still lists those kinds. const formats = context.v2?.(model.id)?.modalities; @@ -840,20 +850,37 @@ function isUnavailableMedia(model: OpenRouterModel) { return [prompt, completion, image, audio].some((value) => value !== undefined && Number(value) < 0); } +function openRouterBaseModel( + model: OpenRouterModel, + existing: string | undefined, + targetBase: string | undefined, + resolve: (id: string) => string | undefined, +) { + if (!model.id.startsWith("~")) return existing ?? targetBase ?? resolve(model.id); + const slug = model.alias_target?.slug; + if (slug == null) return resolve(model.id); // includes curated alias mappings + if (!/^[a-z0-9][\w.-]*\/[a-z0-9][\w.:-]*$/i.test(slug)) return undefined; + return targetBase ?? resolve(slug) ?? resolveModelMetadataBaseModel(slug); +} + export function buildOpenRouterMediaModel( model: OpenRouterModel, type: MediaType, current?: Record, + targetBase?: string, ): Record { - const base = typeof current?.base_model === "string" ? current.base_model : resolveMediaBaseModel(model.id); + const existingBase = typeof current?.base_model === "string" ? current.base_model : undefined; + const base = openRouterBaseModel(model, existingBase, targetBase, resolveMediaBaseModel); const lab = base === undefined ? undefined : rawLabModel(base); const doc: Record = { schema: 2, v2_only: true }; const modalities = mediaModalities(model, type); const context = model.context_length; const api = MEDIA_APIS[type]; + const description = typeof current?.description === "string" ? current.description : model.description; if (base !== undefined && lab !== undefined) { doc.base_model = base; + if (model.id.startsWith("~") && description) doc.description = description; const labCapabilities = (lab.capabilities ?? {}) as Record; const labContext = (lab.limit as { context?: number } | undefined)?.context; // A lab of another type (a chat model served on a transcription endpoint) @@ -897,6 +924,7 @@ export function buildOpenRouterMediaModel( doc.name = model.name.replace(/^[^:]+:\s+/, ""); doc.description = typeof current?.description === "string" ? current.description + : model.id.startsWith("~") && description ? description : type === "embedding" && modalities.input.length > 1 ? "Multimodal embedding model" : MEDIA_DESCRIPTIONS[type]; @@ -1573,7 +1601,7 @@ export function buildOpenRouterModel( tiers: costTiers(model, existing), } : existing?.cost; - const canonical = existing?.base_model ?? baseModel ?? resolveCanonicalBaseModel(model.id); + const canonical = openRouterBaseModel(model, existing?.base_model, baseModel, resolveCanonicalBaseModel); const catalogOutput = isPlaceholderOutputLimit(model) ? undefined : model.top_provider.max_completion_tokens; const limit = { context, @@ -1586,6 +1614,7 @@ export function buildOpenRouterModel( ?? existing?.limit?.output ?? context), }; + const description = existing?.description ?? (model.id.startsWith("~") ? model.description ?? undefined : undefined); if (canonical !== undefined) { const canonicalOverride = canonicalBaseModelOverride(model.id); @@ -1598,7 +1627,7 @@ export function buildOpenRouterModel( : undefined, family: freeFamily(canonical, existing?.family), // The lab describes a decision model; don't override it with a generic chat description. - description: decision ? existing?.description : existing?.description ?? describeModel({ + description: decision ? description : description ?? describeModel({ id: model.id, name, family: familyValue, @@ -1630,7 +1659,7 @@ export function buildOpenRouterModel( return { type, name, - description: existing?.description ?? (decision ? DECISION_DESCRIPTION : describeModel({ + description: description ?? (decision ? DECISION_DESCRIPTION : describeModel({ id: model.id, name, family: familyValue, diff --git a/packages/core/test/sync.test.ts b/packages/core/test/sync.test.ts index 8c8c38225a..1b6643ad27 100644 --- a/packages/core/test/sync.test.ts +++ b/packages/core/test/sync.test.ts @@ -2740,6 +2740,76 @@ test("xAI sync clears cost tiers when API reports no long-context band", () => { expect(model.cost?.tiers).toBeUndefined(); }); +test("OpenRouter rewrites rolling aliases when their target changes or disappears", async () => { + const root = await mkdtemp(path.join(tmpdir(), "openrouter-alias-")); + const modelsDir = path.join(root, "providers/openrouter/models"); + const id = "~openai/gpt-astra-latest"; + const file = path.join(modelsDir, id + ".toml"); + const targets = ["openai/gpt-6.2-astra", "openai/gpt-6.2-sol"]; + let slug: string | undefined; + const provider = { + ...openrouter, + modelsDir, + fetchModels: async () => ({ data: [openRouterModel({ + id, name: "OpenAI: GPT Astra Latest", description: "A rolling route", + alias_target: slug === undefined ? undefined : { slug }, + supported_parameters: ["tools"], + top_provider: { context_length: 1_000_000, max_completion_tokens: null }, + })] }), + }; + const read = async () => Bun.TOML.parse(await readFile(file, "utf8")); + try { + await mkdir(path.dirname(file), { recursive: true }); + await mkdir(path.join(root, "models/openai"), { recursive: true }); + for (const target of targets) { + await copyFile(`models/${target}.toml`, path.join(root, `models/${target}.toml`)); + } + // Start with the unlinked file that earlier syncs wrote. + expect(await syncProvider(provider)).toMatchObject({ created: 1 }); + for (slug of targets) { + expect(await syncProvider(provider)).toMatchObject({ updated: 1 }); + expect(await read()).toMatchObject({ base_model: slug, name: "GPT Astra Latest", description: "A rolling route" }); + const linked = await read(); + expect(linked).not.toHaveProperty("release_date"); + expect(linked).not.toHaveProperty("limit.output"); + expect(await syncProvider(provider)).toMatchObject({ unchanged: 1 }); + } + for (const unresolved of ["openai/missing-target", undefined]) { + slug = unresolved; + await syncProvider(provider); + const standalone = await read(); + expect(standalone).not.toHaveProperty("base_model"); + expect(standalone).toHaveProperty("release_date"); + slug = targets[0]; + expect(await syncProvider(provider)).toMatchObject({ updated: 1 }); + } + } finally { + await rm(root, { recursive: true, force: true }); + } +}); + +test("OpenRouter caps a retargeted alias at the serving context when the output limit is missing or a placeholder", () => { + for (const output of [null, 90_000]) { + const model = buildOpenRouterModel(openRouterModel({ + id: "~openai/gpt-astra-latest", + alias_target: { slug: "openai/gpt-6.2-astra" }, + context_length: 1_050_000, + top_provider: { context_length: 100_000, max_completion_tokens: output }, + }), { base_model: "openai/gpt-4.1-nano" }); + expect(model).toMatchObject({ base_model: "openai/gpt-6.2-astra", limit: { output: 100_000 } }); + } +}); + +test("OpenRouter media aliases resolve the advertised target ahead of the previous lab", () => { + const source = openRouterMediaModel({ + id: "~openai/speech-latest", name: "OpenAI: Speech Latest", description: "Rolling speech route", + alias_target: { slug: "openai/tts-1-hd" }, + }); + const linked = buildOpenRouterMediaModel(source, "speech", { base_model: "openai/tts-1" }); + expect(linked).toMatchObject({ base_model: "openai/tts-1-hd", name: "Speech Latest", description: source.description }); + expect(buildOpenRouterMediaModel({ ...source, alias_target: null }, "speech", linked).base_model).toBeUndefined(); +}); + test("OpenRouter sync maps pricing.overrides into cost tiers", () => { const model = buildOpenRouterModel(openRouterModel({ id: "x-ai/grok-4.5", diff --git a/providers/openrouter/models/liquid/d1.2-ultra.toml b/providers/openrouter/models/liquid/d1.2-ultra.toml index 5047769a3c..be02ebf4f0 100644 --- a/providers/openrouter/models/liquid/d1.2-ultra.toml +++ b/providers/openrouter/models/liquid/d1.2-ultra.toml @@ -1,24 +1,15 @@ +# OpenRouter lists text and image input. Image MIME types follow Liquid's d1.2 Image Requirements: +# https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# https://openrouter.ai/api/v1/models?output_modalities=decisions schema = 2 -type = "decision" -name = "d1.2-ultra" -description = "Decision model for typed evaluation of shared state" -family = "liquid" -open_weights = false -release_date = "2026-11-16" +base_model = "liquid/d1.2-ultra" [modalities] -input = ["text", "image"] -output = ["text"] +input = ["text", "image/jpeg", "image/png", "image/webp"] +output = ["decision"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 65_536 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/liquid/d1.2.toml b/providers/openrouter/models/liquid/d1.2.toml index 49b0d23d34..a68c106a44 100644 --- a/providers/openrouter/models/liquid/d1.2.toml +++ b/providers/openrouter/models/liquid/d1.2.toml @@ -1,24 +1,15 @@ +# OpenRouter lists text and image input. Image MIME types follow Liquid's d1.2 Image Requirements: +# https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# https://openrouter.ai/api/v1/models?output_modalities=decisions schema = 2 -type = "decision" -name = "d1.2" -description = "Decision model for typed evaluation of shared state" -family = "liquid" -open_weights = false -release_date = "2026-11-16" +base_model = "liquid/d1.2" [modalities] -input = ["text", "image"] -output = ["text"] +input = ["text", "image/jpeg", "image/png", "image/webp"] +output = ["decision"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 65_536 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/perplexity/pplx-decider-flash-v1.3:free.toml b/providers/openrouter/models/perplexity/pplx-decider-flash-v1.3:free.toml index 93e2ea56e1..5abe9b0a3f 100644 --- a/providers/openrouter/models/perplexity/pplx-decider-flash-v1.3:free.toml +++ b/providers/openrouter/models/perplexity/pplx-decider-flash-v1.3:free.toml @@ -1,24 +1,9 @@ schema = 2 -type = "decision" +base_model = "perplexity/pplx-decider-flash-v1.3" name = "Decider Flash V1.3 (free)" -description = "Decision model for typed evaluation of shared state" -family = "pplx-decider-flash" -open_weights = false -release_date = "2026-11-12" - -[modalities] -input = ["text", "image"] -output = ["text"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 262_144 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/perplexity/pplx-decider-v1.3:free.toml b/providers/openrouter/models/perplexity/pplx-decider-v1.3:free.toml index 522465486e..b536b83634 100644 --- a/providers/openrouter/models/perplexity/pplx-decider-v1.3:free.toml +++ b/providers/openrouter/models/perplexity/pplx-decider-v1.3:free.toml @@ -1,24 +1,9 @@ schema = 2 -type = "decision" +base_model = "perplexity/pplx-decider-v1.3" name = "Decider V1.3 (free)" -description = "Decision model for typed evaluation of shared state" -family = "pplx-decider" -open_weights = false -release_date = "2026-11-12" - -[modalities] -input = ["text", "image"] -output = ["text"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 262_144 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/~anthropic/claude-fable-latest.toml b/providers/openrouter/models/~anthropic/claude-fable-latest.toml index 12483f6fcf..be1cdb3ded 100644 --- a/providers/openrouter/models/~anthropic/claude-fable-latest.toml +++ b/providers/openrouter/models/~anthropic/claude-fable-latest.toml @@ -6,29 +6,18 @@ # tools.updates = false: tool_addition/tool_removal system blocks are accepted but have no effect on Chat Completions (live) # Cache: cache_control (top-level or per block), 4 breakpoints, 5m/1h TTL, 1h write = 2x input; min tokens per model (https://openrouter.ai/docs/guides/best-practices/prompt-caching#anthropic-claude) schema = 2 +base_model = "anthropic/claude-fable-5-2" name = "Claude Fable Latest" description = "Claude model for creative writing, analysis, and controlled agent workflows" -family = "claude-fable" -open_weights = false -release_date = "2026-06-09" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "application/pdf"] -output = ["text"] [capabilities] -tools = { supported = true, choice = ["auto", "none", "required", "tool"] } +tools = { supported = true } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { explicit = { ttl = ["5m", "1h"], max_breakpoints = 4, min_tokens = 512 } } -[limit] -context = 1_000_000 -output = 128_000 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~anthropic/claude-haiku-latest.toml b/providers/openrouter/models/~anthropic/claude-haiku-latest.toml index 9b9d137647..1496e7f238 100644 --- a/providers/openrouter/models/~anthropic/claude-haiku-latest.toml +++ b/providers/openrouter/models/~anthropic/claude-haiku-latest.toml @@ -6,29 +6,18 @@ # tools.updates = false: tool_addition/tool_removal system blocks are accepted but have no effect on Chat Completions (live) # Cache: cache_control (top-level or per block), 4 breakpoints, 5m/1h TTL, 1h write = 2x input; min tokens per model (https://openrouter.ai/docs/guides/best-practices/prompt-caching#anthropic-claude) schema = 2 +base_model = "anthropic/claude-haiku-5-5" name = "Claude Haiku Latest" description = "Fast Claude model for responsive assistance, classification, and lightweight agents" -family = "claude-haiku" -open_weights = false -release_date = "2026-04-27" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "application/pdf"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["none", "low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { explicit = { ttl = ["5m", "1h"], max_breakpoints = 4, min_tokens = 512 } } -[limit] -context = 1_000_000 -output = 128_000 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~anthropic/claude-opus-latest.toml b/providers/openrouter/models/~anthropic/claude-opus-latest.toml index f4e977b69f..535dd201dc 100644 --- a/providers/openrouter/models/~anthropic/claude-opus-latest.toml +++ b/providers/openrouter/models/~anthropic/claude-opus-latest.toml @@ -6,29 +6,18 @@ # tools.updates = false: tool_addition/tool_removal system blocks are accepted but have no effect on Chat Completions (live) # Cache: cache_control (top-level or per block), 4 breakpoints, 5m/1h TTL, 1h write = 2x input; min tokens per model (https://openrouter.ai/docs/guides/best-practices/prompt-caching#anthropic-claude) schema = 2 +base_model = "anthropic/claude-opus-5-5" name = "Claude Opus Latest" description = "Flagship Claude model for deep reasoning, coding, and long-horizon agents" -family = "claude-opus" -open_weights = false -release_date = "2026-04-21" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "application/pdf"] -output = ["text"] [capabilities] -tools = { supported = true, choice = ["auto", "none", "required", "tool"] } +tools = { supported = true } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { explicit = { ttl = ["5m", "1h"], max_breakpoints = 4, min_tokens = 512 } } -[limit] -context = 1_000_000 -output = 128_000 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~anthropic/claude-sonnet-latest.toml b/providers/openrouter/models/~anthropic/claude-sonnet-latest.toml index 14057de4f4..a337eca0d6 100644 --- a/providers/openrouter/models/~anthropic/claude-sonnet-latest.toml +++ b/providers/openrouter/models/~anthropic/claude-sonnet-latest.toml @@ -1,4 +1,3 @@ -# OpenRouter alias currently redirects to Claude Sonnet 5. # https://openrouter.ai/~anthropic/claude-sonnet-latest # Modalities (OpenRouter's documented formats, narrowed to the lab's list where it has one): image: https://openrouter.ai/docs/guides/overview/multimodal/image-understanding # Mid-conversation: system_updates = true: forwarded to Claude in place (live 2026-10-23 on claude-haiku-5.5 pinned to Anthropic: cache kept and followed on Chat Completions, Messages with the system message after the last user turn, and Responses with top-level cache_control) @@ -6,30 +5,18 @@ # tools.updates = false: tool_addition/tool_removal system blocks are accepted but have no effect on Chat Completions (live) # Cache: cache_control (top-level or per block), 4 breakpoints, 5m/1h TTL, 1h write = 2x input; min tokens per model (https://openrouter.ai/docs/guides/best-practices/prompt-caching#anthropic-claude) schema = 2 +base_model = "anthropic/claude-sonnet-5-5" name = "Claude Sonnet Latest" description = "Balanced Claude model for coding, analysis, agent workflows, and cost control" -family = "claude-sonnet" -open_weights = false -knowledge = "2026-01-31" -release_date = "2026-04-27" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "application/pdf"] -output = ["text"] [capabilities] -tools = { supported = true, choice = ["auto", "none", "required", "tool"] } +tools = { supported = true } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { explicit = { ttl = ["5m", "1h"], max_breakpoints = 4, min_tokens = 512 } } -[limit] -context = 1_000_000 -output = 128_000 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~deepseek/deepseek-flash-latest.toml b/providers/openrouter/models/~deepseek/deepseek-flash-latest.toml index 93b92cc8d0..79fa5eee58 100644 --- a/providers/openrouter/models/~deepseek/deepseek-flash-latest.toml +++ b/providers/openrouter/models/~deepseek/deepseek-flash-latest.toml @@ -6,25 +6,17 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Per API: system_updates on [api.chat-completions] only, where it was tested. Responses and Messages are untested for this model. schema = 2 +base_model = "deepseek/deepseek-v4.1-flash-1017" name = "DeepSeek Flash Latest" description = "Fast DeepSeek model for efficient chat, coding help, and agent loops" -family = "deepseek-flash" -open_weights = false -release_date = "2026-09-14" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["none", "low", "high", "max"] } structured_output = true -temperature = true [limit] context = 1_048_576 -output = 943_718 [api.chat-completions] capabilities = { system_updates = true } diff --git a/providers/openrouter/models/~deepseek/deepseek-pro-latest.toml b/providers/openrouter/models/~deepseek/deepseek-pro-latest.toml index 50763ba693..2d7d2ceabc 100644 --- a/providers/openrouter/models/~deepseek/deepseek-pro-latest.toml +++ b/providers/openrouter/models/~deepseek/deepseek-pro-latest.toml @@ -4,21 +4,14 @@ # effort_updates = false: configuration_update is rejected with a 400 for this model (https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#mid-conversation-effort) # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) schema = 2 +base_model = "deepseek/deepseek-v4-pro-0813" name = "DeepSeek Pro Latest" description = "Flagship DeepSeek model for coding, reasoning, and agentic work" -family = "deepseek" -open_weights = false -release_date = "2026-09-14" - -[modalities] -input = ["text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["none", "low", "high", "max"] } structured_output = true -temperature = true [limit] context = 1_048_576 diff --git a/providers/openrouter/models/~deepseek/deepseek-v4-flash-latest.toml b/providers/openrouter/models/~deepseek/deepseek-v4-flash-latest.toml index 826155428f..2a1b1efe33 100644 --- a/providers/openrouter/models/~deepseek/deepseek-v4-flash-latest.toml +++ b/providers/openrouter/models/~deepseek/deepseek-v4-flash-latest.toml @@ -4,25 +4,18 @@ # effort_updates = false: configuration_update is rejected with a 400 for this model (https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#mid-conversation-effort) # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) schema = 2 +base_model = "deepseek/deepseek-v4-flash-0731" name = "DeepSeek V4 Flash Latest" description = "Fast DeepSeek model for efficient chat, coding help, and agent loops" -family = "deepseek" -open_weights = false -release_date = "2026-08-01" - -[modalities] -input = ["text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["none", "low", "high", "max"] } structured_output = true -temperature = true [limit] context = 1_048_576 -output = 943_718 +output = 131_072 [api.chat-completions] @@ -33,8 +26,8 @@ sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-co sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } [cost.text.input] -price = 0.047 -cache = { read = 0.035 } +price = 0.04532 +cache = { read = 0.001442 } [cost.text.output] -price = 0.3 +price = 0.13596 diff --git a/providers/openrouter/models/~google/gemini-flash-latest.toml b/providers/openrouter/models/~google/gemini-flash-latest.toml index 51a668c670..4386fd9d84 100644 --- a/providers/openrouter/models/~google/gemini-flash-latest.toml +++ b/providers/openrouter/models/~google/gemini-flash-latest.toml @@ -1,4 +1,3 @@ -# OpenRouter alias currently redirects to Gemini 3.5 Flash. # https://openrouter.ai/~google/gemini-flash-latest # Modalities (OpenRouter's documented formats, narrowed to the lab's list where it has one): image: https://openrouter.ai/docs/guides/overview/multimodal/image-understanding; video: https://openrouter.ai/docs/guides/overview/multimodal/videos; audio: https://openrouter.ai/docs/guides/overview/multimodal/audio # Mid-conversation (Chat Completions, probed 2026-10-19): system_updates = false: Gemini has one systemInstruction, so it is hoisted (live: cache prefix lost; https://openrouter.ai/docs/guides/best-practices/prompt-caching#google-gemini) @@ -6,12 +5,9 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Cache: implicit on Gemini 2.5+; cache_control uses only the last breakpoint, 5m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#google-gemini) schema = 2 +base_model = "google/gemini-4-hydrogen" name = "Gemini Flash Latest" description = "Fast Gemini model balancing multimodal reasoning, tool use, and cost" -family = "gemini-flash" -open_weights = false -knowledge = "2025-01-01" -release_date = "2026-04-27" [modalities] input = ["audio/wav", "audio/mpeg", "audio/aiff", "audio/aac", "audio/ogg", "audio/flac", "audio/mp4", "application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text", "video/mp4", "video/mpeg", "video/mov", "video/webm"] @@ -24,10 +20,6 @@ structured_output = true temperature = true cache = { implicit = true, explicit = { ttl = ["5m"], max_breakpoints = 1 } } -[limit] -context = 1_048_576 -output = 943_718 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~google/gemini-pro-latest.toml b/providers/openrouter/models/~google/gemini-pro-latest.toml index c9cabf1dee..44efb636bd 100644 --- a/providers/openrouter/models/~google/gemini-pro-latest.toml +++ b/providers/openrouter/models/~google/gemini-pro-latest.toml @@ -1,4 +1,3 @@ -# OpenRouter alias currently redirects to Gemini 3.1 Pro Preview. # https://openrouter.ai/~google/gemini-pro-latest # Modalities (OpenRouter's documented formats, narrowed to the lab's list where it has one): audio: https://openrouter.ai/docs/guides/overview/multimodal/audio; image: https://openrouter.ai/docs/guides/overview/multimodal/image-understanding; video: https://openrouter.ai/docs/guides/overview/multimodal/videos # Mid-conversation (Chat Completions, probed 2026-10-19): system_updates = false: Gemini has one systemInstruction, so it is hoisted (live: cache prefix lost; https://openrouter.ai/docs/guides/best-practices/prompt-caching#google-gemini) @@ -6,12 +5,9 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Cache: implicit on Gemini 2.5+; cache_control uses only the last breakpoint, 5m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#google-gemini) schema = 2 +base_model = "google/gemini-4-carbon" name = "Gemini Pro Latest" description = "Advanced Gemini model for complex reasoning, coding, and multimodal analysis" -family = "gemini-pro" -open_weights = false -knowledge = "2025-01" -release_date = "2026-04-27" [modalities] input = ["audio/wav", "audio/mpeg", "audio/aiff", "audio/aac", "audio/ogg", "audio/flac", "audio/mp4", "application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text", "video/mp4", "video/mpeg", "video/mov", "video/webm"] @@ -24,10 +20,6 @@ structured_output = true temperature = true cache = { implicit = true, explicit = { ttl = ["5m"], max_breakpoints = 1 } } -[limit] -context = 1_048_576 -output = 943_718 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~liquid/d1-latest.toml b/providers/openrouter/models/~liquid/d1-latest.toml index 8b7e77ada9..9621f4f2db 100644 --- a/providers/openrouter/models/~liquid/d1-latest.toml +++ b/providers/openrouter/models/~liquid/d1-latest.toml @@ -1,24 +1,17 @@ +# OpenRouter lists text and image input. Image MIME types follow Liquid's d1.2 Image Requirements: +# https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# https://openrouter.ai/api/v1/models?output_modalities=decisions schema = 2 -type = "decision" +base_model = "liquid/d1.2" name = "d1 Latest" description = "Decision model for typed evaluation of shared state" -family = "liquid" -open_weights = false -release_date = "2026-10-27" [modalities] -input = ["text", "image"] -output = ["text"] +input = ["text", "image/jpeg", "image/png", "image/webp"] +output = ["decision"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 65_536 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/~liquid/d1-ultra-latest.toml b/providers/openrouter/models/~liquid/d1-ultra-latest.toml index 88416e4e49..f9c72914d3 100644 --- a/providers/openrouter/models/~liquid/d1-ultra-latest.toml +++ b/providers/openrouter/models/~liquid/d1-ultra-latest.toml @@ -1,24 +1,17 @@ +# OpenRouter lists text and image input. Image MIME types follow Liquid's d1.2 Image Requirements: +# https://github.com/Liquid4All/docs/blob/d4c58eb76305b9d20d7167ee7d1fffcb976aea98/lfm/models/d1.mdx#L1220-L1224 +# https://openrouter.ai/api/v1/models?output_modalities=decisions schema = 2 -type = "decision" +base_model = "liquid/d1.2-ultra" name = "d1-ultra Latest" description = "Decision model for typed evaluation of shared state" -family = "liquid" -open_weights = false -release_date = "2026-10-27" [modalities] -input = ["text", "image"] -output = ["text"] +input = ["text", "image/jpeg", "image/png", "image/webp"] +output = ["decision"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 65_536 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/~moonshotai/kimi-latest.toml b/providers/openrouter/models/~moonshotai/kimi-latest.toml index 083be32800..a308602e71 100644 --- a/providers/openrouter/models/~moonshotai/kimi-latest.toml +++ b/providers/openrouter/models/~moonshotai/kimi-latest.toml @@ -5,11 +5,9 @@ # effort_updates = false: configuration_update is rejected with a 400 for this model (https://openrouter.ai/docs/guides/best-practices/reasoning-tokens#mid-conversation-effort) # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) schema = 2 +base_model = "moonshotai/kimi-k3" name = "Kimi Latest" description = "Kimi multimodal agent model for visual understanding, coding, and planning" -family = "kimi" -open_weights = false -release_date = "2026-04-27" [modalities] input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "video/mp4", "video/mpeg", "video/mov", "video/webm"] @@ -21,10 +19,6 @@ reasoning = { supported = true, effort = ["none", "low", "high", "max"] } structured_output = true temperature = true -[limit] -context = 1_048_576 -output = 943_718 - [api.chat-completions] [api.responses] diff --git a/providers/openrouter/models/~openai/gpt-astra-latest.toml b/providers/openrouter/models/~openai/gpt-astra-latest.toml index d8d89bcaad..c980beb904 100644 --- a/providers/openrouter/models/~openai/gpt-astra-latest.toml +++ b/providers/openrouter/models/~openai/gpt-astra-latest.toml @@ -4,35 +4,25 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Cache: automatic from 1,024 tokens; GPT-5.6+ explicit prompt_cache_breakpoint, 30m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#openai) # Live 2026-11-17 (@opencode/ai request shapes, every tool in additional_tools, 2 runs each on this model): tools.updates = ["add", "remove"] on [api.responses]: additions and removal announcements work; a redefinition keeps the old schema. Chat Completions has no mechanism. +# OpenRouter openai/gpt-6.2-astra (2026-11-17 probe in gpt-6.2-astra.toml) accepted text custom tools and enforced lark and regex on Responses. Chat Completions rejected custom tools. schema = 2 +base_model = "openai/gpt-6.2-astra" name = "GPT Astra Latest" description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks" -family = "gpt-astra" -open_weights = false -release_date = "2026-09-11" - -[modalities] -input = ["application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { implicit = { min_tokens = 1_024 }, explicit = { ttl = ["30m"], min_tokens = 1_024 } } -[limit] -context = 1_050_000 -output = 128_000 - [api.chat-completions] [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses" } -capabilities = { tools = { updates = ["add", "remove"] } } +capabilities = { tools = { freeform = ["text", "lark", "regex"], updates = ["add", "remove"] } } [api.messages] sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } diff --git a/providers/openrouter/models/~openai/gpt-luna-latest.toml b/providers/openrouter/models/~openai/gpt-luna-latest.toml index 00868bb55c..01343ee17f 100644 --- a/providers/openrouter/models/~openai/gpt-luna-latest.toml +++ b/providers/openrouter/models/~openai/gpt-luna-latest.toml @@ -4,17 +4,11 @@ # additional_tools on [api.responses] (/api/v1/responses, add only): an `additional_tools` input item keeps the cache (live 2026-10-23, pinned to OpenAI). OpenRouter's Responses docs don't mention it (https://openrouter.ai/docs/api/reference/responses/overview); lab mechanism: https://developers.openai.com/api/docs/guides/prompt-caching. Chat Completions has no mechanism. # Cache: automatic from 1,024 tokens; GPT-5.6+ explicit prompt_cache_breakpoint, 30m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#openai) # Live 2026-11-17 (@opencode/ai request shapes, every tool in additional_tools, 2 runs each on this model): tools.updates = ["add", "remove"] on [api.responses]: additions and removal announcements work; a redefinition keeps the old schema. Chat Completions has no mechanism. +# OpenRouter openai/gpt-6-luna (2026-10-28 probe in gpt-6-luna.toml) accepted text custom tools and enforced lark and regex on Responses. Chat Completions rejected custom tools. schema = 2 +base_model = "openai/gpt-6-luna" name = "GPT Luna Latest" description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks" -family = "gpt-luna" -open_weights = false -knowledge = "2026-02-16" -release_date = "2026-09-11" - -[modalities] -input = ["application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } @@ -25,15 +19,11 @@ system_updates = true effort_updates = true cache = { implicit = { min_tokens = 1_024 }, explicit = { ttl = ["30m"], min_tokens = 1_024 } } -[limit] -context = 1_050_000 -output = 128_000 - [api.chat-completions] [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses" } -capabilities = { tools = { updates = ["add", "remove"] } } +capabilities = { tools = { freeform = ["text", "lark", "regex"], updates = ["add", "remove"] } } [api.messages] sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } diff --git a/providers/openrouter/models/~openai/gpt-mini-latest.toml b/providers/openrouter/models/~openai/gpt-mini-latest.toml index c3a079a813..cadfc9dd6c 100644 --- a/providers/openrouter/models/~openai/gpt-mini-latest.toml +++ b/providers/openrouter/models/~openai/gpt-mini-latest.toml @@ -4,14 +4,12 @@ # additional_tools on [api.responses] (/api/v1/responses, add only): an `additional_tools` input item keeps the cache (live 2026-10-23, pinned to OpenAI). OpenRouter's Responses docs don't mention it (https://openrouter.ai/docs/api/reference/responses/overview); lab mechanism: https://developers.openai.com/api/docs/guides/prompt-caching. Chat Completions has no mechanism. # Cache: automatic from 1,024 tokens (https://openrouter.ai/docs/guides/best-practices/prompt-caching#openai) # tools.updates is left out: on GPT-5.5 and earlier, calls to tools added through additional_tools come back namespaced and replaying them without the namespace fails ("Missing namespace for function_call", live 2026-11-16), so callers fold tool changes into the top-level tools list. -# Live 2026-11-17 (@opencode/ai request shapes, 2 runs): no tools.updates: an addition through additional_tools is called, but a removal announcement was ignored 2/2 and a redefinition keeps the old schema; the alias has no base_model, so replaying added-tool calls (the GPT-5.5 namespace failure) is unknown. +# Live 2026-11-17 (@opencode/ai request shapes, 2 runs): no tools.updates: an addition through additional_tools is called, but a removal announcement was ignored 2/2 and a redefinition keeps the old schema. Its GPT-5.4 Mini target returns namespaced added-tool calls, so replay requires that namespace. +# OpenRouter openai/gpt-5.4-mini (2026-10-28 probe in gpt-5.4-mini.toml) accepted text custom tools and enforced lark and regex on Responses. Chat Completions rejected custom tools. schema = 2 +base_model = "openai/gpt-5.4-mini" name = "GPT Mini Latest" description = "Compact GPT model for low-latency assistance and high-volume workloads" -family = "gpt-mini" -open_weights = false -knowledge = "2025-08-31" -release_date = "2026-04-27" [modalities] input = ["application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text"] @@ -25,14 +23,11 @@ temperature = false system_updates = true cache = { implicit = { min_tokens = 1_024 } } -[limit] -context = 400_000 -output = 128_000 - [api.chat-completions] [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses" } +capabilities = { tools = { freeform = ["text", "lark", "regex"] } } [api.messages] sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } diff --git a/providers/openrouter/models/~openai/gpt-sol-latest.toml b/providers/openrouter/models/~openai/gpt-sol-latest.toml index 98e1ce5178..de33665d62 100644 --- a/providers/openrouter/models/~openai/gpt-sol-latest.toml +++ b/providers/openrouter/models/~openai/gpt-sol-latest.toml @@ -4,36 +4,25 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Cache: automatic from 1,024 tokens; GPT-5.6+ explicit prompt_cache_breakpoint, 30m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#openai) # Live 2026-11-17 (@opencode/ai request shapes, every tool in additional_tools, 2 runs each on this model): tools.updates = ["add", "remove"] on [api.responses]: additions and removal announcements work; a redefinition keeps the old schema. Chat Completions has no mechanism. +# OpenRouter gpt-6.2-sol.toml inherited its Responses freeform formats on 2026-11-18 from gpt-6.2-astra.toml, whose 2026-11-17 probe enforced lark and regex and accepted text. schema = 2 +base_model = "openai/gpt-6.2-sol" name = "GPT Sol Latest" description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks" -family = "gpt-sol" -open_weights = false -knowledge = "2026-02-16" -release_date = "2026-09-11" - -[modalities] -input = ["application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh", "max"] } structured_output = true -temperature = false system_updates = true effort_updates = true cache = { implicit = { min_tokens = 1_024 }, explicit = { ttl = ["30m"], min_tokens = 1_024 } } -[limit] -context = 1_050_000 -output = 128_000 - [api.chat-completions] [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses" } -capabilities = { tools = { updates = ["add", "remove"] } } +capabilities = { tools = { freeform = ["text", "lark", "regex"], updates = ["add", "remove"] } } [api.messages] sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } diff --git a/providers/openrouter/models/~openai/gpt-terra-latest.toml b/providers/openrouter/models/~openai/gpt-terra-latest.toml index bf0dcd7b48..c8b30a3008 100644 --- a/providers/openrouter/models/~openai/gpt-terra-latest.toml +++ b/providers/openrouter/models/~openai/gpt-terra-latest.toml @@ -4,17 +4,11 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Cache: automatic from 1,024 tokens; GPT-5.6+ explicit prompt_cache_breakpoint, 30m TTL (https://openrouter.ai/docs/guides/best-practices/prompt-caching#openai) # Live 2026-11-17 (@opencode/ai request shapes, every tool in additional_tools, 2 runs each on this model): tools.updates = ["add", "remove"] on [api.responses]: additions and removal announcements work; a redefinition keeps the old schema. Chat Completions has no mechanism. +# OpenRouter openai/gpt-6.1-terra (2026-10-28 probe in gpt-6.1-terra.toml) accepted text custom tools and enforced lark and regex on Responses. Chat Completions rejected custom tools. schema = 2 +base_model = "openai/gpt-6.1-terra" name = "GPT Terra Latest" description = "GPT model for general reasoning, writing, coding, and tool-assisted tasks" -family = "gpt-terra" -open_weights = false -knowledge = "2026-02-16" -release_date = "2026-09-11" - -[modalities] -input = ["application/pdf", "image/png", "image/jpeg", "image/webp", "image/gif", "text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } @@ -24,15 +18,11 @@ temperature = false system_updates = true cache = { implicit = { min_tokens = 1_024 }, explicit = { ttl = ["30m"], min_tokens = 1_024 } } -[limit] -context = 1_050_000 -output = 128_000 - [api.chat-completions] [api.responses] sdk = { aisdk = "@ai-sdk/openai", opencodeai = "@opencode/ai/providers/openai-compatible/responses" } -capabilities = { tools = { updates = ["add", "remove"] } } +capabilities = { tools = { freeform = ["text", "lark", "regex"], updates = ["add", "remove"] } } [api.messages] sdk = { aisdk = "@ai-sdk/anthropic", opencodeai = "@opencode/ai/providers/anthropic-compatible" } diff --git a/providers/openrouter/models/~perplexity/pplx-decider-flash-latest.toml b/providers/openrouter/models/~perplexity/pplx-decider-flash-latest.toml index dfc20905d9..e12a24d32e 100644 --- a/providers/openrouter/models/~perplexity/pplx-decider-flash-latest.toml +++ b/providers/openrouter/models/~perplexity/pplx-decider-flash-latest.toml @@ -1,25 +1,10 @@ -# Modalities (OpenRouter's documented formats, narrowed to the lab's list where it has one): image: https://openrouter.ai/docs/guides/overview/multimodal/image-understanding schema = 2 -type = "decision" +base_model = "perplexity/pplx-decider-flash-v1.3" name = "Decider Flash Latest" description = "Decision model for typed evaluation of shared state" -family = "pplx-decider-flash" -open_weights = false -release_date = "2026-10-16" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif"] -output = ["text"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 262_144 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/~perplexity/pplx-decider-latest.toml b/providers/openrouter/models/~perplexity/pplx-decider-latest.toml index 2bd9ba87bf..77f6f59a2e 100644 --- a/providers/openrouter/models/~perplexity/pplx-decider-latest.toml +++ b/providers/openrouter/models/~perplexity/pplx-decider-latest.toml @@ -1,25 +1,10 @@ -# Modalities (OpenRouter's documented formats, narrowed to the lab's list where it has one): image: https://openrouter.ai/docs/guides/overview/multimodal/image-understanding schema = 2 -type = "decision" +base_model = "perplexity/pplx-decider-v1.3" name = "Decider Latest" description = "Decision model for typed evaluation of shared state" -family = "pplx-decider" -open_weights = false -release_date = "2026-10-14" - -[modalities] -input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif"] -output = ["text"] [capabilities] -tools = { supported = false } -reasoning = { supported = false } structured_output = false -temperature = false - -[limit] -context = 262_144 -output = 0 [api.systemone] sdk = { aisdk = "@ai-sdk/typesafe-ai", opencodeai = "@opencode/ai/providers/openrouter/decisions" } diff --git a/providers/openrouter/models/~typesafe/jev-latest.toml b/providers/openrouter/models/~typesafe/jev-latest.toml index 49aee5d59c..016d8861ea 100644 --- a/providers/openrouter/models/~typesafe/jev-latest.toml +++ b/providers/openrouter/models/~typesafe/jev-latest.toml @@ -1,7 +1,8 @@ # Modalities: OpenRouter says "Jev accepts only image/png and image/jpeg" (https://openrouter.ai/docs/guides/community/multimodal-decisions), matching the lab (https://docs.typesafe.ai/images.md) schema = 2 -base_model = "typesafe/jev-latest" +base_model = "typesafe/jev-1.14.0" name = "Jev Latest" +description = "This model always redirects to the latest model in the Jev family." [capabilities] structured_output = true diff --git a/providers/openrouter/models/~x-ai/grok-latest.toml b/providers/openrouter/models/~x-ai/grok-latest.toml index c747160227..9b12680deb 100644 --- a/providers/openrouter/models/~x-ai/grok-latest.toml +++ b/providers/openrouter/models/~x-ai/grok-latest.toml @@ -5,11 +5,9 @@ # Cache: automatic (https://openrouter.ai/docs/guides/best-practices/prompt-caching#grok) # Per API: system_updates on [api.chat-completions] only, where it was tested. Responses and Messages are untested for this model. schema = 2 +base_model = "xai/grok-4.7" name = "Grok Latest" description = "Grok model for agentic tool use, reasoning, coding, and live assistance" -family = "grok" -open_weights = false -release_date = "2026-07-08" [modalities] input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "application/pdf"] @@ -19,13 +17,8 @@ output = ["text"] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["low", "medium", "high", "xhigh"] } structured_output = true -temperature = true cache = { implicit = true } -[limit] -context = 500_000 -output = 450_000 - [api.chat-completions] capabilities = { system_updates = true } diff --git a/providers/openrouter/models/~z-ai/glm-flash-latest.toml b/providers/openrouter/models/~z-ai/glm-flash-latest.toml index 0b9545e26e..70bbc22fd5 100644 --- a/providers/openrouter/models/~z-ai/glm-flash-latest.toml +++ b/providers/openrouter/models/~z-ai/glm-flash-latest.toml @@ -4,11 +4,9 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Per API: system_updates on [api.chat-completions] only, where it was tested. Responses and Messages are untested for this model. schema = 2 +base_model = "zhipuai/glm-5.3-flash" name = "GLM Flash Latest" description = "GLM vision model for visual reasoning, documents, and multimodal agents" -family = "glm-flash" -open_weights = false -release_date = "2026-08-27" [modalities] input = ["text", "image/png", "image/jpeg", "image/webp", "image/gif", "video/mp4", "video/mpeg", "video/mov", "video/webm"] @@ -18,11 +16,9 @@ output = ["text"] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["low", "high", "max"] } structured_output = true -temperature = true [limit] context = 1_048_576 -output = 131_072 [api.chat-completions] capabilities = { system_updates = true } diff --git a/providers/openrouter/models/~z-ai/glm-latest.toml b/providers/openrouter/models/~z-ai/glm-latest.toml index 70ffdb65e7..e9eed9fbc3 100644 --- a/providers/openrouter/models/~z-ai/glm-latest.toml +++ b/providers/openrouter/models/~z-ai/glm-latest.toml @@ -3,25 +3,17 @@ # tools.updates = false: Chat Completions rejects tool_addition/tool_removal for non-Claude-4.8+ models (live 400) # Per API: system_updates on [api.chat-completions] only, where it was tested. Responses and Messages are untested for this model. schema = 2 +base_model = "zhipuai/glm-5.3" name = "GLM Latest" description = "Flagship GLM model for hybrid reasoning, coding, and agentic engineering" -family = "glm" -open_weights = false -release_date = "2026-08-19" - -[modalities] -input = ["text"] -output = ["text"] [capabilities] tools = { supported = true, choice = ["auto", "none", "required", "tool"] } reasoning = { supported = true, effort = ["low", "high", "max"] } structured_output = true -temperature = true [limit] context = 1_048_576 -output = 943_718 [api.chat-completions] capabilities = { system_updates = true }