From 45df0b272d21566a5eb95ce87471301c7c725034 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Wed, 18 Jun 2025 14:54:56 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9Bfix:=20render=20streaming=20token?= =?UTF-8?q?=20speed=20based=20on=20thread=20ID=20&=20assistant=20metadata?= =?UTF-8?q?=20(#5346)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web-app/src/containers/ThreadContent.tsx | 12 ++++++++++-- web-app/src/hooks/useMessages.ts | 8 +++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/web-app/src/containers/ThreadContent.tsx b/web-app/src/containers/ThreadContent.tsx index 9e491bf55..076327ea6 100644 --- a/web-app/src/containers/ThreadContent.tsx +++ b/web-app/src/containers/ThreadContent.tsx @@ -363,7 +363,10 @@ export const ThreadContent = memo(
@@ -439,7 +442,11 @@ export const ThreadContent = memo(
@@ -447,6 +454,7 @@ export const ThreadContent = memo( )} )} + {item.type === 'image_url' && image && (
()((set, get) => ({ created_at: message.created_at || Date.now(), metadata: { ...message.metadata, - assistant: currentAssistant, + assistant: { + id: currentAssistant?.id || '', + name: currentAssistant?.name || '', + avatar: currentAssistant?.avatar || '', + instructions: currentAssistant?.instructions || '', + parameters: currentAssistant?.parameters || '', + }, }, } createMessage(newMessage).then((createdMessage) => {