added supabase

This commit is contained in:
n4ze3m
2023-04-11 15:19:39 +05:30
parent a3535bb5c5
commit 00e6d71727
13 changed files with 211 additions and 90 deletions

View File

@@ -0,0 +1,2 @@
from .chat import ChatBody
from .user import UserValidation, SaveChatToApp

7
py_server/models/chat.py Normal file
View 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
View File

@@ -0,0 +1,11 @@
from pydantic import BaseModel
class UserValidation(BaseModel):
token: str
class SaveChatToApp(BaseModel):
html: str
url: str