fix: use html audio to load stream

This commit is contained in:
jialin
2026-03-17 16:35:55 +08:00
committed by jialin
parent c29ad1270b
commit 9aae2c7f50
17 changed files with 1000 additions and 385 deletions
+21 -1
View File
@@ -9,6 +9,7 @@ import { useQueryModelList } from '@/pages/llmodels/services/use-query-model-lis
import { useIntl, useNavigate } from '@umijs/max';
import { useMemoizedFn } from 'ahooks';
import { ConfigProvider, Table, message } from 'antd';
import { createStyles } from 'antd-style';
import _ from 'lodash';
import { useEffect } from 'react';
import NoResult from '../_components/no-result';
@@ -35,6 +36,23 @@ import useQueryDataset from './services/use-query-dataset';
import useQueryProfiles from './services/use-query-profiles';
import useStopBenchmark from './services/use-stop-benchmark';
const useStyle = createStyles(({ css, token }) => {
const antCls = '.ant';
return {
customTable: css`
${antCls}-table {
${antCls}-table-container {
${antCls}-table-body,
${antCls}-table-content {
scrollbar-width: thin;
scrollbar-color: var(--color-scrollbar-thumb) transparent;
}
}
}
`
};
});
const Benchmark: React.FC = () => {
const {
dataSource,
@@ -58,6 +76,7 @@ const Benchmark: React.FC = () => {
watch: true,
contentForDelete: 'menu.models.benchmark'
});
const { styles } = useStyle();
const intl = useIntl();
const navigate = useNavigate();
const { openBenchmarkModal, closeBenchmarkModal, openBenchmarkModalStatus } =
@@ -242,13 +261,14 @@ const Benchmark: React.FC = () => {
<Table
tableLayout="fixed"
columns={columns}
className={styles.customTable}
dataSource={dataSource.dataList}
rowSelection={rowSelection}
loading={dataSource.loading}
sortDirections={TABLE_SORT_DIRECTIONS}
showSorterTooltip={false}
rowKey="id"
scroll={{ x: 1260 }}
scroll={{ x: 1200 }}
onChange={handleTableChange}
pagination={{
showSizeChanger: true,