feat: added intelligence_score to the model capabilities schema; a 1-20 number that can be specified to influence the sort order of models presented to the CLI in auto selection mode
fix: model definition re-introduced into the schema but intelligently and only a summary is generated per tool. Required to ensure CLI calls and uses the correct model fix: removed `model` param from some tools where this wasn't needed fix: fixed adherence to `*_ALLOWED_MODELS` by advertising only the allowed models to the CLI fix: removed duplicates across providers when passing canonical names back to the CLI; the first enabled provider wins
This commit is contained in:
@@ -174,6 +174,7 @@ class TestOpenRouterAutoMode:
|
||||
mock_config = Mock()
|
||||
mock_config.is_custom = False
|
||||
mock_config.aliases = [] # Empty list of aliases
|
||||
mock_config.get_effective_capability_rank = Mock(return_value=50) # Add ranking method
|
||||
return mock_config
|
||||
return None
|
||||
|
||||
@@ -220,6 +221,7 @@ class TestOpenRouterAutoMode:
|
||||
# Mock the resolve method to return model configs with aliases
|
||||
mock_model_config = Mock()
|
||||
mock_model_config.aliases = [] # Empty aliases for simplicity
|
||||
mock_model_config.get_effective_capability_rank = Mock(return_value=50) # Add ranking method
|
||||
mock_registry.resolve.return_value = mock_model_config
|
||||
|
||||
ModelProviderRegistry.register_provider(ProviderType.OPENROUTER, OpenRouterProvider)
|
||||
|
||||
Reference in New Issue
Block a user