Commit 1a0a22f
Make reasoning parsing in openai-chat more robust
The previous implementation assumed the reasoning content would always be under the `:reasoning` key in the stream delta.
This change introduces a check for the `:reasoning_content` key as well. This directly enables support for the native
reasoning stream from the DeepSeek API (e.g., for `deepseek-reasoner` models) and improves compatibility with
other potential OpenAI-like providers that may use this key.1 parent 57fedd4 commit 1a0a22f
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
| 220 | + | |
| 221 | + | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
| |||
232 | 233 | | |
233 | 234 | | |
234 | 235 | | |
| 236 | + | |
235 | 237 | | |
236 | 238 | | |
237 | 239 | | |
| |||
0 commit comments