Skip to content

Commit

Permalink
Don't return find_datasets usage via api
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Aug 5, 2023
1 parent ad05acb commit efca998
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckangpt/frontend/api/routers/find_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ async def find_datasets_(
document_ids: typing.List[str] = fastapi.Query(None),
num_results: int = find_datasets.config.DEFAULT_NUM_RESULTS,
):
return find_datasets.main(
_, answer = find_datasets.main(
user_prompt, db_queries.split('\n'), document_ids=document_ids, num_results=num_results
)
return answer

0 comments on commit efca998

Please sign in to comment.