revert: remove evaluation loading

This commit is contained in:
jialin
2025-04-24 22:17:49 +08:00
parent c400003ce9
commit c07be7386c
3 changed files with 5 additions and 20 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ const SimpleTabel: React.FC<SimpleTableProps> = (props) => {
initialize(scroller.current);
}, [initialize]);
return (
<div style={{ maxHeight: 200 }} ref={scroller}>
<div style={{ maxHeight: 240 }} ref={scroller}>
<table
className={classNames('simple-table', theme, {
'simple-table-bordered': bordered
+3 -18
View File
@@ -142,11 +142,7 @@ const AddModal: FC<AddModalProps> = (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<AddModalProps> = (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<AddModalProps> = (props) => {
const displayEvaluateStatus = (data: {
show?: boolean;
flag: Record<string, boolean>;
}) => {
setIsHolderRef(data.flag);
setWarningStatus({
show: isHolderRef.current.model || isHolderRef.current.file,
title: '',
type: 'transition',
message: intl.formatMessage({ id: 'models.form.evaluating' })
});
};
}) => {};
useEffect(() => {
if (open) {
@@ -443,7 +443,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
<Tooltip
overlayInnerStyle={{
width: 'max-content',
maxWidth: '500px',
maxWidth: '520px',
minWidth: '400px'
}}
title={renderDistributedServer(severList)}