Files
hermes-agent/hermes_cli
kshitijk4poor 1d27f076c8 refactor: merge openrouter rung into the registry rung in _config_model_provider
Both rungs return (model_cfg, provider) verbatim, so a single
`provider == "openrouter" or provider in PROVIDER_REGISTRY` condition
reads as one intent: an explicit pin on a known aggregator/registry
provider. The 2-line WHY comment stays because openrouter's absence from
PROVIDER_REGISTRY is deliberate (#109397, #10622) and the merged
condition would otherwise look like a mistake.

Also move `base_url = ...` back down to just above `if base_url:`. The
hoist was only needed while the openrouter rung inspected base_url;
since f57fbfbb46 that rung honours mirrors unconditionally, so the early
read is dead and the assignment belongs next to its sole consumer.
2026-09-21 21:41:36 +05:30
..
…
…
…
…
…
…