Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
MIT License
166.08k stars 43.97k forks source link

Occasional Google Search Bug #1991

Closed cazm-L closed 11 months ago

cazm-L commented 1 year ago

⚠️ Search for existing issues first ⚠️

GPT-3 or GPT-4

Steps to reproduce 🕹

Not sure how to reproduce other than letting a model run out for awhile while doing hand fulls of google searches

Current behavior 😯

It seems that AutoGPT will occasionally use <> surrounding its in its search which seems to make google not happy returning a google error(?)

UPDATE: reviewing the log it seems it also did a similar thing when it tried to google search using a saved list, ill try to get the saved list added soon.

Raw Terminal Return: -disregard the code 400 i believe that is a separate issue since im using speak with the default TTS

PLAN:
-  Use the \'google\' command to research each of the top 5 niches\\n- Evaluate their feasibility, competition levels, and potential profitability\\n- Compare their findings with my initial ranking to determine the top 3 most viable niches to pursue further.\\n- Determine the feasibility of each of the top 3 niches, considering potential risks and obstacles to developing a profitable business.\\n- Continue to update the ranking as I gather more information while ensuring that I remain unbiased.
CRITICISM:  I need to make sure that I remain unbiased while performing research and evaluating each niche, ensuring that I do not overlook opportunities in industries that may initially seem unattractive. I must also ensure that I give each niche a
 fair chance and evaluate all relevant factors before making a decision.
