From 94f9434fe5e52dc8f7f34b103a007ddae0ac03db Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Fri, 10 Nov 2023 19:16:34 +0800 Subject: [PATCH] fix: tool_calls body --- src/chatbox.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 6893630..3a4912d 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -217,10 +217,11 @@ export default function ChatBOX(props: { .filter(({ hide }) => !hide) .slice(chatStore.postBeginIndex) // only copy content and role attribute to client for posting - .map(({ content, role, example, tool_call_id }) => { + .map(({ content, role, example, tool_call_id, tool_calls }) => { const ret: MessageType = { content, role, + tool_calls, }; if (example) {