From 619532ef369910ab442b25498ca700722833b62b Mon Sep 17 00:00:00 2001 From: LuckyDeer <38307359+CoolProgramme@users.noreply.github.com> Date: Tue, 12 Sep 2023 11:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20issues=20#247=20=20(#253)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * imitate api * bug fix: imitate api mod deletion * bug fix: imitate api mod deletion v2 * simulate api return result optimization * 修复 issues #247 ,imitate报错返回不是合法json的问题 --- api/imitate/api.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/imitate/api.go b/api/imitate/api.go index b0b4cf223..c4ceb01e5 100644 --- a/api/imitate/api.go +++ b/api/imitate/api.go @@ -67,9 +67,6 @@ func CreateChatCompletions(c *gin.Context) { response, done := sendConversationRequest(c, translatedRequest, token) if done { - c.JSON(500, gin.H{ - "error": "error sending request", - }) return } @@ -106,9 +103,6 @@ func CreateChatCompletions(c *gin.Context) { response, done = sendConversationRequest(c, translatedRequest, token) if done { - c.JSON(500, gin.H{ - "error": "error sending request", - }) return }