feat(task): 添加构建模型名称字段支持动态校验
- 在ModelGatewayTask实体中新增BuildModelName字段 - 修改ParseAndValidate函数参数,支持传入requiredFields - 在异步工作器中实现构建模型的动态字段校验逻辑 - 添加prompt构建服务中传递构建模型名称的功能 - 实现构建模型不存在时的兜底机制
This commit is contained in:
@@ -21,6 +21,7 @@ type modelGatewayTaskCol struct {
|
||||
TmpFile string
|
||||
RequestPayload string
|
||||
EpicycleId string
|
||||
BuildModelName string
|
||||
}
|
||||
|
||||
var ModelGatewayTaskCol = modelGatewayTaskCol{
|
||||
@@ -40,6 +41,7 @@ var ModelGatewayTaskCol = modelGatewayTaskCol{
|
||||
TmpFile: "tmp_file",
|
||||
RequestPayload: "request_payload",
|
||||
EpicycleId: "epicycle_id",
|
||||
BuildModelName: "build_model_name",
|
||||
}
|
||||
|
||||
// ModelGatewayTask 模型网关任务
|
||||
@@ -60,6 +62,7 @@ type ModelGatewayTask struct {
|
||||
TmpFile string `orm:"tmp_file" json:"tmpFile"`
|
||||
RequestPayload *RequestPayload `orm:"request_payload" json:"requestPayload"`
|
||||
EpicycleId int64 `orm:"epicycle_id" json:"epicycleId"`
|
||||
BuildModelName string `orm:"build_model_name" json:"buildModelName"`
|
||||
}
|
||||
|
||||
// ResultFile OSS 结果文件
|
||||
|
||||
Reference in New Issue
Block a user