Update app.py
Browse files
app.py
CHANGED
|
@@ -379,7 +379,7 @@ class ChatRequest(BaseModel):
|
|
| 379 |
prompt: str
|
| 380 |
|
| 381 |
@app.post("/response")
|
| 382 |
-
async def handle_chat(chat_request: ChatRequest, token:
|
| 383 |
if token in Tokens:
|
| 384 |
i = Tokens.index(token)
|
| 385 |
History[i].append({"role": "user", "content": chat_request.prompt})
|
|
|
|
| 379 |
prompt: str
|
| 380 |
|
| 381 |
@app.post("/response")
|
| 382 |
+
async def handle_chat(chat_request: ChatRequest, token: int = Cookie(None)):
|
| 383 |
if token in Tokens:
|
| 384 |
i = Tokens.index(token)
|
| 385 |
History[i].append({"role": "user", "content": chat_request.prompt})
|