Skip to content

fix(coderd): preserve gateway model names (#26039)#26063

Open
github-actions[bot] wants to merge 1 commit into
release/2.34from
backport/26039-to-2.34
Open

fix(coderd): preserve gateway model names (#26039)#26063
github-actions[bot] wants to merge 1 commit into
release/2.34from
backport/26039-to-2.34

Conversation

@github-actions
Copy link
Copy Markdown

@github-actions github-actions Bot commented Jun 4, 2026

Cherry-pick of #26039

Original PR: #26039 — fix(coderd): preserve gateway model names
Merge commit: 502c5ac
Requested by: @ibetitsmike

OpenAI-compatible gateway providers such as OpenRouter require
slash-namespaced model IDs to reach the intended upstream model, but
native OpenAI routing strips those prefixes.

Preserve full model IDs for gateway provider types, reject
OpenRouter-like providers configured as native `openai` when a slash
model would be stripped, and validate chat model config changes under
the provider reference lock while still allowing unrelated edits to
existing configs.

Split from #26005.

> Mux created this PR on behalf of Mike.

(cherry picked from commit 502c5ac)
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