Update chats.py

This commit is contained in:
Classic298 2025-06-21 13:54:57 +02:00 committed by GitHub
parent 83910e6fec
commit 9e7735e695
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -66,6 +66,7 @@ class ChatModel(BaseModel):
class ChatForm(BaseModel): class ChatForm(BaseModel):
chat: dict chat: dict
folder_id: Optional[str] = None
class ChatImportForm(ChatForm): class ChatImportForm(ChatForm):
@ -118,6 +119,7 @@ class ChatTable:
else "New Chat" else "New Chat"
), ),
"chat": form_data.chat, "chat": form_data.chat,
"folder_id": form_data.folder_id,
"created_at": int(time.time()), "created_at": int(time.time()),
"updated_at": int(time.time()), "updated_at": int(time.time()),
} }