| 1 | --- |
| 2 | title: Chat Role |
| 3 | description: Chat model role |
| 4 | keywords: [chat, model, role] |
| 5 | sidebar_position: 1 |
| 6 | --- |
| 7 | |
| 8 | import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx' |
| 9 | |
| 10 | |
| 11 | A "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 | |
| 13 | In 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 | |
| 20 | For 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 | |
| 24 | Our 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 | </Tabs> |
| 40 | |
| 41 | ### Gemma from Google DeepMind |
| 42 | |
| 43 | If 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). |
| 44 | |
| 45 | <Tabs> |
| 46 | <Tab title="Hub"> |
| 47 | <Tabs> |
| 48 | <Tab title="Ollama"> |
| 49 | Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub |
| 50 | </Tab> |
| 51 | <Tab title="Together"> |
| 52 | Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub |
| 53 | </Tab> |
| 54 | </Tabs> |
| 55 | </Tab> |
| 56 | <Tab title="YAML"> |
| 57 | <Tabs> |
| 58 | <Tab title="Ollama"> |
| 59 | ```yaml title="config.yaml" |
| 60 | models: |
| 61 | - name: "Gemma 3 27B" |
| 62 | provider: "ollama" |
| 63 | model: "gemma3:27b" |
| 64 | ``` |
| 65 | </Tab> |
| 66 | <Tab title="Together"> |
| 67 | ```yaml title="config.yaml" |
| 68 | models: |
| 69 | - name: "Gemma 3 27B" |
| 70 | provider: "together" |
| 71 | model: "google/gemma-2-27b-it" |
| 72 | apiKey: <YOUR_TOGETHER_API_KEY> |
| 73 | ``` |
| 74 | </Tab> |
| 75 | </Tabs> |
| 76 | </Tab> |
| 77 | </Tabs> |
| 78 | |
| 79 | ### GPT-4o from OpenAI |
| 80 | |
| 81 | If you prefer to use a model from [OpenAI](../model-providers/top-level/openai), then we recommend GPT-4o. |
| 82 | |
| 83 | <Tabs> |
| 84 | <Tab title="Hub"> |
| 85 | Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub |
| 86 | </Tab> |
| 87 | <Tab title="YAML"> |
| 88 | ```yaml title="config.yaml" |
| 89 | models: |
| 90 | - name: GPT-4o |
| 91 | provider: openai |
| 92 | model: '' |
| 93 | apiKey: <YOUR_OPENAI_API_KEY> |
| 94 | ``` |
| 95 | </Tab> |
| 96 | </Tabs> |
| 97 | |
| 98 | ### Grok-2 from xAI |
| 99 | |
| 100 | If you prefer to use a model from [xAI](../model-providers/more/xAI), then we recommend Grok-2. |
| 101 | |
| 102 | <Tabs> |
| 103 | <Tab title="Hub"> |
| 104 | Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub |
| 105 | </Tab> |
| 106 | <Tab title="YAML"> |
| 107 | ```yaml title="config.yaml" |
| 108 | models: |
| 109 | - name: Grok-2 |
| 110 | provider: xAI |
| 111 | model: grok-2-latest |
| 112 | apiKey: <YOUR_XAI_API_KEY> |
| 113 | ``` |
| 114 | </Tab> |
| 115 | </Tabs> |
| 116 | |
| 117 | ### Gemini 2.0 Flash from Google |
| 118 | |
| 119 | If you prefer to use a model from [Google](../model-providers/top-level/gemini), then we recommend Gemini 2.0 Flash. |
| 120 | |
| 121 | <Tabs> |
| 122 | <Tab title="Hub"> |
| 123 | Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub |
| 124 | </Tab> |
| 125 | <Tab title="YAML"> |
| 126 | ```yaml title="config.yaml" |
| 127 | models: |
| 128 | - name: Gemini 2.0 Flash |
| 129 | provider: gemini |
| 130 | model: gemini-2.0-flash |
| 131 | apiKey: <YOUR_GEMINI_API_KEY> |
| 132 | ``` |
| 133 | </Tab> |
| 134 | </Tabs> |
| 135 | |
| 136 | ## Local, offline experience |
| 137 | |
| 138 | For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine. |
| 139 | |
| 140 | ### Llama 3.1 8B |
| 141 | |
| 142 | If 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)). |
| 143 | |
| 144 | <Tabs> |
| 145 | <Tab title="Hub"> |
| 146 | <Tabs> |
| 147 | <Tab title="Ollama"> |
| 148 | Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub |
| 149 | </Tab> |
| 150 | {/* HUB_TODO nonexistent block */} |
| 151 | {/* <Tab title="LM Studio"> |
| 152 | Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub |
| 153 | </Tab> */} |
| 154 | </Tabs> |
| 155 | </Tab> |
| 156 | <Tab title="YAML"> |
| 157 | <Tabs> |
| 158 | <Tab title="Ollama"> |
| 159 | ```yaml title="config.yaml" |
| 160 | models: |
| 161 | - name: Llama 3.1 8B |
| 162 | provider: ollama |
| 163 | model: llama3.1:8b |
| 164 | ``` |
| 165 | </Tab> |
| 166 | <Tab title="LM Studio"> |
| 167 | ```yaml title="config.yaml" |
| 168 | models: |
| 169 | - name: Llama 3.1 8B |
| 170 | provider: lmstudio |
| 171 | model: llama3.1:8b |
| 172 | ``` |
| 173 | </Tab> |
| 174 | <Tab title="Msty"> |
| 175 | ```yaml title="config.yaml" |
| 176 | models: |
| 177 | - name: Llama 3.1 8B |
| 178 | provider: msty |
| 179 | model: llama3.1:8b |
| 180 | ``` |
| 181 | </Tab> |
| 182 | </Tabs> |
| 183 | </Tab> |
| 184 | </Tabs> |
| 185 | |
| 186 | ### DeepSeek Coder 2 16B |
| 187 | |
| 188 | If 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)). |
| 189 | |
| 190 | <Tabs> |
| 191 | {/* HUB_TODO nonexistent blocks */} |
| 192 | {/* <Tab title="Hub"> |
| 193 | <Tabs> |
| 194 | <Tab title="Ollama"> |
| 195 | Add the [Ollama Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub |
| 196 | </Tab> |
| 197 | <Tab title="LM Studio"> |
| 198 | Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub |
| 199 | </Tab> |
| 200 | </Tabs> |
| 201 | </Tab> */} |
| 202 | <Tab title="YAML"> |
| 203 | <Tabs> |
| 204 | <Tab title="Ollama"> |
| 205 | ```yaml title="config.yaml" |
| 206 | models: |
| 207 | - name: DeepSeek Coder 2 16B |
| 208 | provider: ollama |
| 209 | model: deepseek-coder-v2:16b |
| 210 | ``` |
| 211 | </Tab> |
| 212 | <Tab title="LM Studio"> |
| 213 | ```yaml title="config.yaml" |
| 214 | models: |
| 215 | - name: DeepSeek Coder 2 16B |
| 216 | provider: lmstudio |
| 217 | model: deepseek-coder-v2:16b |
| 218 | ``` |
| 219 | </Tab> |
| 220 | <Tab title="Msty"> |
| 221 | ```yaml title="config.yaml" |
| 222 | models: |
| 223 | - name: DeepSeek Coder 2 16B |
| 224 | provider: msty |
| 225 | model: deepseek-coder-v2:16b |
| 226 | ``` |
| 227 | </Tab> |
| 228 | </Tabs> |
| 229 | </Tab> |
| 230 | </Tabs> |
| 231 | |
| 232 | ## Other experiences |
| 233 | |
| 234 | There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx) |