Import AITURK IDE 1.0.0-beta.1 from Hermes 63279301; preserve MIT license
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
"""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"
|
||||
Reference in New Issue
Block a user