MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / updateAIChatTitle

Method updateAIChatTitle

packages/node-runtime/src/ai/chats.ts:571–576  ·  view source on GitHub ↗
(aiChatId: string, title: string)

Source from the content-addressed store, hash-verified

569 }
570
571 updateAIChatTitle(aiChatId: string, title: string): boolean {
572 const db = this.getDb()
573 const now = Math.floor(Date.now() / 1000)
574 const result = db.prepare('UPDATE ai_chat SET title = ?, updated_at = ? WHERE id = ?').run(title, now, aiChatId)
575 return result.changes > 0
576 }
577
578 deleteAIChat(aiChatId: string): boolean {
579 const db = this.getDb()

Callers

nothing calls this directly

Calls 4

getDbMethod · 0.95
runMethod · 0.65
prepareMethod · 0.65
nowMethod · 0.45

Tested by

no test coverage detected