diff --git a/src/message.tsx b/src/message.tsx index 94c2a4b..483e33d 100644 --- a/src/message.tsx +++ b/src/message.tsx @@ -315,6 +315,47 @@ export default function Message(props: Props) { /> ) ) + ) : chat.tool_calls ? ( +
Type: {tool_call?.type}
++ Function: + + copyToClipboard(tool_call.function.name) + } + > + {tool_call.function.name} + +
++ Arguments: + + copyToClipboard(tool_call.function.arguments) + } + > + {tool_call.function.arguments} + +
+Type: {tool_call?.type}
-- Function: - - copyToClipboard(tool_call.function.name) - } - > - {tool_call.function.name} - -
-- Arguments: - - copyToClipboard(tool_call.function.arguments) - } - > - {tool_call.function.arguments} - -
-