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 = {
|
||||
base_model: model.base_model,
|
||||
model_name: model.model_name,
|
||||
body: {
|
||||
params: {
|
||||
convert_dest_directory:
|
||||
saveLocation === 'Custom' ? customSaveLocation : undefined,
|
||||
},
|
||||
|
@ -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 }],
|
||||
|
Loading…
Reference in New Issue
Block a user