fix: 主动消息同步推送到平台适配器(QQ)
This commit is contained in:
@@ -91,7 +91,11 @@ func (cs *ConversationStore) saveToDB(sessionID string, msg model.LLMMessage) {
|
||||
sessionID, string(msg.Role), msg.Content, msg.Timestamp,
|
||||
)
|
||||
if err != nil {
|
||||
logger.Printf("[context] saveToDB insert error: %v", err)
|
||||
logger.Printf("[context] saveToDB insert error: %v (session=%s)", err, sessionID)
|
||||
}
|
||||
// 只对非心跳消息打日志
|
||||
if len(msg.Content) > 5 {
|
||||
logger.Printf("[context] saveToDB ok: session=%s role=%s len=%d", sessionID, msg.Role, len(msg.Content))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user