mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-31 06:51:29 +00:00
test(agent): use realistic qwen-plus identifier in enforcement test
Copilot flagged that `qwen/qwen3.6-plus` is not a real Qwen model identifier (no such version exists). Substring matching only needs "qwen" so the test still proves the path, but using a name that matches the issue body (`qwen-plus`, Alibaba Cloud) is clearer.
This commit is contained in:
parent
403e567cec
commit
9433eabe78
1 changed files with 1 additions and 1 deletions
|
|
@ -1106,7 +1106,7 @@ class TestToolUseEnforcementConfig:
|
||||||
def test_auto_injects_for_qwen(self):
|
def test_auto_injects_for_qwen(self):
|
||||||
"""Qwen models default to chatty/hallucinatory tool use without enforcement."""
|
"""Qwen models default to chatty/hallucinatory tool use without enforcement."""
|
||||||
from agent.prompt_builder import TOOL_USE_ENFORCEMENT_GUIDANCE
|
from agent.prompt_builder import TOOL_USE_ENFORCEMENT_GUIDANCE
|
||||||
agent = self._make_agent(model="qwen/qwen3.6-plus", tool_use_enforcement="auto")
|
agent = self._make_agent(model="qwen/qwen-plus", tool_use_enforcement="auto")
|
||||||
prompt = agent._build_system_prompt()
|
prompt = agent._build_system_prompt()
|
||||||
assert TOOL_USE_ENFORCEMENT_GUIDANCE in prompt
|
assert TOOL_USE_ENFORCEMENT_GUIDANCE in prompt
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue