mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 04:15:25 +00:00
refac
This commit is contained in:
parent
5722da8e3b
commit
2d0e55e8f6
1 changed files with 14 additions and 10 deletions
|
|
@ -98,16 +98,20 @@
|
|||
...messages
|
||||
].filter((message) => message),
|
||||
files: [
|
||||
...(note?.data?.content?.md
|
||||
? [
|
||||
{
|
||||
id: `note:${note?.id ?? 'note'}`,
|
||||
name: note?.name ?? 'Note',
|
||||
file: {
|
||||
data: {
|
||||
content: note?.data?.content?.md ?? ''
|
||||
content: note?.data?.content?.md
|
||||
}
|
||||
},
|
||||
context: 'full'
|
||||
}, // Include the note content as a file
|
||||
}
|
||||
]
|
||||
: []), // Include the note content as a file
|
||||
...files
|
||||
]
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue