mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
fix(copilot-acp): keep acp runtime off responses path
This commit is contained in:
parent
063244bb16
commit
8680f61f8b
4 changed files with 110 additions and 7 deletions
|
|
@ -243,6 +243,22 @@ def test_api_mode_respects_explicit_openrouter_provider_over_codex_url(monkeypat
|
|||
assert agent.provider == "openrouter"
|
||||
|
||||
|
||||
def test_copilot_acp_stays_on_chat_completions_for_gpt_5_models(monkeypatch):
|
||||
_patch_agent_bootstrap(monkeypatch)
|
||||
agent = run_agent.AIAgent(
|
||||
model="gpt-5.4-mini",
|
||||
base_url="acp://copilot",
|
||||
provider="copilot-acp",
|
||||
api_key="copilot-acp",
|
||||
quiet_mode=True,
|
||||
max_iterations=1,
|
||||
skip_context_files=True,
|
||||
skip_memory=True,
|
||||
)
|
||||
assert agent.provider == "copilot-acp"
|
||||
assert agent.api_mode == "chat_completions"
|
||||
|
||||
|
||||
def test_build_api_kwargs_codex(monkeypatch):
|
||||
agent = _build_agent(monkeypatch)
|
||||
kwargs = agent._build_api_kwargs(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue