Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix a few typo identify by GPT #364

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}
Loading