remote-task-excutor-cli/pkg/models/handler.go

15 lines
507 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package models
// SubmitTaskRequest 提交任务的请求结构体
type SubmitTaskRequest struct {
RunConfig RunConfig `json:"run_config"` // 运行配置
CodeID int `json:"code_id"` // 上传代码返回的ID
ModelID int `json:"model_id"` // 上传模型返回的ID
DatasetID int `json:"dataset_id"` // 数据集ID可选
}
// UploadCodeRequest 上传代码的请求结构体
type UploadCodeRequest struct {
RunConfig RunConfig `json:"run_config"` // 运行配置
}