Skip to content

Resolve OpenRouter rolling aliases to their current lab model - #14326

Open
xwl777 wants to merge 9 commits into
anomalyco:devfrom
xwl777:fix/openrouter-alias-target-14055
Open

xwl777 wants to merge 9 commits into
anomalyco:devfrom
xwl777:fix/openrouter-alias-target-14055

Conversation

@xwl777

@xwl777 xwl777 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #14055.

OpenRouter publishes a rolling route’s current target in alias_target.slug. Each sync resolves that slug to the target route’s lab mapping or a matching lab file, so moving an alias changes its published canonical ID and release date. The alias keeps its request ID, display name and host-specific settings. Tests exercise retargeting, an unavailable target mapping, and media aliases. OpenRouter model catalog

All 24 rolling aliases in the November 24 text and decision catalog resolve in both the v1 and v2 generators. For example, GPT Astra Latest publishes openai/gpt-6.2-astra with release date 2026-11-17, and DeepSeek Flash Latest publishes deepseek/deepseek-v4.1-flash-1017 with release date 2026-10-17.

November 28 merge with dev

The conflict was in ~deepseek/deepseek-pro-latest. OpenRouter lists deepseek/deepseek-v4-pro-0813 as its target with a 1,048,576-token context and a 393,216-token maximum completion. The merged route keeps the target mapping and dev’s host pricing in USD per million tokens (0.0999 input, 0.0999 cached reads, 5 output). DeepSeek V4 Flash Latest still has a 131,072-token host cap. The other six previously reviewed aliases inherit their lab limits. OpenRouter catalog

Replayed the 24 rolling rows and four fixed decision routes against dev 1d451ccc. The second run proposed zero changes. Verified the 23 active aliases in both published APIs. Catalog validation and all 65 OpenRouter tests passed. The full sync suite reproduced the same macOS filename-case failure on both branches. The v1 comparison reports data changes in 4 of 22 views.

Verification of the November 26 review at 7c40f59d

  • All eight Liquid and Perplexity decision routes have image input and publish api.systemone.compatibility.media_input = "state" in v2. The setting is immediately below the SDK line in the committed files. Liquid fixed route · Perplexity alias
  • Both v1 and v2 publish the eight limits listed below. Seven come from the lab. DeepSeek V4 Flash Latest has the one explicit override, matching the host’s reported 131,072 tokens. Committed override
  • Each Liquid route narrows the lab’s input formats. Removing only output from each of the four provider records failed validation with modalities.output: Required. Pareto Latest is absent from this commit and both published catalogs. Required arrays · Liquid override
  • Ran bun models:sync openrouter --dry-run on this commit. None of the cited paths appeared in the proposed changes (9 creates and 15 updates elsewhere). Two scoped dry runs of the 24 alias rows and four fixed decision rows produced no writes.

November 26 verification of the eight reported output limits

The November 26 replay against dev 71725007 found one host-specific limit. For ~deepseek/deepseek-v4-flash-latest, OpenRouter reported a 1,048,576-token context and a 131,072-token maximum completion. The alias now publishes that cap. The same row updated its USD prices per million tokens to 0.04532 for input, 0.001442 for cached reads and 0.13596 for output. OpenRouter catalog

The other seven aliases inherit their lab output limits in both v1 and v2. Gemini Flash and Pro publish 65,536 each, DeepSeek Flash and Pro 384,000 each, GLM 131,072, Kimi 1,048,576 and Grok 500,000. For Kimi and Grok the reported maximum completion is 90% of the serving context, so the sync treats it as a placeholder.

Replaying all 24 catalog rows a second time wrote zero files. All 65 OpenRouter tests and catalog validation passed. The full sync suite reproduced the same macOS filename-case failure on the candidate and clean dev. The v1 comparison showed expected data changes in 4 of 22 views, including the three prices above.

