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'], }),