sofzcc commited on
Commit
6afe59f
·
verified ·
1 Parent(s): 71218f6

Update app/schemas/chat.py

Browse files
Files changed (1) hide show
  1. app/schemas/chat.py +12 -0
app/schemas/chat.py CHANGED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from pydantic import BaseModel
2
+ from typing import List
3
+
4
+
5
+ class ChatRequest(BaseModel):
6
+ message: str
7
+
8
+
9
+ class ChatResponse(BaseModel):
10
+ response: str
11
+ sources: List[str]
12
+ contexts: List[str]