add <hr /> above tool_call msg

This commit is contained in:
2023-11-10 11:17:22 +08:00
parent e7e3e693ef
commit 6aaf7beb5b

View File

@@ -294,11 +294,14 @@ export default function Message(props: Props) {
<div className="message-content"> <div className="message-content">
<div> <div>
{chat.tool_calls?.map((tool_call) => ( {chat.tool_calls?.map((tool_call) => (
<>
<hr className="my-1" />
<div className="bg-blue-300 dark:bg-blue-800 p-1 rounded"> <div className="bg-blue-300 dark:bg-blue-800 p-1 rounded">
<strong>Tool Call ID: {tool_call?.id}</strong> <strong>Tool Call ID: {tool_call?.id}</strong>
<p>Type: {tool_call?.type}</p> <p>Type: {tool_call?.type}</p>
<p>Function: {JSON.stringify(tool_call?.function)}</p> <p>Function: {JSON.stringify(tool_call?.function)}</p>
</div> </div>
</>
))} ))}
</div> </div>
</div> </div>