Skip to content

[Jamie] Allow slashes in OTHER/OpenRouter LLM model names - #5231

Merged
Evanfeenstra merged 1 commit into
masterfrom
swarm/swarm-change-43405caa
Sep 2, 2026
Merged

[Jamie] Allow slashes in OTHER/OpenRouter LLM model names#5231
Evanfeenstra merged 1 commit into
masterfrom
swarm/swarm-change-43405caa

Conversation

@Evanfeenstra

Copy link
Copy Markdown
Contributor

PR #5227 added SAFE_NAME_RE that rejects / in LlmModel.name. OpenRouter ids are vendor/model and are stored in name for provider=OTHER, so admin save/edit of those rows now 400s.

This keeps the slash block for first-class providers (the xAI key-confusion case) and allows /-delimited segments only when provider is OTHER. providerLabel still cannot contain slashes (it is the first path segment used for API-key resolution).

PR #5227 added `SAFE_NAME_RE` that rejects `/` in `LlmModel.name`. OpenRouter ids are `vendor/model` and are stored in `name` for `provider=OTHER`, so admin save/edit of those rows now 400s.

This keeps the slash block for first-class providers (the xAI key-confusion case) and allows `/`-delimited segments only when `provider` is `OTHER`. `providerLabel` still cannot contain slashes (it is the first path segment used for API-key resolution).
@Evanfeenstra Evanfeenstra added the jamie Automated PR opened by Jamie label Sep 2, 2026 — with Hive Chat PM
@Evanfeenstra
Evanfeenstra enabled auto-merge (squash) September 2, 2026 16:40
@Evanfeenstra
Evanfeenstra merged commit 4180945 into master Sep 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

jamie Automated PR opened by Jamie

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant