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'}`, id: `note:${note?.id ?? 'note'}`,
name: note?.name ?? 'Note', name: note?.name ?? 'Note',
file: { file: {
data: { data: {
content: note?.data?.content?.md ?? '' content: note?.data?.content?.md
} }
}, },
context: 'full' context: 'full'
}, // Include the note content as a file }
]
: []), // Include the note content as a file
...files ...files
] ]
}, },