-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix error when OpenRouter API returns None tool call arguments
#3571
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
Conversation
|
Thanks for the report. For context, the error looks like this: |
None tool call arguments
DouweM
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@barp Thanks for working on this! In addition to my comments, can you please make sure we have a test for this?
Can you point me to where the test should be added? Edit: NVM I think I got it. |
|
The failure seems unrelated to my change and the CI should be re-run |
This only happens if you have a tool with all optional parameters.
for example the following response can return from open router:
as you can see the function arguments can be None.
The following code reproduces the issue: