Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am trying to have my python project execute code dynamically via OI and every time it tries to run some shell script as described below, it never comes back. It gets stuck inside the method for line in interpreter.computer.run(language, code, stream=True):
This is the description generated.
First, I'll use SSH to connect to the server and run the disk usage command:
Code:
ssh -i /root/blabla.pem [email protected] "df -h"
Filesystem Size Used Avail Use% Mounted on
tmpfs 778M 2.0M 776M 1% /run
/dev/sda2 440G 37G 380G 9% /
tmpfs 3.8G 0 3.8G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 778M 4.0K 778M 1% /run/user/1000
I think it gets stuck inside this loop because self.done never gets set.
I am using version open-interpreter = "^0.4.3"
Can you please advise?
Reproduce
I am something like this:
for chunk in interpreter.chat(
f"{task_description}\n\n",
stream=True,
display=False
):
print out the chunks
Expected behavior
I would expect it to return, get out of the method.
Screenshots
No response
Open Interpreter version
0.4.3
Python version
3.11.5
Operating System name and version
mac 14
Additional context