mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-06 10:42:39 +00:00
fix safety
This commit is contained in:
parent
2c20b88a3f
commit
7fdc9e04ac
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ def data_url_from_image(file_path):
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def available_shields(llama_stack_client):
|
def available_shields(llama_stack_client):
|
||||||
return [shield.identifier for shield in llama_stack_client.shields.list()]
|
return [shield.identifier for shield in llama_stack_client.shields.list().data]
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
|
@ -54,7 +54,7 @@ def code_scanner_shield_id(available_shields):
|
||||||
@pytest.fixture(scope="session")
|
@pytest.fixture(scope="session")
|
||||||
def model_providers(llama_stack_client):
|
def model_providers(llama_stack_client):
|
||||||
return set(
|
return set(
|
||||||
[x.provider_id for x in llama_stack_client.providers.list()["inference"]]
|
[x["provider_id"] for x in llama_stack_client.providers.list().inference]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue