brestok's picture
finish ai
3ec35ef
raw
history blame
424 Bytes
from datetime import datetime
from pydantic import Field
from trauma.api.chat.dto import ModelType, EntityData
from trauma.core.database import MongoBaseModel
class ChatModel(MongoBaseModel):
title: str = 'New Chat'
model: ModelType
entityData: EntityData = EntityData()
datetimeInserted: datetime = Field(default_factory=datetime.now)
datetimeUpdated: datetime = Field(default_factory=datetime.now)