fix: benchmark tooltip
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import BaseSelect from '@/components/seal-form/base/select';
|
||||
import { modelCategoriesMap } from '@/pages/llmodels/config';
|
||||
import { SearchOutlined, SyncOutlined } from '@ant-design/icons';
|
||||
import { useIntl } from '@umijs/max';
|
||||
import { Button, Input, Space } from 'antd';
|
||||
@@ -31,6 +32,15 @@ const RightActions: React.FC<RightActionsProps> = ({
|
||||
|
||||
const handleGPUChange = debounceUpdateFilter;
|
||||
|
||||
const modelOptions = modelList
|
||||
?.filter((item) => {
|
||||
return item.categories.includes(modelCategoriesMap.llm);
|
||||
})
|
||||
.map((item) => ({
|
||||
label: item.label,
|
||||
value: item.label
|
||||
}));
|
||||
|
||||
return (
|
||||
<Space>
|
||||
<Input
|
||||
@@ -63,7 +73,7 @@ const RightActions: React.FC<RightActionsProps> = ({
|
||||
id: 'benchmark.table.filter.bymodel'
|
||||
})}
|
||||
style={{ width: 200 }}
|
||||
options={modelList}
|
||||
options={modelOptions}
|
||||
onChange={(value, option) =>
|
||||
handleQueryChange({
|
||||
model_name: value,
|
||||
|
||||
Reference in New Issue
Block a user