mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix: Merge models not respecting save directory
This commit is contained in:
parent
41e7b008fb
commit
f398fe4136
@ -50,7 +50,7 @@ export default function ModelConvert(props: ModelConvertProps) {
|
|||||||
const responseBody = {
|
const responseBody = {
|
||||||
base_model: model.base_model,
|
base_model: model.base_model,
|
||||||
model_name: model.model_name,
|
model_name: model.model_name,
|
||||||
body: {
|
params: {
|
||||||
convert_dest_directory:
|
convert_dest_directory:
|
||||||
saveLocation === 'Custom' ? customSaveLocation : undefined,
|
saveLocation === 'Custom' ? customSaveLocation : undefined,
|
||||||
},
|
},
|
||||||
|
@ -65,7 +65,7 @@ type DeleteMainModelResponse = void;
|
|||||||
type ConvertMainModelArg = {
|
type ConvertMainModelArg = {
|
||||||
base_model: BaseModelType;
|
base_model: BaseModelType;
|
||||||
model_name: string;
|
model_name: string;
|
||||||
body: ConvertModelConfig;
|
params: ConvertModelConfig;
|
||||||
};
|
};
|
||||||
|
|
||||||
type ConvertMainModelResponse =
|
type ConvertMainModelResponse =
|
||||||
@ -225,11 +225,11 @@ export const modelsApi = api.injectEndpoints({
|
|||||||
ConvertMainModelResponse,
|
ConvertMainModelResponse,
|
||||||
ConvertMainModelArg
|
ConvertMainModelArg
|
||||||
>({
|
>({
|
||||||
query: ({ base_model, model_name, body }) => {
|
query: ({ base_model, model_name, params }) => {
|
||||||
return {
|
return {
|
||||||
url: `models/convert/${base_model}/main/${model_name}`,
|
url: `models/convert/${base_model}/main/${model_name}`,
|
||||||
method: 'PUT',
|
method: 'PUT',
|
||||||
body: body,
|
params: params,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
invalidatesTags: [{ type: 'MainModel', id: LIST_TAG }],
|
invalidatesTags: [{ type: 'MainModel', id: LIST_TAG }],
|
||||||
|
Loading…
Reference in New Issue
Block a user