feat(copilot): align thread message payloads
This commit is contained in:
@@ -74,7 +74,7 @@ func (h *SSEStreamHandler) StreamCopilotMessage(c *gin.Context) {
|
||||
c.Header("X-Accel-Buffering", "no") // disable nginx buffering
|
||||
|
||||
// Get thread for context
|
||||
thread, err := h.copilotSvc.GetThread(c.Request.Context(), uint(threadID))
|
||||
thread, err := h.copilotSvc.GetThreadByID(c.Request.Context(), uint(threadID))
|
||||
if err != nil {
|
||||
applogger.L().Errorf("SSE GetThread: %v", err)
|
||||
writeSSEMessage(c, "error", `{"error": "thread not found"}`)
|
||||
|
||||
Reference in New Issue
Block a user