Skip to content

fix: infinite loop while creating gptscript toolset based on name #460

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

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

cloudnautique
Copy link
Contributor

The tool names have to be unique, so if two tools are added with the same name, they have a 0 appended to them. In this case we got into an infinite loop because toolName was incremented not the variable under test. So we ended up in an infite loop.

The tool names have to be unique, so if two tools are added with
the same name, they have a 0 appended to them. In this case we
got into an infinite loop because toolName was incremented not the
variable under test. So we ended up in an infite loop.

Signed-off-by: Bill Maxwell <[email protected]>
@cloudnautique cloudnautique merged commit abd8517 into gptscript-ai:main Jun 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants