From 98a15052a283cbfe37fa37bc3315d7ef4680211c Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Tue, 31 Oct 2023 18:35:29 +0800 Subject: [PATCH] fix: should response --- process.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)