You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately the LLM does not follow the system prompt instructions to correctly specify the closing tag, which is constantly missing the closing > at the end.
Actually, not only that, it is missing the starting tag, too.
It should be this instead:
Yes, unfortunately it seems like the language model that you're using is not strong enough. You could switch to gpt-4o or claude-3.5-sonnet.
This is a long-standing issue that we're working on resolving, but creating a good open LLM for OpenDevin is not trivial: #1085
I'm going to close this as a duplicate though, as we'll work on this in issue #1085
Is there an existing issue for the same bug?
Describe the bug
Unable to create file normally
Current OpenDevin version
Installation and Configuration
Model and Agent
deepseek-chat
CodeActAgent
Operating System
WSL
Reproduction Steps
No response
Logs, Errors, Screenshots, and Additional Context
INFO: 172.17.0.1:48460 - "GET /api/list-files?path=%2F HTTP/1.1" 200 OK
INFO: 172.17.0.1:48460 - "GET /api/list-files?path=%2F HTTP/1.1" 200 OK
INFO: 172.17.0.1:60552 - "GET / HTTP/1.1" 304 Not Modified
06:08:37 - opendevin:INFO: browser_env.py:128 - SHUTDOWN recv, shutting down browser env...
06:08:37 - opendevin:INFO: session.py:66 - WebSocket disconnected, sid: 3a7c836e-f50a-491d-a161-717ab623e9bb
06:08:37 - opendevin:INFO: agent_controller.py:145 - AgentController task was cancelled
INFO: connection closed
INFO: 172.17.0.1:60552 - "GET /api/options/models HTTP/1.1" 200 OK
INFO: 172.17.0.1:60552 - "GET /api/options/agents HTTP/1.1" 200 OK
INFO: ('172.17.0.1', 57412) - "WebSocket /ws" [accepted]
INFO: connection open
06:08:40 - opendevin:WARNING: llm.py:70 - Could not get model info for openai/deepseek-chat
06:08:40 - opendevin:INFO: agent.py:79 - Using runtime: server
06:08:40 - opendevin:INFO: ssh_box.py:135 - SSHBox is running as opendevin user with USER_ID=1000 in the sandbox
06:08:40 - opendevin:INFO: ssh_box.py:178 - Detected initial session.
06:08:40 - opendevin:INFO: ssh_box.py:180 - Creating new Docker container
06:08:40 - opendevin:WARNING: ssh_box.py:578 - Using port forwarding till the enable host network mode of Docker is out of experimental mode.Check the 897th issue on https://github.com/OpenDevin/OpenDevin/issues/ for more information.
06:08:40 - opendevin:INFO: ssh_box.py:586 - Mounting volumes: {'/home/monster/workspace': {'bind': '/workspace', 'mode': 'rw'}, '/tmp/cache': {'bind': '/home/opendevin/.cache', 'mode': 'rw'}}
06:08:41 - opendevin:INFO: ssh_box.py:597 - Container started
06:08:42 - opendevin:INFO: ssh_box.py:613 - waiting for container to start: 1, container status: running
06:08:43 - opendevin:INFO: ssh_box.py:342 - Connecting to SSH session...
06:08:43 - opendevin:INFO: ssh_box.py:345 - You can debug the SSH connection by running:
ssh -v -p 37825 opendevin@localhost
using the password 'eeb3c62c-0ec7-4dab-9008-eb0cae1e4a2b'06:08:44 - opendevin:INFO: ssh_box.py:349 - Connected to SSH session
06:08:47 - opendevin:INFO: agent.py:100 - Creating agent CodeActAgent using LLM openai/deepseek-chat
06:08:47 - opendevin:INFO: mixin.py:42 - Initializing plugins in the sandbox
06:08:47 - opendevin:INFO: mixin.py:30 - Sourced /opendevin/bash.bashrc and ~/.bashrc successfully
06:08:47 - opendevin:INFO: mixin.py:59 - Copied files from [/app/opendevin/runtime/plugins/agent_skills] to [/opendevin/plugins/agent_skills] inside sandbox.
06:08:47 - opendevin:INFO: mixin.py:67 - Initializing plugin [agent_skills] by executing [/opendevin/plugins/agent_skills/setup.sh] in the sandbox.
06:08:54 - opendevin:INFO: mixin.py:85 - Plugin agent_skills initialized successfully
06:08:54 - opendevin:INFO: mixin.py:30 - Sourced /opendevin/bash.bashrc and ~/.bashrc successfully
06:08:54 - opendevin:INFO: mixin.py:59 - Copied files from [/app/opendevin/runtime/plugins/jupyter] to [/opendevin/plugins/jupyter] inside sandbox.
06:08:54 - opendevin:INFO: mixin.py:67 - Initializing plugin [jupyter] by executing [/opendevin/plugins/jupyter/setup.sh] in the sandbox.
06:08:57 - opendevin:INFO: mixin.py:85 - Plugin jupyter initialized successfully
06:08:57 - opendevin:INFO: mixin.py:30 - Sourced /opendevin/bash.bashrc and ~/.bashrc successfully
06:08:57 - opendevin:INFO: browser_env.py:78 - Starting browser env...
06:08:57 - opendevin:ERROR: state.py:127 - Failed to restore state from session: sessions/5a56c80e-ce14-4c32-9fab-169974afe6f1/agent_state.pkl
Error restoring state sessions/5a56c80e-ce14-4c32-9fab-169974afe6f1/agent_state.pkl
06:08:57 - opendevin:INFO: agent_controller.py:140 - [Agent Controller 5a56c80e-ce14-4c32-9fab-169974afe6f1] Starting step loop...
INFO: 172.17.0.1:60554 - "GET /api/list-files?path=%2F HTTP/1.1" 200 OK
06:09:04 - opendevin:INFO: browser_env.py:121 - Browser env started.
06:09:12 - USER_ACTION
MessageAction (source=EventSource.USER)
CONTENT: Please use Python to write a Fibonacci sequence script and execute it
INFO: 172.17.0.1:57408 - "GET /api/list-files?path=%2F HTTP/1.1" 200 OK
==============
CodeActAgent LEVEL 0 LOCAL STEP 0 GLOBAL STEP 0
06:09:17 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:17 - ACTION
IPythonRunCellAction
THOUGHT: Sure! Let me create a Python script to generate the Fibonacci sequence.
First, I'll create a new file named
fibonacci.py
:CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:18 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 1 GLOBAL STEP 1
06:09:21 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:21 - ACTION
IPythonRunCellAction
THOUGHT: Apologies for the syntax error. Let me correct that and create the file again:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:21 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 2 GLOBAL STEP 2
06:09:24 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:24 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the confusion. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:25 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 3 GLOBAL STEP 3
06:09:29 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:29 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the repeated errors. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:29 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 4 GLOBAL STEP 4
06:09:33 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:33 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the confusion. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:33 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 5 GLOBAL STEP 5
06:09:36 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:36 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the repeated errors. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:37 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 6 GLOBAL STEP 6
06:09:40 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.00 USD
06:09:40 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the confusion. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:41 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
==============
CodeActAgent LEVEL 0 LOCAL STEP 7 GLOBAL STEP 7
06:09:44 - opendevin:INFO: llm.py:181 - Cost: 0.00 USD | Accumulated Cost: 0.01 USD
06:09:44 - ACTION
IPythonRunCellAction
THOUGHT: I apologize for the repeated errors. Let me correct the syntax and create the file properly:
CODE:
create_file('fibonacci.py')
</execute_ipython
06:09:44 - opendevin:WARNING: stuck.py:225 - Action, Observation pattern detected
06:09:45 - OBSERVATION
ErrorObservation(content='Agent got stuck in a loop', observation='error')
06:09:45 - OBSERVATION
IPythonRunCellObservation
Cell In[1], line 2
</execute_ipython
^
SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered: