From 83458e649a1ab14b8ed40a5ddaa2e3df70efa17f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Thu, 4 Jul 2024 19:41:42 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20AI=20=E6=A8=A1=E5=9E=8B=E5=92=8C=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AE=BE=E7=BD=AE=E4=B8=BA=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/friend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/friend.go b/app/friend.go index 71a4212..5026f74 100644 --- a/app/friend.go +++ b/app/friend.go @@ -19,7 +19,7 @@ type changeStatusParam struct { // changeUseAiModelParam // @description: 修改使用的AI模型用的参数集 type changeUseAiModelParam struct { - WxId string `json:"wxid" binding:"required"` // 群Id或微信Id + WxId string `json:"wxid"` // 群Id或微信Id Model string `json:"model" binding:"required"` // 模型代码 } From 703e183424fa706006109e06a4a679b3d4227746 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Thu, 4 Jul 2024 21:17:29 +0800 Subject: [PATCH 2/2] :bug: Fix a bug. --- app/friend.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/friend.go b/app/friend.go index 5026f74..1bd2e6a 100644 --- a/app/friend.go +++ b/app/friend.go @@ -19,8 +19,8 @@ type changeStatusParam struct { // changeUseAiModelParam // @description: 修改使用的AI模型用的参数集 type changeUseAiModelParam struct { - WxId string `json:"wxid"` // 群Id或微信Id - Model string `json:"model" binding:"required"` // 模型代码 + WxId string `json:"wxid" binding:"required"` // 群Id或微信Id + Model string `json:"model"` // 模型代码 } // autoClearMembers