Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
githan2000 opened this issue Dec 6, 2023 · 9 comments
Labels
Bug Something isn't working

Comments

@githan2000
Copy link

githan2000 commented Dec 6, 2023

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 githan2000 added the Bug Something isn't working label Dec 6, 2023
@Notnaton
Copy link
Collaborator

Notnaton commented Dec 6, 2023

Run interpreter --version
Because 0.5.4 is not correct

@githan2000
Copy link
Author

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

you are right ,it is 0.1.17

@yuyuan9
Copy link

yuyuan9 commented Dec 7, 2023

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

@yuyuan9
Copy link

yuyuan9 commented Dec 7, 2023

image

@Notnaton Notnaton removed the question label Dec 7, 2023
@Notnaton
Copy link
Collaborator

Notnaton commented Dec 7, 2023

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

@yuyuan9
Copy link

yuyuan9 commented Dec 7, 2023

(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

@CyanideByte
Copy link
Contributor

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.

@yuyuan9
Copy link

yuyuan9 commented Dec 8, 2023

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

@MikeBirdTech
Copy link
Contributor

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants