Commit a4373c8
committed
fix(provider): set providerOptions for string-content assistant messages in reasoning fallback
The fallback transform only set reasoning_content in providerOptions for
array-content messages. String-content assistant messages (e.g., "It's 4.")
were converted to array form but didn't get providerOptions set.
Now both content types get reasoning_content: "" injected with the correct
SDK key, ensuring DeepSeek's API receives it on all assistant turns.1 parent b6a7cdb commit a4373c8
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
| 249 | + | |
249 | 250 | | |
250 | 251 | | |
251 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
252 | 260 | | |
253 | 261 | | |
254 | 262 | | |
| |||
0 commit comments