mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-28 08:32:00 +00:00
add code for register, unregister
This commit is contained in:
parent
1e77873a02
commit
2baf252f71
3 changed files with 44 additions and 31 deletions
|
|
@ -438,7 +438,10 @@ class DatasetsRoutingTable(CommonRoutingTableImpl, Datasets):
|
|||
provider_dataset_id = dataset_id
|
||||
|
||||
# infer provider from source
|
||||
if source.type == DatasetType.rows.value:
|
||||
if metadata:
|
||||
if metadata.get("provider"):
|
||||
provider_id = metadata.get("provider") # pass through from nvidia datasetio
|
||||
elif source.type == DatasetType.rows.value:
|
||||
provider_id = "localfs"
|
||||
elif source.type == DatasetType.uri.value:
|
||||
# infer provider from uri
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue