Elffuss BraidHub

kikocis/continue public

main · 9.1 KiBRawPermalink
1---
2title: "How to Configure Model Capabilities in Continue"
3description: Understanding and configuring model capabilities for tools and image support
4keywords: [capabilities, tools, function calling, image input, config]
5sidebarTitle: "Model Capabilities"
6---
7
8Continue needs to know what features your models support to provide the best experience. This guide explains how model capabilities work and how to configure them.
9
10## What Are Model Capabilities?
11
12Model capabilities tell Continue what features a model supports:
13
14- **`tool_use`** - Whether the model can use tools and functions
15- **`image_input`** - Whether the model can process images
16
17Without proper capability configuration, you may encounter issues like:
18
19- Agent mode being unavailable (requires tools)
20- Tools not working at all
21- Image uploads being disabled
22
23## How Continue Detects Model Capabilities
24
25Continue uses a two-tier system for determining model capabilities:
26
27### How Automatic Detection Works (Default)
28
29Continue automatically detects capabilities based on your provider and model name. For example:
30
31- **OpenAI**: GPT-4 and GPT-3.5 Turbo models support tools
32- **Anthropic**: Claude 3.5+ models support both tools and images
33- **Ollama**: Most models support tools, vision models support images
34- **Google**: All Gemini models support function calling
35
36This works well for popular models, but may not cover custom deployments or newer models.
37
38For implementation details, see:
39
40- [toolSupport.ts](https://github.com/continuedev/continue/blob/main/core/llm/toolSupport.ts) - Tool capability detection logic
41- [@continuedev/llm-info](https://www.npmjs.com/package/@continuedev/llm-info) - Image support detection
42
43### How to Configure Capabilities Manually
44
45You can add capabilities to models that Continue doesn't automatically detect in your `config.yaml`.
46
47<Note>
48 You cannot override autodetection - you can only add capabilities. Continue
49 will always use its built-in knowledge about your model in addition to any
50 capabilities you specify.
51</Note>
52
53```yaml
54models:
55 - name: my-custom-gpt4
56 provider: openai
57 apiBase: https://my-deployment.com/v1
58 model: gpt-4-custom
59 capabilities:
60 - tool_use
61 - image_input
62```
63
64## When to Add Capabilities Manually
65
66Add capabilities when:
67
681. **Using custom deployments** - Your API endpoint serves a model with different capabilities than the standard version
692. **Using newer models** - Continue doesn't yet recognize a newly released model
703. **Experiencing issues** - Autodetection isn't working correctly for your setup
714. **Using proxy services** - Some proxy services modify model capabilities
72
73## How to Configure Model Capabilities (Examples)
74
75### How to Add Basic Tool Support
76
77Add tool support for a model that Continue doesn't recognize:
78
79```yaml
80models:
81 - name: custom-model
82 provider: openai
83 model: my-fine-tuned-gpt4
84 capabilities:
85 - tool_use
86```
87
88<Info>
89 The `tool_use` capability is for native tool/function calling support. The
90 model must actually support tools for this to work.
91</Info>
92
93<Warning>
94 **Experimental**: System message tools are available as an experimental
95 feature for models without native tool support. These are not automatically
96 used as a fallback and must be explicitly configured. Most models are trained
97 for native tools, so system message tools may not work as well.
98</Warning>
99
100### How to Handle Models with Limited Capabilities
101
102Explicitly set no capabilities (autodetection will still apply):
103
104```yaml
105models:
106 - name: limited-claude
107 provider: anthropic
108 model: claude-4.0-sonnet
109 capabilities: [] # Empty array doesn't disable autodetection
110```
111
112<Warning>
113 An empty capabilities array does not disable autodetection. Continue will
114 still detect and use the model's actual capabilities. To truly limit a model's
115 capabilities, you would need to use a model that doesn't support those
116 features.
117</Warning>
118
119### How to Enable Multiple Capabilities
120
121Enable both tools and image support:
122
123```yaml
124models:
125 - name: multimodal-gpt
126 provider: openai
127 model: gpt-4-vision-preview
128 capabilities:
129 - tool_use
130 - image_input
131```
132
133## Common Configuration Scenarios
134
135Some providers and custom deployments may require explicit capability configuration:
136
137- **OpenRouter**: May not preserve the original model's capabilities
138- **Custom API endpoints**: May have different capabilities than standard models
139- **Local models**: May need explicit capabilities if using non-standard model names
140
141Example configuration:
142
143```yaml
144models:
145 - name: custom-deployment
146 provider: openai
147 apiBase: https://custom-api.company.com/v1
148 model: custom-gpt
149 capabilities:
150 - tool_use # If supports function calling
151 - image_input # If supports vision
152```
153
154## How to Troubleshoot Capability Issues
155
156For troubleshooting capability-related issues like Agent mode being unavailable or tools not working, see the [Troubleshooting guide](/troubleshooting#agent-mode-is-unavailable-or-tools-aren’t-working).
157
158## Best Practices for Model Capabilities
159
1601. **Start with autodetection** - Only override if you experience issues
1612. **Test after changes** - Verify tools and images work as expected
1623. **Keep Continue updated** - Newer versions improve autodetection
163
164Remember: Setting capabilities only adds to autodetection. Continue will still use its built-in knowledge about your model in addition to your specified capabilities.
165
166## Model Capability Support
167
168This matrix shows which models support tool use and image input capabilities. Continue auto-detects these capabilities, but you can override them if needed.
169
170### OpenAI
171
172| Model | Tool Use | Image Input | Context Window |
173| :------------ | -------- | ----------- | -------------- |
174| o3 | Yes | No | 128k |
175| o3-mini | Yes | No | 128k |
176| GPT-4o | Yes | Yes | 128k |
177| GPT-4 Turbo | Yes | Yes | 128k |
178| GPT-4 | Yes | No | 8k |
179| GPT-3.5 Turbo | Yes | No | 16k |
180
181### Anthropic
182
183| Model | Tool Use | Image Input | Context Window |
184| :---------------- | -------- | ----------- | -------------- |
185| Claude 4 Sonnet | Yes | Yes | 200k |
186| Claude 3.5 Sonnet | Yes | Yes | 200k |
187| Claude 3.5 Haiku | Yes | Yes | 200k |
188
189### Google
190
191| Model | Tool Use | Image Input | Context Window |
192| :--------------- | -------- | ----------- | -------------- |
193| Gemini 2.5 Pro | Yes | Yes | 2M |
194| Gemini 2.0 Flash | Yes | Yes | 1M |
195
196### Mistral
197
198| Model | Tool Use | Image Input | Context Window |
199| :-------------- | -------- | ----------- | -------------- |
200| Devstral Medium | Yes | No | 32k |
201| Mistral | Yes | No | 32k |
202
203### DeepSeek
204
205| Model | Tool Use | Image Input | Context Window |
206| :---------------- | -------- | ----------- | -------------- |
207| DeepSeek V3 | Yes | No | 128k |
208| DeepSeek Coder V2 | Yes | No | 128k |
209| DeepSeek Chat | Yes | No | 64k |
210
211### xAI
212
213| Model | Tool Use | Image Input | Context Window |
214| :------------------------ | -------- | ----------- | -------------- |
215| Grok Code Fast 1 | Yes | Yes | 256k |
216| Grok 4 Fast Reasoning | Yes | Yes | 2M |
217| Grok 4 Fast Non-Reasoning | Yes | Yes | 2M |
218| Grok 4 | Yes | Yes | 256k |
219| Grok 3 | Yes | Yes | 131k |
220| Grok 3 Mini | Yes | Yes | 131k |
221
222### Moonshot AI
223
224| Model | Tool Use | Image Input | Context Window |
225| :------ | -------- | ----------- | -------------- |
226| Kimi K2 | Yes | Yes | 128k |
227
228### Qwen
229
230| Model | Tool Use | Image Input | Context Window |
231| :---------------- | -------- | ----------- | -------------- |
232| Qwen Coder 3 480B | Yes | No | 128k |
233
234### Ollama (Local Models)
235
236| Model | Tool Use | Image Input | Context Window |
237| :------------- | -------- | ----------- | -------------- |
238| Qwen 3 Coder | Yes | No | 32k |
239| Qwen 2.5 VL | No | Yes | 128k |
240| Devstral Small | Yes | No | 32k |
241| Llama 3.1 | Yes | No | 128k |
242| Llama 3 | Yes | No | 8k |
243| Mistral | Yes | No | 32k |
244| Codestral | Yes | No | 32k |
245| Gemma 3 4B | Yes | Yes | 128k |
246
247### Notes
248
249- **Tool Use**: Function calling support (tools are required for Agent mode)
250- **Image Input**: Processing images
251- **Context Window**: Maximum number of tokens the model can process in a single request
252
253---
254
255**Is your model missing or incorrect?** Help improve this documentation! You can edit this page on GitHub using the link below.