Skip to content

fix: filter thinking tags from non-SSE local provider streams - #858

Open
ming1523 wants to merge 1 commit into
HKUDS:mainfrom
ming1523:codex/filter-non-sse-thinking-tags-20260814
Open

fix: filter thinking tags from non-SSE local provider streams#858
ming1523 wants to merge 1 commit into
HKUDS:mainfrom
ming1523:codex/filter-non-sse-thinking-tags-20260814

Conversation

@ming1523

Copy link
Copy Markdown

Summary

  • Filter reasoning blocks from non-SSE JSON streams from local LLM providers.
  • Share the incremental thinking-block parser between SSE and non-SSE streaming.
  • Add regression coverage for complete, split, and unclosed thinking tags.

Tests

  • python3 -m pytest -q tests/services/llm/test_local_provider.py
  • python3 -m compileall -q deeptutor/services/llm tests/services/llm/test_local_provider.py
  • python3 -m ruff check deeptutor/services/llm/local_provider.py tests/services/llm/test_local_provider.py

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.

1 participant