From 18904f79efda168e3a4fe0b84c1ccb7e0ca3f684 Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Wed, 21 Feb 2024 14:45:30 -0500 Subject: [PATCH] fix sync model endpoint --- 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 2552a7e839..48ee2a7f08 100644 --- a/invokeai/frontend/web/src/services/api/endpoints/models.ts +++ b/invokeai/frontend/web/src/services/api/endpoints/models.ts @@ -74,7 +74,7 @@ type AddMainModelArg = { type AddMainModelResponse = paths['/api/v2/models/add']['post']['responses']['201']['content']['application/json']; -type SyncModelsResponse = paths['/api/v2/models/sync']['post']['responses']['201']['content']['application/json']; +type SyncModelsResponse = paths['/api/v2/models/sync']['patch']['responses']['204']['content']['application/json']; export type SearchFolderResponse = paths['/api/v2/models/search']['get']['responses']['200']['content']['application/json']; @@ -259,7 +259,7 @@ export const modelsApi = api.injectEndpoints({ query: () => { return { url: buildModelsUrl('sync'), - method: 'POST', + method: 'PATCH', }; }, invalidatesTags: ['Model'],