chore: import upstream snapshot with attribution
Update draft releases / main (push) Has been cancelled
Build and push docs image / build-image (push) Has been cancelled
Build Web Application / build-web (macos-latest) (push) Has been cancelled
Build Web Application / build-web (ubuntu-latest) (push) Has been cancelled
Python Code Quality Checks / build (push) Has been cancelled
Test Python / test-python (macos-latest, 3.10) (push) Has been cancelled
Test Python / test-python (macos-latest, 3.11) (push) Has been cancelled
Test Python / test-python (ubuntu-latest, 3.10) (push) Has been cancelled
Test Python / test-python (ubuntu-latest, 3.11) (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 13:27:08 +08:00
commit d13100ebf3
4413 changed files with 764874 additions and 0 deletions
@@ -0,0 +1,16 @@
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`);
};
+23
View File
@@ -0,0 +1,23 @@
import type { createBenchmarkTaskRequest, getBenchmarkTaskListRequest } from '@/types/models_evaluation';
import { getUserId } from '@/utils';
import { GET, POST } from '../index';
const userId = getUserId();
//get benchmark task list
export const getBenchmarkTaskList = (data: getBenchmarkTaskListRequest) => {
return GET<getBenchmarkTaskListRequest, Record<string, any>>(`/api/v1/evaluate/benchmark_task_list`, data, {
headers: {
'user-id': userId,
},
});
};
// create benchmark task
export const createBenchmarkTask = (data: createBenchmarkTaskRequest) => {
return POST<createBenchmarkTaskRequest, Record<string, any>>(`/api/v1/evaluate/execute_benchmark_task`, data, {
headers: {
'user-id': userId,
},
});
};
@@ -0,0 +1,6 @@
import { GET } from '../index';
// 获取评测结果详情
export const getBenchmarkResultDetail = (evaluateCode: string) => {
return GET<string, any>(`/api/v2/serve/evaluate/benchmark/result/${evaluateCode}`);
};