Skip to content

Conversation

shun095
Copy link

@shun095 shun095 commented Aug 30, 2025

Fixes: #15681
I'm not used to contributing on github, so I'd like to know if there are any problems.
This PR is still in progress and I'll add tests later.

// 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

Choose a reason for hiding this comment

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

I want to know if there are some better way to implement this.

@shun095 shun095 marked this pull request as draft August 30, 2025 08:16
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.

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