Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(go): shared chatbot session id length (#16559)

Hz_d31640a7a27e
diff --git a/internal/service/bot_completion.go b/internal/service/bot_completion.go
index 3677eb39c6..e61172ec66 100644
--- a/internal/service/bot_completion.go
+++ b/internal/service/bot_completion.go
@@ -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,