Skip to content

Commit

Permalink
add cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
FOLLGAD committed Apr 21, 2023
1 parent 1b42374 commit 0f4927e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autogpt/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,11 @@ def map_command_synonyms(command_name: str):
("write_file", "write_to_file"),
("create_file", "write_to_file"),
("search", "google"),
("search_google", "google"),
("google_search", "google"),
]
for seen_command, actual_command_name in synonyms:
if command_name == seen_command:
if command_name.lower() == seen_command:
return actual_command_name
return command_name

Expand Down

0 comments on commit 0f4927e

Please sign in to comment.