From 1ac2c02197fe90c28388d7684eed2abb6dfa23c1 Mon Sep 17 00:00:00 2001 From: michelia Date: Fri, 5 Jun 2026 12:15:20 +0800 Subject: [PATCH] fix: change benchmark model name query condition to input --- src/pages/benchmark/filters/index.tsx | 31 ++++++++------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/src/pages/benchmark/filters/index.tsx b/src/pages/benchmark/filters/index.tsx index 36cf668c..cf6142f6 100644 --- a/src/pages/benchmark/filters/index.tsx +++ b/src/pages/benchmark/filters/index.tsx @@ -1,4 +1,3 @@ -import { modelCategoriesMap } from '@/pages/llmodels/config'; import { SearchOutlined } from '@ant-design/icons'; import { BaseSelect, FilterForm } from '@gpustack/core-ui'; import { useIntl } from '@umijs/max'; @@ -23,17 +22,13 @@ interface FilterFormContentProps { initialValues?: any; open?: boolean; ref?: any; - modelList?: Global.BaseOption[]; onClose?: () => void; onClear?: () => void; onValuesChange: (values: any) => void; } const FilterFormContent: React.FC = forwardRef( - ( - { initialValues, onClose, onClear, onValuesChange, open, modelList }, - ref - ) => { + ({ initialValues, onClose, onClear, onValuesChange, open }, ref) => { const intl = useIntl(); const filterRef = useRef(null); @@ -41,15 +36,6 @@ const FilterFormContent: React.FC = forwardRef( onValuesChange?.(allValues); }; - const modelOptions = modelList - ?.filter((item) => { - return item.categories?.includes(modelCategoriesMap.llm); - }) - .map((item) => ({ - label: item.label, - value: item.label - })); - useImperativeHandle(ref, () => ({ reset: () => { filterRef.current?.reset(); @@ -116,16 +102,17 @@ const FilterFormContent: React.FC = forwardRef( - {/* item.value)} - > */} - + } placeholder={intl.formatMessage({ id: 'benchmark.table.filter.bymodel' })} - options={modelOptions} - > + allowClear + >