fix: should response

This commit is contained in:
2023-10-31 18:35:29 +08:00
parent 7572ecf19b
commit 98a15052a2

View File

@@ -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)