This commit is contained in:
Wen Zhou 2025-07-24 21:06:24 +02:00 committed by GitHub
commit beae27975b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 176 additions and 2 deletions

View file

@ -19,3 +19,12 @@ class TestProviders:
pid = provider.provider_id
provider = llama_stack_client.providers.retrieve(pid)
assert provider is not None
def test_providers_metrics_field(self, llama_stack_client: LlamaStackAsLibraryClient | LlamaStackClient):
"""Test metrics field is in provider responses."""
provider_list = llama_stack_client.providers.list()
assert provider_list is not None
assert len(provider_list) > 0
for provider in provider_list:
assert provider.metrics is None or isinstance(provider.metrics, str)