From bb9d47055e78a39023ee41cfd053a26ff9f6df51 Mon Sep 17 00:00:00 2001 From: liuhuapiaoyuan <278780765@qq.com> Date: Sun, 28 Jan 2024 12:05:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=97=A5=E5=BF=97info->debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend-api/backend-api.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/backend-api/backend-api.go b/backend-api/backend-api.go index 4cb0b45..a2b1df5 100644 --- a/backend-api/backend-api.go +++ b/backend-api/backend-api.go @@ -170,7 +170,6 @@ func AttachGPT4Mobile(ctx g.Ctx, response *http.Response) error { func CreateConversation(ctx g.Ctx, userId int, chatgptId int, AccessToken string, userAgent string, conversationPath string) { // 提取 /backend-api/conversation/gen_title/{id} id := strings.Split(conversationPath, "/")[4] - UpStream := config.CHATPROXY(ctx) // 请求后端接口 @@ -209,14 +208,14 @@ func CreateConversation(ctx g.Ctx, userId int, chatgptId int, AccessToken string func RemoveCreateConversation(ctx g.Ctx, response *http.Response, conversationPath string) { g.Log().Debug(ctx, "RemoveCreateConversation", conversationPath) id := strings.Split(conversationPath, "/")[3] - g.Log().Info(ctx, "提取出的ID", id) + g.Log().Debug(ctx, "提取出的ID", id) originalBody, shouldReturn, err := loadRespString(response) if err != nil || shouldReturn { return } resJson := gjson.New(string(originalBody)) - g.Log().Info(ctx, "conversation will removed", resJson) + g.Log().Debug(ctx, "conversation will removed", resJson) if resJson.Get("success").Bool() { cool.DBM(model.NewChatgptHistory()).Where("conversation_id", id).Delete() }