Spaces:
Sleeping
Sleeping
Download trauma/api/chat/model.py from brestok/TraumaBackend: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/brestok/TraumaBackend/resolve/main/trauma/api/chat/model.py
- Command line
-
hf download hf://spaces/brestok/TraumaBackend/trauma/api/chat/model.py
-
curl -L -o model.py https://huggingface.co/spaces/brestok/TraumaBackend/resolve/main/trauma/api/chat/model.py
500 Bytes
| from datetime import datetime | |
| from pydantic import Field | |
| from trauma.api.account.model import AccountModel | |
| 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() | |
| account: AccountModel | |
| datetimeInserted: datetime = Field(default_factory=datetime.now) | |
| datetimeUpdated: datetime = Field(default_factory=datetime.now) | |