Changesets · Branches · Tags · Compare
| Changeset | 19cfb6ec829afc69f90a80c4e4eccf00f8736ee17c0c2ef2a00f85cd70d8d5a9 |
|---|---|
| Author | Suhas S <suhas.cse20@gmail.com> · 2025-08-16 09:24 +08:00 |
| Committer | Suhas S <suhas.cse20@gmail.com> · 2025-08-16 09:24 +08:00 |
| Parents | 6b3834257290 |
1 file changed
modified core/llm/toolSupport.ts +2 −2
| @@ -239,13 +239,13 @@ | ||
| 239 | 239 | }, |
| 240 | 240 | openrouter: (model) => { |
| 241 | 241 | // https://openrouter.ai/models?fmt=cards&supported_parameters=tools |
| 242 | - | |
| 242 | + | |
| 243 | 243 | // Specific free models that don't support tools |
| 244 | 244 | // Fixes issue #6619 - moonshotai/kimi-k2:free causing 400 errors |
| 245 | 245 | if (model.toLowerCase() === "moonshotai/kimi-k2:free") { |
| 246 | 246 | return false; |
| 247 | 247 | } |
| 248 | - | |
| 248 | + | |
| 249 | 249 | if ( |
| 250 | 250 | ["vision", "math", "guard", "mistrallite", "mistral-openorca"].some( |
| 251 | 251 | (part) => model.toLowerCase().includes(part), |