fix(task): 修复任务失败时文本结果未保存的问题
This commit is contained in:
@@ -113,6 +113,7 @@ func (w *asyncWorker) handleOne(ctx context.Context, task *entity.ModelGatewayTa
|
||||
if req.BuildType == public.BuildTypePrompt {
|
||||
mapped, err = w.parseAndRetry(ctx, mapped, task, model, maxRetry)
|
||||
if err != nil {
|
||||
task.TextResult = mapped
|
||||
w.failTask(ctx, task, startTime, err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user