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
|
...messages
|
||||||
].filter((message) => message),
|
].filter((message) => message),
|
||||||
files: [
|
files: [
|
||||||
{
|
...(note?.data?.content?.md
|
||||||
id: `note:${note?.id ?? 'note'}`,
|
? [
|
||||||
name: note?.name ?? 'Note',
|
{
|
||||||
file: {
|
id: `note:${note?.id ?? 'note'}`,
|
||||||
data: {
|
name: note?.name ?? 'Note',
|
||||||
content: note?.data?.content?.md ?? ''
|
file: {
|
||||||
}
|
data: {
|
||||||
},
|
content: note?.data?.content?.md
|
||||||
context: 'full'
|
}
|
||||||
}, // Include the note content as a file
|
},
|
||||||
|
context: 'full'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
: []), // Include the note content as a file
|
||||||
...files
|
...files
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue