revert: remove evaluation loading
This commit is contained in:
@@ -56,7 +56,7 @@ const SimpleTabel: React.FC<SimpleTableProps> = (props) => {
|
|||||||
initialize(scroller.current);
|
initialize(scroller.current);
|
||||||
}, [initialize]);
|
}, [initialize]);
|
||||||
return (
|
return (
|
||||||
<div style={{ maxHeight: 200 }} ref={scroller}>
|
<div style={{ maxHeight: 240 }} ref={scroller}>
|
||||||
<table
|
<table
|
||||||
className={classNames('simple-table', theme, {
|
className={classNames('simple-table', theme, {
|
||||||
'simple-table-bordered': bordered
|
'simple-table-bordered': bordered
|
||||||
|
|||||||
@@ -142,11 +142,7 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
categories: getCategory(item)
|
categories: getCategory(item)
|
||||||
});
|
});
|
||||||
|
|
||||||
if (
|
if (item.fakeName) {
|
||||||
item.fakeName &&
|
|
||||||
!isHolderRef.current.model &&
|
|
||||||
!isHolderRef.current.file
|
|
||||||
) {
|
|
||||||
handleShowCompatibleAlert(item.evaluateResult);
|
handleShowCompatibleAlert(item.evaluateResult);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -157,10 +153,7 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
setIsGGUF(false);
|
setIsGGUF(false);
|
||||||
form.current?.form?.resetFields(resetFields);
|
form.current?.form?.resetFields(resetFields);
|
||||||
const modelInfo = onSelectModel(item, props.source);
|
const modelInfo = onSelectModel(item, props.source);
|
||||||
console.log('isholderRef', isHolderRef.current);
|
handleShowCompatibleAlert(item.evaluateResult);
|
||||||
if (!isHolderRef.current.model && !isHolderRef.current.file) {
|
|
||||||
handleShowCompatibleAlert(item.evaluateResult);
|
|
||||||
}
|
|
||||||
form.current?.setFieldsValue?.({
|
form.current?.setFieldsValue?.({
|
||||||
...getDefaultSpec(item),
|
...getDefaultSpec(item),
|
||||||
...modelInfo,
|
...modelInfo,
|
||||||
@@ -263,15 +256,7 @@ const AddModal: FC<AddModalProps> = (props) => {
|
|||||||
const displayEvaluateStatus = (data: {
|
const displayEvaluateStatus = (data: {
|
||||||
show?: boolean;
|
show?: boolean;
|
||||||
flag: Record<string, 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(() => {
|
useEffect(() => {
|
||||||
if (open) {
|
if (open) {
|
||||||
|
|||||||
@@ -443,7 +443,7 @@ const InstanceItem: React.FC<InstanceItemProps> = ({
|
|||||||
<Tooltip
|
<Tooltip
|
||||||
overlayInnerStyle={{
|
overlayInnerStyle={{
|
||||||
width: 'max-content',
|
width: 'max-content',
|
||||||
maxWidth: '500px',
|
maxWidth: '520px',
|
||||||
minWidth: '400px'
|
minWidth: '400px'
|
||||||
}}
|
}}
|
||||||
title={renderDistributedServer(severList)}
|
title={renderDistributedServer(severList)}
|
||||||
|
|||||||
Reference in New Issue
Block a user