From c8b9bf9f753b5a1dce76094763deab1d6556cc40 Mon Sep 17 00:00:00 2001 From: MahtabBukhari Date: Tue, 17 Dec 2024 18:22:46 +0300 Subject: [PATCH] fix 500 error in hivechat response endpoint --- handlers/chat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/chat.go b/handlers/chat.go index b15d5c0d7..efd46c67f 100644 --- a/handlers/chat.go +++ b/handlers/chat.go @@ -344,7 +344,7 @@ func (ch *ChatHandler) ProcessChatResponse(w http.ResponseWriter, r *http.Reques } message := &db.ChatMessage{ - ID: request.MessageID, + ID: xid.New().String(), ChatID: request.ChatID, Message: request.Response, Role: "assistant",