mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-27 01:25:32 +00:00
chore(misc): update datasets, benchmarks to use alpha, beta prefixes (#3891)
This will be landed together with https://github.com/llamastack/llama-stack-client-python/pull/282 (hence CI will be red on this one.) I have verified locally that tests pass with the updated version of the client-sdk.
This commit is contained in:
parent
7918188f1e
commit
0e57233a0a
3 changed files with 15 additions and 13 deletions
|
|
@ -78,18 +78,18 @@ def data_url_from_file(file_path: str) -> str:
|
|||
],
|
||||
)
|
||||
def test_register_and_iterrows(llama_stack_client, purpose, source, provider_id, limit):
|
||||
dataset = llama_stack_client.datasets.register(
|
||||
dataset = llama_stack_client.beta.datasets.register(
|
||||
purpose=purpose,
|
||||
source=source,
|
||||
)
|
||||
assert dataset.identifier is not None
|
||||
assert dataset.provider_id == provider_id
|
||||
iterrow_response = llama_stack_client.datasets.iterrows(dataset.identifier, limit=limit)
|
||||
iterrow_response = llama_stack_client.beta.datasets.iterrows(dataset.identifier, limit=limit)
|
||||
assert len(iterrow_response.data) == limit
|
||||
|
||||
dataset_list = llama_stack_client.datasets.list()
|
||||
dataset_list = llama_stack_client.beta.datasets.list()
|
||||
assert dataset.identifier in [d.identifier for d in dataset_list]
|
||||
|
||||
llama_stack_client.datasets.unregister(dataset.identifier)
|
||||
dataset_list = llama_stack_client.datasets.list()
|
||||
llama_stack_client.beta.datasets.unregister(dataset.identifier)
|
||||
dataset_list = llama_stack_client.beta.datasets.list()
|
||||
assert dataset.identifier not in [d.identifier for d in dataset_list]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue