Skip to content

Commit

Permalink
Update platform/reworkd_platform/web/api/agent/tools/sidsearch.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Watkins <cadamrun@gmail.com>
  • Loading branch information
gvilums and awtkns authored Oct 28, 2023
1 parent cc1364e commit 663d7cb
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions platform/reworkd_platform/web/api/agent/tools/sidsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,13 +140,7 @@ async def call(
*args: Any,
**kwargs: Any,
) -> FastAPIStreamingResponse:
res = await self._run_sid(
goal, task, input_str, user, oauth_crud
)
if res is None:
# fall back to search if no results are found
return await Search(self.model, self.language).call(
goal, task, input_str, user, oauth_crud
)
else:
return res
# fall back to search if no results are found
return await self._run_sid(goal, task, input_str, user, oauth_crud) or await Search(self.model, self.language).call(
goal, task, input_str, user, oauth_crud
)

0 comments on commit 663d7cb

Please sign in to comment.