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: openai-compatible handles empty tool call arguments #1217

Merged
merged 1 commit into from
Mar 5, 2025
Merged

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Mar 5, 2025

Some functions don't require parameters, and under normal circumstances, the arguments should be '{}'. However, some LLMs return an empty string instead. This PR addresses this issue.

Caused by:
    0: Tool call 'get_ipinfo' have non-JSON arguments ''
    1: EOF while parsing a value at line 1 column 0

@sigoden sigoden merged commit d7a9244 into main Mar 5, 2025
3 checks passed
@sigoden sigoden deleted the fix branch March 5, 2025 00:38
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