feat: depending on the number of tools in use, this change should save ~50% of overall tokens used. fixes https://github.com/BeehiveInnovations/zen-mcp-server/issues/255 but also refactored individual tools to instead encourage the agent to use the listmodels tool if needed.
This commit is contained in:
@@ -130,9 +130,7 @@ class TestModelEnumeration:
|
||||
models = tool._get_available_models()
|
||||
|
||||
for alias in ("local-llama", "llama3.2"):
|
||||
assert (
|
||||
alias not in models
|
||||
), f"Custom model alias '{alias}' should remain hidden without CUSTOM_API_URL"
|
||||
assert alias not in models, f"Custom model alias '{alias}' should remain hidden without CUSTOM_API_URL"
|
||||
|
||||
def test_no_duplicates_with_overlapping_providers(self):
|
||||
"""Test that models aren't duplicated when multiple providers offer the same model."""
|
||||
|
||||
Reference in New Issue
Block a user