Files
OmniRoute/docs/routing
Xiangzhe 44e57a1ec1 fix(kimi-coding): capture and replay reasoning for thinking-mode turns (#7673)
Kimi Coding (claude-format upstream) never engaged reasoning replay:
requiresReasoningReplay() had no kimi-coding/kimi-coding-apikey provider
entry and only matched /kimi-k2/i model ids, so thinking was neither
captured nor re-injected on multi-turn requests. Additionally, streamed
Claude thinking_delta chunks were accumulated into content instead of
accumulatedReasoning in createSSEStream, so the reconstructed completion
body carried no reasoning_content for the cache to capture.

- reasoningCache: add kimi-coding/kimi-coding-apikey providers; broaden
  model pattern to /kimi[-/]k\d/i (covers k2.6/k2.7 incl. namespaced ids,
  excludes kimi-latest and non-thinking aliases)
- stream: accumulate Claude delta.thinking into accumulatedReasoning so
  the completion body exposes reasoning_content for replay capture
- tests: provider/model predicate cases + a reconstructed-stream-body
  regression test separating thinking from visible text
- docs: sync REASONING_REPLAY provider/pattern lists

Co-authored-by: Diego Rodrigues de Sa e Souza <diegosouza.pw@gmail.com>
2026-07-19 20:52:46 -03:00
..
2026-06-16 01:00:40 -03:00
2026-06-29 08:40:06 -03:00