Commit 8c309c0
fix(ai_model): support reasoning field for Ollama/LMStudio thinking models
Add compatibility for the `reasoning` field in addition to `reasoning_content`.
Ollama/LMStudio follows GPT-OSS official recommendation to use `reasoning`
field for thinking content, while DeepSeek uses `reasoning_content`.
Priority: reasoning_content > reasoning (fallback)1 parent f257138 commit 8c309c0
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
0 commit comments