mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
5adae449a3
Some OpenAI-compatible gateways, including Bifrost, mirror each thinking fragment into both `reasoning` and `reasoning_content`. The shared Chat Completions mapper currently appends both, duplicating thinking text while leaving ordinary response text unaffected. Prefer non-empty `reasoning`, falling back to `reasoning_content`, so each chunk emits reasoning once. Identical fragments in successive chunks remain intact. Release Notes: - Fixed duplicated thinking text from OpenAI-compatible providers that send both `reasoning` and `reasoning_content`.