fix: do not set default deployment name
This commit is contained in:
@@ -319,7 +319,6 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log('handleOnSelectModel:', item, selectedModel);
|
|
||||||
setIsGGUF(item.isGGUF);
|
setIsGGUF(item.isGGUF);
|
||||||
clearCacheFormValues();
|
clearCacheFormValues();
|
||||||
unlockWarningStatus();
|
unlockWarningStatus();
|
||||||
@@ -327,7 +326,6 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
state: EvaluateProccess.model,
|
state: EvaluateProccess.model,
|
||||||
requestModelId: updateRequestModelId()
|
requestModelId: updateRequestModelId()
|
||||||
});
|
});
|
||||||
updateSelectedModel(item);
|
|
||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
form.current?.resetFields(resetFields);
|
form.current?.resetFields(resetFields);
|
||||||
@@ -345,6 +343,8 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
categories: getCategory(item)
|
categories: getCategory(item)
|
||||||
});
|
});
|
||||||
|
|
||||||
|
updateSelectedModel(item);
|
||||||
|
|
||||||
let warningStatus: MessageStatus = {
|
let warningStatus: MessageStatus = {
|
||||||
show: true,
|
show: true,
|
||||||
title: '',
|
title: '',
|
||||||
@@ -425,7 +425,6 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const handleBackendChange = async (backend: string) => {
|
const handleBackendChange = async (backend: string) => {
|
||||||
console.log('handleBackendChange:', backend);
|
|
||||||
const data = form.current.form.getFieldsValue?.();
|
const data = form.current.form.getFieldsValue?.();
|
||||||
const res = handleBackendChangeBefore(data);
|
const res = handleBackendChangeBefore(data);
|
||||||
if (res.show) {
|
if (res.show) {
|
||||||
|
|||||||
Reference in New Issue
Block a user