diff --git a/process.go b/process.go index ab1b63c..694f935 100644 --- a/process.go +++ b/process.go @@ -99,7 +99,9 @@ func processRequest(c *gin.Context, upstream *OPENAI_UPSTREAM, record *Record, s errCtx = err // abort to error handle - // c.AbortWithError(502, err) + if shouldResponse { + c.AbortWithError(502, err) + } log.Println("response is", r.Response)