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
Other
167.46k stars 44.24k forks source link

Auto-GPT Cannot detect the OS #3276

Closed haseeb-heaven closed 1 year ago

haseeb-heaven commented 1 year ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Latest Release

GPT-3 or GPT-4?

GPT-3.5

Steps to reproduce 🕹

Tell it that command which requires OS commands to execute like Copy,Move,Open File and check it cannot detect the OS which we are using even after multiple tries. I was using MacOS and it was just using notepad command to open a file which was totally wrong. Notepad is command used in Windows OS only.

Current behavior 😯

It cannot detect the commands to use for our current OS. Check the Logs its using Notepad to open the file while I was on macOS.

Expected behavior 🤔

This should open the file in vim or using cat os MacOS related command to open or to create files accordingly.

Your prompt 📝

ai_goals:
- Generate a game trainer for Project IGI 1 game
- 'Use GTLibc library from Github here is url : https://github.com/haseeb-heaven/GTLibCpp
  clone this repo and analyze all the files and read GTLibc.hpp files to analyze all
  the methods definition'
- 'After cloning create a file called MyIGIGameTrainer.cpp and use #include "gtlibc.hpp"
  file and generate the trainer.'
- 'Make sure to run the trainer using this syntax CppRunner.bat file_name.cp '
- Exit afterwards.
ai_name: Code-GPT
ai_role: Can write and debug code programming

Your Logs 📒

2023-04-26 06:43:41,944 INFO DOUBLE CHECK CONFIGURATION Please double check that you have setup a PAID OpenAI API Account. You can read more here: https://github.com/Significant-Gravitas/Auto-GPT#openai-api-keys-configuration
2023-04-26 06:44:03,970 INFO  THOUGHTS: The GTLibCpp library is already cloned. I need to create the MyIGIGameTrainer.cpp file and use #include "gtlibc.hpp" file to generate the trainer.
2023-04-26 06:44:04,530 INFO REASONING: Since the GTLibCpp library is already cloned, I can proceed to create the MyIGIGameTrainer.cpp file and use #include "gtlibc.hpp" file to generate the trainer for Project IGI 1 game.
2023-04-26 06:44:05,049 INFO PLAN: 
2023-04-26 06:44:05,108 INFO -  Create a file called MyIGIGameTrainer.cpp\n- Include the gtlibc.hpp file\n- Use the GTLibCpp library to generate the game trainer for Project IGI 1 game
2023-04-26 06:44:05,598 INFO CRITICISM: I need to make sure I use the correct syntax and methods from the GTLibCpp library to generate the game trainer.
2023-04-26 06:44:06,122 INFO NEXT ACTION:  COMMAND = do_nothing  ARGUMENTS = {}
2023-04-26 06:44:07,260 INFO SYSTEM:  Command do_nothing returned: No action performed.
2023-04-26 06:44:16,959 INFO  THOUGHTS: I need to open the MyIGIGameTrainer.cpp file and write the code to generate the trainer.
2023-04-26 06:44:17,377 INFO REASONING: Opening the MyIGIGameTrainer.cpp file and writing the code to generate the trainer will allow me to use the GTLibCpp library to generate the trainer for Project IGI 1 game.
2023-04-26 06:44:17,977 INFO PLAN: 
2023-04-26 06:44:18,028 INFO -  Open the MyIGIGameTrainer.cpp file\n- Write the code to generate the trainer using the GTLibCpp library
2023-04-26 06:44:18,396 INFO CRITICISM: I need to make sure I use the correct syntax and methods from the GTLibCpp library to generate the trainer.
2023-04-26 06:44:18,829 INFO NEXT ACTION:  COMMAND = execute_python_file  ARGUMENTS = {'file': 'open_file.py'}
2023-04-26 06:44:19,684 INFO SYSTEM:  Command execute_python_file returned: Error: File 'open_file.py' does not exist.
2023-04-26 06:44:20,962 INFO DOUBLE CHECK CONFIGURATION Please double check that you have setup a PAID OpenAI API Account. You can read more here: https://github.com/Significant-Gravitas/Auto-GPT#openai-api-keys-configuration
2023-04-26 06:50:04,042 INFO PLAN: 
2023-04-26 06:50:04,108 INFO -  Open the MyIGIGameTrainer.cpp file\n- Include the gtlibc.hpp file\n- Use the GTLibCpp library to generate the game trainer for Project IGI 1 game
2023-04-26 06:50:04,635 INFO CRITICISM: I need to make sure I use the correct syntax and methods from the GTLibCpp library to generate the game trainer.
2023-04-26 06:50:05,152 INFO NEXT ACTION:  COMMAND = execute_python_file  ARGUMENTS = {'file': 'open_file.py'}
2023-04-26 06:50:06,213 INFO SYSTEM:  Command execute_python_file returned: Error: File 'open_file.py' does not exist.
2023-04-26 06:50:20,363 INFO  THOUGHTS: I need to open the MyIGIGameTrainer.cpp file and include the gtlibc.hpp file.
2023-04-26 06:50:20,767 INFO REASONING: Opening the MyIGIGameTrainer.cpp file and including the gtlibc.hpp file will allow me to use the GTLibCpp library to generate the game trainer for Project IGI 1 game.
2023-04-26 06:50:21,293 INFO PLAN: 
2023-04-26 06:50:21,365 INFO -  Open the MyIGIGameTrainer.cpp file\n- Include the gtlibc.hpp file\n- Use the GTLibCpp library to generate the game trainer for Project IGI 1 game
2023-04-26 06:50:21,907 INFO CRITICISM: I need to make sure I use the correct syntax and methods from the GTLibCpp library to generate the game trainer.
2023-04-26 06:50:22,378 INFO NEXT ACTION:  COMMAND = execute_command  ARGUMENTS = {'command': 'notepad MyIGIGameTrainer.cpp'}
2023-04-26 06:50:23,096 INFO SYSTEM:  Command execute_command returned: Unknown command 'execute_command'. Please refer to the 'COMMANDS' list for available commands and only respond in the specified JSON format.
ntindle commented 1 year ago

There’s a plug-in for this

haseeb-heaven commented 1 year ago

There’s a plug-in for this

Which plugin could you show me ?