Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

🐛 cast tool_calls arguments correctly inside message_deltas #175

Merged

Conversation

rparcus
Copy link
Contributor

@rparcus rparcus commented Sep 5, 2024

Before this fix, tool call arguments in deltas which contained several empty spaces were missing data when being cast.
While triaging this issue I also added some extra tests checking for correct casting of spaces.

@brainlid
Copy link
Owner

brainlid commented Sep 6, 2024

Great catch! Thanks for the improvement and additional tests!

❤️💛💙💜

@brainlid brainlid merged commit 429dd62 into brainlid:main Sep 6, 2024
brainlid added a commit that referenced this pull request Oct 28, 2024
* 'main' of github.com:brainlid/langchain:
  Add AWS Bedrock support to ChatAnthropic (#154)
  Handle functions with no parameters for Google AI (#183)
  Handle missing token usage fields for Google AI (#184)
  Handle empty text parts from GoogleAI responses (#181)
  Support system instructions for Google AI (#182)
  feat: add OpenAI's new structured output API (#180)
  Support strict mode for tools (#173)
  Do not duplicate tool call parameters if they are identical (#174)
  🐛 cast tool_calls arguments correctly inside message_deltas (#175)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants