Proper fix for model discovery per provider
This commit is contained in:
@@ -26,6 +26,12 @@ class TestOpenAICompatibleTokenUsage(unittest.TestCase):
|
||||
def validate_model_name(self, model_name):
|
||||
return True
|
||||
|
||||
def list_models(self, respect_restrictions=True):
|
||||
return ["test-model"]
|
||||
|
||||
def list_all_known_models(self):
|
||||
return ["test-model"]
|
||||
|
||||
self.provider = TestProvider("test-key")
|
||||
|
||||
def test_extract_usage_with_valid_tokens(self):
|
||||
|
||||
Reference in New Issue
Block a user