Skip to content

Commit

Permalink
fix 500 error in hivechat response endpoint1
Browse files Browse the repository at this point in the history
  • Loading branch information
MahtabBukhari committed Dec 17, 2024
1 parent 58a645e commit fa42b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/chat.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (ch *ChatHandler) ProcessChatResponse(w http.ResponseWriter, r *http.Reques
}

message := &db.ChatMessage{
ID: xid.New().String(),
ID: request.MessageID,
ChatID: request.ChatID,
Message: request.Response,
Role: "assistant",
Expand Down

0 comments on commit fa42b40

Please sign in to comment.