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) {