From b6d3d35b53a26e8eac61259ef84c52a14f27582f Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Wed, 2 Apr 2025 13:30:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=B1=86=E5=8C=85=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/doubao.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/doubao.go b/service/doubao.go index 4e509e6..1f04a34 100644 --- a/service/doubao.go +++ b/service/doubao.go @@ -90,8 +90,6 @@ func DouBaoV2(modelParam proto.ModelParam, imCtx *proto.IMParamContext) { if err != nil { log.Println("get doubao session history message error:", err) } - messagesStr, _ := json.Marshal(messages) - log.Println("doubao messages:", string(messagesStr)) req := model.CreateChatCompletionRequest{ Model: modelParam.Model, @@ -100,6 +98,8 @@ func DouBaoV2(modelParam proto.ModelParam, imCtx *proto.IMParamContext) { IncludeUsage: true, }, } + messagesStr, _ := json.Marshal(req) + log.Println("doubao req messages:", string(messagesStr)) stream, err := doubaoClient.CreateChatCompletionStream(ctx, req) if err != nil {