diff --git a/docs/customization/models.mdx b/docs/customization/models.mdx index 5cd97876a..779cf0f07 100644 --- a/docs/customization/models.mdx +++ b/docs/customization/models.mdx @@ -3,6 +3,8 @@ title: "Models" description: "Models form the foundation of the entire agent experience, offering different specialized capabilities:" --- +import { ModelRecommendations } from "/snippets/ModelRecommendations.jsx"; + - **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance - **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks - **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy @@ -16,15 +18,7 @@ description: "Models form the foundation of the entire agent experience, offerin ### Best Models by Role -| Model role | Best open models | Best closed models | Notes | -| :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- | -| Agent / Plan | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [Devstral (27B)](https://hub.continue.dev/ollama/devstral), [Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b), GLM 4.5 (355B), GLM 4.5 Air (106B) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed models are slightly better than open models | -| Chat / Edit | [Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder), [Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b), [gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b), [gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b) | [Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus), [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet), [GPT-5](https://hub.continue.dev/openai/gpt-5), [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro) | Closed and open models have pretty similar performance | -| Autocomplete | [QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b), [QwenCoder2.5 (7B)](https://hub.continue.dev/ollama/qwen2.5-coder-7b) | [Codestral](https://hub.continue.dev/mistral/codestral), [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are slightly better than open models | -| Apply | N/A | [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply), [Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2) | Open models are not good enough for this model role | -| Embed | [Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest), Qwen3 Embedding | [Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3), [Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2), Codestral Embed | Closed models are slightly better than open models | -| Rerank | zerank-1, zerank-1-small, Qwen3 Reranker | [Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5), Relace Code Rerank, [Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2) | Open models are beginning to emerge for this model role | -| Next Edit | N/A | [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are significantly better than open models | + ## Learn More About Models @@ -132,4 +126,4 @@ Their limited tool calling and reasoning capabilities will make it challenging t 1. Add [Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) to an agent on Continue Hub 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide) -3. Click `Reload config` in the agent selector in the Continue IDE extension \ No newline at end of file +3. Click `Reload config` in the agent selector in the Continue IDE extension diff --git a/docs/customize/deep-dives/autocomplete.mdx b/docs/customize/deep-dives/autocomplete.mdx index b666e4be1..b18672f83 100644 --- a/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/customize/deep-dives/autocomplete.mdx @@ -5,9 +5,11 @@ keywords: [autocomplete] sidebarTitle: Autocomplete --- - - For a comprehensive comparison of all autocomplete models, see our [model recommendations table](/customization/models#recommended-models). - +import { ModelRecommendations } from "/snippets/ModelRecommendations.jsx"; + +## Model Recommendations for Autocomplete + + ## How to Set Up Autocomplete in Continue with Codestral (Recommended) diff --git a/docs/customize/model-roles/autocomplete.mdx b/docs/customize/model-roles/autocomplete.mdx index f42ae9caa..b258463c0 100644 --- a/docs/customize/model-roles/autocomplete.mdx +++ b/docs/customize/model-roles/autocomplete.mdx @@ -6,15 +6,16 @@ keywords: [autocomplete, model, role] sidebar_position: 2 --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx' + + An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will often perform poorly even with extensive prompting. In Continue, autocomplete models are used to display inline [Autocomplete](../../features/autocomplete/quick-start) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`. ## Recommended Autocomplete models - - See our [comprehensive model recommendations](/customization/models#recommended-models) for the best autocomplete models, including both open and closed options. - + Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete) for detailed setup instructions and configuration options. diff --git a/docs/customize/model-roles/chat.mdx b/docs/customize/model-roles/chat.mdx index 02e940f8b..afafb8591 100644 --- a/docs/customize/model-roles/chat.mdx +++ b/docs/customize/model-roles/chat.mdx @@ -5,16 +5,16 @@ keywords: [chat, model, role] sidebar_position: 1 --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx' + + 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. 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. ## Recommended Chat models - - For the latest and most comprehensive model recommendations, see our [model recommendations table](/customization/models#recommended-models). - - + ## Best overall experience For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models. diff --git a/docs/customize/model-roles/edit.mdx b/docs/customize/model-roles/edit.mdx index e910ce955..e60d47017 100644 --- a/docs/customize/model-roles/edit.mdx +++ b/docs/customize/model-roles/edit.mdx @@ -4,6 +4,7 @@ description: Edit model role keywords: [edit, editing, model, role] sidebar_position: 3 --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx' It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability. @@ -44,9 +45,9 @@ In Continue, you can add `edit` to a model's roles to specify that it can be use Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat. - - See our [comprehensive model recommendations](/customization/models#recommended-models) for the best models for Edit and Chat roles. - +## Model Recommendations + + ## Prompt templating diff --git a/docs/features/agent/model-setup.mdx b/docs/features/agent/model-setup.mdx index e31fd2589..bd8888460 100644 --- a/docs/features/agent/model-setup.mdx +++ b/docs/features/agent/model-setup.mdx @@ -3,13 +3,10 @@ title: "Model Setup for Agent Mode" description: "Learn how to set up models for Agent Mode in Continue, including recommended models and configuration options for optimal performance" sidebarTitle: "Model Setup" --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx' The models you set up for Chat mode will be used with Agent mode if the model supports tool calling. The recommended models and how to set them up can be found [here](/features/chat/model-setup). - - For the latest recommendations on the best models for Agent/Plan mode, see our [comprehensive model recommendations](/customization/models#recommended-models). - - ## How System Message Tools Work Continue implements an innovative approach called **system message tools** that ensures consistent tool functionality across all models, regardless of their native capabilities. This allows Agent mode to work seamlessly with a wider range of models and providers. @@ -23,7 +20,9 @@ Instead of relying solely on native tool calling APIs (which vary between provid - **Better reliability** - Models that struggle with native tools often perform better with system message tools - **Seamless switching** - Change between providers without modifying your workflow -For recommended Agent models, please refer to our [Model Recommendations page](/customization/models). +## Recommended Agent Models + + ### How to Configure Agent Mode diff --git a/docs/features/autocomplete/model-setup.mdx b/docs/features/autocomplete/model-setup.mdx index 879939c14..e5585ca4d 100644 --- a/docs/features/autocomplete/model-setup.mdx +++ b/docs/features/autocomplete/model-setup.mdx @@ -3,15 +3,18 @@ title: "Recommended Models for Autocomplete in Continue" description: "Choose the best autocomplete model for Continue, including hosted high-performance options, fast speed/quality tradeoffs, and local privacy-first models." sidebarTitle: "Recommended Autocomplete Models" --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'; -Setting up the right model for autocomplete is crucial for a smooth coding experience. Here are our top recommendations: +Setting up the right model for autocomplete is important for a smooth coding experience. Here are our top recommendations: + +## Model Recommendations + + - For a complete comparison of all autocomplete models, see our [comprehensive model recommendations](/customization/models#recommended-models). + For a complete comparison of all models, see our [comprehensive model recommendations](/customization/models#recommended-models). -For model recommendations, please refer to our [Model Recommendations page](/customization/models). - ## Next Edit Model For proactive code prediction that anticipates your next edit, Continue supports specialized [Next Edit](/features/autocomplete/next-edit) models: diff --git a/docs/features/chat/model-setup.mdx b/docs/features/chat/model-setup.mdx index 53ddc73c0..90084c0f1 100644 --- a/docs/features/chat/model-setup.mdx +++ b/docs/features/chat/model-setup.mdx @@ -1,8 +1,19 @@ -The model you use for for Chat mode will be +--- +title: "Recommended Models for Chat in Continue" +description: "Choose the best chat model for Continue, including hosted high-performance options, fast speed/quality tradeoffs, and local privacy-first models." +sidebarTitle: "Recommended Chat Models" +--- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'; + +The model you use for for Chat mode will be: - used with Edit mode by default but can be switched - always used with Agent mode if the model supports tool calling +## Model Recommendations + + + For a comprehensive comparison of all available models by role, see our [model recommendations table](/customization/models#recommended-models). diff --git a/docs/features/edit/model-setup.mdx b/docs/features/edit/model-setup.mdx index 35694ce97..8a2eefd58 100644 --- a/docs/features/edit/model-setup.mdx +++ b/docs/features/edit/model-setup.mdx @@ -1,12 +1,15 @@ --- title: "How to Set Up Edit Models" -sidebarTitle: "Set Up Edit Models" +sidebarTitle: "Recommended Edit Models" description: "Learn how to set up and customize models for Edit functionality in Continue." --- +import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'; The model you set up for Chat mode will be used for Edit mode by default. -The recommended models and how to set them up can be found [here](/features/chat/model-setup). +## Recommendations + + See our [comprehensive model recommendations](/customization/models#recommended-models) for the best models for each role, including Edit and Apply. diff --git a/docs/snippets/ModelRecommendations.jsx b/docs/snippets/ModelRecommendations.jsx new file mode 100644 index 000000000..a65e04371 --- /dev/null +++ b/docs/snippets/ModelRecommendations.jsx @@ -0,0 +1,228 @@ +export const ModelRecommendations = ({ role = "all" }) => { + const parseMarkdownLinks = (text) => { + const regex = /\[([^\]]+)\]\(([^)]+)\)/g; + const parts = []; + let lastIndex = 0; + let match; + let key = 0; + + while ((match = regex.exec(text)) !== null) { + if (match.index > lastIndex) { + const beforeText = text.slice(lastIndex, match.index); + if (beforeText) { + parts.push({beforeText}); + } + } + + const [, linkText, url] = match; + parts.push( + + {linkText} + , + ); + + lastIndex = regex.lastIndex; + } + + if (lastIndex < text.length) { + const remainingText = text.slice(lastIndex); + if (remainingText) { + parts.push({remainingText}); + } + } + + return parts.length > 0 ? parts : text; + }; + + // Model recommendations data inside component scope + const modelRecs = { + agent_plan: { + open: [ + "[Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder)", + "[Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b)", + "[Devstral (27B)](https://hub.continue.dev/ollama/devstral)", + "[Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2)", + "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)", + "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)", + "GLM 4.5 (355B)", + "GLM 4.5 Air (106B)", + ], + closed: [ + "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)", + "[Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)", + "[GPT-5](https://hub.continue.dev/openai/gpt-5)", + "[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)", + ], + notes: "Closed models are slightly better than open models", + }, + chat_edit: { + open: [ + "[Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder)", + "[Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b)", + "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)", + "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)", + ], + closed: [ + "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)", + "[Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)", + "[GPT-5](https://hub.continue.dev/openai/gpt-5)", + "[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)", + ], + notes: "Closed and open models have pretty similar performance", + }, + autocomplete: { + open: [ + "[QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)", + "[QwenCoder2.5 (7B)](https://hub.continue.dev/ollama/qwen2.5-coder-7b)", + ], + closed: [ + "[Codestral](https://hub.continue.dev/mistral/codestral)", + "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)", + ], + notes: "Closed models are slightly better than open models", + }, + apply: { + open: ["N/A"], + closed: [ + "[Relace Instant Apply](https://hub.continue.dev/relace/instant-apply)", + "[Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2)", + ], + notes: "Open models are not good enough for this model role", + }, + embed: { + open: [ + "[Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest)", + "Qwen3 Embedding", + ], + closed: [ + "[Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3)", + "[Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2)", + "Codestral Embed", + ], + notes: "Closed models are slightly better than open models", + }, + rerank: { + open: ["zerank-1", "zerank-1-small", "Qwen3 Reranker"], + closed: [ + "[Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5)", + "Relace Code Rerank", + "[Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2)", + ], + notes: "Open models are beginning to emerge for this model role", + }, + next_edit: { + open: ["N/A"], + closed: [ + "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)", + ], + notes: "Closed models are significantly better than open models", + }, + }; + + let rolesToShow = []; + + if (!role || role === "all") { + rolesToShow = Object.keys(modelRecs); + } else { + const key = role.toLowerCase().replace(/\s|\//g, "_").replace(/-/g, "_"); + if (modelRecs[key]) { + rolesToShow = [key]; + } + } + + if (rolesToShow.length === 0) { + return
No recommendations found for role: {role}
; + } + + return ( + + + + + + + + + + + {rolesToShow.map((roleKey) => { + const rec = modelRecs[roleKey]; + if (!rec) return null; + + return ( + + + + + + + ); + })} + +
+ Model role + + Best open models + + Best closed models + + Notes +
+ {roleKey + .replace(/_/g, " ") + .replace(/\b\w/g, (l) => l.toUpperCase())} + + {rec.open.map((m, i) => ( +
+ {parseMarkdownLinks(m)} +
+ ))} +
+ {rec.closed.map((m, i) => ( +
+ {parseMarkdownLinks(m)} +
+ ))} +
+ {rec.notes} +
+ ); +}; diff --git a/package-lock.json b/package-lock.json index c00b3f307..b4289d422 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "wt-generate-message-titles-in-cli", + "name": "continue", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 0a2842ba0..28cdb97d8 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "name": "continue", "scripts": { "tsc:watch": "concurrently -n gui,vscode,core,binary -c cyan,magenta,yellow,green \"npm run tsc:watch:gui\" \"npm run tsc:watch:vscode\" \"npm run tsc:watch:core\" \"npm run tsc:watch:binary\"", "tsc:watch:gui": "tsc --project gui/tsconfig.json --watch --noEmit --pretty",