hermes - 💡(How to fix) Fix config priority: OpenRouter catalog overrides explicit custom provider [2 pull requests]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fixed

RAW_BUFFERClick to expand / collapse

When a user explicitly configures model.base_url and model.provider: custom in ~/.hermes/config.yaml, switching to a model whose name matches an OpenRouter catalog entry causes Hermes to override the configured base_url and route the request to OpenRouter, completely bypassing the user's custom endpoint.\n\nSteps to reproduce:\n1. In ~/.hermes/config.yaml set:\n model:\n base_url: "https://api.minimaxi.com/v1"\n provider: "custom"\n default: "MiniMax-M2.7"\n2. Ensure OPENROUTER_API_KEY is set in ~/.hermes/.env\n3. Run: hermes chat -m MiniMax-M2.5\n4. Observe: requests routed to openrouter.ai instead of the configured base_url.\n\nExpected behavior:\n- Hermes should respect explicit config.model settings (provider/base_url/model_mapping) before consulting the OpenRouter catalog.\n\nProposed minimal fix:\n- In hermes_cli/models.py detect_provider_for_model(), honor config.model.provider/base_url mapping before calling _find_openrouter_slug.\n\nLogs/trace:\n- See examples in ~/.hermes/logs/ mentioning 'Failed to fetch model metadata from OpenRouter' and local skill docs in skills/autonomous-ai-agents/hermes-agent referencing the model-switch bug.\n\nImpact:\n- Medium (P2): can leak keys and silently route traffic to third-party provider; causes confusion and incorrect billing/authorization failures.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING