Skip to content

Commit

Permalink
Reminder it needs to continue executing code to keep going
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudotensor committed Oct 31, 2024
1 parent 624e361 commit f5a3cf5
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
7 changes: 6 additions & 1 deletion openai_server/agent_tools/bing_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ def bing_search():
for result in results[:args.limit]:
print_func(result, args)

print("""\n\nRemember web snippets are short and often non-specific. For specific information, you must use ask_question_about_documents.py on URLs or documents, ask_question_about_image.py for images, or download_web_video.py for videos, etc.""")
print("""\n\nRemember web snippets are short and often non-specific.
For specific information, you must use ask_question_about_documents.py on URLs or documents,
ask_question_about_image.py for images,
or download_web_video.py for videos, etc.
If you have not found a good response to the user's original query, continue to write executable code to do so.
""")


if __name__ == "__main__":
Expand Down
7 changes: 6 additions & 1 deletion openai_server/agent_tools/google_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,12 @@ def print_results(results: Dict[str, Any], args):
print("\nFull JSON output:")
print(json.dumps(results, indent=2, default=str))

print("""\n\nRemember web snippets are short and often non-specific. For specific information, you must use ask_question_about_documents.py on URLs or documents, ask_question_about_image.py for images, or download_web_video.py for videos, etc.""")
print("""\n\nRemember web snippets are short and often non-specific.
For specific information, you must use ask_question_about_documents.py on URLs or documents,
ask_question_about_image.py for images,
or download_web_video.py for videos, etc.
If you have not found a good response to the user's original query, continue to write executable code to do so.
""")


def google_search():
Expand Down
7 changes: 6 additions & 1 deletion openai_server/agent_tools/news_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,12 @@ def main():
except requests.RequestException as e:
print(f"An error occurred while fetching news: {e}")

print("""Remember to not only use these news snippets, but also use ask_question_about_documents.py to ask questions about URLs or documents, ask_question_about_image.py to ask questions about images, or download_web_video.py to download videos, etc.""")
print("""\n\nRemember to not only use these news snippets,
but also use ask_question_about_documents.py to ask questions about URLs or documents,
ask_question_about_image.py to ask questions about images,
or download_web_video.py to download videos, etc.
If you have not found a good response to the user's original query, continue to write executable code to do so.
""")


if __name__ == "__main__":
Expand Down
7 changes: 6 additions & 1 deletion openai_server/agent_tools/scholar_papers_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ def main():
if i == args.limit:
break

print("""\n\nRemember to not only use these scientific scholar paper listings, but also use ask_question_about_documents.py to ask questions about URLs or PDF documents, ask_question_about_image.py to ask questions about images, or download_web_video.py to download videos, etc.""")
print("""\n\nRemember to not only use these scientific scholar paper listings,
but also use ask_question_about_documents.py to ask questions about URLs or PDF documents,
ask_question_about_image.py to ask questions about images,
or download_web_video.py to download videos, etc.
If you have not found a good response to the user's original query, continue to write executable code to do so.
""")

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion src/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "168e1574db6c2f9c233b7dc5e3d3d02f908dda67"
__version__ = "624e361f9ad2155bfee5c226bf21234f4a184b0a"

0 comments on commit f5a3cf5

Please sign in to comment.