Skip to content

[Bug Fix] Empty bedrock tool arguments #11550

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davide-baldo
Copy link

Fix bedrock empty arguments

When bedrock tool argument is empty, avoid parsing it as a JSON.

Type

πŸ› Bug Fix
βœ… Test

Copy link

vercel bot commented Jun 9, 2025 β€’

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
litellm βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 9, 2025 11:50am

@CLAassistant
Copy link

CLAassistant commented Jun 9, 2025 β€’

CLA assistant check
All committers have signed the CLA.

@davide-baldo
Copy link
Author

The mentioned error:

Exception: Unable to convert openai tool calls=[{\'id\': \'tooluse_aSzmtrI_RrSvoSMwI7G1Wg\', \'function\': {\'name\': \'goto\', \'arguments\': \'\'}, \'type\': \'function\'}] to bedrock tool calls. Received error=Expecting value: line 1 column 1 (char 0)\n. Received Model Group=amazon.nova-lite-v1:0\nAvailable Model Group Fallbacks=None', 'type': None, 'param': None, 'code': '500'}}

@davide-baldo davide-baldo changed the title fix: handle empty bedrock tool arguments [Bug Fix] Empty bedrock tool arguments Jun 13, 2025
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.

2 participants