Changes following review

  • Add complete lab records for Liquid d1.2 and d1.2-ultra, plus Perplexity Decider v1.3 and Decider Flash v1.3. Their four aliases and four fixed routes (including both Perplexity :free routes) now link to the versioned labs. Liquid’s lab models support audio, while OpenRouter lists text and image input. Perplexity publishes both checkpoints under Apache-2.0. Liquid release · Liquid specifications · Perplexity Decisions API · Decider weights · Flash weights

  • Publish text, Lark and regex freeform tools for the Responses API on all five GPT aliases. Each header cites the same-host evidence. GPT-6.2 Sol’s fixed route attributes its settings to the GPT-6.2 Astra probe. GPT Mini’s header now identifies its GPT-5.4 Mini target and documents the namespaced tool-call replay behavior.

  • Replayed the 13 routes touched by the review through the OpenRouter sync. Repeating the sync wrote zero files. Verified both published catalogs for all 24 aliases, the input modalities and decision output of all eight decision routes, and the per-API tool settings of all five GPT aliases.

  • Verified the d1.2 and d1.2-ultra inputs against Liquid’s versioned format tables. The documented images are JPEG, PNG and WebP. GIF is unlisted. Audio accepts WAV (PCM or floating-point samples), MP3, FLAC and Ogg (Opus or Vorbis). OpenRouter advertises text and image input for both fixed routes and both rolling aliases. This follow-up updates the six source headers; the published inputs are unchanged. Image requirements · Audio requirements · OpenRouter decision catalog

Earlier November 26 replay at ae207b0e

  • Kept the deletion of ~unbiased/pareto-latest from upstream chore(sync): update OpenRouter model catalog #14623. OpenRouter still lists the alias with negative prices and no supported parameters. Its endpoint list is empty, and the sync skips the unavailable entry. Pareto endpoints
  • Replayed the 24 rolling rows in OpenRouter’s November 26 catalog. Both DeepSeek Pro Latest and DeepSeek V4 Flash Latest inherited the 384,000-token lab output limit because the host values in that snapshot were 90% placeholders. Verified the published identity and release date of all 23 remaining aliases in v1 and v2. A second sync produced no changes.
  • On dev a4ab87c6, the OpenRouter tests passed (65/65) and bun validate passed. The full sync suite had one macOS filename-case failure on both branches. The v1 comparison reported expected data changes in 4 of 22 views, including 26 new canonical IDs and Jev’s versioned target. No v1 models were added or removed and no prices changed relative to dev.

Verification

  • Integrated dev at c0e0acef. Rolling aliases resolve their current target before the sync calculates the completion limit. A regression test covers a target change with a smaller serving context, both with an absent completion limit and with OpenRouter’s 90% placeholder.
  • Replayed all 24 rolling aliases from the November 25 text and decision catalog. Verified their v1/v2 canonical IDs and the output limits of all 19 chat aliases. Seven published output limits now reflect the real host cap or the current lab limit. The only remaining alias dry-run difference was unrelated DeepSeek pricing.
  • The OpenRouter sync tests passed (64/64), and bun validate passed. The full sync test file had 363 passes and the same single case-sensitive LLM Gateway failure as clean dev on macOS (360 passes). The core TypeScript check produced the same 111 diagnostics on both trees.
  • bun run v1:check c0e0acef reported expected data differences in 4 of 22 views and exited 1. Compared with dev, 27 provider entries gain canonical IDs and Jev switches to its versioned target. Changes include inherited metadata and seven output limits. No models were added to or removed from v1, and prices are unchanged.

