Files
codewhale/crates
Hunter Bown 7c4d359ed7 fix(reasoning): add Moonshot/Kimi to reasoning-content provider and model support (#3016)
Two targeted fixes to close the Kimi/Moonshot reasoning gap:

1. chat.rs: add ApiProvider::Moonshot to provider_accepts_reasoning_content
   so Kimi thinking traces stream as Thinking blocks instead of leaking
   as plain answer text on Moonshot's native endpoint.

2. models.rs: add kimi-* prefix match to model_supports_reasoning so
   bare Moonshot-native IDs (kimi-k2.6, kimi-*-thinking, etc.) are
   recognized as reasoning-capable without requiring the OpenRouter-style
   moonshotai/ prefix.

These two changes together ensure is_reasoning_model_for_stream returns
true for Kimi models on Moonshot, fixing the RC dialet gap.
2026-06-10 16:26:20 -07:00
..