Skip to content

bug: go back to old behavior of dropping {} for tools #571

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 27, 2024

Conversation

ibuildthecloud
Copy link
Contributor

This is probably the wrong thing to do. We need to differientiate
between empty args and no args. If a tool has no params defined
then {} should be dropped. Right now this logic is in the wrong spot
to do that so we just go back to the old behavior of just always dropping
{} which will cause a problem for tools that would expect an empty object.

This is probably the wrong thing to do. We need to differientiate
between empty args and no args. If a tool has no params defined
then {} should be dropped. Right now this logic is in the wrong spot
to do that so we just go back to the old behavior of just always dropping
{} which will cause a problem for tools that would expect an empty object.
@ibuildthecloud ibuildthecloud merged commit 52e31f5 into gptscript-ai:main Jun 27, 2024
8 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.

1 participant