garyfeng / Auto-GPT

An experimental open-source attempt to make GPT-4 fully autonomous.
MIT License
0 stars 0 forks source link

fix the unknown command 'google_search' error #4

Open garyfeng opened 1 year ago

garyfeng commented 1 year ago

Duplicates

Summary 💡

add google_search as an alias of the google command. This can be done in the commands.py, line L58:

    try:
        if command_name == "google":

to

    try:
        if command_name in ["google", "google_search"]:

Examples 🌈

No response

Motivation 🔦

One of the most frequent errors is when GPT returns a result with

In this case, the human feedback is to generate the next command. I don't know whether GPT's next command to do google search is then ignored, but at least this wastes a lot of cycles.

 User: GENERATE NEXT COMMAND JSON