Skip to content

Conversation

@hanouticelina
Copy link
Contributor

similar PR to huggingface/huggingface_hub#3132.

as explained by @danielholanda in the PR, when opts.exitIfFirstChunkNoTool is True, the CLI is supposed to abort streaming if the first chunk contains no tool call. However, we currently yield the first chunk before checking the exit condition, so a "vestigial" token still reached the user. This PR fixes this behavior.

@Wauplin Wauplin merged commit 6e5ac81 into main Jun 3, 2025
5 checks passed
@Wauplin Wauplin deleted the stray-token-leak branch June 3, 2025 09:27
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.

4 participants