From 145cdb69b79b577822a53480616d28979878daf7 Mon Sep 17 00:00:00 2001 From: Weves Date: Thu, 27 Jun 2024 16:59:32 -0700 Subject: [PATCH] Remove duplicate tool check --- web/src/app/chat/ChatPage.tsx | 8 -------- 1 file changed, 8 deletions(-) diff --git a/web/src/app/chat/ChatPage.tsx b/web/src/app/chat/ChatPage.tsx index f93574437..8e9427dd0 100644 --- a/web/src/app/chat/ChatPage.tsx +++ b/web/src/app/chat/ChatPage.tsx @@ -813,14 +813,6 @@ export function ChatPage({ }; } ); - } else if (Object.hasOwn(packet, "tool_name")) { - toolCalls = [ - { - tool_name: (packet as ToolCallMetadata).tool_name, - tool_args: (packet as ToolCallMetadata).tool_args, - tool_result: (packet as ToolCallMetadata).tool_result, - }, - ]; } else if (Object.hasOwn(packet, "error")) { error = (packet as StreamingError).error; } else if (Object.hasOwn(packet, "message_id")) {