revert: remove evaluation loading
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)}
|
||||
|
||||
Reference in New Issue
Block a user