# NousResearch/hermes-agent · Fallback provider API mode routing fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #70961: v0.19.0: fallback_providers routes to /chat/completions instead of /v1/messages, primary is correct
- PR #16346: fix(agent): respect fallback api_mode overrides
- PR #70981: fix(agent): preserve api_mode in fallback_providers routing (#70961)

These issues and pull requests address a bug where fallback providers incorrectly route to the wrong API endpoint, and work to preserve the correct api_mode setting during fallback provider routing.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #70961: v0.19.0: fallback_providers routes to /chat/completions instead of /v1/messages, primary is correct

## Prior & competing PRs

- **#16346: fix(agent): respect fallback api_mode overrides**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/agent_init.py`, `agent/chat_completion_helpers.py`, `gateway/run.py`, `hermes_cli/runtime_provider.py`, `tests/gateway/test_auth_fallback.py`, `tests/gateway/test_session_model_override_routing.py`, `tests/run_agent/test_init_fallback_on_exhausted_pool.py`, `tests/run_agent/test_provider_fallback.py`
- **#70981: fix(agent): preserve api_mode in fallback_providers routing (#70961)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/chat_completion_helpers.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
