diff --git a/service/task/worker.go b/service/task/worker.go index 322e1c3..34903e1 100644 --- a/service/task/worker.go +++ b/service/task/worker.go @@ -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 }