Skip to content

Conversation

shun095
Copy link

@shun095 shun095 commented Aug 30, 2025

Fixes: #15681 and #15713

I'm still getting used to contributing on GitHub, so please let me know if there are any issues or if I should make adjustments.

This PR is still in progress and I'll add tests later.
I've now added the tests, and the PR is ready for review.

// By leveraging try_consume_regex()/try_find_regex() throwing
// common_chat_msg_partial_exception for these partial tokens,
// processing is interrupted and the tokens are not passed to add_content().
if (auto res = builder.try_consume_regex(start_think_regex)) {
Copy link
Author

@shun095 shun095 Aug 30, 2025

Choose a reason for hiding this comment

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

Please let me know if there are some better way to implement this.

@shun095 shun095 marked this pull request as draft August 30, 2025 08:16
@shun095 shun095 marked this pull request as ready for review August 31, 2025 15:59
@github-actions github-actions bot added the testing Everything test related label Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testing Everything test related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Misc. bug: Granite chat parser doesn't stream content section
1 participant