Skip to content

Commit

Permalink
imp
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihozturkh2o committed Nov 5, 2024
1 parent 9d55e54 commit 23dd0e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openai_server/agent_tools/web_agent_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ def find_on_page_ctrl_f(self, search_string: str) -> str:
+ "' was not found on this page."
)
else:
return header.strip() + "\n=======================\n" + content
return (header.strip() + "\n=======================\n"
+ content + "\n=======================\n"
+ f"Note: {search_string} found in the current viewport"
)

def find_next(self) -> str:
find_result = self.browser.find_next()
Expand Down

0 comments on commit 23dd0e4

Please sign in to comment.