mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
02d9d07900
commit
bcd313c363
1 changed files with 2 additions and 0 deletions
|
|
@ -2099,6 +2099,8 @@
|
|||
|
||||
return {
|
||||
role: message.role,
|
||||
// Preserve output items so backend can reconstruct tool_calls/tool-role messages (temp chats)
|
||||
...(message.output ? { output: message.output } : {}),
|
||||
...(message.role === 'user' && imageFiles.length > 0
|
||||
? {
|
||||
content: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue