From f8747586ab6b5080be0a72bf19232c586c4e2237 Mon Sep 17 00:00:00 2001 From: zaidmukaddam Date: Wed, 7 Aug 2024 19:56:02 +0530 Subject: [PATCH] refactor: Remove animations from Messages and Tool call UI --- app/page.tsx | 57 ++++++++++++++++++++-------------------------------- 1 file changed, 22 insertions(+), 35 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 56151f0..dc20586 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -386,41 +386,28 @@ export default function Home() { )} - - - {messages.map((message, index) => ( - - {message.role === 'assistant' && message.content && ( - - -

Answer

-
- {renderMarkdown(message.content)} -
-
-
- )} - {message.toolInvocations?.map((toolInvocation: ToolInvocation, toolIndex: number) => ( -
- {renderToolInvocation(toolInvocation, toolIndex)} -
- ))} -
- ))} -
- - +
+ {messages.map((message, index) => ( +
+ {message.role === 'assistant' && message.content && ( + + +

Answer

+
+ {renderMarkdown(message.content)} +
+
+
+ )} + {message.toolInvocations?.map((toolInvocation: ToolInvocation, toolIndex: number) => ( +
+ {renderToolInvocation(toolInvocation, toolIndex)} +
+ ))} +
+ ))} +
+