Commit d632557
committed
fix(ollama): show full thinking menu for live-discovered models without catalog entry
When an Ollama model is discovered at runtime (not in the static config
catalog), its reasoning flag is undefined. The provider policy returned
the non-reasoning thinking profile (only off) when reasoning was not
explicitly true, causing Telegram /think to show only default, off
even though /think <level> worked.
Fix: treat reasoning: undefined as reasoning-capable, since live-
discovered models that report thinking capability should show the
full thinking level menu. Models with explicit reasoning: false in the
catalog are unaffected.
Fixes #938351 parent bbe9669 commit d632557
2 files changed
Lines changed: 12 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
0 commit comments