From c07be7386c7be6499d779e8c7f47a158dbd9ce9a Mon Sep 17 00:00:00 2001 From: jialin Date: Thu, 24 Apr 2025 22:16:24 +0800 Subject: [PATCH] revert: remove evaluation loading --- src/components/simple-table/index.tsx | 2 +- .../llmodels/components/deploy-modal.tsx | 21 +++---------------- .../llmodels/components/instance-item.tsx | 2 +- 3 files changed, 5 insertions(+), 20 deletions(-) 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 = ({