Commit 16a540c
authored
fix: remove Ollama template-based tool support gate (#11905)
* fix: let explicit capabilities.tools override Ollama template tool detection
The Ollama provider checks the model template from /api/show for a
`.Tools` placeholder to decide whether to pass tools to the API. For
newer models (e.g. qwen3.5) whose templates may not yet include
`.Tools`, this silently strips tools from the request — even when the
user explicitly sets `capabilities: tools: true` in config.yaml.
Use nullish coalescing so an explicit capabilities.tools setting always
wins, with the template heuristic as a fallback.
* remove verbose comments
* remove templateSupportsTools check; trust upstream tool support detection
* fix: remove extra blank line to pass prettier check1 parent a067fed commit 16a540c
1 file changed
Lines changed: 2 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | 243 | | |
249 | 244 | | |
250 | 245 | | |
| |||
516 | 511 | | |
517 | 512 | | |
518 | 513 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
524 | | - | |
| 514 | + | |
525 | 515 | | |
526 | 516 | | |
527 | 517 | | |
| |||
0 commit comments