fix: merge conflicts (name renamed to model_name) for models

This commit is contained in:
blessedcoolant 2023-07-14 15:53:28 +12:00
parent 16e93c6455
commit abe2a0f9b4
3 changed files with 8 additions and 6 deletions

View File

@ -71,7 +71,7 @@ export default function CheckpointModelEdit(props: CheckpointModelEditProps) {
const editModelFormSubmitHandler = (values: CheckpointModelConfig) => {
const responseBody = {
base_model: retrievedModel.base_model,
model_name: retrievedModel.name,
model_name: retrievedModel.model_name,
body: values,
};
updateMainModel(responseBody);

View File

@ -67,7 +67,7 @@ export default function DiffusersModelEdit(props: DiffusersModelEditProps) {
const editModelFormSubmitHandler = (values: DiffusersModelConfig) => {
const responseBody = {
base_model: retrievedModel.base_model,
model_name: retrievedModel.name,
model_name: retrievedModel.model_name,
body: values,
};
updateMainModel(responseBody);

View File

@ -38,7 +38,7 @@ export default function ModelConvert(props: ModelConvertProps) {
const modelConvertHandler = () => {
const responseBody = {
base_model: model.base_model,
model_name: model.name,
model_name: model.model_name,
};
convertModel(responseBody);
@ -46,7 +46,9 @@ export default function ModelConvert(props: ModelConvertProps) {
dispatch(
addToast(
makeToast({
title: `${t('modelManager.modelConversionFailed')}: ${model.name}`,
title: `${t('modelManager.modelConversionFailed')}: ${
model.model_name
}`,
status: 'error',
})
)
@ -57,7 +59,7 @@ export default function ModelConvert(props: ModelConvertProps) {
dispatch(
addToast(
makeToast({
title: `${t('modelManager.modelConverted')}: ${model.name}`,
title: `${t('modelManager.modelConverted')}: ${model.model_name}`,
status: 'success',
})
)
@ -67,7 +69,7 @@ export default function ModelConvert(props: ModelConvertProps) {
return (
<IAIAlertDialog
title={`${t('modelManager.convert')} ${model.name}`}
title={`${t('modelManager.convert')} ${model.model_name}`}
acceptCallback={modelConvertHandler}
cancelCallback={modelConvertCancelHandler}
acceptButtonText={`${t('modelManager.convert')}`}