Skip to content

Conversation

@edenreich
Copy link
Contributor

Summary

This Pull-Request refactors the OnTool callback to aggregate the tool calls chunks into a single call. This is done to improve the performance of the OnTool callback, which is called multiple times during a single tool call.

Signed-off-by: Eden Reich <eden.reich@gmail.com>
@edenreich edenreich changed the title refactor: Enhance tool call handling in streaming chat completions refactor: Simplify tool call handling in streaming chat completions Apr 25, 2025
@ig-semantic-release-bot
Copy link
Contributor

🎉 This PR is included in version 0.4.1-rc.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@edenreich edenreich merged commit f2d2a5a into main Apr 25, 2025
2 checks passed
@edenreich edenreich deleted the refactor/aggregate-the-tool-call-chunks-during-streaming-and-call-it-once branch April 25, 2025 22:59
ig-semantic-release-bot bot added a commit that referenced this pull request Apr 25, 2025
## [0.4.1](v0.4.0...v0.4.1) (2025-04-25)

### ♻️ Improvements

* Simplify tool call handling in streaming chat completions ([#6](#6)) ([f2d2a5a](f2d2a5a))
@ig-semantic-release-bot
Copy link
Contributor

🎉 This PR is included in version 0.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants