mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac: add citations to outlet/actions form
Co-Authored-By: Alex Morgan <alxmrg55@gmail.com>
This commit is contained in:
parent
cbcd14cdbf
commit
7c5b845d16
1 changed files with 4 additions and 2 deletions
|
|
@ -663,7 +663,8 @@
|
||||||
role: m.role,
|
role: m.role,
|
||||||
content: m.content,
|
content: m.content,
|
||||||
info: m.info ? m.info : undefined,
|
info: m.info ? m.info : undefined,
|
||||||
timestamp: m.timestamp
|
timestamp: m.timestamp,
|
||||||
|
...(m.citations ? { citations: m.citations } : {})
|
||||||
})),
|
})),
|
||||||
chat_id: chatId,
|
chat_id: chatId,
|
||||||
session_id: $socket?.id,
|
session_id: $socket?.id,
|
||||||
|
|
@ -716,7 +717,8 @@
|
||||||
role: m.role,
|
role: m.role,
|
||||||
content: m.content,
|
content: m.content,
|
||||||
info: m.info ? m.info : undefined,
|
info: m.info ? m.info : undefined,
|
||||||
timestamp: m.timestamp
|
timestamp: m.timestamp,
|
||||||
|
...(m.citations ? { citations: m.citations } : {})
|
||||||
})),
|
})),
|
||||||
...(event ? { event: event } : {}),
|
...(event ? { event: event } : {}),
|
||||||
chat_id: chatId,
|
chat_id: chatId,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue