You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(providers): use extractReasoningFromDelta helper for reasoni… (#588)
* refactor(providers): use extractReasoningFromDelta helper for reasoning streams
Replace duplicated reasoning_content extraction logic across 7 providers
(deepseek, mimo, openai, opencode-go, qwen-code, requesty, unbound) with
the shared extractReasoningFromDelta helper. This also adds the OpenRouter-
style 'reasoning' field fallback to each provider for free.
* test(providers): cover reasoning_content + reasoning fallback streaming
Add streaming tests for openai, requesty, and unbound covering:
- delta.reasoning_content yields a reasoning chunk
- delta.reasoning fallback yields a reasoning chunk when reasoning_content
is absent (OpenRouter-style)
This raises line coverage on the changed reasoning paths from 50%.
* test(providers): add reasoning_content streaming tests to deepseek, mimo, opencode-go, qwen-code
---------
Co-authored-by: Oh Daewoong <dw.oh@samsung.com>
0 commit comments