Skip to content

Commit 2da1997

Browse files
Update components/message.tsx
Co-authored-by: Copilot <[email protected]>
1 parent 2eea22d commit 2da1997

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const PurePreviewMessage = ({
103103
const { type } = part;
104104
const key = `message-${message.id}-part-${index}`;
105105

106-
if (type === 'reasoning' && part.text) {
106+
if (type === 'reasoning' && part.text?.trim().length > 0) {
107107
return (
108108
<MessageReasoning
109109
key={key}

0 commit comments

Comments
 (0)