Skip to content

Strip parallel_tool_calls from extra_kwargs when no tools provided#5028

Open
ChadyMoukel wants to merge 1 commit intolivekit:mainfrom
ChadyMoukel:chady/strip-parallel-tools
Open

Strip parallel_tool_calls from extra_kwargs when no tools provided#5028
ChadyMoukel wants to merge 1 commit intolivekit:mainfrom
ChadyMoukel:chady/strip-parallel-tools

Conversation

@ChadyMoukel
Copy link

Summary

When no tools are provided to the LLM stream, parallel_tool_calls is now stripped from extra_kwargs alongside the existing tool_choice removal. Sending parallel_tool_calls without any tools can cause API errors, so this ensures both tool-related parameters are cleaned up consistently.

@CLAassistant
Copy link

CLAassistant commented Mar 6, 2026

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 2 additional findings.

Open in Devin Review

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