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 ...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
] ]
}, },