feat(api): mm metadata route "meta" -> "metadata"

This commit is contained in:
psychedelicious 2024-02-24 17:42:56 +11:00 committed by Brandon Rising
parent 8deca6c9e6
commit 35c9a29722

View File

@ -202,7 +202,7 @@ async def list_model_summary(
@model_manager_router.get( @model_manager_router.get(
"/i/{key}/meta", "/i/{key}/metadata",
operation_id="get_model_metadata", operation_id="get_model_metadata",
responses={ responses={
200: { 200: {
@ -218,7 +218,7 @@ async def get_model_metadata(
"""Get a model metadata object.""" """Get a model metadata object."""
record_store = ApiDependencies.invoker.services.model_manager.store record_store = ApiDependencies.invoker.services.model_manager.store
result: Optional[AnyModelRepoMetadata] = record_store.get_metadata(key) result: Optional[AnyModelRepoMetadata] = record_store.get_metadata(key)
return result return result