diff --git a/src/components/simple-table/index.tsx b/src/components/simple-table/index.tsx index 264ba1d6..9d2ea8a6 100644 --- a/src/components/simple-table/index.tsx +++ b/src/components/simple-table/index.tsx @@ -56,7 +56,7 @@ const SimpleTabel: React.FC = (props) => { initialize(scroller.current); }, [initialize]); return ( -
+
= (props) => { categories: getCategory(item) }); - if ( - item.fakeName && - !isHolderRef.current.model && - !isHolderRef.current.file - ) { + if (item.fakeName) { handleShowCompatibleAlert(item.evaluateResult); } }; @@ -157,10 +153,7 @@ const AddModal: FC = (props) => { setIsGGUF(false); form.current?.form?.resetFields(resetFields); const modelInfo = onSelectModel(item, props.source); - console.log('isholderRef', isHolderRef.current); - if (!isHolderRef.current.model && !isHolderRef.current.file) { - handleShowCompatibleAlert(item.evaluateResult); - } + handleShowCompatibleAlert(item.evaluateResult); form.current?.setFieldsValue?.({ ...getDefaultSpec(item), ...modelInfo, @@ -263,15 +256,7 @@ const AddModal: FC = (props) => { const displayEvaluateStatus = (data: { show?: boolean; flag: Record; - }) => { - setIsHolderRef(data.flag); - setWarningStatus({ - show: isHolderRef.current.model || isHolderRef.current.file, - title: '', - type: 'transition', - message: intl.formatMessage({ id: 'models.form.evaluating' }) - }); - }; + }) => {}; useEffect(() => { if (open) { diff --git a/src/pages/llmodels/components/instance-item.tsx b/src/pages/llmodels/components/instance-item.tsx index 579bd5d6..03570807 100644 --- a/src/pages/llmodels/components/instance-item.tsx +++ b/src/pages/llmodels/components/instance-item.tsx @@ -443,7 +443,7 @@ const InstanceItem: React.FC = ({