mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix sync model endpoint
This commit is contained in:
parent
782d15af13
commit
18904f79ef
@ -74,7 +74,7 @@ type AddMainModelArg = {
|
|||||||
|
|
||||||
type AddMainModelResponse = paths['/api/v2/models/add']['post']['responses']['201']['content']['application/json'];
|
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 =
|
export type SearchFolderResponse =
|
||||||
paths['/api/v2/models/search']['get']['responses']['200']['content']['application/json'];
|
paths['/api/v2/models/search']['get']['responses']['200']['content']['application/json'];
|
||||||
@ -259,7 +259,7 @@ export const modelsApi = api.injectEndpoints({
|
|||||||
query: () => {
|
query: () => {
|
||||||
return {
|
return {
|
||||||
url: buildModelsUrl('sync'),
|
url: buildModelsUrl('sync'),
|
||||||
method: 'POST',
|
method: 'PATCH',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
invalidatesTags: ['Model'],
|
invalidatesTags: ['Model'],
|
||||||
|
Loading…
Reference in New Issue
Block a user