Elffuss BraidHub

kikocis/continue public

fix: Add ModelRecommendations component for central updating (#7457)

* Add model-recs yaml file for central updating

* feat: centralize model recommendations with React component

- Add ModelRecommendations.jsx component for dynamic table rendering
- Replace static markdown table in models.mdx with reusable component
- Update model recommendations with latest 2025 models
- Add support for role-based filtering and markdown link parsing
- Remove unused YAML data files to reduce duplication
- Implement centralized model management per Mintlify best practices

* Add recommended agent models to agent docs

* Add Autocomplete model recs

* Link to mercury coder

* Add Recommendations for chat models

* Add recommendation for edit

* Add Autocomplete recs

* Add chat model recs

* Add model recs to edit

* Run Prettier

* Fix merge conflicts

* Merge new files from main

* Add name to package.json
Changeset50615f19c63df6594bc9a65e22d1d359d24e46115fc55c5a765899eb7fc864ab
AuthorBekahHW <34313413+BekahHW@users.noreply.github.com> · 2025-08-29 14:11 -04:00
CommitterGitHub <noreply@github.com> · 2025-08-29 11:11 -07:00
Parentscd9781d18fda

Browse the files at this changeset

12 files changed

modified docs/customization/models.mdx +4 −10
@@ -3,6 +3,8 @@
33 description: "Models form the foundation of the entire agent experience, offering different specialized capabilities:"
44 ---
55
6+import { ModelRecommendations } from "/snippets/ModelRecommendations.jsx";
7+
68 - **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance
79 - **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks
810 - **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy
@@ -16,15 +18,7 @@
1618
1719 ### Best Models by Role
1820
19-| Model role | Best open models | Best closed models | Notes |
20-| :----------- | :----------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------- |
21-| 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 |
22-| 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 |
23-| 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 |
24-| 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 |
25-| 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 |
26-| 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 |
27-| Next Edit | N/A | [Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder) | Closed models are significantly better than open models |
21+<ModelRecommendations role="all" />
2822
2923 ## Learn More About Models
3024
@@ -132,4 +126,4 @@
132126
133127 1. Add [Qwen2.5-Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b) to an agent on Continue Hub
134128 2. Run the model with [Ollama](https://docs.continue.dev/guides/ollama-guide#using-ollama-with-continue-a-developers-guide)
135-3. Click `Reload config` in the agent selector in the Continue IDE extension
No newline at the end of the file
129+3. Click `Reload config` in the agent selector in the Continue IDE extension
modified docs/customize/deep-dives/autocomplete.mdx +5 −3
@@ -5,9 +5,11 @@
55 sidebarTitle: Autocomplete
66 ---
77
8-<Info>
9- For a comprehensive comparison of all autocomplete models, see our [model recommendations table](/customization/models#recommended-models).
10-</Info>
8+import { ModelRecommendations } from "/snippets/ModelRecommendations.jsx";
9+
10+## Model Recommendations for Autocomplete
11+
12+<ModelRecommendations role="autocomplete" />
1113
1214 ## How to Set Up Autocomplete in Continue with Codestral (Recommended)
1315
modified docs/customize/model-roles/autocomplete.mdx +4 −3
@@ -6,15 +6,16 @@
66 sidebar_position: 2
77 ---
88
9+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
10+
11+
912 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.
1013
1114 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`.
1215
1316 ## Recommended Autocomplete models
1417
15-<Info>
16- See our [comprehensive model recommendations](/customization/models#recommended-models) for the best autocomplete models, including both open and closed options.
17-</Info>
18+<ModelRecommendations role="autocomplete" />
1819
1920 Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete) for detailed setup instructions and configuration options.
2021
modified docs/customize/model-roles/chat.mdx +4 −4
@@ -5,16 +5,16 @@
55 sidebar_position: 1
66 ---
77
8+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
9+
10+
811 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.
912
1013 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.
1114
1215 ## Recommended Chat models
1316
14-<Info>
15- For the latest and most comprehensive model recommendations, see our [model recommendations table](/customization/models#recommended-models).
16-</Info>
17-
17+<ModelRecommendations role="chat_edit" />
1818 ## Best overall experience
1919
2020 For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models.
modified docs/customize/model-roles/edit.mdx +4 −3
@@ -4,6 +4,7 @@
44 keywords: [edit, editing, model, role]
55 sidebar_position: 3
66 ---
7+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
78
89 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.
910
@@ -44,9 +45,9 @@
4445
4546 Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.
4647
47-<Info>
48- See our [comprehensive model recommendations](/customization/models#recommended-models) for the best models for Edit and Chat roles.
49-</Info>
48+## Model Recommendations
49+
50+<ModelRecommendations role="chat_edit" />
5051
5152 ## Prompt templating
5253
modified docs/features/agent/model-setup.mdx +4 −5
@@ -3,13 +3,10 @@
33 description: "Learn how to set up models for Agent Mode in Continue, including recommended models and configuration options for optimal performance"
44 sidebarTitle: "Model Setup"
55 ---
6+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx'
67
78 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).
89
9-<Info>
10- For the latest recommendations on the best models for Agent/Plan mode, see our [comprehensive model recommendations](/customization/models#recommended-models).
11-</Info>
12-
1310 ## How System Message Tools Work
1411
1512 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 @@
2320 - **Better reliability** - Models that struggle with native tools often perform better with system message tools
2421 - **Seamless switching** - Change between providers without modifying your workflow
2522
26-For recommended Agent models, please refer to our [Model Recommendations page](/customization/models).
23+## Recommended Agent Models
24+
25+<ModelRecommendations role="all" />
2726
2827 ### How to Configure Agent Mode
2928
modified docs/features/autocomplete/model-setup.mdx +7 −4
@@ -3,15 +3,18 @@
33 description: "Choose the best autocomplete model for Continue, including hosted high-performance options, fast speed/quality tradeoffs, and local privacy-first models."
44 sidebarTitle: "Recommended Autocomplete Models"
55 ---
6+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx';
67
7-Setting up the right model for autocomplete is crucial for a smooth coding experience. Here are our top recommendations:
8+Setting up the right model for autocomplete is important for a smooth coding experience. Here are our top recommendations:
9+
10+## Model Recommendations
11+
12+<ModelRecommendations role="autocomplete" />
813
914 <Info>
10- For a complete comparison of all autocomplete models, see our [comprehensive model recommendations](/customization/models#recommended-models).
15+ For a complete comparison of all models, see our [comprehensive model recommendations](/customization/models#recommended-models).
1116 </Info>
1217
13-For model recommendations, please refer to our [Model Recommendations page](/customization/models).
14-
1518 ## Next Edit Model
1619
1720 For proactive code prediction that anticipates your next edit, Continue supports specialized [Next Edit](/features/autocomplete/next-edit) models:
modified docs/features/chat/model-setup.mdx +12 −1
@@ -1,8 +1,19 @@
1-The model you use for for Chat mode will be
1+---
2+title: "Recommended Models for Chat in Continue"
3+description: "Choose the best chat model for Continue, including hosted high-performance options, fast speed/quality tradeoffs, and local privacy-first models."
4+sidebarTitle: "Recommended Chat Models"
5+---
6+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx';
7+
8+The model you use for for Chat mode will be:
29
310 - used with Edit mode by default but can be switched
411 - always used with Agent mode if the model supports tool calling
512
13+## Model Recommendations
14+
15+<ModelRecommendations role="chat_edit" />
16+
617 <Info>
718 For a comprehensive comparison of all available models by role, see our [model recommendations table](/customization/models#recommended-models).
819 </Info>
modified docs/features/edit/model-setup.mdx +5 −2
@@ -1,12 +1,15 @@
11 ---
22 title: "How to Set Up Edit Models"
3-sidebarTitle: "Set Up Edit Models"
3+sidebarTitle: "Recommended Edit Models"
44 description: "Learn how to set up and customize models for Edit functionality in Continue."
55 ---
6+import { ModelRecommendations } from '/snippets/ModelRecommendations.jsx';
67
78 The model you set up for Chat mode will be used for Edit mode by default.
89
9-The recommended models and how to set them up can be found [here](/features/chat/model-setup).
10+## Recommendations
11+
12+<ModelRecommendations role="chat_edit" />
1013
1114 <Info>
1215 See our [comprehensive model recommendations](/customization/models#recommended-models) for the best models for each role, including Edit and Apply.
added docs/snippets/ModelRecommendations.jsx +228 −0
@@ -0,0 +1,228 @@
1+export const ModelRecommendations = ({ role = "all" }) => {
2+ const parseMarkdownLinks = (text) => {
3+ const regex = /\[([^\]]+)\]\(([^)]+)\)/g;
4+ const parts = [];
5+ let lastIndex = 0;
6+ let match;
7+ let key = 0;
8+
9+ while ((match = regex.exec(text)) !== null) {
10+ if (match.index > lastIndex) {
11+ const beforeText = text.slice(lastIndex, match.index);
12+ if (beforeText) {
13+ parts.push(<span key={key++}>{beforeText}</span>);
14+ }
15+ }
16+
17+ const [, linkText, url] = match;
18+ parts.push(
19+ <a
20+ key={key++}
21+ href={url}
22+ target="_blank"
23+ rel="noopener noreferrer"
24+ style={{ color: "#0066cc", textDecoration: "underline" }}
25+ >
26+ {linkText}
27+ </a>,
28+ );
29+
30+ lastIndex = regex.lastIndex;
31+ }
32+
33+ if (lastIndex < text.length) {
34+ const remainingText = text.slice(lastIndex);
35+ if (remainingText) {
36+ parts.push(<span key={key++}>{remainingText}</span>);
37+ }
38+ }
39+
40+ return parts.length > 0 ? parts : text;
41+ };
42+
43+ // Model recommendations data inside component scope
44+ const modelRecs = {
45+ agent_plan: {
46+ open: [
47+ "[Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder)",
48+ "[Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b)",
49+ "[Devstral (27B)](https://hub.continue.dev/ollama/devstral)",
50+ "[Kimi K2 (1T)](https://hub.continue.dev/openrouter/kimi-k2)",
51+ "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)",
52+ "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)",
53+ "GLM 4.5 (355B)",
54+ "GLM 4.5 Air (106B)",
55+ ],
56+ closed: [
57+ "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)",
58+ "[Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)",
59+ "[GPT-5](https://hub.continue.dev/openai/gpt-5)",
60+ "[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)",
61+ ],
62+ notes: "Closed models are slightly better than open models",
63+ },
64+ chat_edit: {
65+ open: [
66+ "[Qwen3 Coder (480B)](https://hub.continue.dev/openrouter/qwen3-coder)",
67+ "[Qwen3 Coder (30B)](https://hub.continue.dev/ollama/qwen3-coder-30b)",
68+ "[gpt-oss (120B)](https://hub.continue.dev/openrouter/gpt-oss-120b)",
69+ "[gpt-oss (20B)](https://hub.continue.dev/ollama/gpt-oss-20b)",
70+ ],
71+ closed: [
72+ "[Claude Opus 4.1](https://hub.continue.dev/anthropic/claude-4-1-opus)",
73+ "[Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)",
74+ "[GPT-5](https://hub.continue.dev/openai/gpt-5)",
75+ "[Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)",
76+ ],
77+ notes: "Closed and open models have pretty similar performance",
78+ },
79+ autocomplete: {
80+ open: [
81+ "[QwenCoder2.5 (1.5B)](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)",
82+ "[QwenCoder2.5 (7B)](https://hub.continue.dev/ollama/qwen2.5-coder-7b)",
83+ ],
84+ closed: [
85+ "[Codestral](https://hub.continue.dev/mistral/codestral)",
86+ "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)",
87+ ],
88+ notes: "Closed models are slightly better than open models",
89+ },
90+ apply: {
91+ open: ["N/A"],
92+ closed: [
93+ "[Relace Instant Apply](https://hub.continue.dev/relace/instant-apply)",
94+ "[Morph Fast Apply](https://hub.continue.dev/morphllm/morph-v2)",
95+ ],
96+ notes: "Open models are not good enough for this model role",
97+ },
98+ embed: {
99+ open: [
100+ "[Nomic Embed Text](https://hub.continue.dev/ollama/nomic-embed-text-latest)",
101+ "Qwen3 Embedding",
102+ ],
103+ closed: [
104+ "[Voyage Code 3](https://hub.continue.dev/voyageai/voyage-code-3)",
105+ "[Morph Embeddings](https://hub.continue.dev/morphllm/morph-embedding-v2)",
106+ "Codestral Embed",
107+ ],
108+ notes: "Closed models are slightly better than open models",
109+ },
110+ rerank: {
111+ open: ["zerank-1", "zerank-1-small", "Qwen3 Reranker"],
112+ closed: [
113+ "[Voyage Rerank 2.5](https://hub.continue.dev/voyageai/rerank-2-5)",
114+ "Relace Code Rerank",
115+ "[Morph Rerank](https://hub.continue.dev/morphllm/morph-rerank-v2)",
116+ ],
117+ notes: "Open models are beginning to emerge for this model role",
118+ },
119+ next_edit: {
120+ open: ["N/A"],
121+ closed: [
122+ "[Mercury Coder](https://hub.continue.dev/inceptionlabs/mercury-coder)",
123+ ],
124+ notes: "Closed models are significantly better than open models",
125+ },
126+ };
127+
128+ let rolesToShow = [];
129+
130+ if (!role || role === "all") {
131+ rolesToShow = Object.keys(modelRecs);
132+ } else {
133+ const key = role.toLowerCase().replace(/\s|\//g, "_").replace(/-/g, "_");
134+ if (modelRecs[key]) {
135+ rolesToShow = [key];
136+ }
137+ }
138+
139+ if (rolesToShow.length === 0) {
140+ return <div>No recommendations found for role: {role}</div>;
141+ }
142+
143+ return (
144+ <table
145+ style={{ width: "100%", borderCollapse: "collapse", marginTop: "1rem" }}
146+ >
147+ <thead>
148+ <tr>
149+ <th
150+ style={{
151+ textAlign: "left",
152+ borderBottom: "1px solid #ddd",
153+ padding: "8px",
154+ }}
155+ >
156+ Model role
157+ </th>
158+ <th
159+ style={{
160+ textAlign: "left",
161+ borderBottom: "1px solid #ddd",
162+ padding: "8px",
163+ }}
164+ >
165+ Best open models
166+ </th>
167+ <th
168+ style={{
169+ textAlign: "left",
170+ borderBottom: "1px solid #ddd",
171+ padding: "8px",
172+ }}
173+ >
174+ Best closed models
175+ </th>
176+ <th
177+ style={{
178+ textAlign: "left",
179+ borderBottom: "1px solid #ddd",
180+ padding: "8px",
181+ }}
182+ >
183+ Notes
184+ </th>
185+ </tr>
186+ </thead>
187+ <tbody>
188+ {rolesToShow.map((roleKey) => {
189+ const rec = modelRecs[roleKey];
190+ if (!rec) return null;
191+
192+ return (
193+ <tr key={roleKey}>
194+ <td
195+ style={{
196+ fontWeight: 600,
197+ verticalAlign: "top",
198+ padding: "8px",
199+ }}
200+ >
201+ {roleKey
202+ .replace(/_/g, " ")
203+ .replace(/\b\w/g, (l) => l.toUpperCase())}
204+ </td>
205+ <td style={{ padding: "8px", verticalAlign: "top" }}>
206+ {rec.open.map((m, i) => (
207+ <div key={i} style={{ marginBottom: "4px" }}>
208+ {parseMarkdownLinks(m)}
209+ </div>
210+ ))}
211+ </td>
212+ <td style={{ padding: "8px", verticalAlign: "top" }}>
213+ {rec.closed.map((m, i) => (
214+ <div key={i} style={{ marginBottom: "4px" }}>
215+ {parseMarkdownLinks(m)}
216+ </div>
217+ ))}
218+ </td>
219+ <td style={{ padding: "8px", verticalAlign: "top" }}>
220+ {rec.notes}
221+ </td>
222+ </tr>
223+ );
224+ })}
225+ </tbody>
226+ </table>
227+ );
228+};
modified package-lock.json +1 −1
@@ -1,5 +1,5 @@
11 {
2- "name": "wt-generate-message-titles-in-cli",
2+ "name": "continue",
33 "lockfileVersion": 3,
44 "requires": true,
55 "packages": {
modified package.json +1 −0
@@ -1,4 +1,5 @@
11 {
2+ "name": "continue",
23 "scripts": {
34 "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\"",
45 "tsc:watch:gui": "tsc --project gui/tsconfig.json --watch --noEmit --pretty",