Skip to content

Commit

Permalink
feat: respond with error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcguire1 committed Dec 14, 2023
1 parent f5d2a34 commit daeefb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/sqs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ func (handler *SqsHandler) ProcessChatGPTRequest(ctx context.Context, req *chatm
With("prompt", req.Prompt).
With("error", err).
Error("failed to process chat model request")
return err

response = "I encountered an error processing your request, " + err.Error()
}

since := time.Since(execTime)
Expand Down

0 comments on commit daeefb3

Please sign in to comment.