Skip to content

Commit 0174229

Browse files
committed
chore: fix react warning
1 parent 52ee4a4 commit 0174229

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gui/src/components/console/Message.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ export function renderMessage(message: ChatMessage, includeRole: boolean) {
4848
{includeRole ? renderMessageRole(message.role) : ""}
4949
{message.toolCalls
5050
? message.toolCalls.map((toolCall) => (
51-
<pre>Tool call: {JSON.stringify(toolCall, undefined, 2)}</pre>
51+
<pre key={toolCall.id}>
52+
Tool call: {JSON.stringify(toolCall, undefined, 2)}
53+
</pre>
5254
))
5355
: ""}
5456
{renderMessageContent(message)}

0 commit comments

Comments
 (0)