refactor: trimmed some prompts
style: version tool output now mentions the default model in use
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user