mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
make inplace optional, default to true
This commit is contained in:
parent
c7b2bdb846
commit
a28547b3dd
@ -54,7 +54,7 @@ type ConvertMainModelResponse =
|
|||||||
|
|
||||||
type InstallModelArg = {
|
type InstallModelArg = {
|
||||||
source: paths['/api/v2/models/install']['post']['parameters']['query']['source'];
|
source: paths['/api/v2/models/install']['post']['parameters']['query']['source'];
|
||||||
inplace: paths['/api/v2/models/install']['post']['parameters']['query']['inplace'];
|
inplace?: paths['/api/v2/models/install']['post']['parameters']['query']['inplace'];
|
||||||
};
|
};
|
||||||
type InstallModelResponse = paths['/api/v2/models/install']['post']['responses']['201']['content']['application/json'];
|
type InstallModelResponse = paths['/api/v2/models/install']['post']['responses']['201']['content']['application/json'];
|
||||||
|
|
||||||
@ -177,7 +177,7 @@ export const modelsApi = api.injectEndpoints({
|
|||||||
invalidatesTags: ['Model'],
|
invalidatesTags: ['Model'],
|
||||||
}),
|
}),
|
||||||
installModel: build.mutation<InstallModelResponse, InstallModelArg>({
|
installModel: build.mutation<InstallModelResponse, InstallModelArg>({
|
||||||
query: ({ source, inplace }) => {
|
query: ({ source, inplace = true }) => {
|
||||||
return {
|
return {
|
||||||
url: buildModelsUrl('install'),
|
url: buildModelsUrl('install'),
|
||||||
params: { source, inplace },
|
params: { source, inplace },
|
||||||
|
Loading…
Reference in New Issue
Block a user