File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
invokeai/frontend/web/src/services/api/endpoints Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ type ConvertMainModelResponse =
54
54
55
55
type InstallModelArg = {
56
56
source : paths [ '/api/v2/models/install' ] [ 'post' ] [ 'parameters' ] [ 'query' ] [ 'source' ] ;
57
- inplace : paths [ '/api/v2/models/install' ] [ 'post' ] [ 'parameters' ] [ 'query' ] [ 'inplace' ] ;
57
+ inplace ? : paths [ '/api/v2/models/install' ] [ 'post' ] [ 'parameters' ] [ 'query' ] [ 'inplace' ] ;
58
58
} ;
59
59
type InstallModelResponse = paths [ '/api/v2/models/install' ] [ 'post' ] [ 'responses' ] [ '201' ] [ 'content' ] [ 'application/json' ] ;
60
60
@@ -177,7 +177,7 @@ export const modelsApi = api.injectEndpoints({
177
177
invalidatesTags : [ 'Model' ] ,
178
178
} ) ,
179
179
installModel : build . mutation < InstallModelResponse , InstallModelArg > ( {
180
- query : ( { source, inplace } ) => {
180
+ query : ( { source, inplace = true } ) => {
181
181
return {
182
182
url : buildModelsUrl ( 'install' ) ,
183
183
params : { source, inplace } ,
You can’t perform that action at this time.
0 commit comments