mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-02 08:44:44 +00:00
fix typo
This commit is contained in:
parent
d42a9ea53d
commit
f592408978
1 changed files with 8 additions and 7 deletions
|
@ -24,13 +24,14 @@ def skip_if_model_doesnt_support_completion(client_with_models, model_id):
|
||||||
providers = {p.provider_id: p for p in client_with_models.providers.list()}
|
providers = {p.provider_id: p for p in client_with_models.providers.list()}
|
||||||
provider = providers[provider_id]
|
provider = providers[provider_id]
|
||||||
if (
|
if (
|
||||||
provider.provider_type
|
provider.provider_type
|
||||||
in (
|
in (
|
||||||
"remote::openai",
|
"remote::openai",
|
||||||
"remote::anthropic",
|
"remote::anthropic",
|
||||||
"remote::gemini",
|
"remote::gemini",
|
||||||
"remote::groq",
|
"remote::groq",
|
||||||
"remote::sambanova",
|
"remote::sambanova",
|
||||||
|
)
|
||||||
or "openai-compat" in provider.provider_type
|
or "openai-compat" in provider.provider_type
|
||||||
):
|
):
|
||||||
pytest.skip(f"Model {model_id} hosted by {provider.provider_type} doesn't support completion")
|
pytest.skip(f"Model {model_id} hosted by {provider.provider_type} doesn't support completion")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue