Commit a04398a
fix(ollama): show all thinking levels in /think menu for dynamically-discovered models
When an Ollama model with thinking capability is dynamically discovered
(e.g. via local Ollama endpoint), it is not in the configured model catalog.
The resolveThinkingProfile function was treating undefined reasoning as
non-reasoning, returning only ['off'] levels — causing Telegram /think
menu to show only 'default, off'.
Fix: only return the restricted off-only profile when reasoning is
explicitly false. When reasoning is undefined (dynamic model, unknown
capabilities), return the full reasoning profile so all thinking levels
are available in the menu.
Co-Authored-By: Claude <[email protected]>1 parent 0c651fd commit a04398a
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
60 | 66 | | |
0 commit comments