Add files via upload

This commit is contained in:
公明
2026-05-20 16:45:59 +08:00
committed by GitHub
parent ae25a243ac
commit 7ba7476c4f
13 changed files with 190 additions and 26 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ func (h *ConversationHandler) CreateConversation(c *gin.Context) {
title = "新对话"
}
conv, err := h.db.CreateConversation(title)
conv, err := h.db.CreateConversation(title, audit.ConversationCreateMetaFromGin(c, "api"))
if err != nil {
h.logger.Error("创建对话失败", zap.Error(err))
c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})