mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-09 16:09:10 +00:00
refac
This commit is contained in:
parent
0b75445ff9
commit
af1c0eee89
1 changed files with 2 additions and 1 deletions
|
|
@ -107,7 +107,8 @@ function getMessageText(item: OutputItem): string {
|
|||
}
|
||||
|
||||
function getReasoningText(item: OutputItem): string {
|
||||
return getTextFromParts(item.summary ?? item.content ?? []);
|
||||
const summary = Array.isArray(item.summary) && item.summary.length ? item.summary : null;
|
||||
return getTextFromParts(summary ?? item.content ?? []);
|
||||
}
|
||||
|
||||
function getToolResultText(item?: OutputItem): string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue