From 4cc65bc631d499a8a25e19631009e69ae811fdd3 Mon Sep 17 00:00:00 2001 From: Ben Lopata Date: Tue, 8 Oct 2024 14:51:00 -0500 Subject: [PATCH] Cleanup. --- api/routers/chat.py | 8 ++++++++ www/components/messagebox.tsx | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/api/routers/chat.py b/api/routers/chat.py index e698844..2d5fec0 100644 --- a/api/routers/chat.py +++ b/api/routers/chat.py @@ -58,6 +58,14 @@ def convo_turn(): user_id=user.id, content=response, ) + honcho.apps.users.sessions.metamessages.create( + app_id=app.id, + session_id=str(inp.conversation_id), + user_id=user.id, + message_id=new_ai_message.id, + metamessage_type="thought", + content=thought, + ) return StreamingResponse(convo_turn()) @router.get("/thought/{message_id}") diff --git a/www/components/messagebox.tsx b/www/components/messagebox.tsx index 886463e..165a039 100644 --- a/www/components/messagebox.tsx +++ b/www/components/messagebox.tsx @@ -121,7 +121,6 @@ export default function MessageBox({ className="rounded-full w-6 h-6 lg:w-12 lg:h-12" /> )} - ``
{loading ? (