mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-02-17 11:54:26 +08:00
重写重新生成的逻辑
This commit is contained in:
@@ -269,8 +269,6 @@ func (h *ChatHandler) sendMessage(ctx context.Context, input ChatInput, c *gin.C
|
||||
tokens += tks
|
||||
chatCtx = append(chatCtx, v)
|
||||
}
|
||||
|
||||
logger.Debugf("聊天上下文:%+v", chatCtx)
|
||||
}
|
||||
reqMgs := make([]any, 0)
|
||||
|
||||
@@ -332,8 +330,6 @@ func (h *ChatHandler) sendMessage(ctx context.Context, input ChatInput, c *gin.C
|
||||
})
|
||||
}
|
||||
|
||||
logger.Debugf("请求消息: %+v", req.Messages)
|
||||
|
||||
return h.sendOpenAiMessage(req, userVo, ctx, input, c)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user