refactor: trimmed some prompts

style: version tool output now mentions the default model in use
This commit is contained in:
Fahad
2025-10-01 21:55:05 +04:00
parent d9449c7bb6
commit f69ff03c4d
5 changed files with 50 additions and 22 deletions

View File

@@ -93,7 +93,7 @@ class TestAutoMode:
# Model field should have detailed descriptions
model_schema = schema["properties"]["model"]
assert "enum" not in model_schema
assert "auto model selection" in model_schema["description"].lower()
assert "auto mode" in model_schema["description"].lower()
assert "listmodels" in model_schema["description"]
finally:
@@ -289,7 +289,7 @@ class TestAutoMode:
schema = tool.get_model_field_schema()
assert "enum" not in schema
assert schema["type"] == "string"
assert "auto model selection" in schema["description"]
assert "auto mode" in schema["description"].lower()
assert "listmodels" in schema["description"]
# Test normal mode

View File

@@ -87,7 +87,7 @@ class TestChatTool:
# Description should route callers to listmodels, regardless of mode
assert "listmodels" in schema["description"]
if self.tool.is_effective_auto_mode():
assert "auto model selection" in schema["description"]
assert "auto mode" in schema["description"].lower()
else:
import config