fix: should response
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user