Follow-up on the alias limits and modalities

  • Verified the seven output limits at e585f1b2 against the November 25 OpenRouter catalog and both published APIs. Six aliases inherit the lab limit. DeepSeek V4 Flash 0731 has a real host cap of 131,072 versus the lab’s 384,000. Neither the limits nor the modalities changed when replaying all 24 aliases. The only diff was unrelated DeepSeek pricing, and a second replay in the same checkout was clean.
  • All seven cited modality blocks have host-specific input formats. For example, the GPT Mini route adds PDF to its lab’s inputs. When a provider supplies a modalities table, the schema requires both arrays. Removing just the text output made the sync fail while reading the provider file with modalities.output: Required. The sync fills the inherited side before writing a v2 file. Provider schema · Required arrays · Sync writer

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/openrouter/models/~liquid/d1-latest.toml:2 - Check: Non-lab hosts must use base_model; when models/<lab>/<model>.toml is missing but the lab model is nameable, the PR must add the lab entry and point base_model at it (AGENTS.md → "When to use base_model"). Why: This PR is the alias-resolution change, and its body settles for leaving ~liquid/d1-latest, ~liquid/d1-ultra-latest, ~perplexity/pplx-decider-latest and ~perplexity/pplx-decider-flash-latest as full inline definitions with no base_model, because models/liquid/d1.2.toml, models/liquid/d1.2-ultra.toml, models/perplexity/pplx-decider-v1.3.toml and models/perplexity/pplx-decider-flash-v1.3.toml don't exist. The targets are nameable lab models (the body names them; the repo already carries lab entries for the previous versions — models/liquid/d1.toml, models/perplexity/pplx-decider-v1.2.toml, models/perplexity/pplx-decider-flash-v1.2.toml — and the fixed routes hold the facts), so standalone full-inline entries are not an allowed end state, and the new openRouterBaseModel fallback will keep regenerating them every sync. Action: Add complete lab entries for the four targets under models/ (sourced from Liquid/Perplexity docs, not stubs) and re-run the sync so the aliases — and the standalone liquid/d1.2* fixed routes — link via base_model, or justify an AGENTS.md exception for each target.
  • [medium] [violation] providers/openrouter/models/~openai/gpt-astra-latest.toml:24 - Check: GPT-5+ model updates must set freeform per API, from host docs, the same host's previous GPT model on the same API, or a live probe, with the evidence noted in the header (AGENTS.md → provider model file). Why: The PR updates five GPT-5+ alias files (~openai/gpt-astra-latest, gpt-sol-latest, gpt-luna-latest, gpt-terra-latest, gpt-mini-latest) and now names each alias's target, but none sets freeform, while the same host's provider files for those exact targets — openai/gpt-6.2-astra.toml, gpt-6.2-sol.toml, gpt-6-luna.toml, gpt-6.1-terra.toml, gpt-5.4-mini.toml — all document freeform = ["text", "lark", "regex"] on [api.responses] with live-probe header evidence. The aliases serve the same models on the same OpenRouter Responses API, so the omission publishes less capability data than the repo already records for the same route. Action: Add freeform = ["text", "lark", "regex"] to each alias's [api.responses] capabilities.tools (merged with the existing updates where present) and cite the same-host target's probe in the header, or probe the alias and record what it actually accepts.
  • [low] [possible mistake] providers/openrouter/models/~openai/gpt-mini-latest.toml:7 - Check: Header comments must stay accurate after the fields they describe change. Why: The header still says "the alias has no base_model, so replaying added-tool calls (the GPT-5.5 namespace failure) is unknown", but this PR adds base_model = "openai/gpt-5.4-mini" directly below it; with a GPT-5.4 target the namespace failure is known to apply, so the stated rationale for leaving tools.updates out is now false (the omission itself remains correct per AGENTS.md's GPT-5.5-and-earlier rule). Action: Rewrite that header line to rest the omission on the gpt-5.4-mini base (added-tool calls come back namespaced on GPT-5.5 and earlier) instead of the no-base_model rationale.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [low] [possible mistake] models/liquid/d1.2.toml:13 (same list in models/liquid/d1.2-ultra.toml:13) - Check: The d1.2/d1.2-ultra input modality list must match the formats the cited source actually documents. Why: Both new lab files attribute "supported MIME types" to https://docs.liquid.ai/lfm/models/d1, but list image/jpeg, image/png, image/webp plus audio/wav, audio/mpeg, audio/flac, audio/ogg and no GIF, while the existing models/liquid/d1.toml documents that same page as listing JPEG, PNG, WebP and GIF for the d1 line, with no audio. Either d1.2 genuinely changed formats (then the d1 page alone does not support this list — the d1-2 blog would need to name them) or the list is wrong; the same no-GIF image set is then copied into providers/openrouter/models/liquid/d1.2.toml, liquid/d1.2-ultra.toml, ~liquid/d1-latest.toml and ~liquid/d1-ultra-latest.toml, so an error propagates through every new entry. Action: Verify d1.2's accepted image and audio formats against the d1-2 blog post and the docs page (is GIF still accepted? which audio codecs?), then correct the input lists in both lab files or repoint the citation at the section that lists d1.2's formats.

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [possible mistake] providers/openrouter/models/liquid/d1.2.toml:14 - Check: System One media_input compatibility on the rewritten Liquid/Perplexity decision routes. Why: The file declares image input (input = ["text", "image/jpeg", "image/png", "image/webp"], header: "OpenRouter lists text and image input") but [api.systemone] omits compatibility = { media_input = "state" }. The same provider's image-taking decision routes (typesafe/jev-1.14.toml:17, ~typesafe/jev-latest.toml:14) declare it, and the sync itself writes it for decision models whose catalog row lists image input (withSystemOneMediaInput in translateModel, asserted by the existing Clef Omni v2Set test in packages/core/test/sync.test.ts:8202). Without it, OpenCode's System One client sends images as TypeSafe assets, which OpenRouter ignores, so image questions on these routes silently lose their images. It also contradicts the PR's claim that these routes were replayed through the OpenRouter sync: a replay against image-listing catalog rows would have written the field, so the committed state is not what the sync produces and the next automation run will rewrite these files. Same omission in liquid/d1.2-ultra.toml, ~liquid/d1-latest.toml, ~liquid/d1-ultra-latest.toml, perplexity/pplx-decider-v1.3:free.toml, perplexity/pplx-decider-flash-v1.3:free.toml, ~perplexity/pplx-decider-latest.toml, ~perplexity/pplx-decider-flash-latest.toml. Action: Add compatibility = { media_input = "state" } to the eight [api.systemone] tables (or, if these routes really don't take image input, correct the modalities and headers instead), then re-run bun models:sync openrouter --dry-run and confirm all eight files come out unchanged.
  • [low] [possible mistake] providers/openrouter/models/~google/gemini-flash-latest.toml:1 - Check: Leading header notes versus the new base_model binding. Why: The header still says the alias "currently redirects to Gemini 3.5 Flash" while this PR binds the file to google/gemini-4-hydrogen; ~google/gemini-pro-latest.toml:1 likewise still says "Gemini 3.1 Pro Preview" against the new google/gemini-4-carbon binding. Syncs preserve existing headers, so these now-stale notes will keep contradicting the published target the PR is specifically correcting. Action: Update or remove the stale "currently redirects to" lines on both Gemini alias files, and sweep the other retargeted aliases for similar stale target notes.

