Repository navigation
Studio: load OpenRouter models from the API - #16562
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: c75e4a0c3b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 783f70f006
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…tions and saving Lock the catalog cache per base URL and key instead of globally, and back off for a minute after a failed refresh that serves the cached copy, so a slow endpoint no longer queues every other connection's catalog request behind repeated timeouts. The automatic catalog load on the OpenRouter form now has its own loading state, so it shows on the Reload button without disabling Save, and each load is retired by request when the form changes, closes or unmounts, so a late response cannot overwrite newer state.
|
Pushed 5e4aff5 on top of this branch. It fixes three things I hit while reviewing:
Tests cover each of these and each was mutation-checked: the backend tests now overlap concurrent requests, and there are new frontend source checks. |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Review done on head
|
Lyxot
left a comment
There was a problem hiding this comment.
LGTM. The live catalog replaces the stale hardcoded list. Codex converged, staging CI is green, and a trial merge onto current main passes the related tests.
The OpenRouter model list in Studio was hardcoded and had gone stale. 8 of the 18 models in it no longer exist on OpenRouter (
anthropic/claude-sonnet-4-5,deepseek/deepseek-r1,mistralai/mistral-large-2411, ...), so picking one just fails. "Reload models" was also disabled for OpenRouter, so the only way to use a newer model was to type its id by hand.OpenRouter now loads its model list from https://openrouter.ai/api/v1/models. That endpoint doesn't need a key, so the list shows up as soon as you pick OpenRouter in the form. The backend caches the list for an hour and serves the last good copy if a refresh fails, so opening the form stays fast and nothing is fetched at startup. Only models that can chat are shown, newest first.
The suggested models at the top are now OpenRouter's
~*-latestaliases (like~anthropic/claude-sonnet-latest) plusopenrouter/freeandopenrouter/auto. OpenRouter keeps those aliases pointed at the newest model, so this list shouldn't need updating by hand again.With today's catalog the form goes from 18 models (8 of them dead) to 380.