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:
Hz_
2026-07-02 17:42:33 +08:00
committed by GitHub
parent c8cf0c967d
commit d31640a7a2

View File

@@ -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,