Repository navigation
Align OpenRouter defaults and preserve retiring model compatibility - #1321
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
madara88645
marked this pull request as ready for review
October 22, 2026 19:16
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New
ProviderConfigand evolutionary optimizer configurations still defaulted to baregpt-4o, while current cloud execution already defaults toopenai/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:
socksioin the test venv; no manifest change.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.