From 418f7ad86edffe94cc6698e299035d144a31c5bf Mon Sep 17 00:00:00 2001 From: dal Date: Tue, 4 Mar 2025 15:24:57 -0700 Subject: [PATCH] get chat --- api/src/routes/ws/threads_and_messages/get_thread.rs | 2 +- api/src/routes/ws/threads_and_messages/threads_router.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/routes/ws/threads_and_messages/get_thread.rs b/api/src/routes/ws/threads_and_messages/get_thread.rs index 1105babf1..c41fde6a5 100644 --- a/api/src/routes/ws/threads_and_messages/get_thread.rs +++ b/api/src/routes/ws/threads_and_messages/get_thread.rs @@ -72,7 +72,7 @@ pub async fn get_thread_ws( let get_thread_ws_message = WsResponseMessage::new( WsRoutes::Threads(ThreadRoute::Get), - WsEvent::Threads(ThreadEvent::GetThreadState), + WsEvent::Threads(ThreadEvent::GetChat), &thread, None, user, diff --git a/api/src/routes/ws/threads_and_messages/threads_router.rs b/api/src/routes/ws/threads_and_messages/threads_router.rs index a626f12d7..bd39afe7d 100644 --- a/api/src/routes/ws/threads_and_messages/threads_router.rs +++ b/api/src/routes/ws/threads_and_messages/threads_router.rs @@ -75,6 +75,7 @@ pub enum ThreadEvent { GeneratingResponseMessage, GeneratingReasoningMessage, Complete, + GetChat, } pub async fn threads_router(