From f34c7e49117662a876f0e6c16469a70c8e76da65 Mon Sep 17 00:00:00 2001 From: Ruben Marcus Date: Thu, 29 Feb 2024 15:13:08 +0000 Subject: [PATCH] fix typings --- ai-chat/src/components/chat.tsx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ai-chat/src/components/chat.tsx b/ai-chat/src/components/chat.tsx index 2a007b5..6164ad7 100644 --- a/ai-chat/src/components/chat.tsx +++ b/ai-chat/src/components/chat.tsx @@ -41,11 +41,8 @@ const Chat = () => { {messages.length > 0 ? ( messages.map( ( - message: { - role: "user" | "admin" | "assistant" | "function"; - content: string; - }, - index: number + message, + index ) => { return (