added supabase
This commit is contained in:
2
py_server/models/__init__.py
Normal file
2
py_server/models/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
from .chat import ChatBody
|
||||
from .user import UserValidation, SaveChatToApp
|
||||
7
py_server/models/chat.py
Normal file
7
py_server/models/chat.py
Normal file
@@ -0,0 +1,7 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
class ChatBody(BaseModel):
|
||||
user_message: str
|
||||
html: str
|
||||
history: list
|
||||
# url: str
|
||||
11
py_server/models/user.py
Normal file
11
py_server/models/user.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class UserValidation(BaseModel):
|
||||
token: str
|
||||
|
||||
|
||||
|
||||
class SaveChatToApp(BaseModel):
|
||||
html: str
|
||||
url: str
|
||||
Reference in New Issue
Block a user