Files
DB-GPT/web/client/api/models_evaluation/datasets.ts
alanchen 368f42227e feat(benchmark): Support Falcon Text2SQL Datasets LLM benchmark (#2918)
Co-authored-by: yaoyifan-yyf <yaoyifan.yyf@antgroup.com>
Co-authored-by: alan.cl <alan.cl@antgroup.com>
Co-authored-by: iterminatorheart <123625928+iterminatorheart@users.noreply.github.com>
Co-authored-by: VLADIMIR KOBZEV <vladimir.kobzev@improvado.io>
Co-authored-by: Aries-ckt <916701291@qq.com>
Co-authored-by: xiandu.wl <xiandu.wl@antgroup.com>
2025-10-23 14:26:36 +08:00

17 lines
568 B
TypeScript

import { GET } from '../index';
// 获取数据集列表
export const getBenchmarkDatasets = () => {
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/list_datasets`);
};
// 获取数据集下的物理表列表
export const getBenchmarkDatasetTables = (datasetId: string) => {
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/dataset/${datasetId}`);
};
// 获取表数据
export const getBenchmarkTableRows = (datasetId: string, table: string) => {
return GET<null, any>(`/api/v2/serve/evaluate/benchmark/dataset/${datasetId}/${table}/rows`);
};