open-interpreter
open-interpreter copied to clipboard
How do I limit the number of runs if the code interpreter fails multiple times
Describe the bug
How do I limit the number of runs if the code interpreter fails multiple times
Reproduce
How do I limit the number of runs if the code interpreter fails multiple times
Expected behavior
How do I limit the number of runs if the code interpreter fails multiple times
Screenshots
No response
Open Interpreter version
0.1.17
Python version
3.11
Operating System name and version
windows11
Additional context
No response
Run interpreter --version
Because 0.5.4 is not correct
运行
interpreter --version因为 0.5.4 不正确
you are right ,it is 0.1.17
@Notnaton @githan2000 @moming2k Repeated calls to code cannot be stopped
@CyanideByte didn't you make a PR handling some repeat code with unsupported code?
(a) A store sells 8 colors of balloons with at least 29 of each color. How many different combinations of 29 balloons can be chosen?
(b) If the store has only 12 red balloons but at least 29 of each other color of balloon, how many combinations of balloons can be chosen?
(c)If the store has only 8 blue balloons but at least 29 of each other color of balloon, how many combinations of balloons can be chosen?
(d)If the store has only 12 red balloons and only 8 blue balloons but at least 29 of each other color of balloon, how many combinations of balloons can be chosen?
This problem will cause the python code to be called repeatedly and cannot be stopped. @Notnaton @CyanideByte
My PR was only active in the case of unsupported code blocks, but the same logic would be useful for just any repeating piece of code I suppose.
@CyanideByte The actual situation is that it does not stop when encountering the same code. The above mathematical logic problem can reproduce this bug.
Closing this stale issue. If this is still a problem with the latest version of Open Interpreter, please alert me to re-open the issue. Thanks!