The Gemini Flash, Gemini Pro and Claude Sonnet headers named older
targets. Keep the route links and probe evidence; the synced base_model
records the current target.

Verified the four Liquid and four Perplexity decision routes cited in
review. All eight already specify api.systemone.compatibility.media_input
as "state" and publish that setting with image input in v2. The live
OpenRouter catalog includes all eight. Running bun models:sync openrouter
--dry-run reported no operations on those files (8 creates, 15 updates
and 1 removal elsewhere in the catalog).
@github-actions

Copy link
Copy Markdown
Contributor

No actionable findings.

@github-actions github-actions Bot added the reviewer: ready Automated review found no actionable items label Nov 24, 2026
@github-actions github-actions Bot removed the reviewer: ready Automated review found no actionable items label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/openrouter/models/~google/gemini-flash-latest.toml:24 - Check: With base_model set, an alias's limit.output override must be a real host delta, matching what the PR's own OpenRouter sync resolves from the target lab. Why: This file (and ~google/gemini-pro-latest.toml, ~deepseek/deepseek-flash-latest.toml, ~deepseek/deepseek-v4-flash-latest.toml, ~z-ai/glm-latest.toml) keeps output = 943_718 — exactly floor(1_048_576 × 0.9), OpenRouter's auto-fill when a host publishes no output cap, which the sync itself treats as not a real limit (isPlaceholderOutputLimit in packages/core/src/sync/providers/openrouter.ts: "It isn't a real limit, so the lab's output is used instead"). The labs these files now cite document 65,536 (gemini-4-hydrogen/-carbon), 384,000 (deepseek-v4.1-flash-1017, deepseek-v4-flash-0731) and 131,072 (glm-5.3), so the committed override contradicts the file's own base_model data. The PR's replayed routes show the intended result (~z-ai/glm-flash-latest dropped its output = 131_072; ~deepseek/deepseek-pro-latest keeps only its real 393,216 cap), so these files were hand-converted without a sync replay: bun models:sync openrouter will strip the stale lines on the next automation run, i.e. the committed state is not sync-idempotent (sync.md expects a clean dry-run after syncing). ~moonshotai/kimi-latest.toml (output = 943_718 vs kimi-k3's 1,048,576) and ~x-ai/grok-latest.toml (output = 450_000 = 90% of 500,000 vs grok-4.7's 500,000) carry the same fill signature. Action: Rerun the OpenRouter sync over these routes (or delete the stale output lines by hand) so each alias inherits the lab's documented cap and the files match what the sync writes.
  • [low] [violation] providers/openrouter/models/~moonshotai/kimi-latest.toml:13 - Check: Override-only base_model files must keep only fields that differ from the base (AGENTS.md "Do not copy from base when unchanged"). Why: The hand-converted aliases that kept their [modalities] block also restate output = ["text"], identical to their new base labs' output — in ~moonshotai/kimi-latest, ~google/gemini-flash-latest, ~google/gemini-pro-latest, ~x-ai/grok-latest, ~z-ai/glm-flash-latest, ~unbiased/pareto-latest and ~openai/gpt-mini-latest. The sync drops the identical side and keeps only the differing input (as the fully replayed aliases such as ~deepseek/deepseek-flash-latest show), so these restatements are redundant inherited data in a base_model file. Action: Replay these routes through the OpenRouter sync as well (or trim the restated output lines), so the committed files are override-only and sync-stable.

The November 26 catalog lists Pareto with negative pricing and no serving endpoints. Keep its upstream deletion. Replaying the remaining 23 aliases drops two stale DeepSeek output overrides: the current 90% placeholders resolve to the 384,000-token lab limits. Preserve the latest upstream prices. The second sync made no changes.
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/openrouter/models/~google/gemini-flash-latest.toml:8 - Check: Override-only provider files must keep only real deltas after base_model, and sync.md requires a sync re-run to come back clean. Why: Six alias files this PR links to labs still carry their old standalone limit.output — the OpenRouter 90% placeholder the module itself documents as not a real limit (openrouter.ts, isPlaceholderOutputLimit: "OpenRouter fills max_completion_tokens with 90% of the context … It isn't a real limit, so the lab's output is used instead"). The new hostLimit/labOutputLimit chain resolves these to the lab's cap, so the committed lines contradict the linked lab and cannot be reproduced by the sync: ~google/gemini-flash-latest and ~google/gemini-pro-latest keep output = 943_718 against google/gemini-4-hydrogen / google/gemini-4-carbon (limit.output = 65_536); ~deepseek/deepseek-flash-latest, ~deepseek/deepseek-pro-latest, ~deepseek/deepseek-v4-flash-latest keep output = 943_718 against labs documenting 384_000; ~z-ai/glm-latest keeps output = 943_718 against zhipuai/glm-5.3 (131_072). The next automation sync will rewrite all six (non-idempotent PR state), and until then the catalog publishes output caps up to 14× the models' documented caps. bun validate passes because the placeholder is still below the context. Action: Drop the stale output lines so the caps inherit from the labs, or replay bun models:sync openrouter on these files until --dry-run is clean, matching the state the PR's own test asserts (not.toHaveProperty("limit.output")).
  • [low] [possible mistake] providers/openrouter/models/~moonshotai/kimi-latest.toml:26 - Check: Same retained-override pattern after retargeting. Why: ~moonshotai/kimi-latest keeps output = 943_718 against moonshotai/kimi-k3 (limit.output = 1_048_576), and ~x-ai/grok-latest keeps output = 450_000 against xai/grok-4.7 (500_000). These are only reproducible by the sync if OpenRouter's top_provider.context_length for those alias rows happens to equal the 90% figure (943_718 / 450_000); otherwise they are the same stale placeholder overrides as above. Action: Run the sync replay from the first item over these two files and keep whatever it writes; if the catalog does report the 90% top-provider context, note that in the file header so the override is documented as host-specific.

Integrate dev and replay the 24 rolling rows. The host now lists a 131,072-token completion cap for V4 Flash and updated token prices. The other seven reviewed aliases inherit the lab limits in v1 and v2. Repeating the sync produced no changes.
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/openrouter/models/liquid/d1.2.toml:14 - Check: Every System One route that takes images on a host that is not TypeSafe must set compatibility = { media_input = "state" } on its [api.systemone] table. Why: All eight decision routes rewritten by this PR take image input (liquid/d1.2, liquid/d1.2-ultra, perplexity/pplx-decider-v1.3:free, perplexity/pplx-decider-flash-v1.3:free, ~liquid/d1-latest, ~liquid/d1-ultra-latest, ~perplexity/pplx-decider-latest, ~perplexity/pplx-decider-flash-latest), but the diff shows each [api.systemone] table containing only the sdk line. The repo's own sync code documents that OpenRouter reads images from a state list and ignores TypeSafe's default assets map (withSystemOneMediaInput, packages/core/src/sync/providers/openrouter.ts:404-421), and ~typesafe/jev-latest.toml:14 carries the setting as the in-repo precedent. As merged, the published v2 defaults these routes to assets, so image questions silently lose their images. The patch-4 commit message asserts all eight "already specify api.systemone.compatibility.media_input as 'state'" and that a sync dry-run reported no operations on them — the diff contradicts the first claim, and the sync's v2Set.api injection (which the patch-2 "replay" should have written) contradicts the second. Action: Add compatibility = { media_input = "state" } to all eight [api.systemone] tables, or actually run bun models:sync openrouter on them, and re-verify with a dry-run whose output is reflected in the diff.

  • [medium] [violation] providers/openrouter/models/~google/gemini-flash-latest.toml:8 - Check: After base_model, a file must keep only real host deltas; an unspecified completion cap on a rolling route must come from the current lab (the PR's own hostLimit change). Why: Eight hand-edited alias files keep stale limit.output overrides that contradict the lab base the PR itself links: ~google/gemini-flash-latest and ~google/gemini-pro-latest keep output = 943_718 while google/gemini-4-hydrogen/gemini-4-carbon document 65,536; ~deepseek/deepseek-flash-latest, ~deepseek/deepseek-pro-latest, ~deepseek/deepseek-v4-flash-latest keep 943_718 vs the labs' 384,000; ~moonshotai/kimi-latest keeps 943_718 vs 1,048,576; ~x-ai/grok-latest keeps 450_000 vs 500,000; ~z-ai/glm-latest keeps 943_718 vs 131,072. These are exactly OpenRouter's 90%-of-context filler (943,718 = floor(1,048,576×0.9), 450,000 = floor(500,000×0.9)), which the repo's sync code documents as not a real limit and replaces with the lab's cap (isPlaceholderOutputLimit, packages/core/src/sync/providers/openrouter.ts:54-62). Only the 13 patch-2 routes were replayed through the sync; these files were not, so they publish fabricated output caps (14× overstated for the Gemini aliases) and will be rewritten by the next sync run. Action: Drop the stale output lines in all eight files (or replay them through bun models:sync openrouter) so each alias inherits or writes its lab's documented cap.

  • [low] [violation] providers/openrouter/models/liquid/d1.2.toml:9 - Check: Override-only base_model files must not restate values identical to the base. Why: The four Liquid routes (liquid/d1.2, liquid/d1.2-ultra, ~liquid/d1-latest, ~liquid/d1-ultra-latest) restate output = ["decision"], identical to their lab base's output (only input genuinely differs, dropping audio), and ~unbiased/pareto-latest.toml:11,15 restates output = ["text"] and reasoning = { supported = false }, both identical to unbiased/pareto-26.10. The sync's factoring drops identical keys, so these lines are avoidable hand-authored noise in files the PR rewrote wholesale. Action: Remove the restated lines so each file keeps only its real deltas.

OpenRouter serves the rolling Pro alias on deepseek/deepseek-v4-pro-0813 with a 393,216-token completion cap. Keep that mapping along with the latest host limit and prices from dev. Replaying the rolling catalog a second time produced no changes.
@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [high] [violation] providers/openrouter/models/~google/gemini-flash-latest.toml:24 (also ~google/gemini-pro-latest.toml:24, ~moonshotai/kimi-latest.toml:23, ~x-ai/grok-latest.toml:23, ~z-ai/glm-latest.toml:17, ~deepseek/deepseek-flash-latest.toml:20, ~deepseek/deepseek-v4-flash-latest.toml:16) - Check: After base_model, a file must keep only real host deltas; limit.output must be the host's documented cap or inherited from the lab. Why: These seven aliases now link lab files whose output caps are 65,536 (gemini-4-hydrogen/carbon, "at most 65,536 output tokens"), 1,048,576 (kimi-k3), 500,000 (grok-4.7), 131,072 (glm-5.3), and 384,000 (deepseek-v4.1-flash-1017), yet the files keep output = 943_718 / 450_000 — exactly floor(0.9 × context), the filler this repo's own sync documents as not a real limit and discards (isPlaceholderOutputLimit, packages/core/src/sync/providers/openrouter.ts:54). The same host's fixed routes for the identical models publish the lab values (google/gemini-4-hydrogen.toml, moonshotai/kimi-k3.toml, x-ai/grok-4.7.toml, z-ai/glm-5.3.toml have no [limit]; deepseek/deepseek-v4.1-flash-1017.toml publishes the real 393,216), so the aliases contradict both their base lab and their own host, and the committed state is not the sync's steady state — the next bun models:sync openrouter run rewrites all of them. The PR body also claims ~deepseek/deepseek-v4-flash-latest.toml carries a host-reported 131,072 override (its "one explicit override"), while this diff keeps the 943,718 placeholder there — the diff and the body describe different states, so which is proposed must be reconciled. Action: Delete the placeholder output lines so the aliases inherit the lab output (validation-safe in every case: each lab output ≤ the host context), or replace each with a real host-documented cap with a source; for ~deepseek/deepseek-v4-flash-latest.toml make the committed value match the 131,072 the PR body cites, and re-run bun models:sync openrouter --dry-run to confirm the committed files are the sync's steady state.
  • [medium] [violation] providers/openrouter/models/~anthropic/claude-haiku-latest.toml:11 - Check: Override-only provider files must not restate a description identical to the base lab. Why: The added base_model = "anthropic/claude-haiku-5-5" makes the kept description = "Fast Claude model for responsive assistance, classification, and lightweight agents" a verbatim duplicate of models/anthropic/claude-haiku-5-5.toml's description (AGENTS.md: "Never restate identical data"); the same host's fixed route providers/openrouter/models/anthropic/claude-haiku-5.5.toml correctly inherits it, and the sync's factoring would drop it on the next run. Action: Remove the description line so it is inherited from the lab.

This branch was previously deployed

1 inactive deployment
release — b4b99400 Deployed Nov 27, 2026 by xwl777 via review #21247
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openrouter: ~…-latest aliases have no canonical_model_id, so consumers can't tell which model an alias currently serves

1 participant