mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-12 09:00:53 +02:00
Remove duplicate tool check
This commit is contained in:
parent
9310a8edc2
commit
145cdb69b7
@ -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")) {
|
} else if (Object.hasOwn(packet, "error")) {
|
||||||
error = (packet as StreamingError).error;
|
error = (packet as StreamingError).error;
|
||||||
} else if (Object.hasOwn(packet, "message_id")) {
|
} else if (Object.hasOwn(packet, "message_id")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user