Files
zed/crates/language_model_core
Bennet Bo Fenner 5adae449a3 Fix duplicated reasoning from OpenAI-compatible providers (#65926)
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`.
2026-10-21 13:14:23 +00:00
..