Elffuss BraidHub

kikocis/continue public

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