// 运行效果相关
import { request } from '@/utils/request'

// 获取在特定数据集上运行过的模型列表
export const getModelByDatasetApi = async (datasetName: string) => {
  return await request({
    url: `/performance/datasets/${datasetName}/models`,
    method: 'GET'
  })
}

// 获取特定模型在特定数据集上的性能记录
export const getPerformanceApi = async (data: Record<string, any>) => {
  return await request({
    url: `/performance/datasets/${data.datasetName}/models/${data.modelName}/${data.checkpoint_dir}`,
    method: 'GET'
  })
}

