Skip to content

fix(setup): OpenCode Zen/Go show OpenRouter models instead of their own#2277

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-5d6932ba
Mar 21, 2026
Merged

fix(setup): OpenCode Zen/Go show OpenRouter models instead of their own#2277
teknium1 merged 1 commit intomainfrom
hermes/hermes-5d6932ba

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

After selecting OpenCode Zen or Go in hermes setup, the model selection page showed OpenRouter models. These providers weren't in the list that routes to _setup_provider_model_selection() — they fell through to the else branch which shows the OpenRouter catalog.

Users ended up with an OpenCode API key + OpenRouter model name → Provider resolver returned an empty API key on first use.

One-line fix: add opencode-zen and opencode-go to the provider tuple at line 1717.

After selecting OpenCode Zen or Go as provider in hermes setup, the
model selection page showed OpenRouter models because these providers
weren't in the list that routes to _setup_provider_model_selection().
They fell through to the else branch which shows the OpenRouter catalog.

Users ended up with an OpenCode API key but an OpenRouter model name,
causing 'Provider resolver returned an empty API key' on first use.

Fix: add opencode-zen and opencode-go to the provider list that uses
_setup_provider_model_selection() for live /models detection.
@teknium1 teknium1 merged commit b748fcf into main Mar 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant