David Chu commited on
Commit
5dd40e8
·
unverified ·
1 Parent(s): 21d76a7

fix: api response type

Browse files
Files changed (1) hide show
  1. 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
- return await agent.agent.run(query)
 
 
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