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.
Merge branch 'master' into pinecone-memory
Toran Bruce Richards9067a523fea1
diff --cc scripts/config.pyindex 4334f03acf,e78d46cd00..fe48d29800--- a/scripts/config.py+++ b/scripts/config.py@@@ -40,9 -49,11 +50,13 @@@ class Config(metaclass=Singleton)self.google_api_key = os.getenv("GOOGLE_API_KEY")self.custom_search_engine_id = os.getenv("CUSTOM_SEARCH_ENGINE_ID")+ self.pinecone_api_key = os.getenv("PINECONE_API_KEY")+ self.pinecone_region = os.getenv("PINECONE_ENV")++ # User agent headers to use when browsing web+ # Some websites might just completely deny request with an error code if no user agent was found.+ self.user_agent_header = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"}+-# Initialize the OpenAI API clientopenai.api_key = self.openai_api_keydiff --cc scripts/data/prompt.txtindex 9f31fad795,d8159a324a..0cf0106e4f--- a/scripts/data/prompt.txt+++ b/scripts/data/prompt.txt@@@ -8,20 -7,24 +8,21 @@@ CONSTRAINTSCOMMANDS:1. Google Search: "google", args: "input": "<search>"- 2. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"- 3. Start GPT Agent: "start_agent", args: "name": <name>, "task": "<short_task_desc>", "prompt": "<prompt>"- 4. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"- 5. List GPT Agents: "list_agents", args: ""- 6. Delete GPT Agent: "delete_agent", args: "key": "<key>"- 7. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"- 8. Read file: "read_file", args: "file": "<file>"- 9. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"- 10. Delete file: "delete_file", args: "file": "<file>"- 11. Evaluate Code: "evaluate_code", args: "code": "<full _code_string>"- 12. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"- 13. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"- 14. Execute Python File: "execute_python_file", args: "file": "<file>"- 15. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"-2. Memory Add: "memory_add", args: "string": "<string>"-3. Memory Delete: "memory_del", args: "key": "<key>"-4. Memory Overwrite: "memory_ovr", args: "key": "<key>", "string": "<string>"+ 5. Browse Website: "browse_website", args: "url": "<url>", "question": "<what_you_want_to_find_on_website>"+ 6. Start GPT Agent: "start_agent", args: "name": <name>, "task": "<short_task_desc>", "prompt": "<prompt>"+ 7. Message GPT Agent: "message_agent", args: "key": "<key>", "message": "<message>"+ 8. List GPT Agents: "list_agents", args: ""+ 9. Delete GPT Agent: "delete_agent", args: "key": "<key>"+ 10. Write to file: "write_to_file", args: "file": "<file>", "text": "<text>"+ 11. Read file: "read_file", args: "file": "<file>"+ 12. Append to file: "append_to_file", args: "file": "<file>", "text": "<text>"+ 13. Delete file: "delete_file", args: "file": "<file>"+ 14. Search Files: "search_files", args: "directory": "<directory>"+ 15. Evaluate Code: "evaluate_code", args: "code": "<full _code_string>"+ 16. Get Improved Code: "improve_code", args: "suggestions": "<list_of_suggestions>", "code": "<full_code_string>"+ 17. Write Tests: "write_tests", args: "code": "<full_code_string>", "focus": "<list_of_focus_areas>"+ 18. Execute Python File: "execute_python_file", args: "file": "<file>"+ 19. Task Complete (Shutdown): "task_complete", args: "reason": "<reason>"RESOURCES: