fix: tool_calls body

This commit is contained in:
2023-11-10 19:16:34 +08:00
parent f8cd357e81
commit 94f9434fe5

View File

@@ -217,10 +217,11 @@ export default function ChatBOX(props: {
.filter(({ hide }) => !hide) .filter(({ hide }) => !hide)
.slice(chatStore.postBeginIndex) .slice(chatStore.postBeginIndex)
// only copy content and role attribute to client for posting // 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 = { const ret: MessageType = {
content, content,
role, role,
tool_calls,
}; };
if (example) { if (example) {