Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -884,7 +884,7 @@ async def home(request: Request):
|
|
| 884 |
"tool_calling": True
|
| 885 |
})
|
| 886 |
|
| 887 |
-
@app.post("/api/
|
| 888 |
async def chat_endpoint(
|
| 889 |
prompt: str = Form(...),
|
| 890 |
conversation_id: Optional[str] = Form(None),
|
|
@@ -993,7 +993,7 @@ async def list_tools():
|
|
| 993 |
]
|
| 994 |
}
|
| 995 |
|
| 996 |
-
@app.get("/
|
| 997 |
async def health_check():
|
| 998 |
"""Health check endpoint"""
|
| 999 |
return {
|
|
|
|
| 884 |
"tool_calling": True
|
| 885 |
})
|
| 886 |
|
| 887 |
+
@app.post("/api/analyze")
|
| 888 |
async def chat_endpoint(
|
| 889 |
prompt: str = Form(...),
|
| 890 |
conversation_id: Optional[str] = Form(None),
|
|
|
|
| 993 |
]
|
| 994 |
}
|
| 995 |
|
| 996 |
+
@app.get("/health")
|
| 997 |
async def health_check():
|
| 998 |
"""Health check endpoint"""
|
| 999 |
return {
|