open-interpreter icon indicating copy to clipboard operation
open-interpreter copied to clipboard

How do I limit the number of runs if the code interpreter fails multiple times

Open githan2000 opened this issue 1 year ago • 8 comments
trafficstars

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

githan2000 avatar Dec 06 '23 09:12 githan2000

Run interpreter --version Because 0.5.4 is not correct

Notnaton avatar Dec 06 '23 12:12 Notnaton

运行interpreter --version 因为 0.5.4 不正确

you are right ,it is 0.1.17

githan2000 avatar Dec 07 '23 01:12 githan2000

image @Notnaton @githan2000 @moming2k Repeated calls to code cannot be stopped

yuyuan9 avatar Dec 07 '23 02:12 yuyuan9

image

yuyuan9 avatar Dec 07 '23 02:12 yuyuan9

@CyanideByte didn't you make a PR handling some repeat code with unsupported code?

Notnaton avatar Dec 07 '23 05:12 Notnaton

(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

yuyuan9 avatar Dec 07 '23 07:12 yuyuan9

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 avatar Dec 07 '23 10:12 CyanideByte

@CyanideByte The actual situation is that it does not stop when encountering the same code. The above mathematical logic problem can reproduce this bug.

yuyuan9 avatar Dec 08 '23 01:12 yuyuan9

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!

MikeBirdTech avatar Mar 19 '24 18:03 MikeBirdTech