Update app.py
Browse files
app.py
CHANGED
|
@@ -391,7 +391,7 @@ class ChatRequest(BaseModel):
|
|
| 391 |
top_p: float = 1.0
|
| 392 |
|
| 393 |
# -- Chatbot
|
| 394 |
-
@app_api.post("/
|
| 395 |
async def chat(request: ChatRequest,api_key: str = Security(validate_api_key)):
|
| 396 |
try:
|
| 397 |
response = respond(
|
|
|
|
| 391 |
top_p: float = 1.0
|
| 392 |
|
| 393 |
# -- Chatbot
|
| 394 |
+
@app_api.post("/chatbot")
|
| 395 |
async def chat(request: ChatRequest,api_key: str = Security(validate_api_key)):
|
| 396 |
try:
|
| 397 |
response = respond(
|