mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-29 15:23:51 +00:00
naming fix
This commit is contained in:
parent
f131c28db7
commit
d6df949049
3 changed files with 4 additions and 4 deletions
|
@ -217,7 +217,7 @@ class DatasetsRoutingTable(CommonRoutingTableImpl, Datasets):
|
|||
|
||||
async def get_dataset(
|
||||
self, dataset_identifier: str
|
||||
) -> Optional[ModelDefWithProvider]:
|
||||
) -> Optional[DatasetDefWithProvider]:
|
||||
return self.get_object_by_identifier(identifier)
|
||||
|
||||
async def register_dataset(self, dataset_def: DatasetDefWithProvider) -> None:
|
||||
|
|
|
@ -11,8 +11,8 @@ async def get_provider_impl(
|
|||
config: MetaReferenceDatasetIOConfig,
|
||||
_deps,
|
||||
):
|
||||
from .datasetio import MetaReferenceDatasetioImpl
|
||||
from .datasetio import MetaReferenceDatasetIOImpl
|
||||
|
||||
impl = MetaReferenceDatasetioImpl(config)
|
||||
impl = MetaReferenceDatasetIOImpl(config)
|
||||
await impl.initialize()
|
||||
return impl
|
||||
|
|
|
@ -90,7 +90,7 @@ class PandasDataframeDataset(BaseDataset):
|
|||
self.df = df
|
||||
|
||||
|
||||
class MetaReferenceDatasetioImpl(DatasetIO, DatasetsProtocolPrivate):
|
||||
class MetaReferenceDatasetIOImpl(DatasetIO, DatasetsProtocolPrivate):
|
||||
def __init__(self, config: MetaReferenceDatasetIOConfig) -> None:
|
||||
self.config = config
|
||||
# local registry for keeping track of datasets within the provider
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue