mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-03 01:01:56 +08:00
fix(go): shared chatbot session id length (#16559)
## Summary - use the project-standard 32-character ID generator when creating shared chatbot sessions - fix MySQL insert failures caused by writing 36-character UUID strings into `api_4_conversation.id`
This commit is contained in:
@@ -40,7 +40,6 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/google/uuid"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"ragflow/internal/agent/canvas"
|
||||
@@ -284,7 +283,7 @@ func (s *BotService) ChatbotCompletion(
|
||||
},
|
||||
})
|
||||
session = &entity.API4Conversation{
|
||||
ID: uuid.NewString(),
|
||||
ID: common.GenerateUUID(),
|
||||
DialogID: dialogID,
|
||||
UserID: tenantID,
|
||||
Message: seedMsg,
|
||||
|
||||
Reference in New Issue
Block a user