Skip to content

Align OpenRouter defaults and preserve retiring model compatibility - #1321

Merged
madara88645 merged 1 commit into
mainfrom
fix/openrouter-retirement-compatibility
Oct 22, 2026
Merged

madara88645 merged 1 commit into
mainfrom
fix/openrouter-retirement-compatibility

Conversation

@madara88645

Copy link
Copy Markdown
Owner

New ProviderConfig and evolutionary optimizer configurations still defaulted to bare gpt-4o, while current cloud execution already defaults to openai/gpt-oss-20b. Explicit old OpenRouter configurations also need a clear retirement path without silently changing a paid model or relabeling historical costs.

This aligns new defaults with GPT-OSS-20B and adds an exact-id policy for all eight model ids in OpenRouter's 19 October notice, plus their legacy short spellings. OpenRouter requests retain the original model with a warning before 14 January 2027; at/after the deadline they fail locally with an actionable model-selection error. Both WorkerClient's effective overrides and the OpenAI-compatible HTTP adapter are covered. The policy is scoped to the exact OpenRouter hostname: direct OpenAI/other endpoints keep their supplied ids.

Historical GPT-4o catalog rows, saved model values and prices remain readable. Prompt/run estimates warn about retirement rather than silently using a replacement model's prices. GPT-OSS-20B's reviewed rate is refreshed to $0.018 input / $0.09 output per million tokens in backend and frontend records, with its own 21 October verification date. Other catalog verification dates are preserved.

Validation:

  • Full backend suite: 2,758 passed, 5 skipped, 30 collection/deprecation warnings (152.56s). Live tests are opt-in and skipped.
  • New retirement tests: 20 passed, including date boundaries, short names, historical prices, preserved preferences, exact host scope, and no POST on rejected models.
  • Relevant frontend tests: 21 passed across benchmark/optimizer pages.
  • Frontend production build, changed-file Ruff checks and diff whitespace checks passed.
  • Initial environment-only SOCKS dependency failures were resolved by installing socksio in the test venv; no manifest change.
  • No provider API key was available, so no authenticated completion or production behavior is claimed.

Draft pending authenticated cloud smoke checks and operator review of any explicitly configured retiring model. No default model-family replacement with Luna is attempted: Luna requires removing unsupported temperature and evaluating reasoning/output budgets. Existing flat-rate estimators also do not cover every long-context tier.

Full audit and alternatives: docs/qa/2026-10-21-openrouter-retirement.md. It separately records the pre-existing CLI --model/factory signature mismatch and run/provider estimate drift; those are not claimed fixed by this patch. The optional direct OpenAI example is unchanged. No merge or production deployment performed.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
compiler Ready Ready Preview Oct 21, 2026 9:48pm UTC

@madara88645
madara88645 marked this pull request as ready for review October 22, 2026 19:16
@madara88645
madara88645 merged commit 80d83c4 into main Oct 22, 2026
12 checks passed

This branch was successfully deployed

1 active deployment
Preview — 45d425fa Deployed Oct 21, 2026 by vercel[bot]
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.

1 participant