enh: folders

This commit is contained in:
Timothy Jaeryang Baek
2025-07-19 14:29:08 +04:00
parent 3251f8b14d
commit 37c2fb0aa8
11 changed files with 361 additions and 50 deletions

View File

@@ -49,7 +49,7 @@ async def get_folders(user=Depends(get_verified_user)):
**folder.model_dump(),
"items": {
"chats": [
{"title": chat.title, "id": chat.id}
{"title": chat.title, "id": chat.id, "updated_at": chat.updated_at}
for chat in Chats.get_chats_by_folder_id_and_user_id(
folder.id, user.id
)