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 = { 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,
}, },

View File

@ -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 }],