Download cbh/api/chat/model.py from brestok/cbh-test: direct link, hf CLI and curl.
- Browser
- Download file 303 Bytes
-
https://huggingface.co/spaces/brestok/cbh-test/resolve/main/cbh/api/chat/model.py
- Command line
-
hf download hf://spaces/brestok/cbh-test/cbh/api/chat/model.py
-
curl -L -o model.py https://huggingface.co/spaces/brestok/cbh-test/resolve/main/cbh/api/chat/model.py
303 Bytes
| from datetime import datetime | |
| from pydantic import Field | |
| from cbh.core.database import MongoBaseModel | |
| class ChatModel(MongoBaseModel): | |
| title: str = 'New Chat' | |
| datetimeInserted: datetime = Field(default_factory=datetime.now) | |
| datetimeUpdated: datetime = Field(default_factory=datetime.now) |