fix: Merge models not respecting save directory

This commit is contained in:
blessedcoolant 2023-07-17 17:59:05 +12:00
parent 41e7b008fb
commit f398fe4136
2 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ export default function ModelConvert(props: ModelConvertProps) {
const responseBody = {
base_model: model.base_model,
model_name: model.model_name,
body: {
params: {
convert_dest_directory:
saveLocation === 'Custom' ? customSaveLocation : undefined,
},

View File

@ -65,7 +65,7 @@ type DeleteMainModelResponse = void;
type ConvertMainModelArg = {
base_model: BaseModelType;
model_name: string;
body: ConvertModelConfig;
params: ConvertModelConfig;
};
type ConvertMainModelResponse =
@ -225,11 +225,11 @@ export const modelsApi = api.injectEndpoints({
ConvertMainModelResponse,
ConvertMainModelArg
>({
query: ({ base_model, model_name, body }) => {
query: ({ base_model, model_name, params }) => {
return {
url: `models/convert/${base_model}/main/${model_name}`,
method: 'PUT',
body: body,
params: params,
};
},
invalidatesTags: [{ type: 'MainModel', id: LIST_TAG }],