This commit is contained in:
Timothy Jaeryang Baek 2025-07-07 21:52:46 +04:00
parent 5722da8e3b
commit 2d0e55e8f6

View file

@ -98,16 +98,20 @@
...messages
].filter((message) => message),
files: [
{
id: `note:${note?.id ?? 'note'}`,
name: note?.name ?? 'Note',
file: {
data: {
content: note?.data?.content?.md ?? ''
}
},
context: 'full'
}, // Include the note content as a file
...(note?.data?.content?.md
? [
{
id: `note:${note?.id ?? 'note'}`,
name: note?.name ?? 'Note',
file: {
data: {
content: note?.data?.content?.md
}
},
context: 'full'
}
]
: []), // Include the note content as a file
...files
]
},