fix: tool_calls body
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user