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

fix: normalize LLM-hallucinated tool names #656

Merged

Conversation

g-linville
Copy link
Member

When the LLM tries to call a tool that doesn't exist, gptscript is supposed to give it an error message so that it can correct itself and keep working. But if the tool name that the LLM hallucinated is an invalid tool ID, then gptscript would crash. This change makes it so that we normalize the hallucinated tool name first and avoid crashing.

@g-linville g-linville merged commit d54d11b into gptscript-ai:main Jul 23, 2024
10 checks passed
@g-linville g-linville deleted the normalize-hallucinated-tool-name branch July 23, 2024 19:08
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.

3 participants