David Chu
commited on
fix: api response type
Browse files- app/main.py +2 -1
app/main.py
CHANGED
|
@@ -20,4 +20,5 @@ def health_check():
|
|
| 20 |
|
| 21 |
@app.get("/ask", response_model=models.Statements)
|
| 22 |
async def ask(query: str):
|
| 23 |
-
|
|
|
|
|
|
| 20 |
|
| 21 |
@app.get("/ask", response_model=models.Statements)
|
| 22 |
async def ask(query: str):
|
| 23 |
+
response = await agent.agent.run(query)
|
| 24 |
+
return response.output
|