mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-10 04:08:31 +00:00
huggingface
This commit is contained in:
parent
081ec3131d
commit
9b38ae9323
1 changed files with 0 additions and 8 deletions
|
@ -402,14 +402,6 @@ class DatasetsRoutingTable(CommonRoutingTableImpl, Datasets):
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Unknown data source type: {source.type}")
|
raise ValueError(f"Unknown data source type: {source.type}")
|
||||||
|
|
||||||
if provider_id is None:
|
|
||||||
# If provider_id not specified, use the only provider if it supports this dataset
|
|
||||||
if len(self.impls_by_provider_id) == 1:
|
|
||||||
provider_id = list(self.impls_by_provider_id.keys())[0]
|
|
||||||
else:
|
|
||||||
raise ValueError(
|
|
||||||
f"No provider specified and multiple providers available. Please specify a provider_id. Available providers: {self.impls_by_provider_id.keys()}"
|
|
||||||
)
|
|
||||||
if metadata is None:
|
if metadata is None:
|
||||||
metadata = {}
|
metadata = {}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue