MCPcopy
hub / github.com/PromtEngineer/localGPT / update_session_title

Method update_session_title

backend/database.py:219–228  ·  view source on GitHub ↗

Update session title

(self, session_id: str, title: str)

Source from the content-addressed store, hash-verified

217 return history
218
219 def update_session_title(self, session_id: str, title: str):
220 """Update session title"""
221 conn = sqlite3.connect(self.db_path)
222 conn.execute('''
223 UPDATE sessions
224 SET title = ?, updated_at = ?
225 WHERE id = ?
226 ''', (title, datetime.now().isoformat(), session_id))
227 conn.commit()
228 conn.close()
229
230 def delete_session(self, session_id: str) -> bool:
231 """Delete a session and all its messages"""

Callers 4

handle_session_chatMethod · 0.80
handle_rename_sessionMethod · 0.80
handle_chatMethod · 0.80
handle_chat_streamMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected