mirror of
https://github.com/zadam/trilium.git
synced 2026-03-31 01:00:21 +02:00
fix(llm): automatic title not persisted
This commit is contained in:
@@ -23,6 +23,7 @@ export async function generateChatTitle(chatNoteId: string, firstMessage: string
|
||||
const title = await provider.generateTitle(firstMessage);
|
||||
if (title) {
|
||||
note.title = title;
|
||||
note.save();
|
||||
log.info(`Auto-renamed chat note ${chatNoteId} to "${title}"`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user