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 <[email protected]>
  • Loading branch information
gvilums and awtkns committed Oct 28, 2023
1 parent 65fbf51 commit 11e5253
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 @@ -137,13 +137,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 11e5253

Please sign in to comment.