We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b75445 commit af1c0eeCopy full SHA for af1c0ee
1 file changed
src/lib/components/chat/Messages/structuredOutput.ts
@@ -107,7 +107,8 @@ function getMessageText(item: OutputItem): string {
107
}
108
109
function getReasoningText(item: OutputItem): string {
110
- return getTextFromParts(item.summary ?? item.content ?? []);
+ const summary = Array.isArray(item.summary) && item.summary.length ? item.summary : null;
111
+ return getTextFromParts(summary ?? item.content ?? []);
112
113
114
function getToolResultText(item?: OutputItem): string {
0 commit comments