Spaces:
Runtime error
Runtime error
Update models.py
Browse files
models.py
CHANGED
|
@@ -2,6 +2,16 @@ from pydantic import BaseModel
|
|
| 2 |
from typing import List, Dict, Optional
|
| 3 |
from enum import Enum
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
class ChatRequest(BaseModel):
|
| 6 |
message: str
|
| 7 |
temperature: float = 0.7
|
|
|
|
| 2 |
from typing import List, Dict, Optional
|
| 3 |
from enum import Enum
|
| 4 |
|
| 5 |
+
|
| 6 |
+
class NotificationType(str, Enum):
|
| 7 |
+
RISK_ALERT = "risk_alert"
|
| 8 |
+
SYSTEM = "system"
|
| 9 |
+
MESSAGE = "message"
|
| 10 |
+
|
| 11 |
+
class NotificationStatus(str, Enum):
|
| 12 |
+
UNREAD = "unread"
|
| 13 |
+
READ = "read"
|
| 14 |
+
ARCHIVED = "archived"
|
| 15 |
class ChatRequest(BaseModel):
|
| 16 |
message: str
|
| 17 |
temperature: float = 0.7
|