Elffuss BraidHub

kikocis/continue public

dfc814e4318e · 10.2 KiBRawPermalink
1---
2title: Chat Role
3description: Chat model role
4keywords: [chat, model, role]
5sidebar_position: 1
6---
7
8import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
9
10
11A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters.
12
13In Continue, these models are used for normal [Chat](../../features/chat/quick-start). The selected chat model will also be used for [Edit](../../features/edit/quick-start) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively.
14
15## Recommended Chat models
16
17<ModelRecommendations role="chat_edit" />
18## Best overall experience
19
20For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models.
21
22### Claude Opus 4.1 and Claude Sonnet 4 from Anthropic
23
24Our current top recommendations are Claude Opus 4.1 and Claude Sonnet 4 from [Anthropic](../model-providers/top-level/anthropic).
25
26<Tabs>
27 <Tab title="Hub">
28 View the [Claude Opus 4.1 model block](https://hub.continue.dev/anthropic/claude-4-1-opus) or [Claude Sonnet 4 model block](https://hub.continue.dev/anthropic/claude-4-sonnet) on the hub.
29 </Tab>
30 <Tab title="YAML">
31 ```yaml title="config.yaml"
32 models:
33 - name: Claude Opus 4.1
34 provider: anthropic
35 model: claude-4-1-opus
36 apiKey: <YOUR_ANTHROPIC_API_KEY>
37 ```
38 </Tab>
39 <Tab title="JSON">
40 ```json title="config.json"
41 {
42 "models": [
43 {
44 "title": "Claude Opus 4.1",
45 "provider": "anthropic",
46 "model": "claude-4-1-opus",
47 "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
48 }
49 ]
50 }
51 ```
52 </Tab>
53</Tabs>
54
55### Gemma from Google DeepMind
56
57If you prefer to use an open-weight model, then the Gemma family of Models from Google DeepMind is a good choice. You will need to decide if you use it through a SaaS model provider, e.g. [Together](../model-providers/more/together), or self-host it, e.g. [Ollama](../model-providers/top-level/ollama).
58
59<Tabs>
60 <Tab title="Hub">
61 <Tabs>
62 <Tab title="Ollama">
63 Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub
64 </Tab>
65 <Tab title="Together">
66 Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub
67 </Tab>
68 </Tabs>
69 </Tab>
70 <Tab title="YAML">
71 <Tabs>
72 <Tab title="Ollama">
73 ```yaml title="config.yaml"
74 models:
75 - name: "Gemma 3 27B"
76 provider: "ollama"
77 model: "gemma3:27b"
78 ```
79 </Tab>
80 <Tab title="Together">
81 ```yaml title="config.yaml"
82 models:
83 - name: "Gemma 3 27B"
84 provider: "together"
85 model: "google/gemma-2-27b-it"
86 apiKey: <YOUR_TOGETHER_API_KEY>
87 ```
88 </Tab>
89 </Tabs>
90 </Tab>
91 <Tab title="JSON">
92 <Tabs>
93 <Tab title="Ollama">
94 ```json title="config.json"
95 {
96 "models": [
97 {
98 "title": "Gemma 3 27B",
99 "provider": "ollama",
100 "model": "gemma3:27b"
101 }
102 ]
103 }
104 ```
105 </Tab>
106 <Tab title="Together">
107 ```json title="config.json"
108 {
109 "models": [
110 {
111 "title": "Gemma 3 27B",
112 "provider": "together",
113 "model": "google/gemma-2-27b-it",
114 "apiKey": "<YOUR_TOGETHER_API_KEY>"
115 }
116 ]
117 }
118 ```
119 </Tab>
120 </Tabs>
121 </Tab>
122</Tabs>
123
124### GPT-4o from OpenAI
125
126If you prefer to use a model from [OpenAI](../model-providers/top-level/openai), then we recommend GPT-4o.
127
128<Tabs>
129 <Tab title="Hub">
130 Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub
131 </Tab>
132 <Tab title="YAML">
133 ```yaml title="config.yaml"
134 models:
135 - name: GPT-4o
136 provider: openai
137 model: ''
138 apiKey: <YOUR_OPENAI_API_KEY>
139 ```
140 </Tab>
141 <Tab title="JSON">
142 ```json title="config.json"
143 {
144 "models": [
145 {
146 "title": "GPT-4o",
147 "provider": "openai",
148 "model": "",
149 "apiKey": "<YOUR_OPENAI_API_KEY>"
150 }
151 ]
152 }
153 ```
154 </Tab>
155</Tabs>
156
157### Grok-2 from xAI
158
159If you prefer to use a model from [xAI](../model-providers/more/xAI), then we recommend Grok-2.
160
161<Tabs>
162 <Tab title="Hub">
163 Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub
164 </Tab>
165 <Tab title="YAML">
166 ```yaml title="config.yaml"
167 models:
168 - name: Grok-2
169 provider: xAI
170 model: grok-2-latest
171 apiKey: <YOUR_XAI_API_KEY>
172 ```
173 </Tab>
174 <Tab title="JSON">
175 ```json title="config.json"
176 {
177 "models": [
178 {
179 "title": "Grok-2",
180 "provider": "xAI",
181 "model": "grok-2-latest",
182 "apiKey": "<YOUR_XAI_API_KEY>"
183 }
184 ]
185 }
186 ```
187 </Tab>
188</Tabs>
189
190### Gemini 2.0 Flash from Google
191
192If you prefer to use a model from [Google](../model-providers/top-level/gemini), then we recommend Gemini 2.0 Flash.
193
194<Tabs>
195 <Tab title="Hub">
196 Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub
197 </Tab>
198 <Tab title="YAML">
199 ```yaml title="config.yaml"
200 models:
201 - name: Gemini 2.0 Flash
202 provider: gemini
203 model: gemini-2.0-flash
204 apiKey: <YOUR_GEMINI_API_KEY>
205 ```
206 </Tab>
207 <Tab title="JSON">
208 ```json title="config.json"
209 {
210 "models": [
211 {
212 "title": "Gemini 2.0 Flash",
213 "provider": "gemini",
214 "model": "gemini-2.0-flash",
215 "apiKey": "<YOUR_GEMINI_API_KEY>"
216 }
217 ]
218 }
219 ```
220 </Tab>
221</Tabs>
222
223## Local, offline experience
224
225For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine.
226
227### Llama 3.1 8B
228
229If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../model-providers/top-level/ollama) or [LM Studio](../model-providers/top-level/lmstudio)).
230
231<Tabs>
232 <Tab title="Hub">
233 <Tabs>
234 <Tab title="Ollama">
235 Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub
236 </Tab>
237 {/* HUB_TODO nonexistent block */}
238 {/* <Tab title="LM Studio">
239 Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub
240 </Tab> */}
241 </Tabs>
242 </Tab>
243 <Tab title="YAML">
244 <Tabs>
245 <Tab title="Ollama">
246 ```yaml title="config.yaml"
247 models:
248 - name: Llama 3.1 8B
249 provider: ollama
250 model: llama3.1:8b
251 ```
252 </Tab>
253 <Tab title="LM Studio">
254 ```yaml title="config.yaml"
255 models:
256 - name: Llama 3.1 8B
257 provider: lmstudio
258 model: llama3.1:8b
259 ```
260 </Tab>
261 <Tab title="Msty">
262 ```yaml title="config.yaml"
263 models:
264 - name: Llama 3.1 8B
265 provider: msty
266 model: llama3.1:8b
267 ```
268 </Tab>
269 </Tabs>
270 </Tab>
271 <Tab title="JSON">
272 <Tabs>
273 <Tab title="Ollama">
274 ```json title="config.json"
275 {
276 "models": [
277 {
278 "title": "Llama 3.1 8B",
279 "provider": "ollama",
280 "model": "llama3.1:8b"
281 }
282 ]
283 }
284 ```
285 </Tab>
286 <Tab title="LM Studio">
287 ```json title="config.json"
288 {
289 "models": [
290 {
291 "title": "Llama 3.1 8B",
292 "provider": "lmstudio",
293 "model": "llama3.1-8b"
294 }
295 ]
296 }
297 ```
298 </Tab>
299 <Tab title="Msty">
300 ```json title="config.json"
301 {
302 "models": [
303 {
304 "title": "Llama 3.1 8B",
305 "provider": "msty",
306 "model": "llama3.1-8b"
307 }
308 ]
309 }
310 ```
311 </Tab>
312 </Tabs>
313 </Tab>
314</Tabs>
315
316### DeepSeek Coder 2 16B
317
318If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../model-providers/top-level/ollama) or [LM Studio](../model-providers/top-level/lmstudio)).
319
320<Tabs>
321 {/* HUB_TODO nonexistent blocks */}
322 {/* <Tab title="Hub">
323 <Tabs>
324 <Tab title="Ollama">
325 Add the [Ollama Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
326 </Tab>
327 <Tab title="LM Studio">
328 Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
329 </Tab>
330 </Tabs>
331 </Tab> */}
332 <Tab title="YAML">
333 <Tabs>
334 <Tab title="Ollama">
335 ```yaml title="config.yaml"
336 models:
337 - name: DeepSeek Coder 2 16B
338 provider: ollama
339 model: deepseek-coder-v2:16b
340 ```
341 </Tab>
342 <Tab title="LM Studio">
343 ```yaml title="config.yaml"
344 models:
345 - name: DeepSeek Coder 2 16B
346 provider: lmstudio
347 model: deepseek-coder-v2:16b
348 ```
349 </Tab>
350 <Tab title="Msty">
351 ```yaml title="config.yaml"
352 models:
353 - name: DeepSeek Coder 2 16B
354 provider: msty
355 model: deepseek-coder-v2:16b
356 ```
357 </Tab>
358 </Tabs>
359 </Tab>
360 <Tab title="JSON">
361 <Tabs>
362 <Tab title="Ollama">
363 ```json title="config.json"
364 {
365 "models": [
366 {
367 "title": "DeepSeek Coder 2 16B",
368 "provider": "ollama",
369 "model": "deepseek-coder-v2:16b",
370 "apiBase": "http://localhost:11434"
371 }
372 ]
373 }
374 ```
375 </Tab>
376 <Tab title="LM Studio">
377 ```json title="config.json"
378 {
379 "models": [
380 {
381 "title": "DeepSeek Coder 2 16B",
382 "provider": "lmstudio",
383 "model": "deepseek-coder-v2:16b"
384 }
385 ]
386 }
387 ```
388 </Tab>
389 <Tab title="Msty">
390 ```json title="config.json"
391 {
392 "models": [
393 {
394 "title": "DeepSeek Coder 2 16B",
395 "provider": "msty",
396 "model": "deepseek-coder-v2:16b"
397 }
398 ]
399 }
400 ```
401 </Tab>
402 </Tabs>
403 </Tab>
404</Tabs>
405
406## Other experiences
407
408There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx)