fix: benchmark detail styles

This commit is contained in:
jialin
2026-01-30 18:48:55 +08:00
parent d173e2d49b
commit 3df2d23bf5
24 changed files with 310 additions and 218 deletions
-15
View File
@@ -1,4 +1,3 @@
import SealInput from '@/components/seal-form/seal-input';
import SealSelect from '@/components/seal-form/seal-select';
import { PageAction } from '@/config';
import useAppUtils from '@/hooks/use-app-utils';
@@ -31,16 +30,6 @@ const DatasetForm: React.FC = () => {
cancelRequest: cancelProfilesRequest
} = useQueryProfiles();
const handleOnDataSetChange = (value: any, option: any) => {
form.setFieldsValue({
dataset_id: option?.data?.id,
dataset_prompt_tokens: option?.prompt_tokens,
dataset_output_tokens: option?.output_tokens,
request_rate: null,
total_requests: null
});
};
const handleProfileChange = (value: string, option: any) => {
if (value !== ProfileValueMap.Custom) {
const dataset_id = datasetList.find(
@@ -86,13 +75,9 @@ const DatasetForm: React.FC = () => {
></SealSelect>
</Form.Item>
<Form.Item<FormData> hidden name="dataset_id">
<SealInput.Input></SealInput.Input>
</Form.Item>
<RandomSettingsForm
datasetList={datasetList}
datasetLoading={datasetLoading}
handleOnDataSetChange={handleOnDataSetChange}
></RandomSettingsForm>
</>
);