feat: 更新后端配置、Docker部署、API模块及多项文档
- 更新后端 main.py、config.py 核心配置 - 更新 compute API 模块 - 更新 Docker 部署配置(app/compute docker-compose、nginx、环境变量) - 更新前端 API 模块(dataset、model、request)及 vite 配置 - 更新多项项目文档(架构、部署、开发计划、日志等) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -89,10 +89,10 @@ export const downloadFileUrl = (
|
||||
fileId: string | number,
|
||||
versionId?: string,
|
||||
) => {
|
||||
const baseUrl = `/api/dataset-manage/download/${datasetId}/${fileId}`
|
||||
const baseUrl = `/modelTF/dataset-manage/download/${datasetId}/${fileId}`
|
||||
return versionId ? `${baseUrl}?version_id=${encodeURIComponent(versionId)}` : baseUrl
|
||||
}
|
||||
|
||||
/** 打包下载数据集 URL */
|
||||
export const downloadDatasetUrl = (datasetId: string | number) =>
|
||||
`/api/dataset-manage/download/${datasetId}`
|
||||
`/modelTF/dataset-manage/download/${datasetId}`
|
||||
|
||||
@@ -45,4 +45,4 @@ export const mergeModel = (data: {
|
||||
|
||||
/** 导出已训练模型权重 */
|
||||
export const exportModelUrl = (modelName: string) =>
|
||||
`/api/model-manage/trained-models/${encodeURIComponent(modelName)}/export`
|
||||
`/modelTF/model-manage/trained-models/${encodeURIComponent(modelName)}/export`
|
||||
|
||||
@@ -12,8 +12,8 @@ export interface ApiResult<T = any> {
|
||||
}
|
||||
|
||||
const service: AxiosInstance = axios.create({
|
||||
// Use a relative path; Vite proxies /api to http://localhost:17861 in local development.
|
||||
baseURL: '/api',
|
||||
// Use a relative path; Vite proxies /modelTF to http://localhost:17861 in local development.
|
||||
baseURL: '/modelTF',
|
||||
timeout: 30000,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user