Skip to content

updateMessageWithImages

const updateMessageWithImages: (id, updates, images) => Promise<number> = sqliteRepo.updateMessageWithImages

Defined in: src/lib/repositories/chat-history.ts:39

Persist a generated assistant snapshot and its image bytes in one SQLite transaction. Replacing only image rows preserves ordinary RAG attachments.

number

Partial<ChatMessage>

ImageAttachment[]

Promise<number>