Fix streaming pipeline: reasoning parser support, context limits, and…#173
Merged
FranardoHuang merged 1 commit intomainfrom Mar 12, 2026
Merged
Fix streaming pipeline: reasoning parser support, context limits, and…#173FranardoHuang merged 1 commit intomainfrom
FranardoHuang merged 1 commit intomainfrom
Conversation
… query reformulation
- base_handler: robust reasoning_content reading via model_extra fallback ('reasoning'/'reasoning_content'); fix flush block to recompute channels from accumulated text; update previous_channels after flush
- model_call: reduce max_tokens to 2000 to stay within 10000 context limit; add thinking_budget: 512 to sampling params
- parser: strip <think> tag from analysis channel in streaming/incomplete case for consistency; add all partial </think> suffixes to incomplete_patterns; handle vLLM stripping opening <think> token
- reformulation: singleton AsyncOpenAI client to fix connection pool leak; remove garbage strings from prompt; add timeout, reasoning fallback, and user_message fallback
- start_vllm_servers: update model path, GPU memory utilizations
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
FranardoHuang
approved these changes
Mar 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… query reformulation