mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
test(opencode-zen): cover dotted MiniMax model ids
This commit is contained in:
parent
2367c6ffd5
commit
85bd667040
1 changed files with 8 additions and 0 deletions
|
|
@ -208,6 +208,14 @@ class TestNormalizeModelForProvider:
|
||||||
assert cli.model == "claude-sonnet-4-6"
|
assert cli.model == "claude-sonnet-4-6"
|
||||||
assert cli.api_mode == "anthropic_messages"
|
assert cli.api_mode == "anthropic_messages"
|
||||||
|
|
||||||
|
def test_opencode_zen_minimax_preserves_dots_and_uses_chat_completions(self):
|
||||||
|
cli = _make_cli(model="minimax-m2.5-free")
|
||||||
|
cli.api_mode = "anthropic_messages"
|
||||||
|
changed = cli._normalize_model_for_provider("opencode-zen")
|
||||||
|
assert changed is True
|
||||||
|
assert cli.model == "minimax-m2.5-free"
|
||||||
|
assert cli.api_mode == "chat_completions"
|
||||||
|
|
||||||
def test_default_model_replaced(self):
|
def test_default_model_replaced(self):
|
||||||
"""No model configured (empty default) gets swapped for codex."""
|
"""No model configured (empty default) gets swapped for codex."""
|
||||||
import cli as _cli_mod
|
import cli as _cli_mod
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue