Skip to content

Conversation

@sxy-trans-n
Copy link
Collaborator

  • Always accumulate tool calls to return value regardless of callback presence
  • Fixes finish_reason being incorrectly set to "stop" instead of "tool_calls"
    in streaming mode when tools are called
  • Maintains backward compatibility for non-streaming responses

#50

Copy link
Collaborator

@syh-trans-n syh-trans-n left a comment

Choose a reason for hiding this comment

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

👏

@sxy-trans-n sxy-trans-n merged commit 7d39ed8 into main Jul 31, 2025
2 checks passed
@sxy-trans-n sxy-trans-n deleted the fix/streaming-toolcalls-accumulation branch July 31, 2025 05:43
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.

3 participants