Skip to content

Commit

Permalink
fix a few typo identify by GPT
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Hu committed Sep 10, 2023
1 parent 0676540 commit 8d91bbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/flows/chat/chat-with-wikipedia/get_wiki_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def get_wiki_url(entity: str, count=2):
if mw_divs: # mismatch
result_titles = [decode_str(div.get_text().strip()) for div in mw_divs]
result_titles = [remove_nested_parentheses(result_title) for result_title in result_titles]
print(f"Could not find {entity}. Similar ententity: {result_titles[:count]}.")
print(f"Could not find {entity}. Similar entity: {result_titles[:count]}.")
url_list.extend(
[f"https://en.wikipedia.org/w/index.php?search={result_title}" for result_title in result_titles]
)
Expand Down
2 changes: 1 addition & 1 deletion examples/flows/standard/basic/hello.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def my_python_tool(
load_dotenv()

if "AZURE_OPENAI_API_KEY" not in os.environ:
raise Exception("Please sepecify environment variables: AZURE_OPENAI_API_KEY")
raise Exception("Please specify environment variables: AZURE_OPENAI_API_KEY")

conn = dict(
api_key=os.environ["AZURE_OPENAI_API_KEY"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ def convert_to_dict(input_str: str):
try:
return json.loads(input_str)
except Exception as e:
print("input is not valid, error: {}".format(e))
print("The input is not valid, error: {}".format(e))
return {"category": "None", "evidence": "None"}

0 comments on commit 8d91bbc

Please sign in to comment.