Attempting to fix JSON by Request failed with status code: 400
Response content: b'{"detail":{"status":"invalid_uid","message":"An invalid ID has been received: \'your-voice-id-1\'. Make sure to provide a correct one."}}'
finding outermost brackets
Apparently json was fixed.
NEXT ACTION:  COMMAND = google Request failed with status code: 400
Response content: b'{"detail":{"status":"invalid_uid","message":"An invalid ID has been received: \'your-voice-id-1\'. Make sure to provide a correct one."}}'
ARGUMENTS = {'input': '<search for the first niche>'}
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for busGPT...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM:  Command google returned: [ { "title": "Find the School that Fits You Best - Niche", "href": "https://www.niche.com/", "body": "From K‑12 to college to grad school, we make it easy to discover and connect with the best ones for you. Start Your Search K-12 Schools Colleges Grad Schools Why Niche? Your search is unique. Just
 like you. We give you all of the data, reviews, and insights in one place to make your search as easy as possible. No Heavy Lifting" }, { "title": "Niche Definition & Meaning - Merriam-Webster", "href": "https://www.merriam-webster.com/dictionary/niche", "body": "1 of 2 noun ˈnich also ˈnēsh or ˈnish Synonyms of niche 1 a : a recess in a wall especially for a statue b : something (such as a sheltered or private
 space) that resembles a recess in a wall 2 a : a place, employment, status, or activity for which a person or thing is best fitted finally found her niche b" }, { "title": "Niche Definition & Meaning | Dictionary.com", "href": "https://www.dictionary.com/browse/niche", "body": "Niche definition, an ornamental recess in a wall or the like, usually semicircular in plan and arched, as for a statue or other decorative object. See more." }, { "title": "100 Synonyms & Antonyms of NICHE - Merriam Webster", "href": "https://www.merriam-webster.com/thesaurus/niche", "body": "Synonyms for NICHE: alcove, nook, corner, housing, cranny, cubicle, cubbyhole, shrine; Antonyms of NICHE: remove, relocate, take, displace, replace, supersede ..." }, { "title": "Niche - Discover the schools and neighborhoods that are right for you.", "href": "https://a.niche.com/", "body": "Niche is the market leader in connecting colleges and schools with students and families. With in-depth profiles on every school and college in America, over 140 million reviews and ratings, and powerful search and data tools, Niche helps millions of students and families find and enroll in the right school for them." }, { "title": "NBA Playoffs: First round tips-off with four blockbuster clashes", "href": "https://www.cnn.com/2023/04/15/sport/nba-playoffs-preview-spt-intl/index.html", "body": "The NBA playoffs begin this weekend, with 16 teams vying for the title, and four mouthwatering first-round matchups will tip-off on Saturday. Brooklyn Nets (6) v Philadelphia 76ers (3)" }, { "title": "How to Do Keyword Research For a Blog - The Beginner's Guide (2023)", "href": "https://firstsiteguide.com/keyword-research/", "body": "Brainstorm to find niche topics and main keywords Without thinking about anything else, start your niche decision process by writing down all of the things that interest you. These can be personal interests or professional interests. Start by thinking about the things you enjoy doing, or would enjoy doing if you had the chance." }, { "title": "Mega Modz Modified DualSense Controller Review - Niche Gamer", "href": "https://nichegamer.com/reviews/mega-modz-modified-dualsense-controller-review/", "body": "Mega Modz DualSense is available for purchase on their own website for a starting MSRP of $74.99 USD. This Mega Modz DualSense controller was provided by Mega Modz for the purposes of this review ..." } ]
--- Logging error ---
Traceback (most recent call last):
  File "C:\Users\MP\anaconda3\envs\autogpt\lib\logging\__init__.py", line 1103, in emit
    stream.write(msg + self.terminator)
  File "C:\Users\MP\anaconda3\envs\autogpt\lib\encodings\cp1252.py", line 19, in encode
    return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2011' in position 203: character maps to <undefined>
Call stack:
  File "C:\Users\MP\anaconda3\envs\autogpt\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\MP\anaconda3\envs\autogpt\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Users\MP\Desktop\Programing\Cryptic-widgets\AutoGPT\Auto-GPT-0.2.0\autogpt\__main__.py", line 572, in <module>
    main()
  File "C:\Users\MP\Desktop\Programing\Cryptic-widgets\AutoGPT\Auto-GPT-0.2.0\autogpt\__main__.py", line 396, in main
    agent.start_interaction_loop()
  File "C:\Users\MP\Desktop\Programing\Cryptic-widgets\AutoGPT\Auto-GPT-0.2.0\autogpt\__main__.py", line 561, in start_interaction_loop
    logger.typewriter_log("SYSTEM: ", Fore.YELLOW, result)
  File "C:\Users\MP\Desktop\Programing\Cryptic-widgets\AutoGPT\Auto-GPT-0.2.0\autogpt\logger.py", line 86, in typewriter_log
    self.typing_logger.log(
Message: 'Command google returned: [\n    {\n        "title": "Find the School that Fits You Best - Niche",\n        "href": "https://www.niche.com/",\n        "body": "From K‑12 to college to grad school, we make it easy to discover and connect with the best ones for you. Start Your Search K-12 Schools Colleges Grad Schools Why Niche? Your search is unique. Just like you. We give you all of the data, reviews, and insights in one place to make your search as easy as possible. No Heavy Lifting"\n    },\n    {\n        "title": "Niche Definition & Meaning - Merriam-Webster",\n        "href": "https://www.merriam-webster.com/dictionary/niche",\n        "body": "1 of 2 noun ˈnich also ˈnēsh or ˈnish Synonyms of niche 1 a : a recess in a wall especially for a statue b : something (such as a sheltered or private space) that resembles a recess in a wall 2 a : a place, employment, status, or activity for which a person or thing is best fitted finally found her niche b"\n    },\n    {\n        "title": "Niche Definition & Meaning | Dictionary.com",\n        "href": "https://www.dictionary.com/browse/niche",\n        "body": "Niche definition, an ornamental recess in a wall or the like, usually semicircular in plan and arched, as for a statue or other decorative object. See more."\n    },\n    {\n        "title": "100 Synonyms & Antonyms of NICHE - Merriam Webster",\n        "href": "https://www.merriam-webster.com/thesaurus/niche",\n        "body": "Synonyms for NICHE: alcove, nook, corner, housing, cranny, cubicle, cubbyhole, shrine; Antonyms of NICHE: remove, relocate, take, displace, replace, supersede ..."\n    },\n    {\n        "title": "Niche - Discover the schools and neighborhoods that are right for you.",\n        "href": "https://a.niche.com/",\n        "body": "Niche is the market leader in connecting colleges and schools with students and families. With in-depth profiles on every school and college in America, over 140 million reviews and ratings, and powerful search and data tools, Niche helps millions of students and families find and enroll in the right school for them."\n    },\n    {\n        "title": "NBA Playoffs: First round tips-off with four blockbuster clashes",\n        "href": "https://www.cnn.com/2023/04/15/sport/nba-playoffs-preview-spt-intl/index.html",\n        "body": "The NBA playoffs begin this weekend, with 16 teams vying for the title, and four mouthwatering first-round matchups will tip-off on Saturday. Brooklyn Nets (6) v Philadelphia 76ers (3)"\n    },\n    {\n        "title": "How to Do Keyword Research For a Blog - The Beginner\'s Guide (2023)",\n        "href": "https://firstsiteguide.com/keyword-research/",\n        "body": "Brainstorm to find niche topics and main keywords Without thinking about anything else, start your niche decision process by writing down all of the things that interest you. These can be personal interests or professional interests. Start by thinking about the things you enjoy doing, or would enjoy doing if you had the chance."\n    },\n    {\n        "title": "Mega Modz Modified DualSense Controller Review - Niche Gamer",\n        "href": "https://nichegamer.com/reviews/mega-modz-modified-dualsense-controller-review/",\n        "body": "Mega Modz DualSense is available for purchase on their own website for a starting MSRP of $74.99 USD. This Mega Modz DualSense controller was provided by Mega Modz for the purposes of this review ..."\n    }\n]'
Arguments: ()
BUSGPT THOUGHTS:  Now that I have created a comprehensive checklist for evaluating potential niches, I will use the 'google' command to research each niche on my list. I will search for relevant keywords related to the industry and potential target customers. I will compile my findings for each niche in a separate file and store them in the directory system created earlier.
REASONING:  Researching each potential niche is important to gather data on the market size, competition, and potential profitability. This information will help me evaluate each niche according to my checklist and rank them based on their potential for success.
PLAN:
-  Use the 'google' command to research each niche on my list\n- Compile my findings for each niche in a separate file\n- Store the files in the directory system created earlier
CRITICISM:  I need to ensure that my findings are comprehensive and address all relevant criteria listed on my checklist. I also need to avoid biases or preconceptions that could skew my research.
Attempting to fix JSON by finding Request failed with status code: 400
outermost Response content: b'{"detail":{"status":"invalid_uid","message":"An invalid ID has been received: \'your-voice-id-1\'. Make sure to provide a correct one."}}'
brackets
Apparently json was fixed.
NEXT ACTION:  COMMAND = do_nothing Request failed with status code: 400
Response content: b'{"detail":{"status":"invalid_uid","message":"An invalid ID has been received: \'your-voice-id-1\'. Make sure to provide a correct one."}}'
ARGUMENTS = {}
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for busGPT...

LOG:

2023-04-16 14:12:15,371 INFO Apparently json was fixed. 
2023-04-16 14:12:24,528 INFO NEXT ACTION:  COMMAND = google  ARGUMENTS = {'input': 'potential niches for [insert relevant checklist criteria here]'}
2023-04-16 14:12:30,807 INFO -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
2023-04-16 14:12:52,549 INFO BUSGPT THOUGHTS: Based on my previous searches and evaluations, I have identified several potential niches that could generate a profit while fitting the other requirements I have set. I will use the \'google\' command to research more about each potential niche, evaluate its feasibility, competition level, and potential profitability, and compare it with my initial ranking. This will help me identify the top three most viable niches to pursue further.
2023-04-16 14:12:53,195 INFO REASONING: Performing further research on the most viable niches will allow me to get a detailed understanding of the market and identify any potential obstacles that may prevent me from achieving success. This will also help me to determine which niches have the highest potential for profitability and sustainability.
2023-04-16 14:12:53,823 INFO PLAN: 
2023-04-16 14:12:53,896 INFO -  Use the \'google\' command to research each of the top 5 niches\\n- Evaluate their feasibility, competition levels, and potential profitability\\n- Compare their findings with my initial ranking to determine the top 3 most viable niches to pursue further.\\n- Determine the feasibility of each of the top 3 niches, considering potential risks and obstacles to developing a profitable business.\\n- Continue to update the ranking as I gather more information while ensuring that I remain unbiased.
2023-04-16 14:12:54,572 INFO CRITICISM: I need to make sure that I remain unbiased while performing research and evaluating each niche, ensuring that I do not overlook opportunities in industries that may initially seem unattractive. I must also ensure that I give each niche a fair chance and evaluate all relevant factors before making a decision.
2023-04-16 14:12:55,184 INFO Attempting to fix JSON by finding outermost brackets

2023-04-16 14:12:55,469 INFO Apparently json was fixed. 
2023-04-16 14:13:21,692 INFO NEXT ACTION:  COMMAND = google  ARGUMENTS = {'input': '<search for the first niche>'}
2023-04-16 14:13:27,281 INFO -=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-= 
2023-04-16 14:13:42,156 INFO BUSGPT THOUGHTS: Now that I have created a comprehensive checklist for evaluating potential niches, I will use the 'google' command to research each niche on my list. I will search for relevant keywords related to the industry and potential target customers. I will compile my findings for each niche in a separate file and store them in the directory system created earlier.
2023-04-16 14:13:42,788 INFO REASONING: Researching each potential niche is important to gather data on the market size, competition, and potential profitability. This information will help me evaluate each niche according to my checklist and rank them based on their potential for success.
2023-04-16 14:13:43,301 INFO PLAN: 
2023-04-16 14:13:43,356 INFO -  Use the 'google' command to research each niche on my list\n- Compile my findings for each niche in a separate file\n- Store the files in the directory system created earlier
2023-04-16 14:13:43,856 INFO CRITICISM: I need to ensure that my findings are comprehensive and address all relevant criteria listed on my checklist. I also need to avoid biases or preconceptions that could skew my research.
2023-04-16 14:13:44,379 INFO Attempting to fix JSON by finding outermost brackets

2023-04-16 14:13:44,670 INFO Apparently json was fixed. 
2023-04-16 14:13:55,496 INFO NEXT ACTION:  COMMAND = do_nothing  ARGUMENTS = {}

System Info Windows 11 Env: Anaconda Env, Powershell AutoGPT version: 0.2.0 (DownLoad Date: 4/16/2023, time: 11:58am eastern) AutoGPT Use type: python -m gpt3only, python -m autogpt Python Verson: 3.10 PC: Lenovo Flex-5 Processor: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 2.00 GHz Installed RAM: 16.0 GB (15.9 GB usable) System type: 64-bit operating system, x64-based processor

Expected behavior 🤔

Search google, return search results. Im assuming it should be doing it without the ''

Your prompt 📝

# Paste your prompt here
github-actions[bot] commented 11 months ago

This issue has automatically been marked as stale because it has not had any activity in the last 50 days. You can unstale it by commenting or removing the label. Otherwise, this issue will be closed in 10 days.

github-actions[bot] commented 11 months ago

This issue was closed automatically because it has been stale for 10 days with no activity.