fix(setup): prevent OpenRouter model list fallback for Nous provider#575
Merged
teknium1 merged 1 commit intoMar 8, 2026
Merged
Conversation
When `fetch_nous_models()` fails silently during setup, the model selection falls through to the OpenRouter static list. Users then pick models in OpenRouter format (e.g. `anthropic/claude-opus-4.6`) which the Nous inference API rejects with a 400 "missing model" error. Add an explicit `elif selected_provider == "nous"` branch that prompts for manual model entry instead of falling through to the generic OpenRouter fallback.
1 task
Contributor
|
Merged in 4267355 — thanks for the clean fix and the detailed issue writeup @PercyDikec! |
angelburgosrosado
pushed a commit
to angelburgosrosado/hermes-agent
that referenced
this pull request
Apr 27, 2026
…fallback for Nous provider Authored by PercyDikec. Fixes NousResearch#574. # Conflicts: # hermes_cli/setup.py
02356abc
pushed a commit
to 02356abc/hermes-agent
that referenced
this pull request
May 14, 2026
…fallback for Nous provider Authored by PercyDikec. Fixes NousResearch#574. # Conflicts: # hermes_cli/setup.py
olympus-terminal
pushed a commit
to olympus-terminal/hermes-agent
that referenced
this pull request
May 16, 2026
…fallback for Nous provider Authored by PercyDikec. Fixes NousResearch#574. # Conflicts: # hermes_cli/setup.py
Egavasyug
pushed a commit
to Egavasyug/hermes-agent
that referenced
this pull request
Jun 10, 2026
…fallback for Nous provider Authored by PercyDikec. Fixes NousResearch#574. # Conflicts: # hermes_cli/setup.py
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.
What does this PR do?
When
fetch_nous_models()fails silently duringhermes setup, the model selection falls through to the OpenRouter static list. Users pick a model in OpenRouter format (e.g.,anthropic/claude-opus-4.6), but the Nous inference API expects bare model IDs (e.g.,claude-opus-4-6) and rejects the request with a400 missing modelerror.This PR adds an explicit
elif selected_provider == "nous"branch that catches the case when Nous is selected but the model list is empty. Instead of falling through to the OpenRouter list, it warns the user and prompts for manual model entry with a Nous-format example.Related Issue
Fixes #574
Type of Change
Changes Made
hermes_cli/setup.py: Addedelif selected_provider == "nous"branch between the successful Nous model list case and the Codex case. When Nous model fetch fails, warns the user and prompts for manual model name entry instead of falling through to the OpenRouter static list.How to Test
hermes setup, select Nous Portal, complete logininference-api.nousresearch.com):Checklist
Code
Documentation & Housekeeping