From 4420392241c317dfe13e844395497a0806eddd7b Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Sat, 24 Feb 2024 17:43:14 +1100 Subject: [PATCH] fix(ui): fix metadata route --- invokeai/frontend/web/src/services/api/endpoints/models.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/invokeai/frontend/web/src/services/api/endpoints/models.ts b/invokeai/frontend/web/src/services/api/endpoints/models.ts index e7c5151e3f..e8dad92467 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/models.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/models.ts @@ -27,7 +27,7 @@ type UpdateModelResponse = paths['/api/v2/models/i/{key}']['patch']['responses'] type GetModelConfigResponse = paths['/api/v2/models/i/{key}']['get']['responses']['200']['content']['application/json']; type GetModelMetadataResponse = - paths['/api/v2/models/i/{key}/meta']['get']['responses']['200']['content']['application/json']; + paths['/api/v2/models/i/{key}/metadata']['get']['responses']['200']['content']['application/json']; type ListModelsArg = NonNullable; @@ -150,7 +150,7 @@ export const modelsApi = api.injectEndpoints({ }), getModelMetadata: build.query({ query: (key) => { - return buildModelsUrl(`i/${key}/meta`); + return buildModelsUrl(`i/${key}/metadata`); }, providesTags: ['Model'], }),