Closed stratte89 closed 5 months ago
@stratte89 thank you for the full log, interesting read. Many of these errors are due to the fact that the LLM doesn't respond in the format that opendevin requested. Sometimes, that's relatively easy to fix, other times it might not be possible. These models do whatever they want. 😅
More importantly, unfortunately the model's ability matters. If you want better results, try other models too, in particular those that considered "state of the art" today (like GPT-4, Claude-3). At least to see how it goes.
EDIT: Problem is solved, bug report can be closed. latest update + MAX_ITERATIONS fixed it. The only thing was, that even after 1000 steps it did not finnish the snake game, instead generated different snakegame.py files. I dont know if it was just not done yet or infinitly working on the code. i will test with MAX_ITERATIONS=20000
EDIT: By adding MAX_ITERATIONS=1000 to the config.toml it went above 99. but it is not aware about what forder and files are existing - it haven't created any folder or file in the workspace but wrote some code in the code editor which disapeared as soon as that message came along Oops. Something went wrong: [Errno 2] No such file or directory: 'workspace/snake_project/snake_game.py'
Error:
ACTION: AgentThinkAction(thought='Write the recursive function for performing division, test it, and modify the existing shell script to call and display the results for both addition, multiplication, and division.', action='think')
============== STEP 99
ERROR: FileWriteAction.init() got an unexpected keyword argument 'bc' Traceback (most recent call last): File "/home/stratte/Schreibtisch/AI/OpenDevin/opendevin/controller/agent_controller.py", line 113, in step action = self.agent.step(self.state) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stratte/Schreibtisch/AI/OpenDevin/agenthub/monologue_agent/agent.py", line 166, in step action = prompts.parse_action_response(action_resp) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stratte/Schreibtisch/AI/OpenDevin/agenthub/monologue_agent/utils/prompts.py", line 135, in parse_action_response return action_from_dict(action_dict) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/stratte/Schreibtisch/AI/OpenDevin/opendevin/action/init.py", line 31, in action_from_dict return action_class(**args) ^^^^^^^^^^^^^^^^^^^^ TypeError: FileWriteAction.init() got an unexpected keyword argument 'bc'
OBSERVATION: FileWriteAction.init() got an unexpected keyword argument 'bc' Exited before finishing
first of all, do i have to edit the litellm server port somewhere? or does opendevin already use it no matter what port to use for litellm? Does it even matter?
Thank you for using LiteLLM! - Krrish & Ishaan Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new INFO: Application startup complete. INFO: Uvicorn running on http://0.0.0.0:9679 (Press CTRL+C to quit) #I'm talking about this port
I used the Task: simple calculator and create a simple super mario game using pygame #to test if it's working
IIm using the Devins latest version with oobabooga webui by following these steps https://github.com/OpenDevin/OpenDevin/commit/08a2dfb01af1aec6743f5e4c23507d63980726c0#commitcomment-140559598. Devin stops working after Step 99
LLM_API_KEY="na" LLM_BASE_URL="http://0.0.0.0:5000/v1" LLM_MODEL="openai/alpindale_Mistral-7B-v0.2-hf" LLM_EMBEDDING_MODEL="lokal" WORKSPACE_DIR="./workspace"
Error is wether this
here is the whole log for another test, this time it generated 3 files