mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-25 17:18:11 +00:00
23 lines
723 B
Python
23 lines
723 B
Python
"""Tests for Copilot model API-mode routing."""
|
|
|
|
from __future__ import annotations
|
|
|
|
|
|
def test_copilot_claude_stays_on_chat_completions_even_if_catalog_lists_messages():
|
|
from hermes_cli.models import copilot_model_api_mode
|
|
|
|
catalog = [
|
|
{
|
|
"id": "claude-opus-4.8",
|
|
"supported_endpoints": ["/v1/messages"],
|
|
}
|
|
]
|
|
|
|
assert copilot_model_api_mode("claude-opus-4.8", catalog=catalog) == "chat_completions"
|
|
|
|
|
|
def test_copilot_gpt5_still_uses_responses_api():
|
|
from hermes_cli.models import copilot_model_api_mode
|
|
|
|
assert copilot_model_api_mode("gpt-5.5", catalog=[]) == "codex_responses"
|
|
assert copilot_model_api_mode("gpt-5-mini", catalog=[]) == "chat_completions"
|