Spaces:
Running
Running
Update models.py
Browse files
models.py
CHANGED
@@ -1,6 +1,12 @@
|
|
1 |
from pydantic import BaseModel, EmailStr, Field, validator
|
2 |
from typing import List, Optional
|
3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
class ContactMessage(BaseModel):
|
5 |
first_name: str = Field(..., min_length=1, max_length=50)
|
6 |
last_name: str = Field(..., min_length=1, max_length=50)
|
|
|
1 |
from pydantic import BaseModel, EmailStr, Field, validator
|
2 |
from typing import List, Optional
|
3 |
|
4 |
+
class ChatIDOut(BaseModel):
|
5 |
+
chat_id: str
|
6 |
+
|
7 |
+
class MessageIn(BaseModel):
|
8 |
+
question: str
|
9 |
+
|
10 |
class ContactMessage(BaseModel):
|
11 |
first_name: str = Field(..., min_length=1, max_length=50)
|
12 |
last_name: str = Field(..., min_length=1, max_length=50)
|