# NousResearch/hermes-agent · Copilot api_mode routing ignores model context

## Open now

- 1 issue, 1 PR open on GitHub.
- #94881: Copilot provider: determine_api_mode() is model-blind, pins api_mode: chat_completions into config and breaks all Responses-API-only models
- PR #145095: fix(runtime): let the profile's per-model wire beat a persisted api_mode

These items address a bug where determine_api_mode() for the Copilot provider is model-unaware, causing api_mode to be incorrectly pinned to chat_completions and breaking models that require the Responses API. The fix makes api_mode routing model-aware and ensures per-model settings take precedence.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 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.50`: 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

- #94881: Copilot provider: determine_api_mode() is model-blind, pins api_mode: chat_completions into config and breaks all Responses-API-only models

## Prior & competing PRs

- **#94904: fix(models): make determine_api_mode model-aware for Copilot's dual wire**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
- **#99448: fix(copilot): per-model api_mode routing wins over persisted model.api_mode for multi-endpoint routing**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#94881`, `#99443`
- **#145095: fix(runtime): let the profile's per-model wire beat a persisted api_mode**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `010f119d4829c28a955c2e91845c5dc8803de2ce`, `9b0ef382f13f`, `609785baefb4`, `#94881`, `#146876`
  - files: `agent/provider_route_hooks.py`, `hermes_cli/runtime_provider.py`, `tests/hermes_cli/test_runtime_api_mode_persisted_vs_profile.py`, `website/docs/developer-guide/model-provider-plugin.md`

## Fix status

- No merged fix on record.
- Subsystem: `hermes_cli`
- Kind: `bug` (from the open issues' GitHub type labels).
