Elffuss BraidHub

kikocis/continue public

Merge branch 'main' into mermaid-diagrams-2
Changeset5b35909f7f1e5dd3309141e8e5486454523d9246edd78f6d63d2e0c86a62a395
Authoruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-08 09:19 +05:30
Committeruinstinct <61635505+uinstinct@users.noreply.github.com> · 2025-07-08 09:19 +05:30
Parents1a4277ad6754, 748a1cdeceec

Browse the files at this changeset

181 files changed

modified core/codeRenderer/CodeRenderer.ts +122 −15
@@ -8,8 +8,19 @@
88 * we rarely ever need syntax highlighting outside of
99 * creating a render of it.
1010 */
11+import {
12+ transformerMetaHighlight,
13+ transformerNotationDiff,
14+ transformerNotationFocus,
15+ transformerNotationHighlight,
16+} from "@shikijs/transformers";
1117 import { JSDOM } from "jsdom";
12-import { BundledTheme, codeToHtml, getSingletonHighlighter } from "shiki";
18+import {
19+ BundledLanguage,
20+ BundledTheme,
21+ getSingletonHighlighter,
22+ Highlighter,
23+} from "shiki";
1324 import { escapeForSVG, kebabOfStr } from "../util/text";
1425
1526 interface CodeRendererOptions {
@@ -42,6 +53,8 @@
4253 private currentTheme: string = "dark-plus";
4354 private editorBackground: string = "#000000";
4455 private editorForeground: string = "#FFFFFF";
56+ private editorLineHighlight: string = "#000000";
57+ private highlighter: Highlighter | null = null;
4558
4659 private constructor() {}
4760
@@ -62,13 +75,17 @@
6275 ? "dark-plus"
6376 : kebabOfStr(themeName);
6477
65- const highlighter = await getSingletonHighlighter({
78+ this.highlighter = await getSingletonHighlighter({
79+ langs: ["typescript"],
6680 themes: [this.currentTheme],
6781 });
6882
69- const th = highlighter.getTheme(this.currentTheme);
83+ const th = this.highlighter.getTheme(this.currentTheme);
84+
7085 this.editorBackground = th.bg;
7186 this.editorForeground = th.fg;
87+ this.editorLineHighlight =
88+ th.colors!["editor.lineHighlightBackground"] ?? "#000000";
7289 } else {
7390 this.currentTheme = "dark-plus";
7491 }
@@ -148,10 +165,29 @@
148165 async highlightCode(
149166 code: string,
150167 language: string = "javascript",
168+ currLineOffsetFromTop: number,
151169 ): Promise<string> {
152- return await codeToHtml(code, {
170+ const annotatedCode = code
171+ .split("\n")
172+ .map((line, i) =>
173+ i === currLineOffsetFromTop
174+ ? line + " \/\/ \[\!code highlight\]"
175+ : line,
176+ )
177+ .join("\n");
178+
179+ await this.highlighter!.loadLanguage(language as BundledLanguage);
180+
181+ return this.highlighter!.codeToHtml(annotatedCode, {
153182 lang: language,
154183 theme: this.currentTheme,
184+ transformers: [
185+ // transformerColorizedBrackets(),
186+ transformerMetaHighlight(),
187+ transformerNotationHighlight(),
188+ transformerNotationDiff(),
189+ transformerNotationFocus(),
190+ ],
155191 });
156192 }
157193
@@ -163,23 +199,40 @@
163199 dimensions: Dimensions,
164200 lineHeight: number,
165201 options: ConversionOptions,
202+ currLineOffsetFromTop: number,
166203 ): Promise<Buffer> {
167- const highlightedCodeHtml = await this.highlightCode(code, language);
204+ const strokeWidth = 1;
205+ const highlightedCodeHtml = await this.highlightCode(
206+ code,
207+ language,
208+ currLineOffsetFromTop,
209+ );
210+ // console.log(highlightedCodeHtml);
168211
169- const guts = this.convertShikiHtmlToSvgGut(
212+ const { guts, lineBackgrounds } = this.convertShikiHtmlToSvgGut(
170213 highlightedCodeHtml,
171214 fontSize,
172215 fontFamily,
173216 lineHeight,
217+ dimensions,
174218 );
175219 const backgroundColor = this.getBackgroundColor(highlightedCodeHtml);
176220
177- const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${dimensions.width}" height="${dimensions.height}">
221+ const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${dimensions.width}" height="${dimensions.height}" shape-rendering="crispEdges">
222+ <style>
223+ :root {
224+ --purple: rgb(112, 114, 209);
225+ --green: rgb(136, 194, 163);
226+ --blue: rgb(107, 166, 205);
227+ }
228+ </style>
178229 <g>
179- <rect width="${dimensions.width}" height="${dimensions.height}" fill="${backgroundColor}" stroke="${this.editorForeground}" stroke-width="1" />
230+ <rect x="0" y="0" rx="10" ry="10" width="${dimensions.width}" height="${dimensions.height}" fill="${this.editorBackground}" shape-rendering="crispEdges" />
231+ ${lineBackgrounds}
180232 ${guts}
181233 </g>
182234 </svg>`;
235+ console.log(svg);
183236
184237 return Buffer.from(svg, "utf8");
185238 }
@@ -189,7 +242,8 @@
189242 fontSize: number,
190243 fontFamily: string,
191244 lineHeight: number,
192- ): string {
245+ dimensions: Dimensions,
246+ ): { guts: string; lineBackgrounds: string } {
193247 const dom = new JSDOM(shikiHtml);
194248 const document = dom.window.document;
195249
@@ -204,19 +258,70 @@
204258 const el = node as HTMLElement;
205259 const style = el.getAttribute("style") || "";
206260 const colorMatch = style.match(/color:\s*(#[0-9a-fA-F]{6})/);
207- const fill = colorMatch ? ` fill="${colorMatch[1]}"` : "";
261+ const classes = el.getAttribute("class") || "";
262+ let fill = colorMatch ? ` fill="${colorMatch[1]}"` : "";
263+ if (classes.includes("highlighted")) {
264+ fill = ` fill="${this.editorLineHighlight}"`;
265+ }
208266 const content = el.textContent || "";
209267 return `<tspan xml:space="preserve"${fill}>${escapeForSVG(content)}</tspan>`;
210268 })
211269 .join("");
212270
213- const y = (index + 1) * lineHeight;
214- return `<text x="0" y="${y}" font-family="${fontFamily}" font-size="${fontSize.toString()}" xml:space="preserve">${spans}</text>`;
271+ // Typography notes:
272+ // Each line of code is a <text> inside a <rect>.
273+ // Math becomes interesting here; the y value is actually aligned to the topmost border.
274+ // So y = 0 will have the rect be flush with the top border.
275+ // More importantly, text will also be positioned that way.
276+ // Since y = 0 is the axis the text will align itself to, the default settings will actually have the text sitting "on top of" the y = 0 axis, which effectively shifts them up.
277+ // To prevent this, we want the alignment axis to be at the middle of each rect, and have the text align itself vertically to the center (skwered by the axis).
278+ // The first step is to add lineHeight / 2 to move the axis down.
279+ // The second step is to add 'dominant-baseline="central"' to vertically center the text.
280+ // Note that we choose "central" over "middle". "middle" will center the text too perfectly, which is actually undesirable!
281+ const y = index * lineHeight + lineHeight / 2;
282+ return `<text x="0" y="${y}" font-family="${fontFamily}" font-size="${fontSize.toString()}" xml:space="preserve" dominant-baseline="central" shape-rendering="crispEdges">${spans}</text>`;
215283 });
216284
217- return `
218- ${svgLines.join("\n")}
219- `.trim();
285+ const lineBackgrounds = lines
286+ .map((line, index) => {
287+ const classes = line?.getAttribute("class") || "";
288+ const bgColor = classes.includes("highlighted")
289+ ? this.editorLineHighlight
290+ : this.editorBackground;
291+ const y = index * lineHeight;
292+ const isFirst = index === 0;
293+ const isLast = index === lines.length - 1;
294+ const radius = 10;
295+ // SVG notes:
296+ // By default SVGs have anti-aliasing on.
297+ // This is undesirable in our case because pixel-perfect alignment of these rectangles will introduce thin gaps.
298+ // Turning it off with 'shape-rendering="crispEdges"' solves the issue.
299+ return isFirst
300+ ? `<path d="M ${0} ${y + lineHeight}
301+ L ${0} ${y + radius}
302+ Q ${0} ${y} ${radius} ${y}
303+ L ${dimensions.width - radius} ${y}
304+ Q ${dimensions.width} ${y} ${dimensions.width} ${y + radius}
305+ L ${dimensions.width} ${y + lineHeight}
306+ Z"
307+ fill="${bgColor}" />`
308+ : isLast
309+ ? `<path d="M ${0} ${y}
310+ L ${0} ${y + lineHeight - radius}
311+ Q ${0} ${y + lineHeight} ${radius} ${y + lineHeight}
312+ L ${dimensions.width - radius} ${y + lineHeight}
313+ Q ${dimensions.width} ${y + lineHeight} ${dimensions.width} ${y + lineHeight - 10}
314+ L ${dimensions.width} ${y}
315+ Z"
316+ fill="${bgColor}" />`
317+ : `<rect x="0" y="${y}" rx="${radius}" ry="${radius}" width="100%" height="${lineHeight}" fill="${bgColor}" shape-rendering="crispEdges" />`;
318+ })
319+ .join("\n");
320+
321+ return {
322+ guts: svgLines.join("\n"),
323+ lineBackgrounds,
324+ };
220325 }
221326
222327 getBackgroundColor(shikiHtml: string): string {
@@ -244,6 +349,7 @@
244349 dimensions: Dimensions,
245350 lineHeight: number,
246351 options: ConversionOptions,
352+ currLineOffsetFromTop: number,
247353 ): Promise<DataUri> {
248354 switch (options.imageType) {
249355 // case "png":
@@ -265,6 +371,7 @@
265371 dimensions,
266372 lineHeight,
267373 options,
374+ currLineOffsetFromTop,
268375 );
269376 return `data:image/svg+xml;base64,${svgBuffer.toString("base64")}`;
270377 }
modified core/edit/streamDiffLines.ts +5 −1
@@ -55,7 +55,11 @@
5555 }
5656
5757 function modelIsInept(model: string): boolean {
58- return !(model.includes("gpt") || model.includes("claude"));
58+ return !(
59+ model.includes("gpt") ||
60+ model.includes("claude") ||
61+ model.includes("nova")
62+ );
5963 }
6064
6165 export async function* streamDiffLines({
modified core/llm/autodetect.ts +5 −0
@@ -237,6 +237,11 @@
237237 return "none";
238238 }
239239
240+ // Nova Pro requests always sent through Converse API, so formatting not necessary
241+ if (lower.includes("nova")) {
242+ return "none";
243+ }
244+
240245 if (lower.includes("codestral")) {
241246 return "none";
242247 }
modified core/llm/autodetect.vitest.ts +13 −0
@@ -106,6 +106,19 @@
106106 expect(autodetectTemplateType("codestral-22b")).toBe("none");
107107 });
108108
109+test("autodetectTemplateType returns 'none' for Nova models", () => {
110+ expect(autodetectTemplateType("nova")).toBe("none");
111+ expect(autodetectTemplateType("Nova")).toBe("none");
112+ expect(autodetectTemplateType("nova-pro")).toBe("none");
113+ expect(autodetectTemplateType("nova-lite")).toBe("none");
114+ expect(autodetectTemplateType("nova-micro")).toBe("none");
115+ expect(autodetectTemplateType("nova-premier")).toBe("none");
116+ expect(autodetectTemplateType("amazon-nova-pro")).toBe("none");
117+ expect(autodetectTemplateType("amazon-nova-lite")).toBe("none");
118+ expect(autodetectTemplateType("amazon-nova-micro")).toBe("none");
119+ expect(autodetectTemplateType("amazon-nova-premier")).toBe("none");
120+});
121+
109122 test("autodetectTemplateType returns 'alpaca' for Alpaca and Wizard models", () => {
110123 expect(autodetectTemplateType("alpaca")).toBe("alpaca");
111124 expect(autodetectTemplateType("Alpaca")).toBe("alpaca");
modified core/llm/toolSupport.ts +4 −0
@@ -96,6 +96,10 @@
9696 "claude-3.7-sonnet",
9797 "claude-sonnet-4",
9898 "claude-opus-4",
99+ "nova-lite",
100+ "nova-pro",
101+ "nova-micro",
102+ "nova-premier",
99103 ].some((part) => model.toLowerCase().includes(part))
100104 ) {
101105 return true;
modified core/package-lock.json +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

modified core/package.json +2 −0
@@ -18,6 +18,8 @@
1818 "@babel/preset-env": "^7.24.7",
1919 "@biomejs/biome": "1.6.4",
2020 "@google/generative-ai": "^0.11.4",
21+ "@shikijs/colorized-brackets": "^3.7.0",
22+ "@shikijs/transformers": "^3.7.0",
2123 "@types/diff": "^7.0.1",
2224 "@types/follow-redirects": "^1.14.4",
2325 "@types/jest": "^29.5.12",
deleted docs/docs/advanced/00-overview.mdx +0 −56
@@ -1,56 +0,0 @@
1----
2-title: Overview
3-description: Deep dive into Continue's advanced features, context providers, and configuration options
4-keywords:
5- [advanced, context, providers, model providers, configuration, deep dives]
6----
7-
8-# Advanced Topics
9-
10-Explore Continue's advanced capabilities for power users and complex development scenarios.
11-
12-## Context Providers
13-
14-Master how Continue understands your codebase with powerful context providers for code, documentation, and more.
15-
16-[Explore Context Providers →](./custom-providers)
17-
18-## Context Integration
19-
20-Specialized context features for codebase understanding and documentation integration.
21-
22-[Browse Context Features →](./context/codebase.mdx)
23-
24-## Deep Dives
25-
26-Detailed technical explanations of Continue's internal workings and advanced configuration options.
27-
28-[Read Deep Dives →](./deep-dives/configuration.md)
29-
30-## Model Providers
31-
32-Configure and optimize different AI model providers for your specific needs and infrastructure.
33-
34-[Configure Providers →](./model-providers/top-level/openai.mdx)
35-
36-## Model Roles
37-
38-Understand how different models can be assigned specific roles in your development workflow.
39-
40-[Learn Model Roles →](./model-roles/00-intro.mdx)
41-
42-## Reference
43-
44-Complete configuration reference and API documentation.
45-
46-[View Reference →](/reference)
47-
48-## Troubleshooting
49-
50-Solutions to common issues and debugging techniques.
51-
52-[Get Help →](/troubleshooting)
53-
54----
55-
56-These advanced topics help you get the most out of Continue in complex development environments.
deleted docs/docs/advanced/context/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Context",
3- "position": 2
4-}
deleted docs/docs/advanced/context/codebase.mdx +0 −99
@@ -1,99 +0,0 @@
1----
2-description: Talk to your codebase
3-keywords: [talk, embeddings, reranker, codebase, experimental]
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-# @Codebase
10-
11-Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
12-
13-:::info[`transformers.js cannot be used in JetBrains`]
14-Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-roles/embeddings.mdx).
15-:::
16-
17-Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files.
18-
19-Here are some common use cases where it can be useful:
20-
21-- Asking high-level questions about your codebase
22- - "How do I add a new endpoint to the server?"
23- - "Do we use VS Code's CodeLens feature anywhere?"
24- - "Is there any code written already to convert HTML to markdown?"
25-- Generate code using existing samples as reference
26- - "Generate a new React component with a date picker, using the same patterns as existing components"
27- - "Write a draft of a CLI application for this project using Python's argparse"
28- - "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`.
29-- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results
30- - "What is the main purpose of this folder?"
31- - "How do we use VS Code's CodeLens API?"
32- - Or any of the above examples, but with `@Folder` instead of `@Codebase`
33-
34-Here are use cases where it is not useful:
35-
36-- When you need the LLM to see _literally every_ file in your codebase
37- - "Find everywhere where the `foo` function is called"
38- - "Review our codebase and find any spelling mistakes"
39-- Refactoring
40- - "Add a new parameter to the `bar` function and update usages"
41-
42-## Configuration
43-
44-There are a few options that let you configure the behavior of the `@codebase` context provider, which are the same for the `@folder` context provider:
45-
46-<Tabs groupId="config-example">
47- <TabItem value="yaml" label="YAML">
48- ```yaml title="config.yaml"
49- context:
50- - provider: codebase
51- params:
52- nRetrieve: 25
53- nFinal: 5
54- useReranking: true
55- ```
56- </TabItem>
57- <TabItem value="json" label="JSON">
58- ```json title="config.json"
59- {
60- "contextProviders": [
61- {
62- "name": "codebase",
63- "params": {
64- "nRetrieve": 25,
65- "nFinal": 5,
66- "useReranking": true
67- }
68- }
69- ]
70- }
71- ```
72- </TabItem>
73-</Tabs>
74-
75-### `nRetrieve`
76-
77-Number of results to initially retrieve from vector database (default: 25)
78-
79-### `nFinal`
80-
81-Final number of results to use after re-ranking (default: 5)
82-
83-### `useReranking`
84-
85-Whether to use re-ranking, which will allow initial selection of `nRetrieve` results, then will use an LLM to select the top `nFinal` results (default: true)
86-
87-## Ignore files during indexing
88-
89-Continue respects `.gitignore` files in order to determine which files should not be indexed. If you'd like to exclude additional files, you can add them to a `.continueignore` file, which follows the exact same rules as `.gitignore`.
90-
91-Continue also supports a **global** `.continueignore` file that will be respected for all workspaces, which can be created at `~/.continue/.continueignore`.
92-
93-If you want to see exactly what files Continue has indexed, the metadata is stored in `~/.continue/index/index.sqlite`. You can use a tool like [DB Browser for SQLite](https://sqlitebrowser.org/) to view the `tag_catalog` table within this file.
94-
95-If you need to force a refresh of the index, reload the VS Code window with <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> + "Reload Window".
96-
97-## Repository map
98-
99-Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../custom-providers.mdx#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
deleted docs/docs/advanced/context/documentation.mdx +0 −408
@@ -1,408 +0,0 @@
1----
2-description: Learn how to access and search your project's documentation directly within Continue
3-keywords:
4- [
5- documentation,
6- indexing,
7- context provider,
8- embeddings,
9- docs,
10- embedder,
11- embeddings provider,
12- documentation,
13- ]
14-toc_max_heading_level: 5
15----
16-
17-import TabItem from "@theme/TabItem";
18-import Tabs from "@theme/Tabs";
19-
20-# @Docs
21-
22-The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
23-
24-## Enabling the `@Docs` context provider
25-
26-To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file.
27-
28-<Tabs groupId="config-example">
29- <TabItem value="yaml" label="YAML">
30- ```yaml title="config.yaml"
31- context:
32- - provider: docs
33- ```
34- </TabItem>
35- <TabItem value="json" label="JSON">
36- ```json title="config.json"
37- {
38- "contextProviders": [
39- {
40- "name": "docs"
41- }
42- ]
43- }
44- ```
45- </TabItem>
46-</Tabs>
47-
48-## How It Works
49-
50-The `@Docs` context provider works by
51-
52-1. Crawling specified documentation sites
53-2. Generating embeddings for the chunked content
54-3. Storing the embeddings locally on your machine
55-4. Embedding chat input to include similar documentation chunks as context
56-
57-## Indexing Your Own Documentation
58-
59-### Hub `docs` Blocks
60-
61-@Docs uses [`docs` blocks](../../hub/blocks/block-types.md#docs) in Assistants from the hub. Visit the hub to [explore `docs` blocks](https://hub.continue.dev/explore/docs) or [create your own](https://hub.continue.dev/new?type=block&blockType=docs).
62-
63-### Through the `@Docs` Context Provider
64-
65-To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed
66-
67-- from the `@Docs` context provider - type `@Docs` in the chat, hit `Enter`, and search for `Add Docs`
68-- from the `More` page (three dots icon) in the `@docs indexes` section
69- the `@Docs` context provider.
70-
71-In the **Add Documentation** Form, enter a `Title` and `Start URL` for the site.
72-
73-- `Title`: The name of the documentation site, used for identification in the UI.
74-- `Start URL`: The URL where the indexing process should begin.
75-
76-Indexing will begin upon submission. Progress can be viewed in the form or later in the `@docs indexes` section of the `More` page.
77-
78-Documentation sources may be suggested based on package files in your repo. This currently works for Python `requirements.txt` files and Node.js (Javascript/Typescript) `package.json` files.
79-
80-- Packages with a valid documentation URL (with a `+` icon) can be clicked to immediately kick off indexing
81-- Packages with partial information (with a pen icon) can be clicked to fill the form with the available information
82-- Note that you can hover over the information icon to see where the package suggestion was found.
83-
84-![Add documentation form](/img/docs-form.png)
85-
86-### In a configuration file
87-
88-For bulk documentation site adds or edits, we recommend editing your global configuration file directly. Documentation sites are stored in an array within `docs` in your global configuration, as follows:
89-
90-<Tabs groupId="config-example">
91- <TabItem value="yaml" label="YAML">
92- ```yaml title="config.yaml"
93- docs:
94- - title: Nest.js
95- startUrl: https://docs.nestjs.com/
96- faviconUrl: https://docs.nestjs.com/favicon.ico
97- ```
98- </TabItem>
99- <TabItem value="json" label="JSON">
100- ```json title="config.json"
101- {
102- "docs": [
103- {
104- "title": "Nest.js",
105- "startUrl": "https://docs.nestjs.com/",
106- "faviconUrl": "https://docs.nestjs.com/favicon.ico"
107- }
108- ]
109- }
110- ```
111- </TabItem>
112-</Tabs>
113-
114-See [the config reference](/reference) for all documentation site configuration options.
115-
116-Indexing will re-sync upon saving the configuration file.
117-
118-## Configuration
119-
120-### Using Your Embeddings Provider
121-
122-If you have set up an [embeddings provider](../model-roles/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
123-
124-### Reranking
125-
126-As with [@Codebase context provider configuration](./codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
127-
128-<Tabs groupId="config-example">
129- <TabItem value="yaml" label="YAML">
130- ```yaml title="config.yaml"
131- context:
132- - provider: docs
133- params:
134- nRetrieve: 25 # The number of docs to retrieve from the embeddings query
135- nFinal: 5 # The number of docs chunks to return IF reranking
136- useReranking: true # use reranking if a reranker is configured (defaults to true)
137- ```
138- </TabItem>
139- <TabItem value="json" label="JSON">
140- ```json title="config.json"
141- {
142- "contextProviders": [
143- {
144- "name": "docs",
145- "params": {
146- "nRetrieve": 25, // The number of docs to retrieve from the embeddings query
147- "nFinal": 5, // The number of docs chunks to return IF reranking
148- "useReranking": true // use reranking if a reranker is configured (defaults to true)
149- }
150- }
151- ]
152- }
153- ```
154- </TabItem>
155-</Tabs>
156-
157-### GitHub
158-
159-The GitHub API rate limits public requests to 60 per hour. If you want to reliably index GitHub repos, you can add a github token to your config file:
160-
161-<Tabs groupId="config-example">
162- <TabItem value="yaml" label="YAML">
163- ```yaml title="config.yaml"
164- context:
165- - provider: docs
166- params:
167- githubToken: <GITHUB_TOKEN>
168- ```
169- </TabItem>
170- <TabItem value="json" label="JSON">
171- ```json title="config.json"
172- {
173- "contextProviders": [
174- {
175- "name": "docs",
176- "params": {
177- "githubToken": "github_..."
178- }
179- }
180- ]
181- }
182- ```
183- </TabItem>
184-</Tabs>
185-
186-### Local Crawling
187-
188-By default, Continue crawls documentation sites using a specialized crawling service that provides the best experience for most users and documentation sites.
189-
190-If your documentation is private, you can skip the default crawler and use a local crawler instead by setting `useLocalCrawling` to `true`.
191-
192-<Tabs groupId="config-example">
193- <TabItem value="yaml" label="YAML">
194- ```yaml title="config.yaml"
195- docs:
196- - title: My Private Docs
197- startUrl: http://10.2.1.2/docs
198- faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
199- useLocalCrawling: true
200- ```
201- </TabItem>
202- <TabItem value="json" label="JSON">
203- ```json title="config.json"
204- {
205- "docs": [
206- {
207- "title": "My Private Docs",
208- "startUrl": "http://10.2.1.2/docs",
209- "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
210- "useLocalCrawling": true
211- }
212- ]
213- }
214- ```
215- </TabItem>
216-</Tabs>
217-
218-:::info
219-Chromium crawling has been deprecated
220-{/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */}
221-:::
222-
223-Further notes:
224-
225-- If the site is only locally accessible, the default crawler will fail anyways and fall back to the local crawler. `useLocalCrawling` is especially useful if the URL itself is confidential.
226-- For GitHub Repos this has no effect because only the GitHub Crawler will be used, and if the repo is private it can only be accessed with a priveleged GitHub token anyways.
227-
228-## Managing your docs indexes
229-
230-You can view indexing statuses and manage your documentation sites from the `@docs indexes` section of the `More` page (three dots)
231-
232-- Continue does not automatically re-index your docs. Use `Click to re-index` to trigger a reindex for a specific source
233-- While a site is indexing, click `Cancel indexing` to cancel the process
234-- Failed indexing attempts will show an error status bar and icon
235-- Delete a documentation site from your configuration using the trash icon
236-
237-![More Page @docs indexes section](/img/docs-indexes.png)
238-
239-You can also view the overall status of currently indexing docs from a hideable progress bar at the bottom of the chat page
240-
241-![Documentation indexing peek](/img/docs-indexing-peek.png)
242-
243-You can also use the following IDE command to force a re-index of all docs: `Continue: Docs Force Re-Index`.
244-
245-## Examples
246-
247-### VS Code minimal setup
248-
249-The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking.
250-
251-<Tabs groupId="config-example">
252- <TabItem value="yaml" label="YAML">
253- ```yaml title="config.yaml"
254- context:
255- - provider: docs
256-
257- docs:
258- - title: Nest.js
259- startUrl: https://docs.nestjs.com/
260- ```
261- </TabItem>
262- <TabItem value="json" label="JSON">
263- ```json title="config.json"
264- {
265- "contextProviders": [
266- {
267- "name": "docs",
268- }
269- ],
270- "docs": [
271- {
272- "title": "Nest.js",
273- "startUrl": "https://docs.nestjs.com/",
274- },
275- ]
276- }
277- ```
278- </TabItem>
279-</Tabs>
280-
281-### Jetbrains minimal setup
282-
283-Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx).
284-
285-<Tabs groupId="config-example">
286- <TabItem value="yaml" label="YAML">
287- ```yaml title="config.yaml"
288- models:
289- - name: LMStudio embedder
290- provider: lmstudio
291- model: nomic-ai/nomic-embed-text-v1.5-GGUF
292- roles:
293- - embed
294- context:
295- - provider: docs
296- docs:
297- - title: Nest.js
298- startUrl: https://docs.nestjs.com/
299- ```
300- </TabItem>
301- <TabItem value="json" label="JSON">
302- ```json title="config.json"
303- {
304- "contextProviders": [
305- {
306- "name": "docs",
307- }
308- ],
309- "docs": [
310- {
311- "title": "Nest.js",
312- "startUrl": "https://docs.nestjs.com/",
313- },
314- ],
315- "embeddingsProvider": {
316- "provider": "lmstudio",
317- "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
318- }
319- }
320- ```
321- </TabItem>
322-</Tabs>
323-
324-### Full-power setup (VS Code or Jetbrains)
325-
326-The following configuration example includes:
327-
328-- Examples of both public and private documentation sources
329-- A custom embeddings provider
330-- A reranker model available, with reranking parameters customized
331-- A GitHub token to enable GitHub crawling
332-
333-<Tabs groupId="config-example">
334- <TabItem value="yaml" label="YAML">
335- ```yaml title="config.yaml"
336- models:
337- - name: LMStudio Nomic Text
338- provider: lmstudio
339- model: nomic-ai/nomic-embed-text-v1.5-GGUF
340- roles:
341- - embed
342- - name: Voyage Rerank-2
343- provider: voyage
344- apiKey: <VOYAGE_API_KEY>
345- model: rerank-2
346- roles:
347- - rerank
348- context:
349- - provider: docs
350- params:
351- githubToken: <GITHUB_TOKEN>
352- nRetrieve: 25
353- nFinal: 5
354- useReranking: true
355- docs:
356- - title: Nest.js
357- startUrl: https://docs.nestjs.com/
358- - title: My Private Docs
359- startUrl: http://10.2.1.2/docs
360- faviconUrl: http://10.2.1.2/docs/assets/favicon.ico
361- maxDepth: 4
362- useLocalCrawling: true
363- ```
364- </TabItem>
365- <TabItem value="json" label="JSON">
366- ```json title="config.json"
367- {
368- "contextProviders": [
369- {
370- "name": "docs",
371- "params": {
372- "githubToken": "github_...",
373- "nRetrieve": 25,
374- "nFinal": 5,
375- "useReranking": true
376- }
377- }
378- ],
379- "docs": [
380- {
381- "title": "Nest.js",
382- "startUrl": "https://docs.nestjs.com/"
383- },
384- {
385- "title": "My Private Docs",
386- "startUrl": "http://10.2.1.2/docs",
387- "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
388- "maxDepth": 4,
389- "useLocalCrawling": true
390- }
391- ],
392- "reranker": {
393- "name": "voyage",
394- "params": {
395- "model": "rerank-2",
396- "apiKey": "<YOUR_VOYAGE_API_KEY>"
397- }
398- },
399- "embeddingsProvider": {
400- "provider": "lmstudio",
401- "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
402- }
403- }
404- ```
405- </TabItem>
406-</Tabs>
407-
408-{/* This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../deep-dives/settings.md). */}
deleted docs/docs/advanced/custom-providers.mdx +0 −1059
@@ -1,1059 +0,0 @@
1----
2-title: Context Providers
3-description: Type '@' to select content to the LLM as context
4-keywords: [context, "@", provider, LLM]
5----
6-
7-import TabItem from "@theme/TabItem";
8-import Tabs from "@theme/Tabs";
9-
10-Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
11-
12-As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
13-
14-![Context Items](/img/context-provider-example.png)
15-
16-## Context blocks
17-
18-You can add context providers to assistants using [`context` blocks](../hub/blocks/block-types.md#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
19-
20-## Built-in Context Providers
21-
22-You can add any built-in context-providers in your config file as shown below:
23-
24-### `@File`
25-
26-Reference any file in your current workspace.
27-
28-<Tabs groupId="config-example">
29- <TabItem value="yaml" label="YAML">
30- ```yaml title="config.yaml"
31- context:
32- - provider: file
33- ```
34- </TabItem>
35- <TabItem value="json" label="JSON">
36- ```json title="config.json"
37- {
38- "contextProviders": [
39- {
40- "name": "file"
41- }
42- ]
43- }
44- ```
45- </TabItem>
46-</Tabs>
47-
48-### `@Code`
49-
50-Reference specific functions or classes from throughout your project.
51-
52-<Tabs groupId="config-example">
53- <TabItem value="yaml" label="YAML">
54- ```yaml title="config.yaml"
55- context:
56- - provider: code
57- ```
58- </TabItem>
59- <TabItem value="json" label="JSON">
60- ```json title="config.json"
61- {
62- "contextProviders": [
63- {
64- "name": "code"
65- }
66- ]
67- }
68- ```
69- </TabItem>
70-</Tabs>
71-
72-### `@Git Diff`
73-
74-Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
75-
76-<Tabs groupId="config-example">
77- <TabItem value="yaml" label="YAML">
78- ```yaml title="config.yaml"
79- context:
80- - provider: diff
81- ```
82- </TabItem>
83- <TabItem value="json" label="JSON">
84- ```json title="config.json"
85- {
86- "contextProviders": [
87- {
88- "name": "diff"
89- }
90- ]
91- }
92- ```
93- </TabItem>
94-</Tabs>
95-
96-### `@Current File`
97-
98-Reference the currently open file.
99-
100-<Tabs groupId="config-example">
101- <TabItem value="yaml" label="YAML">
102- ```yaml title="config.yaml"
103- context:
104- - provider: currentFile
105- ```
106- </TabItem>
107- <TabItem value="json" label="JSON">
108- ```json title="config.json"
109- {
110- "contextProviders": [
111- {
112- "name": "currentFile"
113- }
114- ]
115- }
116- ```
117- </TabItem>
118-</Tabs>
119-
120-### `@Terminal`
121-
122-Reference the last command you ran in your IDE's terminal and its output.
123-
124-<Tabs groupId="config-example">
125- <TabItem value="yaml" label="YAML">
126- ```yaml title="config.yaml"
127- context:
128- - provider: terminal
129- ```
130- </TabItem>
131- <TabItem value="json" label="JSON">
132- ```json title="config.json"
133- {
134- "contextProviders": [
135- {
136- "name": "terminal"
137- }
138- ]
139- }
140- ```
141- </TabItem>
142-</Tabs>
143-
144-### `@Docs`
145-
146-Reference the contents from any documentation site.
147-
148-<Tabs groupId="config-example">
149- <TabItem value="yaml" label="YAML">
150- ```yaml title="config.yaml"
151- context:
152- - provider: docs
153- ```
154- </TabItem>
155- <TabItem value="json" label="JSON">
156- ```json title="config.json"
157- {
158- "contextProviders": [
159- {
160- "name": "docs"
161- }
162- ]
163- }
164- ```
165- </TabItem>
166-</Tabs>
167-
168-Note that this will only enable the `@Docs` context provider.
169-
170-To use it, you need to add a documentation site to your config file. See the [docs](./context/documentation.mdx) page for more information.
171-
172-### `@Open`
173-
174-Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
175-
176-<Tabs groupId="config-example">
177- <TabItem value="yaml" label="YAML">
178- ```yaml title="config.yaml"
179- context:
180- - provider: open
181- params:
182- onlyPinned: true
183- ```
184- </TabItem>
185- <TabItem value="json" label="JSON">
186- ```json title="config.json"
187- {
188- "contextProviders": [
189- {
190- "name": "open",
191- "params": {
192- "onlyPinned": true
193- }
194- }
195- ]
196- }
197- ```
198- </TabItem>
199-</Tabs>
200-
201-### `@Web`
202-
203-Reference relevant pages from across the web, automatically determined from your input.
204-
205-Optionally, set `n` to limit the number of results returned (default 6).
206-
207-<Tabs groupId="config-example">
208- <TabItem value="yaml" label="YAML">
209- ```yaml title="config.yaml"
210- context:
211- - provider: web
212- params:
213- n: 5
214- ```
215- </TabItem>
216- <TabItem value="json" label="JSON">
217- ```json title="config.json"
218- {
219- "contextProviders": [
220- {
221- "name": "web",
222- "params": {
223- "n": 5
224- }
225- }
226- ]
227- }
228- ```
229- </TabItem>
230-</Tabs>
231-
232-### `@Codebase`
233-
234-Reference the most relevant snippets from your codebase.
235-
236-<Tabs groupId="config-example">
237- <TabItem value="yaml" label="YAML">
238- ```yaml title="config.yaml"
239- context:
240- - provider: codebase
241- ```
242- </TabItem>
243- <TabItem value="json" label="JSON">
244- ```json title="config.json"
245- {
246- "contextProviders": [
247- {
248- "name": "codebase"
249- }
250- ]
251- }
252- ```
253- </TabItem>
254-</Tabs>
255-
256-Read more about indexing and retrieval [here](./context/codebase.mdx).
257-
258-### `@Folder`
259-
260-Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
261-
262-<Tabs groupId="config-example">
263- <TabItem value="yaml" label="YAML">
264- ```yaml title="config.yaml"
265- context:
266- - provider: folder
267- ```
268- </TabItem>
269- <TabItem value="json" label="JSON">
270- ```json title="config.json"
271- {
272- "contextProviders": [
273- {
274- "name": "folder"
275- }
276- ]
277- }
278- ```
279- </TabItem>
280-</Tabs>
281-
282-### `@Search`
283-
284-Reference the results of codebase search, just like the results you would get from VS Code search.
285-
286-<Tabs groupId="config-example">
287- <TabItem value="yaml" label="YAML">
288- ```yaml title="config.yaml"
289- context:
290- - provider: search
291- params:
292- maxResults: 100 # optional, defaults to 200
293- ```
294- </TabItem>
295- <TabItem value="json" label="JSON">
296- ```json title="config.json"
297- {
298- "contextProviders": [
299- {
300- "name": "search",
301- "params": {
302- "maxResults": 100 // optional, defaults to 200
303- }
304- }
305- ]
306- }
307- ```
308- </TabItem>
309-</Tabs>
310-
311-This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
312-
313-### `@Url`
314-
315-Reference the markdown converted contents of a given URL.
316-
317-<Tabs groupId="config-example">
318- <TabItem value="yaml" label="YAML">
319- ```yaml title="config.yaml"
320- context:
321- - provider: url
322- ```
323- </TabItem>
324- <TabItem value="json" label="JSON">
325- ```json title="config.json"
326- {
327- "contextProviders": [
328- {
329- "name": "url"
330- }
331- ]
332- }
333- ```
334- </TabItem>
335-</Tabs>
336-
337-### `@Clipboard`
338-
339-Reference recent clipboard items
340-
341-<Tabs groupId="config-example">
342- <TabItem value="yaml" label="YAML">
343- ```yaml title="config.yaml"
344- context:
345- - provider: clipboard
346- ```
347- </TabItem>
348- <TabItem value="json" label="JSON">
349- ```json title="config.json"
350- {
351- "contextProviders": [
352- {
353- "name": "clipboard"
354- }
355- ]
356- }
357- ```
358- </TabItem>
359-</Tabs>
360-
361-### `@Tree`
362-
363-Reference the structure of your current workspace.
364-
365-<Tabs groupId="config-example">
366- <TabItem value="yaml" label="YAML">
367- ```yaml title="config.yaml"
368- context:
369- - provider: tree
370- ```
371- </TabItem>
372- <TabItem value="json" label="JSON">
373- ```json title="config.json"
374- {
375- "contextProviders": [
376- {
377- "name": "tree"
378- }
379- ]
380- }
381- ```
382- </TabItem>
383-</Tabs>
384-
385-### `@Problems`
386-
387-Get Problems from the current file.
388-
389-<Tabs groupId="config-example">
390- <TabItem value="yaml" label="YAML">
391- ```yaml title="config.yaml"
392- context:
393- - provider: problems
394- ```
395- </TabItem>
396- <TabItem value="json" label="JSON">
397- ```json title="config.json"
398- {
399- "contextProviders": [
400- {
401- "name": "problems"
402- }
403- ]
404- }
405- ```
406- </TabItem>
407-</Tabs>
408-
409-### `@Debugger`
410-
411-Reference the contents of the local variables in the debugger. Currently only available in VS Code.
412-
413-<Tabs groupId="config-example">
414- <TabItem value="yaml" label="YAML">
415- ```yaml title="config.yaml"
416- context:
417- - provider: debugger
418- params:
419- stackDepth: 3
420- ```
421- </TabItem>
422- <TabItem value="json" label="JSON">
423- ```json title="config.json"
424- {
425- "contextProviders": [
426- {
427- "name": "debugger",
428- "params": {
429- "stackDepth": 3
430- }
431- }
432- ]
433- }
434- ```
435- </TabItem>
436-</Tabs>
437-
438-Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
439-
440-### `@Repository Map`
441-
442-Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
443-
444-`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
445-
446-<Tabs groupId="config-example">
447- <TabItem value="yaml" label="YAML">
448- ```yaml title="config.yaml"
449- context:
450- - provider: repo-map
451- params:
452- includeSignatures: false # default true
453- ```
454- </TabItem>
455- <TabItem value="json" label="JSON">
456- ```json title="config.json"
457- {
458- "contextProviders": [
459- {
460- "name": "repo-map",
461- "params": {
462- "includeSignatures": false // default true
463- }
464- }
465- ]
466- }
467- ```
468- </TabItem>
469-</Tabs>
470-
471-Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
472-
473-In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
474-
475-This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
476-
477-### `@Operating System`
478-
479-Reference the architecture and platform of your current operating system.
480-
481-<Tabs groupId="config-example">
482- <TabItem value="yaml" label="YAML">
483- ```yaml title="config.yaml"
484- context:
485- - provider: os
486- ```
487- </TabItem>
488- <TabItem value="json" label="JSON">
489- ```json title="config.json"
490- {
491- "contextProviders": [
492- {
493- "name": "os"
494- }
495- ]
496- }
497- ```
498- </TabItem>
499-</Tabs>
500-
501-### Model Context Protocol
502-
503-The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this:
504-
505-<Tabs groupId="config-example">
506- <TabItem value="yaml" label="YAML">
507- ```yaml title="config.yaml"
508- mcpServers:
509- - name: My MCP Server
510- command: uvx
511- args:
512- - mcp-server-sqlite
513- - --db-path
514- - /Users/NAME/test.db
515- ```
516- </TabItem>
517- <TabItem value="json" label="JSON">
518- ```json title="config.json"
519- {
520- "experimental": {
521- "modelContextProtocolServers": [
522- {
523- "transport": {
524- "type": "stdio",
525- "command": "uvx",
526- "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
527- }
528- }
529- ]
530- }
531- }
532- ```
533- </TabItem>
534-</Tabs>
535-
536-You'll then be able to type "@" and see "MCP" in the context providers dropdown.
537-
538-### `@Issue`
539-
540-Reference the conversation in a GitHub issue.
541-
542-<Tabs groupId="config-example">
543- <TabItem value="yaml" label="YAML">
544- ```yaml title="config.yaml"
545- context:
546- - provider: issue
547- params:
548- repos:
549- - owner: continuedev
550- repo: continue
551- githubToken: ghp_xxx
552- ```
553- </TabItem>
554- <TabItem value="json" label="JSON">
555- ```json title="config.json"
556- {
557- "contextProviders": [
558- {
559- "name": "issue",
560- "params": {
561- "repos": [
562- {
563- "owner": "continuedev",
564- "repo": "continue"
565- }
566- ],
567- "githubToken": "ghp_xxx"
568- }
569- }
570- ]
571- }
572- ```
573- </TabItem>
574-</Tabs>
575-
576-Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
577-
578-### `@Database`
579-
580-Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
581-
582-<Tabs groupId="config-example">
583- <TabItem value="yaml" label="YAML">
584- ```yaml title="config.yaml"
585- context:
586- - provider: database
587- params:
588- connections:
589- - name: examplePostgres
590- connection_type: postgres
591- connection:
592- user: username
593- host: localhost
594- database: exampleDB
595- password: yourPassword
596- port: 5432
597- - name: exampleMssql
598- connection_type: mssql
599- connection:
600- user: username
601- server: localhost
602- database: exampleDB
603- password: yourPassword
604- - name: exampleSqlite
605- connection_type: sqlite
606- connection:
607- filename: /path/to/your/sqlite/database.db
608- ```
609- </TabItem>
610- <TabItem value="json" label="JSON">
611- ```json title="config.json"
612- {
613- "contextProviders": [
614- {
615- "name": "database",
616- "params": {
617- "connections": [
618- {
619- "name": "examplePostgres",
620- "connection_type": "postgres",
621- "connection": {
622- "user": "username",
623- "host": "localhost",
624- "database": "exampleDB",
625- "password": "yourPassword",
626- "port": 5432
627- }
628- },
629- {
630- "name": "exampleMssql",
631- "connection_type": "mssql",
632- "connection": {
633- "user": "username",
634- "server": "localhost",
635- "database": "exampleDB",
636- "password": "yourPassword"
637- }
638- },
639- {
640- "name": "exampleSqlite",
641- "connection_type": "sqlite",
642- "connection": {
643- "filename": "/path/to/your/sqlite/database.db"
644- }
645- }
646- ]
647- }
648- }
649- ]
650- }
651- ```
652- </TabItem>
653-</Tabs>
654-
655-Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
656-
657-Available connection types:
658-
659-- `postgres`
660-- `mysql`
661-- `sqlite`
662-
663-### `@Postgres`
664-
665-Reference the schema of a table, and some sample rows
666-
667-<Tabs groupId="config-example">
668- <TabItem value="yaml" label="YAML">
669- ```yaml title="config.yaml"
670- context:
671- - provider: postgres
672- params:
673- host: localhost
674- port: 5436
675- user: myuser
676- password: catsarecool
677- database: animals
678- schema: public
679- sampleRows: 3
680- ```
681- </TabItem>
682- <TabItem value="json" label="JSON">
683- ```json title="config.json"
684- {
685- "contextProviders": [
686- {
687- "name": "postgres",
688- "params": {
689- "host": "localhost",
690- "port": 5436,
691- "user": "myuser",
692- "password": "catsarecool",
693- "database": "animals",
694- "schema": "public",
695- "sampleRows": 3
696- }
697- }
698- ]
699- }
700- ```
701- </TabItem>
702-</Tabs>
703-
704-The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
705-
706-By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
707-
708-[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
709-
710-### `@Google`
711-
712-Reference the results of a Google search.
713-
714-<Tabs groupId="config-example">
715- <TabItem value="yaml" label="YAML">
716- ```yaml title="config.yaml"
717- context:
718- - provider: google
719- params:
720- serperApiKey: <YOUR_SERPER.DEV_API_KEY>
721- ```
722- </TabItem>
723- <TabItem value="json" label="JSON">
724- ```json title="config.json"
725- {
726- "contextProviders": [
727- {
728- "name": "google",
729- "params": {
730- "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>"
731- }
732- }
733- ]
734- }
735- ```
736- </TabItem>
737-</Tabs>
738-
739-For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
740-
741-Note: You can get an API key for free at [serper.dev](https://serper.dev).
742-
743-### `@Gitlab Merge Request`
744-
745-Reference an open MR for this branch on GitLab.
746-
747-<Tabs groupId="config-example">
748- <TabItem value="yaml" label="YAML">
749- ```yaml title="config.yaml"
750- context:
751- - provider: gitlab-mr
752- params:
753- token: "..."
754- ```
755- </TabItem>
756- <TabItem value="json" label="JSON">
757- ```json title="config.json"
758- {
759- "contextProviders": [
760- {
761- "name": "gitlab-mr",
762- "params": {
763- "token": "..."
764- }
765- }
766- ]
767- }
768- ```
769- </TabItem>
770-</Tabs>
771-
772-You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
773-
774-#### Using Self-Hosted GitLab
775-
776-You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
777-
778-<Tabs groupId="config-example">
779- <TabItem value="yaml" label="YAML">
780- ```yaml title="config.yaml"
781- context:
782- - provider: gitlab-mr
783- params:
784- token: "..."
785- domain: "gitlab.example.com"
786- ```
787- </TabItem>
788- <TabItem value="json" label="JSON">
789- ```json title="config.json"
790- {
791- "contextProviders": [
792- {
793- "name": "gitlab-mr",
794- "params": {
795- "token": "...",
796- "domain": "gitlab.example.com"
797- }
798- }
799- ]
800- }
801- ```
802- </TabItem>
803-</Tabs>
804-
805-#### Filtering Comments
806-
807-If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
808-
809-### `@Jira`
810-
811-Reference the conversation in a Jira issue.
812-
813-<Tabs groupId="config-example">
814- <TabItem value="yaml" label="YAML">
815- ```yaml title="config.yaml"
816- context:
817- - provider: jira
818- params:
819- domain: company.atlassian.net
820- token: ATATT...
821- ```
822- </TabItem>
823- <TabItem value="json" label="JSON">
824- ```json title="config.json"
825- {
826- "contextProviders": [
827- {
828- "name": "jira",
829- "params": {
830- "domain": "company.atlassian.net",
831- "token": "ATATT..."
832- }
833- }
834- ]
835- }
836- ```
837- </TabItem>
838-</Tabs>
839-
840-Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
841-
842-#### Jira Datacenter Support
843-
844-This context provider supports both Jira API version 2 and 3. It will use version 3 by default since
845-that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need
846-to set the API Version to 2 using the `apiVersion` property.
847-
848-<Tabs groupId="config-example">
849- <TabItem value="yaml" label="YAML">
850- ```yaml title="config.yaml"
851- context:
852- - provider: jira
853- params:
854- apiVersion: "2"
855- ```
856- </TabItem>
857- <TabItem value="json" label="JSON">
858- ```json title="config.json"
859- {
860- "contextProviders": [
861- {
862- "name": "jira",
863- "params": {
864- "apiVersion": "2"
865- }
866- }
867- ]
868- }
869- ```
870- </TabItem>
871-</Tabs>
872-
873-#### Issue Query
874-
875-By default, the following query will be used to find issues:
876-
877-```jql
878-assignee = currentUser() AND resolution = Unresolved order by updated DESC
879-```
880-
881-You can override this query by setting the `issueQuery` parameter.
882-
883-#### Max results
884-
885-You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
886-
887-### `@Discord`
888-
889-Reference the messages in a Discord channel.
890-
891-<Tabs groupId="config-example">
892- <TabItem value="yaml" label="YAML">
893- ```yaml title="config.yaml"
894- context:
895- - provider: discord
896- params:
897- discordKey: "bot token"
898- guildId: "1234567890"
899- channels:
900- - id: "123456"
901- name: "example-channel"
902- - id: "678901"
903- name: "example-channel-2"
904- ```
905- </TabItem>
906- <TabItem value="json" label="JSON">
907- ```json title="config.json"
908- {
909- "contextProviders": [
910- {
911- "name": "discord",
912- "params": {
913- "discordKey": "bot token",
914- "guildId": "1234567890",
915- "channels": [
916- {
917- "id": "123456",
918- "name": "example-channel"
919- },
920- {
921- "id": "678901",
922- "name": "example-channel-2"
923- }
924- ]
925- }
926- }
927- ]
928- }
929- ```
930- </TabItem>
931-</Tabs>
932-
933-Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
934-
935-### `@HTTP`
936-
937-The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
938-
939-<Tabs groupId="config-example">
940- <TabItem value="yaml" label="YAML">
941- ```yaml title="config.yaml"
942- context:
943- - provider: http
944- params:
945- url: "https://api.example.com/v1/users"
946- ```
947- </TabItem>
948- <TabItem value="json" label="JSON">
949- ```json title="config.json"
950- {
951- "contextProviders": [
952- {
953- "name": "http",
954- "params": {
955- "url": "https://api.example.com/v1/users"
956- }
957- }
958- ]
959- }
960- ```
961- </TabItem>
962-</Tabs>
963-
964-The receiving URL should expect to receive the following parameters:
965-
966-```js title="POST parameters"
967-{
968- query: string,
969- fullInput: string
970-}
971-```
972-
973-The response 200 OK should be a JSON object with the following structure:
974-
975-```json title="Response"
976-[
977- {
978- "name": "",
979- "description": "",
980- "content": ""
981- }
982-]
983-
984-// OR
985-{
986- "name": "",
987- "description": "",
988- "content": ""
989-}
990-```
991-
992-### `@Commits`
993-
994-Reference specific git commit metadata and diff or all of the recent commits.
995-
996-<Tabs groupId="config-example">
997- <TabItem value="yaml" label="YAML">
998- ```yaml title="config.yaml"
999- context:
1000- - provider: commit
1001- params:
1002- Depth: 50
1003- LastXCommitsDepth: 10
1004- ```
1005- </TabItem>
1006- <TabItem value="json" label="JSON">
1007- ```json title="config.json"
1008- {
1009- "contextProviders": [
1010- {
1011- "name": "commit",
1012- "params": {
1013- "Depth": 50,
1014- "LastXCommitsDepth": 10
1015- }
1016- }
1017- ]
1018- }
1019- ```
1020- </TabItem>
1021-</Tabs>
1022-
1023-The depth is how many commits will be loaded into the submenu, defaults to 50.
1024-The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
1025-
1026-### `@Greptile`
1027-
1028-Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
1029-
1030-<Tabs groupId="config-example">
1031- <TabItem value="yaml" label="YAML">
1032- ```yaml title="config.yaml"
1033- context:
1034- - provider: greptile
1035- params:
1036- greptileToken: "..."
1037- githubToken: "..."
1038- ```
1039- </TabItem>
1040- <TabItem value="json" label="JSON">
1041- ```json title="config.json"
1042- {
1043- "contextProviders": [
1044- {
1045- "name": "greptile",
1046- "params": {
1047- "GreptileToken": "...",
1048- "GithubToken": "..."
1049- }
1050- }
1051- ]
1052- }
1053- ```
1054- </TabItem>
1055-</Tabs>
1056-
1057-### Requesting Context Providers
1058-
1059-Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.
deleted docs/docs/advanced/deep-dives/_apply.md +0 −16
@@ -1,16 +0,0 @@
1----
2-description: Learn how to use the Apply feature
3-keywords: [apply, speculative]
4-toc_max_heading_level: 5
5----
6-
7-<!-- This is a work in progress and excluded by prefixing the file name with an underscore -->
8-
9-# Apply
10-
11-## Instant Diff Apply
12-
13-If you have large files (exeeding the output token of your model) the edit apply will delete all lines that exceed the model window. To mitigate you can instead of applying the changes directly, ask the chat LLM to "generate a unified diff".
14-The resulting diff (if the LLM has not made a mistake) can be instantly applied, changing only the lines that need to change.
15-
16-Explainer Video: https://youtu.be/b7Xxsot4gyw
deleted docs/docs/advanced/deep-dives/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Deep Dives",
3- "position": 3
4-}
deleted docs/docs/advanced/deep-dives/autocomplete.mdx +0 −162
@@ -1,162 +0,0 @@
1----
2-title: Autocomplete
3-keywords: [autocomplete]
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-### Setting up with Codestral (recommended)
10-
11-If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config:
12-
13-<Tabs groupId="hub-config-example">
14- <TabItem value="hub" label="Hub">
15- [Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
16- </TabItem>
17- <TabItem value="yaml" label="YAML">
18- ```yaml title="config.yaml"
19- models:
20- - name: Codestral
21- provider: mistral
22- model: codestral-latest
23- apiKey: <YOUR_CODESTRAL_API_KEY>
24- roles:
25- - autocomplete
26- ```
27- </TabItem>
28- <TabItem value="json" label="JSON">
29- ```json title="config.json"
30- {
31- "tabAutocompleteModel": {
32- "title": "Codestral",
33- "provider": "mistral",
34- "model": "codestral-latest",
35- "apiKey": "<YOUR_CODESTRAL_API_KEY>"
36- }
37- }
38- ```
39- </TabItem>
40-</Tabs>
41-
42-:::tip[Codestral API Key]
43-The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
44-:::
45-
46-### Setting up with Ollama (default)
47-
48-If you'd like to run your autocomplete model locally, we recommend using Ollama. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model:
49-
50-```bash
51-ollama run qwen2.5-coder:1.5b
52-```
53-
54-Then, add the model to your configuration:
55-
56-<Tabs groupId="hub-config-example">
57- <TabItem value="hub" label="Hub">
58- [Ollama Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)
59- </TabItem>
60- <TabItem value="yaml" label="YAML">
61- ```yaml title="config.yaml"
62- models:
63- - name: Qwen 1.5b Autocomplete Model
64- provider: ollama
65- model: qwen2.5-coder:1.5b
66- roles:
67- - autocomplete
68- ```
69- </TabItem>
70- <TabItem value="json" label="JSON">
71- ```json title="config.json"
72- {
73- "tabAutocompleteModel": {
74- "title": "Qwen 1.5b Autocomplete Model",
75- "provider": "ollama",
76- "model": "qwen2.5-coder:1.5b",
77- }
78- }
79- ```
80- </TabItem>
81-</Tabs>
82-
83-Once the model has been downloaded, you should begin to see completions in VS Code.
84-
85-## Configuration Options
86-
87-### Hub Autocomplete models
88-
89-Explore autocomplete model configurations on [the hub](https://hub.continue.dev/explore/models?roles=autocomplete)
90-
91-### Autocomplete User Settings
92-
93-{/* - `Use autocomplete cache`: If on, caches completions */}
94-The following settings can be configured for autocompletion in the IDE extension [User Settings Page](./settings.md):
95-
96-- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
97-- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt"
98-
99-### `config.json` Configuration
100-
101-The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](/reference) for more details.
102-
103-## FAQs
104-
105-### I want better completions, should I use GPT-4?
106-
107-Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/main/core/autocomplete/templating/AutocompleteTemplate.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
108-
109-### I'm not seeing any completions
110-
111-Follow these steps to ensure that everything is set up correctly:
112-
113-1. Make sure you have the "Enable Tab Autocomplete" setting checked (in VS Code, you can toggle by clicking the "Continue" button in the status bar, and in JetBrains by going to Settings -> Tools -> Continue).
114-2. Make sure you have downloaded Ollama.
115-3. Run `ollama run qwen2.5-coder:1.5b` to verify that the model is downloaded.
116-4. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere.
117-5. Check the output of the logs to find any potential errors: <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> -> "Toggle Developer Tools" -> "Console" tab in VS Code, ~/.continue/logs/core.log in JetBrains.
118-6. Check VS Code settings to make sure that `"editor.inlineSuggest.enabled"` is set to `true` (use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> then search for this and check the box)
119-7. If you are still having issues, please let us know in our [Discord](https://discord.gg/vapESyrFmJ) and we'll help as soon as possible.
120-
121-### Completions are only ever single-line
122-
123-To ensure that you receive multi-line completions, you can set `"multilineCompletions": "always"` in `tabAutocompleteOptions`. By default, it is `"auto"`. If you still find that you are only seeing single-line completions, this may be because some models tend to produce shorter completions when starting in the middle of a file. You can try temporarily moving text below your cursor out of your active file, or switching to a larger model.
124-
125-### Can I configure a "trigger key" for autocomplete?
126-
127-Yes, in VS Code, if you don't want to be shown suggestions automatically you can:
128-
129-1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions
130-2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger`
131-3. Click the "+" icon to add a new keybinding
132-4. Press the key combination you want to use to trigger suggestions (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>)
133-5. Now whenever you want to see a suggestion, you can press your key binding (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>) to trigger suggestions manually
134-
135-### Is there a shortcut to accept one line at a time?
136-
137-This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code:
138-
139-1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
140-2. Search for `editor.action.inlineSuggest.acceptNextLine`.
141-3. Set the key binding to `Tab`.
142-4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
143- This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
144- If you need to apply all the code, just press `Tab` multiple times.
145-
146-### How to turn off autocomplete
147-
148-#### VS Code
149-
150-Click the "Continue" button in the status panel at the bottom right of the screen. The checkmark will become a "cancel" symbol and you will no longer see completions. You can click again to turn it back on.
151-
152-Alternatively, open VS Code settings, search for "Continue" and uncheck the box for "Enable Tab Autocomplete".
153-
154-You can also use the default shortcut to disable autocomplete directly using a chord: press and hold <kbd>ctrl/cmd</kbd> + <kbd>K</kbd> (continue holding <kbd>ctrl/cmd</kbd>) and press <kbd>ctrl/cmd</kbd> + <kbd>A</kbd>. This will turn off autocomplete without navigating through settings.
155-
156-#### JetBrains
157-
158-Open Settings -> Tools -> Continue and uncheck the box for "Enable Tab Autocomplete".
159-
160-#### Feedback
161-
162-If you're turning off autocomplete, we'd love to hear how we can improve! Please let us know in our [Discord](https://discord.gg/vapESyrFmJ) or file an issue on GitHub.
deleted docs/docs/advanced/deep-dives/configuration.md +0 −86
@@ -1,86 +0,0 @@
1----
2-description: Configuration
3-keywords: [config, settings, customize]
4----
5-
6-# Configuration
7-
8-You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
9-
10-![configure an assistant](/img/configure-continue.png)
11-
12-## Hub Assistants
13-
14-Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
15-
16-## YAML Config
17-
18-Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
19-
20-- `~/.continue/config.yaml` (MacOS / Linux)
21-- `%USERPROFILE%\.continue\config.yaml` (Windows)
22-
23-To open this `config.yaml`, you need to open the assistants dropdown in the top-right portion of the chat input. On that dropdown beside the "Local Assistant" option, select the cog icon. It will open the local `config.yaml`.
24-
25-![local-config-open-steps](/img/local-config-open-steps.png)
26-
27-When editing this file, you can see the available options suggested as you type, or check the reference below. When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
28-
29-See the full reference for `config.yaml` [here](/reference).
30-
31-## Deprecated configuration methods
32-
33-:::info
34-View the `config.json` migration guide [here](../yaml-migration.mdx)
35-:::
36-
37-- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`
38-- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
39-- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema:
40- - `~/.continue/config.ts` (MacOS / Linux)
41- - `%USERPROFILE%\.continue\config.ts` (Windows)
42-
43-### `.continuerc.json`
44-
45-The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`.
46-
47-Example
48-
49-```json title=".continuerc.json"
50-{
51- "tabAutocompleteOptions": {
52- "disable": true
53- },
54- "mergeBehavior": "overwrite"
55-}
56-```
57-
58-### `config.ts`
59-
60-`config.yaml` or `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically extend Continue configuration, you can use a `config.ts` file, placed at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
61-
62-`config.ts` must export a `modifyConfig` function, like:
63-
64-```ts title="config.ts"
65-export function modifyConfig(config: Config): Config {
66- config.slashCommands?.push({
67- name: "commit",
68- description: "Write a commit message",
69- run: async function* (sdk) {
70- // The getDiff function takes a boolean parameter that indicates whether
71- // to include unstaged changes in the diff or not.
72- const diff = await sdk.ide.getDiff(false); // Pass false to exclude unstaged changes
73- for await (const message of sdk.llm.streamComplete(
74- `${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`,
75- new AbortController().signal,
76- {
77- maxTokens: 20,
78- },
79- )) {
80- yield message;
81- }
82- },
83- });
84- return config;
85-}
86-```
deleted docs/docs/advanced/deep-dives/development-data.md +0 −21
@@ -1,21 +0,0 @@
1----
2-title: Development Data
3-description: Collecting data on how you build software
4-keywords: [development data, dev data, LLM-aided development]
5----
6-
7-# Development Data
8-
9-When you use Continue, you automatically collect data on how you build software. By default, this development data is saved to `.continue/dev_data` on your local machine.
10-
11-You can read more about how development data is generated as a byproduct of LLM-aided development and why we believe that you should start collecting it now: [It’s time to collect data on how you build software](https://blog.continue.dev/its-time-to-collect-data-on-how-you-build-software)
12-
13-## Custom Data Destinations
14-
15-You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories.
16-
17-For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data).
18-
19-See more details about adding `data` blocks to your configuration files in the [YAML specification](/reference#data)
20-
21-When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data).
deleted docs/docs/advanced/deep-dives/mcp.mdx +0 −181
@@ -1,181 +0,0 @@
1----
2-title: MCP
3-description: MCP use and customization
4-keywords: [tool, use, function calling, claude, automatic]
5----
6-
7-import TabItem from "@theme/TabItem";
8-import Tabs from "@theme/Tabs";
9-
10-# MCP
11-
12-As AI systems get better, they're still held back by their training data and
13-can't access real-time information or specialized tools. The [Model Context
14-Protocol](https://modelcontextprotocol.io/introduction) (MCP) fixes this by
15-letting AI models connect with outside data sources, tools, and environments.
16-This allows smooth sharing of information and abilities between AI systems and
17-the wider digital world. This standard, created by Anthropic to bring together
18-prompts, context, and tool use, is key for building truly useful AI experiences
19-that can be set up with custom tools.
20-
21-## How it works
22-
23-Currently custom tools can be configured using the Model Context
24-Protocol standard to unify prompts, context, and tool use.
25-
26-MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
27-explore available MCP server blocks
28-[here](https://hub.continue.dev/explore/mcp).
29-
30-:::info
31-MCP can only be used in the **agent** mode.
32-:::
33-
34-## Quick Start
35-
36-Below is a quick example of setting up a new MCP server for use in your assistant:
37-
38-1. Create a folder called `.continue/mcpServers` at the top level of your workspace
39-2. Add a file called `playwright-mcp.yaml` to this folder.
40-3. Write the following contents to `playwright-mcp.yaml` and save.
41-
42-```yaml title=".continue/mcpServers/playwright-mcp.yaml"
43-name: Playwright mcpServer
44-version: 0.0.1
45-schema: v1
46-mcpServers:
47- - name: Browser search
48- command: npx
49- args:
50- - "@playwright/mcp@latest"
51-```
52-
53-Now test your MCP server by prompting the following command:
54-
55-```
56-Open the browser and navigate Hacker News. Save the top 10 headlines in a hn.txt file.
57-```
58-
59-The result will be a generated file called `hn.txt` in the current working directory.
60-
61-![playwright mcp](/img/mcp-playwright.png)
62-
63-## Using MCP Servers
64-
65-To set up your own MCP server, read the [MCP
66-quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
67-`mcpServers`
68-block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a local MCP
69-server block to your [config file](./configuration.md):
70-
71-<Tabs groupId="config.yaml">
72- <TabItem value="yaml" label="YAML">
73- ```yaml title="config.yaml"
74- mcpServers:
75- - name: SQLite MCP
76- command: npx
77- args:
78- - "-y"
79- - "mcp-sqlite"
80- - "/path/to/your/database.db"
81-
82-````
83-</TabItem>
84-<TabItem value="json" label="JSON">
85-```json title="config.json"
86-{
87- "experimental": {
88- "modelContextProtocolServers": [
89- {
90- "transport": {
91- "type": "stdio",
92- "command": "uvx",
93- "args": ["mcp-server-sqlite", "--db-path", "/path/to/your/database.db"]
94- }
95- }
96- ]
97- }
98-}
99-````
100-
101- </TabItem>
102-</Tabs>
103-
104-### Syntax
105-
106-MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
107-
108-- `name` (**required**): A display name for the MCP server.
109-- `command` (**required**): The command to run to start the MCP server.
110-- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
111-- `args` (optional): Arguments to pass to the command.
112-- `env` (optional): Secrets to be injected into the command as environment variables.
113-
114-### Transport Types
115-
116-MCP now supports remote server connections through HTTP-based transports, expanding beyond the traditional local stdio transport method. This enables integration with cloud-hosted MCP servers and distributed architectures.
117-
118-#### Server-Sent Events (SSE) Transport
119-
120-For real-time streaming communication, use the SSE transport:
121-
122-```yaml
123-mcpServers:
124- - name: Name
125- type: sse
126- url: https://....
127-```
128-
129-#### Standard Input/Output (stdio)
130-
131-For local MCP servers that communicate via standard input and output:
132-
133-```yaml
134-mcpServers:
135- - name: Name
136- type: stdio
137- command: npx
138- args:
139- - "@modelcontextprotocol/server-sqlite"
140- - "/path/to/your/database.db"
141-```
142-
143-#### Streamable HTTP Transport
144-
145-For standard HTTP-based communication with streaming capabilities:
146-
147-```yaml
148-mcpServers:
149- - name: Name
150- type: streamable-http
151- url: https://....
152-```
153-
154-These remote transport options allow you to connect to MCP servers hosted on remote infrastructure, enabling more flexible deployment architectures and shared server resources across multiple clients.
155-
156-For detailed information about transport mechanisms and their use cases, refer to the official MCP documentation on [transports](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse).
157-
158-### Working with Secrets
159-
160-With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets
161-as well as access hosted secrets in the Continue Hub. To leverage Hub secrets, you can use the `inputs` property in your MCP env block instead of `secrets`.
162-
163-```yaml
164-mcpServers:
165- - name: Supabase MCP
166- command: npx
167- args:
168- - -y
169- - "@supabase/mcp-server-supabase@latest"
170- - --access-token
171- - ${{ secrets.SUPABASE_TOKEN }}
172- env:
173- SUPABASE_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
174- - name: GitHub
175- command: npx
176- args:
177- - "-y"
178- - "@modelcontextprotocol/server-github"
179- env:
180- GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
181-```
deleted docs/docs/advanced/deep-dives/prompts.md +0 −58
@@ -1,58 +0,0 @@
1----
2-title: Prompts
3----
4-
5-Prompts are reusable instructions that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks.
6-
7-:::info
8-Prompts were previously defined in a `.prompt` file format, but for consistency we now recommend using the same Markdown format as [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered.
9-:::
10-
11-### Quick Start
12-
13-Below is a quick example of setting up a prompt file:
14-
15-1. Create a folder called `.continue/rules` at the top level of your workspace
16-2. Add a file called `review-prompt.md` to this folder.
17-3. Write the following contents to `review-prompt.md` and save.
18-
19-```md title="review-prompt.md"
20----
21-name: Redux best practices review
22-alwaysApply: false
23----
24-
25-Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/.
26-```
27-
28-Now to use this prompt, you can open Chat, type <kbd>/</kbd>, select the prompt, and type out any additional instructions you'd like to add.
29-
30-## Further Examples
31-
32-Below are more examples to get you started. You can also visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts).
33-
34-### Security review
35-
36-```md title="security-review.md"
37----
38-name: Security best practices review
39-alwaysApply: false
40----
41-
42-Review the changes in the current git diff for these security best practices:
43-
44-- Does the architecture follow security-by-design principles?
45-- Are there potential security vulnerabilities in the system design?
46-- Is sensitive data handled appropriately throughout the lifecycle?
47-```
48-
49-### Pull in commonly used files for tasks
50-
51-```md title="typeorm-entity-generator.md"
52----
53-name: Generate a new TypeORM entity
54-alwaysApply: false
55----
56-
57-Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements:
58-```
deleted docs/docs/advanced/deep-dives/rules.mdx +0 −189
@@ -1,189 +0,0 @@
1----
2-description: Rules are used to provide instructions to the model for Chat, Edit, and Agent requests.
3-keywords: [rules, .continuerules, system, prompt, message]
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-# Rules
10-
11-Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
12-
13-:::info Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
14-:::
15-
16-## How it works
17-
18-You can view the current rules by clicking the pen icon above the main toolbar:
19-
20-![rules input toolbar section](/img/notch-rules.png)
21-
22-To form the system message, rules are joined with new lines, in the order they appear in the toolbar. This includes the base chat system message ([see below](#chat-system-message)).
23-
24-## Quick Start
25-
26-Below is a quick example of setting up a new rule file:
27-
28-1. Create a folder called `.continue/rules` at the top level of your workspace
29-2. Add a file called `pirates-rule.md` to this folder.
30-3. Write the following contents to `pirates-rule.md` and save.
31-
32-```md title=".continue/rules/pirates-rule.md"
33----
34-name: Pirate rule
35----
36-
37-- Talk like a pirate.
38-```
39-
40-Now test your rules by asking a question about a file in chat.
41-
42-![pirate rule test](/img/pirate-rule-test.png)
43-
44-## Creating `rules` blocks
45-
46-Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
47-
48-![add local rules button](/img/add-local-rules.png)
49-
50-:::info Automatically create local rule blocks
51-When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled.
52-
53-For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
54-:::
55-
56-Rules can also be added to an Assistant on the Continue Hub.
57-
58-Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
59-
60-### Syntax
61-
62-:::info
63-
64-Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown.
65-
66-:::
67-
68-Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
69-
70-- `name` (**required** for YAML): A display name/title for the rule
71-- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`).
72-- `regex` (optional): When files are provided as context and their content matches this regex pattern, the rule will be included. This can be either a single pattern (e.g., `"^import .* from '.*';$"`) or an array of patterns (e.g., `["^import .* from '.*';$", "^export .* from '.*';$"]`).
73-- `description` (optional): A description for the rule. Agents may read this description when `alwaysApply` is false to determine whether the rule should be pulled into context.
74-- `alwaysApply`: Determines whether the rule is always included. Behavior is described below:
75- - `true`: Always included, regardless of file context
76- - `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description
77- - `undefined` (default behavior): Included if no globs exist OR globs exist and match
78-
79-<Tabs groupId="rules-example">
80- <TabItem value="md" label="Markdown">
81- ```yaml title="doc-standards.md"
82- ---
83- name: Documentation Standards
84- globs: docs/**/*.{md,mdx}
85- alwaysApply: false
86- description: Standards for writing and maintaining Continue Docs
87- ---
88-
89-# Continue Docs Standards
90-
91-- Follow Docusaurus documentation standards
92-- Include YAML frontmatter with title, description, and keywords
93-- Use consistent heading hierarchy starting with h2 (##)
94-- Include relevant Admonition components for tips, warnings, and info
95-- Use descriptive alt text for images
96-- Include cross-references to related documentation
97-- Reference other docs with relative paths
98-- Keep paragraphs concise and scannable
99-- Use code blocks with appropriate language tags
100-
101- ````
102- </TabItem>
103- <TabItem value="yaml" label="YAML">
104-
105- ```yaml title="doc-standards.yaml"
106- name: Documentation Standards
107- version: 1.0.0
108- schema: v1
109-
110- rules:
111- - name: Documentation Standards
112- globs: docs/**/*.{md,mdx}
113- alwaysApply: false
114- rule: >
115- - Follow Docusaurus documentation standards
116- - Include YAML frontmatter with title, description, and keywords
117- - Use consistent heading hierarchy starting with h2 (##)
118- - Include relevant Admonition components for tips, warnings, and info
119- - Use descriptive alt text for images
120- - Include cross-references to related documentation
121- - Reference other docs with relative paths
122- - Keep paragraphs concise and scannable
123- - Use code blocks with appropriate language tags
124- ````
125-
126- </TabItem>
127-
128- </Tabs>
129-
130-### `.continue/rules` folder
131-
132-You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files.
133-
134-```md title=".continue/rules/new-rule.md"
135----
136-name: New rule
137----
138-
139-Always give concise responses
140-```
141-
142-This is also done when selecting "Add Rule" in the Assistant settings. This will create a new folder in `.continue/rules` with a default file named `new-rule.md`.
143-
144-### Examples
145-
146-If you want concise answers:
147-
148-```md title=".continue/rules/concise-rule.md"
149----
150-name: Always give concise answers
151----
152-
153-Please provide concise answers. Don't explain obvious concepts.
154-You can assume that I am knowledgable about most programming topics.
155-```
156-
157-If you want to ensure certain practices are followed, for example in React:
158-
159-```md title=".continue/rules/functional-rule.md"
160----
161-name: Always use functional components
162----
163-
164-Whenever you are writing React code, make sure to
165-
166-- use functional components instead of class components
167-- use hooks for state management
168-- define an interface for your component props
169-- use Tailwind CSS for styling
170-- modularize components into smaller, reusable pieces
171-```
172-
173-### Chat System Message
174-
175-Continue includes a simple default system message for [Chat](../../features/chat/quick-start) and [Agent](../../features/agent/quick-start) requests, to help the model provide reliable codeblock formats in its output.
176-
177-This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4).
178-
179-Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
180-
181-### `.continuerules`
182-
183-:::warning
184-
185-`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
186-
187-:::
188-
189-You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
deleted docs/docs/advanced/deep-dives/settings.md +0 −42
@@ -1,42 +0,0 @@
1----
2-title: User Settings Page
3-description: Reference for Adjusting User-Specific Settings
4-keywords: [config, settings, configuration, customize, customization, sidebar]
5----
6-
7-# The User Settings Page
8-
9-The **User Settings page** can be accessed by clicking the gear icon in the header of the Continue sidebar and then selecting the "Settings" tab.
10-
11-![settings](/img/settings-header.png)
12-
13-Which takes you to this page (select the "Settings" tab):
14-
15-![User Settings Page](/img/settings-page.png)
16-
17-Below that, the following settings which are not part of a configuration file are available:
18-
19-- `Show Session Tabs`: If on, displays tabs above the chat as an alternative way to organize and access your sessions. Off by default
20-- `Wrap Codeblocks`: If on, enables text wrapping in code blocks. Off by default.
21-- `Show Chat Scrollbar`: If on, enables a scrollbar in the chat window. Off by default.
22-- `Text-to-Speech Output`: If on, reads LLM responses aloud with TTS. Off by default.
23-- `Enable Session Titles`: If on, generates summary titles for each chat session after the first message, using the current Chat model. On by default.
24-- `Format Markdown`: If off, shows responses as raw text. On by default.
25-- `Allow Anonymous Telemetry`: If on, allows Continue to send anonymous telemetry. **On** by default.
26-- `Enable Indexing`: Enables indexing of the codebase for the @codebase and @code context providers. **On** by default.
27-- `Font Size`: Specifies base font size for UI elements
28-- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
29-- `Autocomplete timeout`: Maximum time in milliseconds for autocomplete request/retreival. Defaults to 150
30-- `Autocomplete debounce`: Minimum time in milliseconds to trigger an autocomplete request after a change. Defaults to 250
31-- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., `**/*.{txt,md}`
32-
33-### Experimental settings
34-
35-At the bottom of the User Settings page there is an "Experimental Settings" section which contains new or otherwise experimental settings, including:
36-
37-- `Auto-Accept Agent Edits`: **CAUTION: Be very careful with this setting. When turned on, Agent mode's edit tool can make changes to files with no manual review or guaranteed stopping point. If on, diffs generated by the edit tool are automatically accepted and Agent proceeds with the next conversational turn.** Off by default.
38-
39-<!-- - `Use autocomplete cache`: If on, caches completions. -->
40-<!-- - `Use Chromium for Docs Crawling`: Use Chromium to crawl docs locally. Useful if the default Cheerio crawler fails on sites that require JavaScript rendering. Downloads and installs Chromium to ~/.continue/.utils. Off by default -->
41-<!-- - `Codeblock Actions Position`: Sets the position for the actions that show when hovering over codeblocks. Defaults to `top` -->
42-<!-- - `Workspace prompts path`: Where to find Prompt Files in a workspace - replaces the default .continue/prompts -->
deleted docs/docs/advanced/deep-dives/slash-commands.mdx +0 −33
@@ -1,33 +0,0 @@
1----
2-title: Slash commands
3-description: Shortcuts that can be activated by prefacing your input with '/'
4-keywords: [slash command, custom commands, step]
5----
6-
7-import TabItem from "@theme/TabItem";
8-import Tabs from "@theme/Tabs";
9-
10-![actions](/img/actions.gif)
11-
12-## Slash commands
13-
14-Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
15-![slash-commands](/img/slash-commands.png)
16-
17-Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code.
18-
19-## Prompts
20-
21-### Assistant prompt blocks
22-
23-The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works.mdx).
24-
25-### Prompt files
26-
27-It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
28-
29-Learn more about prompt files [here](./prompts.md)
30-
31-### MCP Server prompts
32-
33-Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp.mdx) for more details.
deleted docs/docs/advanced/deep-dives/vscode-actions.md +0 −49
@@ -1,49 +0,0 @@
1----
2-title: VS Code Actions
3-description: VS Code Actions
4-keywords: [vscode, quick actions, quick, actions]
5----
6-
7-### Other triggers for Actions (VS Code)
8-
9-:::info
10-Currently all of these are only available in VS Code
11-:::
12-
13-To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
14-
15-## Quick actions
16-
17-Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompts.md) to perform custom actions.
18-
19-![quick-actions](/img/quick-actions.png)
20-
21-By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
22-
23-## Right click actions
24-
25-Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
26-
27-The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
28-
29-Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx).
30-
31-![context-menu](/img/context-menu.png)
32-
33-## Debug action
34-
35-The debug action is a special built-in keyboard shortcut in the VS Code extension. Use <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>R</kbd> to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
36-
37-```
38-I got the following error, can you please help explain how to fix it?
39-
40-[ERROR_MESSAGE]
41-```
42-
43-## Quick fixes
44-
45-Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
46-
47-Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
48-
49-![ask-continue](/img/ask-continue.png)
deleted docs/docs/advanced/json-reference.md +0 −530
@@ -1,530 +0,0 @@
1----
2-title: config.json Reference
3-description: Reference for the Continue _config.json_ configuration file
4-keywords: [config, config_schema.json, json]
5----
6-
7-:::info
8-We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](/reference).
9-:::
10-
11-Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json).
12-
13-**All properties at all levels are optional unless explicitly marked required**
14-
15-### `models`
16-
17-Your **chat** models are defined here, which are used for [Chat](/features/chat/how-it-works), [Edit](/features/edit/how-it-works) and [VS Code actions](/advanced/deep-dives/vscode-actions).
18-
19-Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
20-
21-**Properties:**
22-
23-- `title` (**required**): The title to assign to your model, shown in dropdowns, etc.
24-- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions.
25-- `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models.
26-- `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI.
27-- `apiBase`: The base URL of the LLM API.
28-- `contextLength`: Maximum context length of the model, typically in tokens (default: 2048).
29-- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
30-- `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions.
31-- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt).
32-- `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override.
33-- `systemMessage`: A system message that will precede responses from the LLM.
34-- `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override.
35-- `apiType`: Specifies the type of API (`openai` or `azure`).
36-- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`).
37-- `engine`: Engine for Azure OpenAI requests.
38-- `capabilities`: Override auto-detected capabilities:
39- - `uploadImage`: Boolean indicating if the model supports image uploads.
40- - `tools`: Boolean indicating if the model supports tool use.
41-
42-_(AWS Only)_
43-
44-- `profile`: AWS security profile for authorization.
45-- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider).
46-- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`).
47-
48-Example:
49-
50-```json title="config.json"
51-{
52- "models": [
53- {
54- "title": "Ollama",
55- "provider": "ollama",
56- "model": "AUTODETECT"
57- },
58- {
59- "model": "gpt-4o",
60- "contextLength": 128000,
61- "title": "GPT-4o",
62- "provider": "openai",
63- "apiKey": "YOUR_API_KEY"
64- }
65- ]
66-}
67-```
68-
69-### `tabAutocompleteModel`
70-
71-Specifies the model or models for tab autocompletion, defaulting to an Ollama instance. This property uses the same format as `models`. Can be an array of models or an object for one model.
72-
73-Example
74-
75-```json title="config.json"
76-{
77- "tabAutocompleteModel": {
78- "title": "My Starcoder",
79- "provider": "ollama",
80- "model": "starcoder2:3b"
81- }
82-}
83-```
84-
85-### `tabAutocompleteOptions`
86-
87-Specifies options for tab autocompletion behavior.
88-
89-**Properties:**
90-
91-- `disable`: If `true`, disables tab autocomplete (default: `false`).
92-- `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`).
93-- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
94-- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
95-- `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
96-- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
97-- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
98-
99-Example
100-
101-```json title="config.json"
102-{
103- "tabAutocompleteOptions": {
104- "debounceDelay": 500,
105- "maxPromptTokens": 1500,
106- "disableInFiles": ["*.md"]
107- }
108-}
109-```
110-
111-### `embeddingsProvider`
112-
113-Embeddings model settings - the model used for @Codebase and @docs.
114-
115-**Properties:**
116-
117-- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `gemini`, etc
118-- `model`: Model name for embeddings.
119-- `apiKey`: API key for the provider.
120-- `apiBase`: Base URL for API requests.
121-- `requestOptions`: Additional HTTP request settings specific to the embeddings provider.
122-- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
123-- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
124-
125-(AWS ONLY)
126-
127-- `region`: Specifies the region hosting the model.
128-- `profile`: AWS security profile.
129-
130-Example:
131-
132-```json title="config.json"
133-{
134- "embeddingsProvider": {
135- "provider": "openai",
136- "model": "text-embedding-ada-002",
137- "apiKey": "<API_KEY>",
138- "maxEmbeddingChunkSize": 256,
139- "maxEmbeddingBatchSize": 5
140- }
141-}
142-```
143-
144-### `completionOptions`
145-
146-Parameters that control the behavior of text generation and completion settings. Top-level `completionOptions` apply to all models, _unless overridden at the model level_.
147-
148-**Properties:**
149-
150-- `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`).
151-- `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs.
152-- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass.
153-- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability.
154-- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output.
155-- `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition.
156-- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0).
157-- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions.
158-- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`).
159-- `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`.
160-- `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes).
161-- `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM.
162-- `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
163-- `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models.
164-- `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
165-
166-Example
167-
168-```json title="config.json"
169-{
170- "completionOptions": {
171- "stream": false,
172- "temperature": 0.5
173- }
174-}
175-```
176-
177-### `requestOptions`
178-
179-Default HTTP request options that apply to all models and context providers, unless overridden at the model level.
180-
181-**Properties:**
182-
183-- `timeout`: Timeout for each request to the LLM (default: 7200 seconds).
184-- `verifySsl`: Whether to verify SSL certificates for requests.
185-- `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths)
186-- `proxy`: Proxy URL to use for HTTP requests.
187-- `headers`: Custom headers for HTTP requests.
188-- `extraBodyProperties`: Additional properties to merge with the HTTP request body.
189-- `noProxy`: List of hostnames that should bypass the specified proxy.
190-- `clientCertificate`: Client certificate for HTTP requests.
191-
192- - `cert`: Path to the client certificate file.
193- - `key`: Path to the client certificate key file.
194- - `passphrase`: Optional passphrase for the client certificate key file.
195-
196-Example
197-
198-```json title="config.json"
199-{
200- "requestOptions": {
201- "headers": {
202- "X-Auth-Token": "xxx"
203- }
204- }
205-}
206-```
207-
208-### `reranker`
209-
210-Configuration for the reranker model used in response ranking.
211-
212-**Properties:**
213-
214-- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock`
215-- `params`:
216- - `model`: Model name
217- - `apiKey`: Api key
218- - `region`: Region (for Bedrock only)
219-
220-Example
221-
222-```json title="config.json"
223-{
224- "reranker": {
225- "name": "voyage",
226- "params": {
227- "model": "rerank-2",
228- "apiKey": "<VOYAGE_API_KEY>"
229- }
230- }
231-}
232-```
233-
234-### `docs`
235-
236-List of documentation sites to index.
237-
238-**Properties:**
239-
240-- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
241-- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
242-<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL -->
243-- `maxDepth`: Maximum link depth for crawling. Default `4`
244-- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
245-- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
246-
247-Example
248-
249-```json title="config.json"
250-"docs": [
251- {
252- "title": "Continue",
253- "startUrl": "https://docs.continue.dev/intro",
254- "faviconUrl": "https://docs.continue.dev/favicon.ico",
255- }
256-]
257-```
258-
259-### `slashCommands`
260-
261-Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined.
262-
263-**Properties:**
264-
265-- `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review".
266-- `description`: Brief description of the command.
267-- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options.
268-- `params`: Additional parameters to configure command behavior (command-specific - see code for command)
269-
270-The following commands are built-in and can be added to `config.json` to make them visible:
271-
272-#### `/share`
273-
274-Generate a shareable markdown transcript of your current chat history.
275-
276-```json title="config.json"
277-{
278- "slashCommands": [
279- {
280- "name": "share",
281- "description": "Export the current chat session to markdown",
282- "params": { "outputDir": "~/.continue/session-transcripts" }
283- }
284- ]
285-}
286-```
287-
288-Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
289-
290-#### `/cmd`
291-
292-Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.
293-
294-```json title="config.json"
295-{
296- "slashCommands": [
297- {
298- "name": "cmd",
299- "description": "Generate a shell command"
300- }
301- ]
302-}
303-```
304-
305-#### `/commit`
306-
307-Shows the LLM your current git diff and asks it to generate a commit message.
308-
309-```json title="config.json"
310-{
311- "slashCommands": [
312- {
313- "name": "commit",
314- "description": "Generate a commit message for the current changes"
315- }
316- ]
317-}
318-```
319-
320-#### `/http`
321-
322-Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference.
323-
324-```json title="config.json"
325-{
326- "slashCommands": [
327- {
328- "name": "http",
329- "description": "Does something custom",
330- "params": { "url": "<my server endpoint>" }
331- }
332- ]
333-}
334-```
335-
336-#### `/issue`
337-
338-Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.
339-
340-```json title="config.json"
341-{
342- "slashCommands": [
343- {
344- "name": "issue",
345- "description": "Generate a link to a drafted GitHub issue",
346- "params": { "repositoryUrl": "https://github.com/continuedev/continue" }
347- }
348- ]
349-}
350-```
351-
352-#### `/onboard`
353-
354-The onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.
355-
356-```json title="config.json"
357-{
358- "slashCommands": [
359- {
360- "name": "onboard",
361- "description": "Familiarize yourself with the codebase"
362- }
363- ]
364-}
365-```
366-
367-Example:
368-
369-```json title="config.json"
370-{
371- "slashCommands": [
372- {
373- "name": "commit",
374- "description": "Generate a commit message"
375- },
376- {
377- "name": "share",
378- "description": "Export this session as markdown"
379- },
380- {
381- "name": "cmd",
382- "description": "Generate a shell command"
383- }
384- ]
385-}
386-```
387-
388-### `customCommands`
389-
390-User-defined commands for prompt shortcuts in the sidebar, allowing quick access to common actions.
391-
392-**Properties:**
393-
394-- `name`: The name of the custom command.
395-- `prompt`: Text prompt for the command.
396-- `description`: Brief description explaining the command's function.
397-
398-Example:
399-
400-```json title="config.json"
401-{
402- "customCommands": [
403- {
404- "name": "test",
405- "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
406- "description": "Write unit tests for highlighted code"
407- }
408- ]
409-}
410-```
411-
412-### `contextProviders`
413-
414-List of the pre-defined context providers that will show up as options while typing in the chat, and their customization with `params`.
415-
416-**Properties:**
417-
418-- `name`: Name of the context provider, e.g. `docs` or `web`
419-- `params`: A context-provider-specific record of params to configure the context behavior
420-
421-Example
422-
423-```json title="config.json"
424-{
425- "contextProviders": [
426- {
427- "name": "code",
428- "params": {}
429- },
430- {
431- "name": "docs",
432- "params": {}
433- },
434- {
435- "name": "diff",
436- "params": {}
437- },
438- {
439- "name": "open",
440- "params": {}
441- }
442- ]
443-}
444-```
445-
446-### `userToken`
447-
448-An optional token that identifies the user, primarily for authenticated services.
449-
450-### `systemMessage`
451-
452-Defines a system message that appears before every response from the language model, providing guidance or context.
453-
454-### `experimental`
455-
456-Several experimental config parameters are available, as described below:
457-
458-`experimental`:
459-
460-- `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.=
461-- `modelRoles`:
462- - `inlineEdit`: Model title for inline edits.
463- - `applyCodeBlock`: Model title for applying code blocks.
464- - `repoMapFileSelection`: Model title for repo map selections.
465-- `quickActions`: Array of custom quick actions
466- - `title` (**required**): Display title for the quick action.
467- - `prompt` (**required**): Prompt for quick action.
468- - `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`.
469-- `contextMenuPrompts`:
470- - `comment`: Prompt for commenting code.
471- - `docstring`: Prompt for adding docstrings.
472- - `fix`: Prompt for fixing code.
473- - `optimize`: Prompt for optimizing code.
474-- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools)
475-
476-Example
477-
478-```json title="config.json"
479-{
480- "experimental": {
481- "modelRoles": {
482- "inlineEdit": "Edit Model"
483- },
484- "quickActions": [
485- {
486- "title": "Tags",
487- "prompt": "Return a list of any function and class names from the included code block",
488- "sendToChat": true
489- }
490- ],
491- "contextMenuPrompts": {
492- "fixGrammar": "Fix grammar in the above but allow for typos."
493- },
494- "modelContextProtocolServers": [
495- {
496- "transport": {
497- "type": "stdio",
498- "command": "uvx",
499- "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
500- }
501- }
502- ]
503- }
504-}
505-```
506-
507-### Fully deprecated settings
508-
509-Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](/advanced/deep-dives/settings). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
510-
511-- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
512-- `promptPath`: This value will override during migration.
513-- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
514-- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
515-- `tabAutocompleteOptions`
516- - `useCache`: This value will override during migration.
517- - `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
518- - `multilineCompletions`: This value will override during migration.
519-- `experimental`
520- - `useChromiumForDocsCrawling`: This value will override during migration.
521- - `readResponseTTS`: This value will override during migration.
522-- `ui` - all will override during migration
523-
524- - `codeBlockToolbarPosition`
525- - `fontSize`
526- - `codeWrap`
527- - `displayRawMarkdown`
528- - `showChatScrollbar`
529-
530- See [User Settings Page](/advanced/deep-dives/settings) for more information about each option.
deleted docs/docs/advanced/model-providers/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Model Providers",
3- "position": 4
4-}
deleted docs/docs/advanced/model-providers/assets/watsonx2.gif +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

deleted docs/docs/advanced/model-providers/llamastack.mdx +0 −113
@@ -1,113 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Llama Stack
5-
6-[Llama Stack](https://llama-stack.readthedocs.io/en/latest/index.html) is an open-source library that standardizes the core building blocks that simplify AI application development. It codifies best practices across the Llama ecosystem. More specifically, it provides
7-
8-- **Unified API layer** for Inference, RAG, Agents, Tools, Safety, Evals, and Telemetry.
9-- **Plugin architecture** to support the rich ecosystem of different API implementations in various environments, including local development, on-premises, cloud, and mobile.
10-- **Prepackaged verified distributions** which offer a one-stop solution for developers to get started quickly and reliably in any environment.
11-- **Multiple developer interfaces** like CLI and SDKs for Python, Typescript, iOS, and Android.
12-- **Standalone applications** as examples for how to build production-grade AI applications with Llama Stack.
13-
14-To try Llama Stack locally, run:
15-
16-```shell
17-curl -LsSf https://github.com/meta-llama/llama-stack/raw/main/install.sh | bash
18-```
19-
20-Learn more about how to get started with llama stack in this [guide](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html)
21-
22-## Chat model
23-
24-We recommend configuring **Llama 4 Maverick** as your chat model.
25-
26-<Tabs groupId="config-example">
27- <TabItem value="yaml" label="YAML">
28- ```yaml title="config.yaml"
29- models:
30- - name: Llama4 Maverick
31- provider: llamastack
32- model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
33- apiBase: http://<llama stack endpoint>/v1/openai/v1/
34- ```
35- </TabItem>
36- <TabItem value="json" label="JSON">
37- ```json title="config.json"
38- {
39- "models": [
40- {
41- "title": "Llama4 Maverick",
42- "provider": "llamastack",
43- "model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
44- "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
45- }
46- ]
47- }
48- ```
49- </TabItem>
50-</Tabs>
51-
52-## Autocomplete model
53-
54-We recommend configuring **CodeLlama 7B** as your autocomplete model.
55-
56-<Tabs groupId="config-example">
57- <TabItem value="yaml" label="YAML">
58- ```yaml title="config.yaml"
59- models:
60- - name: CodeLlama 7B
61- provider: llamastack
62- model: codellama:7b
63- apiBase: http://<llama stack endpoint>/v1/openai/v1/
64- roles:
65- - autocomplete
66- ```
67- </TabItem>
68- <TabItem value="json" label="JSON">
69- ```json title="config.json"
70- {
71- "tabAutocompleteModel": {
72- "title": "CodeLlama 7B",
73- "provider": "llamastack",
74- "model": "codellama:7b",
75- "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
76- }
77- }
78- ```
79- </TabItem>
80-</Tabs>
81-
82-## Embeddings model
83-
84-By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
85-
86-<Tabs groupId="config-example">
87- <TabItem value="yaml" label="YAML">
88- ```yaml title="config.yaml"
89- models:
90- - name: all-MiniLM-L6-v2
91- provider: llamastack
92- model: all-MiniLM-L6-v2
93- apiBase: http://<llama stack endpoint>/v1/openai/v1/
94- roles:
95- - embed
96- ```
97- </TabItem>
98- <TabItem value="json" label="JSON">
99- ```json title="config.json"
100- {
101- "embeddingsProvider": {
102- "provider": "llamastack",
103- "model": "all-MiniLM-L6-v2",
104- "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
105- }
106- }
107- ```
108- </TabItem>
109-</Tabs>
110-
111-## Reranking model
112-
113-Llama Stack currently did not support Reranking API yet.
deleted docs/docs/advanced/model-providers/more/SambaNova.mdx +0 −34
@@ -1,34 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# SambaNova Cloud
5-
6-The SambaNova Cloud is a cloud platform for running large AI models with the world record open source models performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup.
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: SambaNova Llama 4 Scout
13- provider: sambanova
14- model: Llama-4-Scout-17B-16E-Instruct
15- apiKey: <YOUR_SAMBANOVA_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "SambaNova Llama 4 Scout",
24- "provider": "sambanova",
25- "model": "Llama-4-Scout-17B-16E-Instruct",
26- "apiKey": "<YOUR_SAMBANOVA_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)
deleted docs/docs/advanced/model-providers/more/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "More Providers",
3- "position": 2
4-}
deleted docs/docs/advanced/model-providers/more/asksage.mdx +0 −91
@@ -1,91 +0,0 @@
1-# Ask Sage
2-
3-import TabItem from "@theme/TabItem";
4-import Tabs from "@theme/Tabs";
5-
6-:::info
7-To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs: [Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
8-:::
9-
10-## Configuration
11-
12-To use the Ask Sage models, you can use the following
13-
14-<Tabs groupId="config-example">
15- <TabItem value="yaml" label="YAML">
16- ```yaml title="config.yaml"
17- models:
18- - name: GPT-4 gov
19- provider: askSage
20- model: gpt4-gov
21- apiBase: https://api.asksage.ai/server/
22- apiKey: <YOUR_ASK_SAGE_API_KEY>
23- ```
24- </TabItem>
25- <TabItem value="json" label="JSON">
26- ```json title="config.json"
27- {
28- "models": [
29- {
30- "title": "GPT-4 gov",
31- "provider": "askSage",
32- "model": "gpt4-gov",
33- "apiBase": "https://api.asksage.ai/server/",
34- "apiKey": "<YOUR_ASK_SAGE_API_KEY>"
35- }
36- ]
37- }
38- ```
39- </TabItem>
40-</Tabs>
41-
42-The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:
43-
44-> Server API for query/training etc.:
45->
46-> - Documentation: https://app.swaggerhub.com/apis-docs/NICOLASCHAILLAN_1/server_ask-sage_api/1.0
47-> - URL for this API is: https://api.asksage.ai/server/
48-
49-## Usage
50-
51-Currently, the setup for the models provided by Ask Sage is to support the following two functionalities provided by Continue.Dev:
52-
53-- `Chat` to understand and iterate on code in the sidebar
54-- `Edit` to modify code without leaving your current file
55-
56-More models, functionalities and documentation will be added in the future for Ask Sage Integration.
57-
58-> We recommend to utilize the `OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
59-
60-## Ask Sage Documentation
61-
62-Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
63-
64-## Current Models From Ask Sage Supported
65-
66-The current Models available provided by Ask Sage are:
67-
68-| Index | Model | Added |
69-| ----- | --------------------- | ----- |
70-| 1 | GPT-4 Gov | ✅ |
71-| 2 | GPT-4o Gov | ✅ |
72-| 3 | GPT-4o-mini Gov | ✅ |
73-| 4 | GPT-3.5-Turbo Gov | ✅ |
74-| 5 | GPT-4o | ✅ |
75-| 6 | GPT-4o-mini | ✅ |
76-| 7 | GPT-4 | ✅ |
77-| 8 | GPT-4-32K | ✅ |
78-| 9 | GPT-o1 | ✅ |
79-| 10 | GPT-o1-mini | ✅ |
80-| 10 | GPT-o3-mini | ✅ |
81-| 11 | GPT-3.5-turbo | ✅ |
82-| 12 | Claude 3.5 Sonnet Gov | ✅ |
83-| 13 | Claude 3 Opus | ✅ |
84-| 14 | Claude 3 Sonet | ✅ |
85-| 15 | Claude 3.5 Sonnet | ✅ |
86-| 16 | Grok (xAI) | ✅ |
87-| 17 | Groq Llama 3.3 | ✅ |
88-| 18 | Groq 70B | ✅ |
89-| 19 | Gemini Pro | ✅ |
90-| 20 | llama 3 | ✅ |
91-| 21 | Mistral Large | ✅ |
deleted docs/docs/advanced/model-providers/more/cerebras.mdx +0 −36
@@ -1,36 +0,0 @@
1-# Cerebras Inference
2-
3-import TabItem from "@theme/TabItem";
4-import Tabs from "@theme/Tabs";
5-
6-Cerebras Inference uses specialized silicon to provides fast inference.
7-
8-1. Create an account in the portal [here](https://cloud.cerebras.ai/).
9-2. Create and copy the API key for use in Continue.
10-3. Update your Continue config file:
11-
12-<Tabs groupId="config-example">
13- <TabItem value="yaml" label="YAML">
14- ```yaml title="config.yaml"
15- models:
16- - name: Cerebras Llama 3.1 70B
17- provider: cerebras
18- model: llama3.1-70b
19- apiKey: <YOUR_CEREBRAS_API_KEY>
20- ```
21- </TabItem>
22- <TabItem value="json" label="JSON">
23- ```json title="config.json"
24- {
25- "models": [
26- {
27- "title": "Cerebras Llama 3.1 70B",
28- "provider": "cerebras",
29- "model": "llama3.1-70b",
30- "apiKey": "<YOUR_CEREBRAS_API_KEY>"
31- }
32- ]
33- }
34- ```
35- </TabItem>
36-</Tabs>
deleted docs/docs/advanced/model-providers/more/cloudflare.mdx +0 −87
@@ -1,87 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Cloudflare Workers AI
5-
6-Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Llama 3 8B
13- provider: cloudflare
14- apiKey: <YOUR_CLOUDFARE_API_KEY>
15- model: "@cf/meta/llama-3-8b-instruct"
16- contextLength: 2400
17- defaultCompletionOptions:
18- maxTokens: 500
19- roles:
20- - chat
21- env:
22- accountId: YOUR CLOUDFLARE ACCOUNT ID
23- - name: DeepSeek Coder 6.7b Instruct
24- provider: cloudflare
25- apiKey: <YOUR_CLOUDFARE_API_KEY>
26- model: "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
27- contextLength: 2400
28- defaultCompletionOptions:
29- maxTokens: 500
30- roles:
31- - chat
32- env:
33- accountId: YOUR CLOUDFLARE ACCOUNT ID
34- - name: DeepSeek 7b
35- provider: cloudflare
36- apiKey: <YOUR_CLOUDFARE_API_KEY>
37- model: "@hf/thebloke/deepseek-coder-6.7b-base-awq"
38- roles:
39- - autocomplete
40- env:
41- accountId: YOUR CLOUDFLARE ACCOUNT ID
42- ```
43- </TabItem>
44- <TabItem value="json" label="JSON">
45- ```json title="config.json"
46- {
47- "models": [
48- {
49- "title": "Llama 3 8B",
50- "provider": "cloudflare",
51- "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
52- "apiKey": "YOUR CLOUDFLARE API KEY",
53- "contextLength": 2400,
54- "completionOptions": {
55- "maxTokens": 500
56- },
57- "model": "@cf/meta/llama-3-8b-instruct"
58- },
59- {
60- "title": "DeepSeek Coder 6.7b Instruct",
61- "provider": "cloudflare",
62- "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
63- "apiKey": "YOUR CLOUDFLARE API KEY",
64- "contextLength": 2400,
65- "completionOptions": {
66- "maxTokens": 500
67- },
68- "model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
69- }
70- ],
71- "tabAutocompleteModel": {
72- "title": "DeepSeek 7b",
73- "provider": "cloudflare",
74- "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
75- "apiKey": "YOUR CLOUDFLARE API KEY",
76- "model": "@hf/thebloke/deepseek-coder-6.7b-base-awq"
77- }
78- }
79- ```
80- </TabItem>
81-</Tabs>
82-
83-Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
84-
85-Review [available models](https://developers.cloudflare.com/workers-ai/models/) on Workers AI
86-
87-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cloudflare.ts)
deleted docs/docs/advanced/model-providers/more/cohere.mdx +0 −102
@@ -1,102 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Cohere
5-
6-Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
7-
8-## Chat model
9-
10-We recommend configuring **Command A** as your chat model.
11-
12-<Tabs groupId="config-example">
13- <TabItem value="yaml" label="YAML">
14- ```yaml title="config.yaml"
15- models:
16- - name: Command A 03-2025
17- provider: cohere
18- model: command-a-03-2025
19- apiKey: <YOUR_COHERE_API_KEY>
20- ```
21- </TabItem>
22- <TabItem value="json" label="JSON">
23- ```json title="config.json"
24- {
25- "models": [
26- {
27- "title": "Command A 03-2025",
28- "provider": "cohere",
29- "model": "command-a-03-2025",
30- "apiKey": "<YOUR_COHERE_API_KEY>"
31- }
32- ]
33- }
34- ```
35- </TabItem>
36-</Tabs>
37-
38-## Autocomplete model
39-
40-Cohere currently does not offer any autocomplete models.
41-
42-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
43-
44-## Embeddings model
45-
46-We recommend configuring **embed-v4.0** as your embeddings model.
47-
48-<Tabs groupId="config-example">
49- <TabItem value="yaml" label="YAML">
50- ```yaml title="config.yaml"
51- models:
52- - name: Cohere Embed v4.0
53- provider: cohere
54- model: embed-v4.0
55- apiKey: <YOUR_COHERE_API_KEY>
56- roles:
57- - embed
58- ```
59- </TabItem>
60- <TabItem value="json" label="JSON">
61- ```json title="config.json"
62- {
63- "embeddingsProvider": {
64- "provider": "cohere",
65- "model": "embed-v4.0",
66- "apiKey": "<YOUR_COHERE_API_KEY>"
67- }
68- }
69- ```
70- </TabItem>
71-</Tabs>
72-
73-## Reranking model
74-
75-We recommend configuring **rerank-v3.5** as your reranking model.
76-
77-<Tabs groupId="config-example">
78- <TabItem value="yaml" label="YAML">
79- ```yaml title="config.yaml"
80- models:
81- - name: Cohere Rerank v3.5
82- provider: cohere
83- model: rerank-v3.5
84- apiKey: <YOUR_COHERE_API_KEY>
85- roles:
86- - rerank
87- ```
88- </TabItem>
89- <TabItem value="json" label="JSON">
90- ```json title="config.json"
91- {
92- "reranker": {
93- "name": "cohere",
94- "params": {
95- "model": "rerank-v3.5",
96- "apiKey": "<YOUR_COHERE_API_KEY>"
97- }
98- }
99- }
100- ```
101- </TabItem>
102-</Tabs>
deleted docs/docs/advanced/model-providers/more/deepinfra.mdx +0 −34
@@ -1,34 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# DeepInfra
5-
6-[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: DeepInfra
13- provider: deepinfra
14- model: mistralai/Mixtral-8x7B-Instruct-v0.1
15- apiKey: <YOUR_DEEP_INFRA_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "provider": "deepinfra",
24- "title": "DeepInfra",
25- "model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
26- "apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
deleted docs/docs/advanced/model-providers/more/flowise.mdx +0 −34
@@ -1,34 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Flowise
5-
6-[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Flowise
13- provider: flowise
14- model: <MODEL>
15- apiBase: <API_BASE>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "provider": "flowise",
24- "title": "Flowise",
25- "model": "<MODEL>",
26- "apiBase": "<API_BASE>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)
deleted docs/docs/advanced/model-providers/more/function-network.mdx +0 −116
@@ -1,116 +0,0 @@
1----
2-title: Function Network
3-slug: ../function-network
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-# Function Network
10-
11-> Private, Affordable User-Owned AI
12-
13-:::info
14-
15-To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
16-
17-:::
18-
19-## Chat model
20-
21-Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
22-
23-<Tabs groupId="config-example">
24- <TabItem value="yaml" label="YAML">
25- ```yaml title="config.yaml"
26- models:
27- - name: Llama 3.1 70b
28- provider: function-network
29- model: meta/llama-3.1-70b-instruct
30- apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
31- roles:
32- - chat
33- ```
34- </TabItem>
35- <TabItem value="json" label="JSON">
36- ```json title="config.json"
37- {
38- "models": [
39- {
40- "title": "Llama 3.1 70b",
41- "provider": "function-network",
42- "model": "meta/llama-3.1-70b-instruct",
43- "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
44- }
45- ]
46- }
47- ```
48- </TabItem>
49-</Tabs>
50-
51-[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
52-
53-## Autocomplete model
54-
55-Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
56-
57-<Tabs groupId="config-example">
58- <TabItem value="yaml" label="YAML">
59- ```yaml title="config.yaml"
60- models:
61- - name: Deepseek Coder 6.7b
62- provider: function-network
63- model: thebloke/deepseek-coder-6.7b-base-awq
64- apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
65- roles:
66- - autocomplete
67- ```
68- </TabItem>
69- <TabItem value="json" label="JSON">
70- ```json title="config.json"
71- {
72- "tabAutocompleteModel": {
73- "title": "Deepseek Coder 6.7b",
74- "provider": "function-network",
75- "model": "thebloke/deepseek-coder-6.7b-base-awq",
76- "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
77- }
78- }
79- ```
80- </TabItem>
81-</Tabs>
82-
83-## Embeddings model
84-
85-Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
86-
87-<Tabs groupId="config-example">
88- <TabItem value="yaml" label="YAML">
89- ```yaml title="config.yaml"
90- models:
91- - name: BGE Base En
92- provider: function-network
93- model: baai/bge-base-en-v1.5
94- apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
95- roles:
96- - embed
97- ```
98- </TabItem>
99- <TabItem value="json" label="JSON">
100- ```json title="config.json"
101- {
102- "embeddingsProvider": {
103- "provider": "function-network",
104- "model": "baai/bge-base-en-v1.5",
105- "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
106- }
107- }
108- ```
109- </TabItem>
110-</Tabs>
111-
112-[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
113-
114-## Reranking model
115-
116-Function Network currently does not offer any reranking models.
deleted docs/docs/advanced/model-providers/more/groq.mdx +0 −41
@@ -1,41 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Groq
5-
6-:::info
7-Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
8-:::
9-
10-Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
11-
12-1. Obtain an API key [here](https://console.groq.com/keys)
13-2. Update your Continue config file like this:
14-
15-<Tabs groupId="config-example">
16- <TabItem value="yaml" label="YAML">
17- ```yaml title="config.yaml"
18- models:
19- - name: Llama 3.3 70b Versatile
20- provider: groq
21- model: llama-3.3-70b-versatile
22- apiKey: <YOUR_GROQ_API_KEY>
23- roles:
24- - chat
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "Llama 3.3 70b Versatile",
33- "provider": "groq",
34- "model": "llama-3.3-70b-versatile",
35- "apiKey": "<YOUR_GROQ_API_KEY>"
36- }
37- ]
38- }
39- ```
40- </TabItem>
41-</Tabs>
deleted docs/docs/advanced/model-providers/more/huggingfaceinferenceapi.mdx +0 −36
@@ -1,36 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# HuggingFace Inference Endpoints
5-
6-Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Hugging Face Inference API
13- provider: huggingface-inference-api
14- model: MODEL_NAME
15- apiKey: <YOUR_HF_TOKEN>
16- apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
17- ```
18- </TabItem>
19- <TabItem value="json" label="JSON">
20- ```json title="config.json"
21- {
22- "models": [
23- {
24- "title": "Hugging Face Inference API",
25- "provider": "huggingface-inference-api",
26- "model": "MODEL_NAME",
27- "apiKey": "<YOUR_HF_TOKEN>",
28- "apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
29- }
30- ]
31- }
32- ```
33- </TabItem>
34-</Tabs>
35-
36-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
deleted docs/docs/advanced/model-providers/more/ipex_llm.mdx +0 −66
@@ -1,66 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# IPEX-LLM
5-
6-:::info
7-[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc A-Series, Flex and Max) with very low latency.
8-:::
9-
10-IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
11-
12-<Tabs groupId="config-example">
13- <TabItem value="yaml" label="YAML">
14- ```yaml title="config.yaml"
15- models:
16- - name: IPEX-LLM
17- provider: ollama
18- model: AUTODETECT
19- ```
20- </TabItem>
21- <TabItem value="json" label="JSON">
22- ```json title="config.json"
23- {
24- "models": [
25- {
26- "title": "IPEX-LLM",
27- "provider": "ollama",
28- "model": "AUTODETECT"
29- }
30- ]
31- }
32- ```
33- </TabItem>
34-</Tabs>
35-
36-If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
37-
38-<Tabs groupId="config-example">
39- <TabItem value="yaml" label="YAML">
40- ```yaml title="config.yaml"
41- models:
42- - name: IPEX-LLM
43- provider: ollama
44- model: AUTODETECT
45- apiBase: http://your-ollama-service-ip:11434
46- ```
47- </TabItem>
48- <TabItem value="json" label="JSON">
49- ```json title="config.json"
50- {
51- "models": [
52- {
53- "title": "IPEX-LLM",
54- "provider": "ollama",
55- "model": "AUTODETECT",
56- "apiBase": "http://your-ollama-service-ip:11434"
57- }
58- ]
59- }
60- ```
61- </TabItem>
62-</Tabs>
63-
64-:::tip
65-If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
66-:::
deleted docs/docs/advanced/model-providers/more/kindo.mdx +0 −69
@@ -1,69 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Kindo
5-
6-Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create an API key in [Settings > API > API Keys](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the "Available Models" tab or copy and paste the config in [Plugins > Your Configuration](https://app.kindo.ai/plugins).
7-
8-## Config Example
9-
10-<Tabs groupId="config-example">
11- <TabItem value="yaml" label="YAML">
12- ```yaml title="config.yaml"
13- models:
14- - name: Claude 3.5 Sonnet
15- provider: kindo
16- model: claude-3-5-sonnet
17- apiKey: <YOUR_KINDO_API_KEY>
18- ```
19- </TabItem>
20- <TabItem value="json" label="JSON">
21- ```json title="config.json"
22- {
23- "models": [
24- {
25- "title": "Claude 3.5 Sonnet",
26- "provider": "kindo",
27- "model": "claude-3-5-sonnet",
28- "apiKey": "<YOUR_KINDO_API_KEY>"
29- }
30- ]
31- }
32- ```
33- </TabItem>
34-</Tabs>
35-
36-## Tab Autocomplete Config Example
37-
38-<Tabs groupId="config-example">
39- <TabItem value="yaml" label="YAML">
40- ```yaml title="config.yaml"
41- models:
42- - name: WhiteRabbitNeo
43- provider: kindo
44- model: /models/WhiteRabbitNeo-33B-DeepSeekCoder
45- apiKey: <YOUR_KINDO_API_KEY>
46- roles:
47- - autocomplete
48- ```
49- </TabItem>
50- <TabItem value="json" label="JSON">
51- ```json title="config.json"
52- {
53- "tabAutocompleteModel": [
54- {
55- "title": "WhiteRabbitNeo",
56- "provider": "kindo",
57- "model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder",
58- "apiKey": "<YOUR_KINDO_API_KEY>",
59- "template": "none"
60- }
61- ]
62- }
63- ```
64- </TabItem>
65-</Tabs>
66-
67-## Security
68-
69-To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
deleted docs/docs/advanced/model-providers/more/llamacpp.mdx +0 −40
@@ -1,40 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# LlamaCpp
5-
6-Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
7-
8-```bash
9-.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
10-```
11-
12-After it's up and running, change `~/.continue/config.json` to look like this:
13-
14-<Tabs groupId="config-example">
15- <TabItem value="yaml" label="YAML">
16- ```yaml title="config.yaml"
17- models:
18- - name: Llama CPP
19- provider: llama.cpp
20- model: MODEL_NAME
21- apiBase: http://localhost:8080
22- ```
23- </TabItem>
24- <TabItem value="json" label="JSON">
25- ```json title="config.json"
26- {
27- "models": [
28- {
29- "title": "Llama CPP",
30- "provider": "llama.cpp",
31- "model": "MODEL_NAME",
32- "apiBase": "http://localhost:8080"
33- }
34- ]
35- }
36- ```
37- </TabItem>
38-</Tabs>
39-
40-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
deleted docs/docs/advanced/model-providers/more/llamafile.mdx +0 −32
@@ -1,32 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# Llamafile
5-
6-A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Llamafile
13- provider: llamafile
14- model: mistral-7b
15- ```
16- </TabItem>
17- <TabItem value="json" label="JSON">
18- ```json title="config.json"
19- {
20- "models": [
21- {
22- "title": "Llamafile",
23- "provider": "llamafile",
24- "model": "mistral-7b"
25- }
26- ]
27- }
28- ```
29- </TabItem>
30-</Tabs>
31-
32-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)
deleted docs/docs/advanced/model-providers/more/lmstudio.mdx +0 −88
@@ -1,88 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# LM Studio
5-
6-[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: LM Studio
13- provider: lmstudio
14- model: llama2-7b
15- ```
16- </TabItem>
17- <TabItem value="json" label="JSON">
18- ```json title="config.json"
19- {
20- "models": [
21- {
22- "title": "LM Studio",
23- "provider": "lmstudio",
24- "model": "llama2-7b"
25- }
26- ]
27- }
28- ```
29- </TabItem>
30-</Tabs>
31-
32-### Embeddings model
33-
34-LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
35-
36-<Tabs groupId="config-example">
37- <TabItem value="yaml" label="YAML">
38- ```yaml title="config.yaml"
39- models:
40- - name: Nomic Embed Text
41- provider: lmstudio
42- model: nomic-ai/nomic-embed-text-v1.5-GGUF
43- roles:
44- - embed
45- ```
46- </TabItem>
47- <TabItem value="json" label="JSON">
48- ```json title="config.json"
49- {
50- "embeddingsProvider": {
51- "provider": "lmstudio",
52- "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
53- }
54- }
55- ```
56- </TabItem>
57-</Tabs>
58-
59-## Setting up a remote instance
60-
61-To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
62-
63-<Tabs groupId="config-example">
64- <TabItem value="yaml" label="YAML">
65- ```yaml title="config.yaml"
66- models:
67- - name: Nomic Embed Text
68- provider: lmstudio
69- model: nomic-ai/nomic-embed-text-v1.5-GGUF
70- roles:
71- - embed
72- ```
73- </TabItem>
74- <TabItem value="json" label="JSON">
75- ```json title="config.json"
76- {
77- "embeddingsProvider": {
78- "provider": "lmstudio",
79- "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
80- }
81- }
82- ```
83- </TabItem>
84-</Tabs>
85-
86-This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
87-
88-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
deleted docs/docs/advanced/model-providers/more/moonshot.mdx +0 −94
@@ -1,94 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Moonshot
5-
6-[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
7-
8-## Configuration
9-
10-To use Moonshot AI models, you need to:
11-
12-1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
13-2. Add the following configuration:
14-
15-<Tabs groupId="config-example">
16- <TabItem value="yaml" label="YAML">
17- ```yaml title="config.yaml"
18- models:
19- - name: Moonshot
20- provider: moonshot
21- model: moonshot-v1-8k
22- apiKey: <YOUR_MOONSHOT_API_KEY>
23- ```
24- </TabItem>
25- <TabItem value="json" label="JSON">
26- ```json title="config.json"
27- {
28- "models": [
29- {
30- "title": "Moonshot",
31- "provider": "moonshot",
32- "model": "moonshot-v1-8k",
33- "apiKey": "<YOUR_MOONSHOT_API_KEY>"
34- }
35- ]
36- }
37- ```
38- </TabItem>
39-</Tabs>
40-
41-## Available Models
42-
43-Moonshot AI currently provides the following models:
44-
45-- `moonshot-v1-8k`: Base model with 8K context window
46-- `moonshot-v1-32k`: Base model with 32K context window
47-- `moonshot-v1-128k`: Base model with 128K context window
48-
49-## Configuration Options
50-
51-| Option | Description | Default |
52-| --------- | ----------------- | ----------------------------- |
53-| `apiKey` | Moonshot API key | Required |
54-| `apiBase` | API base URL | `https://api.moonshot.cn/v1/` |
55-| `model` | Model name to use | `moonshot-v1-8k` |
56-
57-## Example
58-
59-Here's a complete configuration example:
60-
61-<Tabs groupId="config-example">
62- <TabItem value="yaml" label="YAML">
63- ```yaml title="config.yaml"
64- models:
65- - name: Moonshot-8K
66- provider: moonshot
67- model: moonshot-v1-8k
68- apiKey: <YOUR_MOONSHOT_API_KEY>
69- defaultCompletionOptions:
70- temperature: 0.7
71- topP: 0.95
72- maxTokens: 2048
73- ```
74- </TabItem>
75- <TabItem value="json" label="JSON">
76- ```json title="config.json"
77- {
78- "models": [
79- {
80- "title": "Moonshot-8K",
81- "provider": "moonshot",
82- "model": "moonshot-v1-8k",
83- "apiKey": "<YOUR_MOONSHOT_API_KEY>",
84- "completionOptions": {
85- "temperature": 0.7,
86- "topP": 0.95,
87- "maxTokens": 2048
88- }
89- }
90- ]
91- }
92- ```
93- </TabItem>
94-</Tabs>
deleted docs/docs/advanced/model-providers/more/morph.mdx +0 −112
@@ -1,112 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# Morph
5-
6-Morph provides a fast apply model that helps you quickly and accurately apply code changes from chat suggestions to your files. It's optimized for speed and precision when integrating generated code into your existing codebase. You can sign up for Morph's generous free tier [here](https://morphllm.com/dashboard). Then, update your configuration file as follows:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - uses: morphllm/morph-v0
13- with:
14- MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
15-```
16-or
17-```yaml title="config.yaml"
18- - name: Morph Fast Apply
19- provider: openai
20- model: morph-v2
21- apiKey: <YOUR_MORPH_API_KEY>
22- apiBase: https://api.morphllm.com/v1/
23- roles:
24- - apply
25- promptTemplates:
26- apply: "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Morph Fast Apply",
35- "provider": "openai",
36- "model": "morph-v2",
37- "apiKey": "<YOUR_MORPH_API_KEY>",
38- "apiBase": "https://api.morphllm.com/v1/",
39- "roles": ["apply"],
40- "promptTemplates": {
41- "apply": "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
42- }
43- }
44- ]
45- }
46- ```
47- </TabItem>
48-</Tabs>
49-
50-## Embeddings model
51-
52-We recommend configuring **morph-embedding-v2** as your embeddings model.
53-
54-<Tabs groupId="config-example">
55- <TabItem value="yaml" label="YAML">
56- ```yaml title="config.yaml"
57- models:
58- - name: Morph Embeddings
59- provider: openai
60- model: morph-embedding-v2
61- apiKey: <YOUR_MORPH_API_KEY>
62- apiBase: https://api.morphllm.com/v1/
63- roles:
64- - embed
65- ```
66- </TabItem>
67- <TabItem value="json" label="JSON">
68- ```json title="config.json"
69- {
70- "embeddingsProvider": {
71- "provider": "openai",
72- "model": "morph-embedding-v2",
73- "apiKey": "<YOUR_MORPH_API_KEY>",
74- "apiBase": "https://api.morphllm.com/v1/"
75- }
76- }
77- ```
78- </TabItem>
79-</Tabs>
80-
81-## Reranking model
82-
83-We recommend configuring **morph-rerank-v2** as your reranking model.
84-
85-<Tabs groupId="config-example">
86- <TabItem value="yaml" label="YAML">
87- ```yaml title="config.yaml"
88- models:
89- - name: Morph Reranker
90- provider: cohere
91- model: morph-rerank-v2
92- apiKey: <YOUR_MORPH_API_KEY>
93- apiBase: https://api.morphllm.com/v1/
94- roles:
95- - rerank
96- ```
97- </TabItem>
98- <TabItem value="json" label="JSON">
99- ```json title="config.json"
100- {
101- "reranker": {
102- "name": "cohere",
103- "params": {
104- "model": "morph-rerank-v2",
105- "apiKey": "<YOUR_MORPH_API_KEY>",
106- "apiBase": "https://api.morphllm.com/v1/"
107- }
108- }
109- }
110- ```
111- </TabItem>
112-</Tabs>
deleted docs/docs/advanced/model-providers/more/msty.mdx +0 −79
@@ -1,79 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Msty
5-
6-[Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Msty
13- provider: msty
14- model: deepseek-coder:6.7b
15- ```
16- </TabItem>
17- <TabItem value="json" label="JSON">
18- ```json title="config.json"
19- {
20- "models": [
21- {
22- "title": "Msty",
23- "provider": "msty",
24- "model": "deepseek-coder:6.7b",
25- }
26- ]
27- }
28- ```
29- </TabItem>
30-</Tabs>
31-
32-## Completion Options
33-
34-In addition to the model type, you can also configure some of the parameters that Msty uses to run the model.
35-
36-- temperature: options.temperature - This is a parameter that controls the randomness of the generated text. Higher values result in more creative but potentially less coherent outputs, while lower values lead to more predictable and focused outputs.
37-- top_p: options.topP - This sets a threshold (between 0 and 1) to control how diverse the predicted tokens should be. The model generates tokens that are likely according to their probability distribution, but also considers the top-k most probable tokens.
38-- top_k: options.topK - This parameter limits the number of unique tokens to consider when generating the next token in the sequence. Higher values increase the variety of generated sequences, while lower values lead to more focused outputs.
39-- num_predict: options.maxTokens - This determines the maximum number of tokens (words or characters) to generate for the given input prompt.
40-- num_thread: options.numThreads - This is the multi-threading configuration option that controls how many threads the model uses for parallel processing. Higher values may lead to faster generation times but could also increase memory usage and complexity. Set this to one or two lower than the number of threads your CPU can handle to leave some for your GUI when running the model locally.
41-- use_mmap: options.useMmap - For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
42-
43-## Authentication
44-
45-If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
46-
47-<Tabs groupId="config-example">
48- <TabItem value="yaml" label="YAML">
49- ```yaml title="config.yaml"
50- models:
51- - name: Msty
52- provider: msty
53- model: deepseek-coder:6.7b
54- requestOptions:
55- headers:
56- Authorization: Bearer xxx
57- ```
58- </TabItem>
59- <TabItem value="json" label="JSON">
60- ```json title="config.json"
61- {
62- "models": [
63- {
64- "title": "Msty",
65- "provider": "msty",
66- "model": "deepseek-coder:6.7b",
67- "requestOptions": {
68- "headers": {
69- "Authorization": "Bearer xxx"
70- }
71- }
72- }
73- ]
74- }
75- ```
76- </TabItem>
77-</Tabs>
78-
79-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts)
deleted docs/docs/advanced/model-providers/more/ncompass.mdx +0 −34
@@ -1,34 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# nCompass
5-
6-The nCompass Technologies API exposes an extremely fast inference engine for open-source language models. You can sign up [here](https://app.ncompass.tech/api-settings), copy your API key on the initial welcome screen, and then hit the play button on any model from the [nCompass Models list](https://ncompass.tech/models). Change `~/.continue/config.json` to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="Package or config.yaml"
11- models:
12- - name: Ncompass Gemma 3 Coder
13- provider: ncompass
14- model: google/gemma-3-27b-it
15- apiKey: <YOUR_NCOMPASS_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "Ncompass Gemma 3 Coder",
24- "provider": "ncompass",
25- "model": "google/gemma-3-27b-it",
26- "apiKey": "<YOUR_NCOMPASS_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/NCompass.ts)
deleted docs/docs/advanced/model-providers/more/nebius.mdx +0 −67
@@ -1,67 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Nebius AI Studio
5-
6-You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
7-
8-## Availible models
9-
10-Available models can be found on the [Nebius AI Studio models page](https://studio.nebius.ai/models/text2text)
11-
12-## Chat model
13-
14-<Tabs groupId="config-example">
15- <TabItem value="yaml" label="YAML">
16- ```yaml title="config.yaml"
17- models:
18- - name: DeepSeek R1
19- provider: nebius
20- model: deepseek-ai/DeepSeek-R1
21- apiKey: <YOUR_NEBIUS_API_KEY>
22- ```
23- </TabItem>
24- <TabItem value="json" label="JSON">
25- ```json title="config.json"
26- {
27- "models": [
28- {
29- "title": "DeepSeek R1",
30- "provider": "nebius",
31- "model": "deepseek-ai/DeepSeek-R1",
32- "apiKey": "<YOUR_NEBIUS_API_KEY>"
33- }
34- ]
35- }
36- ```
37- </TabItem>
38-</Tabs>
39-
40-## Embeddings model
41-
42-Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding)
43-
44-<Tabs groupId="config-example">
45- <TabItem value="yaml" label="YAML">
46- ```yaml title="config.yaml"
47- models:
48- - name: BAAI Embedder
49- provider: nebius
50- model: BAAI/bge-en-icl
51- apiKey: <YOUR_NEBIUS_API_KEY>
52- roles:
53- - embed
54- ```
55- </TabItem>
56- <TabItem value="json" label="JSON">
57- ```json title="config.json"
58- {
59- "embeddingsProvider": {
60- "provider": "nebius",
61- "model": "BAAI/bge-en-icl",
62- "apiKey": "<YOUR_NEBIUS_API_KEY>"
63- }
64- }
65- ```
66- </TabItem>
67-</Tabs>
deleted docs/docs/advanced/model-providers/more/novita.mdx +0 −34
@@ -1,34 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Novita
5-
6-[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM API](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. Try the [Novita AI Llama 3 API Demo](https://novita.ai/model-api/product/llm-api/playground/meta-llama-llama-3.1-70b-instruct?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) today!. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), copy your API key on the [Key Management](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), and then hit the play button on any model from the [Novita AI Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link). Change `~/.continue/config.json` to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Llama 3.1 8B
13- provider: novita
14- model: meta-llama/llama-3.1-8b-instruct
15- apiKey: <YOUR_NOVITA_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "Llama 3.1 8B",
24- "provider": "novita",
25- "model": "meta-llama/llama-3.1-8b-instruct",
26- "apiKey": "<YOUR_NOVITA_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
deleted docs/docs/advanced/model-providers/more/nvidia.mdx +0 −81
@@ -1,81 +0,0 @@
1----
2-title: NVIDIA
3----
4-
5-import TabItem from "@theme/TabItem";
6-import Tabs from "@theme/Tabs";
7-
8-:::info
9-[View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) to learn how to get an API key.
10-:::
11-
12-## Chat model
13-
14-We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
15-
16-<Tabs groupId="config-example">
17- <TabItem value="yaml" label="YAML">
18- ```yaml title="config.yaml"
19- models:
20- - name: Nemotron-4-340B-Instruct
21- provider: nvidia
22- model: nvidia-nemotron-4-340b-instruct
23- apiKey: <YOUR_NVIDIA_API_KEY>
24- ```
25- </TabItem>
26- <TabItem value="json" label="JSON">
27- ```json title="config.json"
28- {
29- "models": [
30- {
31- "title": "Nemotron-4-340B-Instruct",
32- "provider": "nvidia",
33- "model": "nvidia-nemotron-4-340b-instruct",
34- "apiKey": "<YOUR_NVIDIA_API_KEY>"
35- }
36- ]
37- }
38- ```
39- </TabItem>
40-</Tabs>
41-
42-## Autocomplete model
43-
44-NVIDIA currently does not offer any autocomplete models.
45-
46-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
47-
48-## Embeddings model
49-
50-We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
51-
52-<Tabs groupId="config-example">
53- <TabItem value="yaml" label="YAML">
54- ```yaml title="config.yaml"
55- models:
56- - name: Nvidia Embedder
57- provider: nvidia
58- model: nvidia/nv-embedqa-mistral-7b-v2
59- apiKey: <YOUR_NVIDIA_API_KEY>
60- roles:
61- - embed
62- ```
63- </TabItem>
64- <TabItem value="json" label="JSON">
65- ```json title="config.json"
66- {
67- "embeddingsProvider": {
68- "provider": "nvidia",
69- "model": "nvidia/nv-embedqa-mistral-7b-v2",
70- "apiKey": "<YOUR_NVIDIA_API_KEY>"
71- }
72- }
73- ```
74- </TabItem>
75-</Tabs>
76-
77-## Reranking model
78-
79-NVIDIA currently does not offer any reranking models.
80-
81-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/more/openrouter.mdx +0 −74
@@ -1,74 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# OpenRouter
5-
6-OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
7-
8-Change `~/.continue/config.json` to look like the following.
9-
10-<Tabs groupId="config-example">
11- <TabItem value="yaml" label="YAML">
12- ```yaml title="config.yaml"
13- models:
14- - name: OpenRouter LLaMA 70 8B
15- provider: openrouter
16- model: meta-llama/llama-3-70b-instruct
17- apiBase: https://openrouter.ai/api/v1
18- apiKey: <YOUR_OPEN_ROUTER_API_KEY>
19- ```
20- </TabItem>
21- <TabItem value="json" label="JSON">
22- ```json title="config.json"
23- {
24- "models": [
25- {
26- "title": "OpenRouter LLaMA 70 8B",
27- "provider": "openrouter",
28- "model": "meta-llama/llama-3-70b-instruct",
29- "apiBase": "https://openrouter.ai/api/v1",
30- "apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
31- }
32- ]
33- }
34- ```
35- </TabItem>
36-</Tabs>
37-
38-To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
39-
40-For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
41-
42-<Tabs groupId="config-example">
43- <TabItem value="yaml" label="YAML">
44- ```yaml title="config.yaml"
45- models:
46- - name: Example Model
47- provider: exampleProvider
48- model: example-model
49- requestOptions:
50- extraBodyProperties:
51- transforms: []
52- ```
53- </TabItem>
54- <TabItem value="json" label="JSON">
55- ```json title="config.json"
56- {
57- "models": [
58- {
59- "title": "Example Model",
60- "provider": "exampleProvider",
61- "model": "example-model",
62- "requestOptions": {
63- "extraBodyProperties": {
64- "transforms": []
65- }
66- }
67- }
68- ]
69- }
70- ```
71- </TabItem>
72-</Tabs>
73-
74-Learn more about available settings [here](https://openrouter.ai/docs).
deleted docs/docs/advanced/model-providers/more/openvino_model_server.mdx +0 −29
@@ -1,29 +0,0 @@
1-# OpenVINO™ Model Server
2-
3-:::info
4-[**OpenVINO™ Mode Server**](https://github.com/openvinotoolkit/model_server) is scalable inference server for models optimized with OpenVINO™ for Intel CPU, iGPU, GPU and NPU.
5-:::
6-
7-OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server.
8-
9-Example configuration once OVMS is launched:
10-
11-```yaml title="config.yaml"
12-models:
13- - name: OVMS CodeLlama-7b-Instruct-hf
14- provider: openai
15- model: codellama/CodeLlama-7b-Instruct-hf
16- apiKey: unused
17- apiBase: http://localhost:5555/v3
18- roles:
19- - chat
20- - edit
21- - apply
22- - name: OVMS Qwen2.5-Coder-1.5B
23- provider: openai
24- model: Qwen/Qwen2.5-Coder-1.5B
25- apiKey: unused
26- apiBase: http://localhost:5555/v3
27- roles:
28- - autocomplete
29-```
deleted docs/docs/advanced/model-providers/more/ovhcloud.mdx +0 −72
@@ -1,72 +0,0 @@
1----
2-title: OVHcloud AI Endpoints
3----
4-
5-import TabItem from "@theme/TabItem";
6-import Tabs from "@theme/Tabs";
7-
8-OVHcloud AI Endpoints is a serverless inference API that provides access to a curated selection of models (e.g., Llama, Mistral, Qwen, Deepseek). It is designed with security and data privacy in mind and is compliant with GDPR.
9-
10-:::info
11-To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).
12-:::
13-
14-## Chat model
15-
16-We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
17-Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of our models hsoted on AI Endpoints.
18-
19-<Tabs groupId="config-example">
20- <TabItem value="yaml" label="YAML">
21- ```yaml title="config.yaml"
22- models:
23- - name: Qwen2.5-Coder-32B-Instruct
24- provider: ovhcloud
25- model: qwen2.5-coder-32b
26- apiKey: <YOUR_AIENDPOINTS_API_KEY>
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Qwen2.5-Coder-32B-Instruct",
35- "provider": "ovhcloud",
36- "model": "qwen2.5-coder-32b",
37- "apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
38- }
39- ]
40- }
41- ```
42- </TabItem>
43-</Tabs>
44-
45-## Embeddings model
46-
47-We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
48-
49-<Tabs groupId="config-example">
50- <TabItem value="yaml" label="YAML">
51- ```yaml title="config.yaml"
52- models:
53- - name: BGE Multilingual Gemma2
54- provider: ovhcloud
55- model: bge-multilingual-gemma2
56- apiKey: <YOUR_AIENDPOINTS_API_KEY>
57- roles:
58- - embed
59- ```
60- </TabItem>
61- <TabItem value="json" label="JSON">
62- ```json title="config.json"
63- {
64- "embeddingsProvider": {
65- "provider": "ovhcloud",
66- "model": "bge-multilingual-gemma2",
67- "apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
68- }
69- }
70- ```
71- </TabItem>
72-</Tabs>
deleted docs/docs/advanced/model-providers/more/relace.mdx +0 −38
@@ -1,38 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# Relace
5-
6-Relace provides a fast apply model through their API that helps you reliably and almost instantly apply chat suggestions to your codebase. You can sign up and obtain an API key [here](https://app.relace.ai/settings/api-keys). Then, change your configuration file to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="Package or config.yaml"
11- models:
12- - name: Relace Fast Apply
13- provider: relace
14- model: Fast-Apply
15- apiKey: <YOUR_RELACE_API_KEY>
16- roles:
17- - apply
18- promptTemplates:
19- apply: "{{{ new_code }}}"
20- ```
21- </TabItem>
22- <TabItem value="json" label="JSON">
23- ```json title="config.json"
24- {
25- "models": [
26- {
27- "title": "Relace Fast Apply",
28- "provider": "relace",
29- "model": "Fast-Apply",
30- "apiKey": "<YOUR_RELACE_API_KEY>"
31- }
32- ]
33- }
34- ```
35- </TabItem>
36-</Tabs>
37-
38-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Relace.ts)
deleted docs/docs/advanced/model-providers/more/replicatellm.mdx +0 −36
@@ -1,36 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# ReplicateLLM
5-
6-Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Replicate CodeLLama
13- provider: replicate
14- model: codellama-13b
15- apiKey: <YOUR_REPLICATE_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "Replicate CodeLLama",
24- "provider": "replicate",
25- "model": "codellama-13b",
26- "apiKey": "<YOUR_REPLICATE_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.
35-
36-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Replicate.ts)
deleted docs/docs/advanced/model-providers/more/sagemaker.mdx +0 −57
@@ -1,57 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# AWS SageMaker
5-
6-SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
7-
8-Here is an example Sagemaker configuration setup:
9-
10-<Tabs groupId="config-example">
11- <TabItem value="yaml" label="YAML">
12- ```yaml title="config.yaml"
13- models:
14- - name: deepseek-6.7b-instruct
15- provider: sagemaker
16- model: lmi-model-deepseek-coder-xxxxxxx
17- region: us-west-2
18- roles:
19- - chat
20- - name: mxbai-embed
21- provider: sagemaker
22- model: mxbai-embed-large-v1-endpoint
23- roles:
24- - embed
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "deepseek-6.7b-instruct",
33- "provider": "sagemaker",
34- "model": "lmi-model-deepseek-coder-xxxxxxx",
35- "region": "us-west-2"
36- }
37- ],
38- "embeddingsProvider": {
39- "provider": "sagemaker",
40- "model": "mxbai-embed-large-v1-endpoint"
41- }
42- }
43- ```
44- </TabItem>
45-</Tabs>
46-
47-The value in model should be the SageMaker endpoint name you deployed.
48-
49-Authentication will be through temporary or long-term credentials in
50-~/.aws/credentials under a profile called "sagemaker".
51-
52-```title="~/.aws/credentials
53-[sagemaker]
54-aws_access_key_id = abcdefg
55-aws_secret_access_key = hijklmno
56-aws_session_token = pqrstuvwxyz # Optional: means short term creds.
57-```
deleted docs/docs/advanced/model-providers/more/scaleway.mdx +0 −78
@@ -1,78 +0,0 @@
1----
2-title: Scaleway
3----
4-
5-import TabItem from "@theme/TabItem";
6-import Tabs from "@theme/Tabs";
7-
8-:::info
9-Scaleway Generative APIs give you instant access to leading AI models hosted in European data centers, ideal for developers requiring low latency, full data privacy, and compliance with EU AI Act.
10-You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models).
11-Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/).
12-:::
13-
14-## Chat model
15-
16-We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
17-[Click here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/) to see the list of available chat models.
18-
19-<Tabs groupId="config-example">
20- <TabItem value="yaml" label="YAML">
21- ```yaml title="config.yaml"
22- models:
23- - name: Qwen2.5-Coder-32B-Instruct
24- provider: scaleway
25- model: qwen2.5-coder-32b-instruct
26- apiKey: <YOUR_SCALEWAY_API_KEY>
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Qwen2.5-Coder-32B-Instruct",
35- "provider": "scaleway",
36- "model": "qwen2.5-coder-32b-instruct",
37- "apiKey": "<YOUR_SCALEWAY_API_KEY>"
38- }
39- ]
40- }
41- ```
42- </TabItem>
43-</Tabs>
44-
45-## Autocomplete model
46-
47-Scaleway currently does not offer any autocomplete models.
48-
49-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
50-
51-## Embeddings model
52-
53-We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
54-
55-<Tabs groupId="config-example">
56- <TabItem value="yaml" label="YAML">
57- ```yaml title="config.yaml"
58- models:
59- - name: BGE Multilingual Gemma2
60- provider: scaleway
61- model: bge-multilingual-gemma2
62- apiKey: <YOUR_SCALEWAY_API_KEY>
63- roles:
64- - embed
65- ```
66- </TabItem>
67- <TabItem value="json" label="JSON">
68- ```json title="config.json"
69- {
70- "embeddingsProvider": {
71- "provider": "scaleway",
72- "model": "bge-multilingual-gemma2",
73- "apiKey": "<YOUR_SCALEWAY_API_KEY>"
74- }
75- }
76- ```
77- </TabItem>
78-</Tabs>
deleted docs/docs/advanced/model-providers/more/siliconflow.mdx +0 −88
@@ -1,88 +0,0 @@
1----
2-title: SiliconFlow
3----
4-
5-import Tabs from "@theme/Tabs";
6-import TabItem from "@theme/TabItem";
7-
8-:::info
9-You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
10-:::
11-
12-## Chat model
13-
14-We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
15-
16-<Tabs groupId="config-example">
17- <TabItem value="yaml" label="YAML">
18- ```yaml title="config.yaml"
19- models:
20- - name: Qwen
21- provider: siliconflow
22- model: Qwen/Qwen2.5-Coder-32B-Instruct
23- apiKey: <YOUR_SILICONFLOW_API_KEY>
24- roles:
25- - chat
26- ```
27- </TabItem>
28- <TabItem value="json" label="JSON">
29- ```json title="config.json"
30- {
31- "models": [
32- {
33- "title": "Qwen",
34- "provider": "siliconflow",
35- "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
36- "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
37- }
38- ]
39- }
40- ```
41- </TabItem>
42-</Tabs>
43-
44-## Autocomplete model
45-
46-We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model.
47-
48-<Tabs groupId="config-example">
49- <TabItem value="yaml" label="YAML">
50- ```yaml title="config.yaml"
51- models:
52- - name: Qwen
53- provider: siliconflow
54- model: Qwen/Qwen2.5-Coder-32B-Instruct
55- apiKey: <YOUR_SILICONFLOW_API_KEY>
56- roles:
57- - autocomplete
58- ```
59- </TabItem>
60- <TabItem value="json" label="JSON">
61- ```json title="config.json"
62- {
63- "models": [
64- {
65- "title": "Qwen",
66- "provider": "siliconflow",
67- "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
68- "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
69- }
70- ]
71- "tabAutocompleteModel": {
72- "title": "Qwen",
73- "provider": "siliconflow",
74- "model": "Qwen/Qwen2.5-Coder-7B-Instruct",
75- "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
76- }
77- }
78- ```
79- </TabItem>
80-</Tabs>
81-
82-## Embeddings model
83-
84-SiliconFlow provide some embeddings models. [Click here](https://siliconflow.cn/models) to see a list of embeddings models.
85-
86-## Reranking model
87-
88-SiliconFlow provide some reranking models. [Click here](https://siliconflow.cn/models) to see a list of reranking models.
deleted docs/docs/advanced/model-providers/more/textgenwebui.mdx +0 −32
@@ -1,32 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# TextGenWebUI
5-
6-TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Text Generation WebUI
13- provider: text-gen-webui
14- apiBase: http://localhost:5000/v1
15- model: MODEL_NAME
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "Text Generation WebUI",
24- "provider": "text-gen-webui",
25- "apiBase": "http://localhost:5000/v1",
26- "model": "MODEL_NAME"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
deleted docs/docs/advanced/model-providers/more/together.mdx +0 −34
@@ -1,34 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# Together
5-
6-The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/serverless-models). Change `~/.continue/config.json` to look like this:
7-
8-<Tabs groupId="config-example">
9- <TabItem value="yaml" label="YAML">
10- ```yaml title="config.yaml"
11- models:
12- - name: Together Qwen2.5 Coder
13- provider: together
14- model: Qwen/Qwen2.5-Coder-32B-Instruct
15- apiKey: <YOUR_TOGETHER_API_KEY>
16- ```
17- </TabItem>
18- <TabItem value="json" label="JSON">
19- ```json title="config.json"
20- {
21- "models": [
22- {
23- "title": "Together Qwen2.5 Coder",
24- "provider": "together",
25- "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
26- "apiKey": "<YOUR_TOGETHER_API_KEY>"
27- }
28- ]
29- }
30- ```
31- </TabItem>
32-</Tabs>
33-
34-[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
deleted docs/docs/advanced/model-providers/more/venice.md +0 −35
@@ -1,35 +0,0 @@
1-# Venice
2-
3-Venice.AI is a privacy focused generative AI platform, allowing users to interact with open-source LLMs without storing any private user data. To get started with Venice's API, either purchase a pro account, stake $VVV to obtain daily inference allotments or fund your account with USD and head over to https://venice.ai/settings/api. Venice hosts state of the art open-source AI models and supports the OpenAI API standard, allowing users to easily interact with the platform. Learn more about the Venice API at https://venice.ai/api.
4-
5-Change `~/.continue/config.json` to look like the following.
6-
7-```json title="config.json"
8-{
9- "models": [
10- {
11- "provider": "venice",
12- "title": "Autodetect",
13- "model": "AUTODETECT",
14- "apiKey": "..."
15- }
16- ]
17-}
18-```
19-
20-To utilize features offered by the venice API that are not apart of the standard OpenAI API schema, include these as `venice_parameters`
21-
22-For example, to use models with no system prompt, you can explicitly turn off the feature like so:
23-
24-```json title="config.json"
25-{
26- "completionOptions": {
27- "venice_parameters": {
28- "include_venice_system_prompt" : false
29- },
30- ...
31- }
32-}
33-```
34-
35-Learn more about available settings [here](https://docs.venice.ai/api-reference/api-spec).
deleted docs/docs/advanced/model-providers/more/vllm.mdx +0 −107
@@ -1,107 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# vLLM
5-
6-vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same time. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
7-
8-```shell
9-vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
10-```
11-
12-## Chat model
13-
14-We recommend configuring **Llama3.1 8B** as your chat model.
15-
16-<Tabs groupId="config-example">
17- <TabItem value="yaml" label="YAML">
18- ```yaml title="config.yaml"
19- models:
20- - name: Llama3.1 8B Instruct
21- provider: vllm
22- model: meta-llama/Meta-Llama-3.1-8B-Instruct
23- apiBase: http://<vllm chat endpoint>/v1
24- ```
25- </TabItem>
26- <TabItem value="json" label="JSON">
27- ```json title="config.json"
28- {
29- "models": [
30- {
31- "title": "Llama3.1 8B Instruct",
32- "provider": "vllm",
33- "model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
34- "apiBase": "http://<vllm chat endpoint>/v1"
35- }
36- ]
37- }
38- ```
39- </TabItem>
40-</Tabs>
41-
42-## Autocomplete model
43-
44-We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
45-
46-<Tabs groupId="config-example">
47- <TabItem value="yaml" label="YAML">
48- ```yaml title="config.yaml"
49- models:
50- - name: Qwen2.5-Coder 1.5B
51- provider: vllm
52- model: Qwen/Qwen2.5-Coder-1.5B
53- apiBase: http://<vllm autocomplete endpoint>/v1
54- roles:
55- - autocomplete
56- ```
57- </TabItem>
58- <TabItem value="json" label="JSON">
59- ```json title="config.json"
60- {
61- "tabAutocompleteModel": {
62- "title": "Qwen2.5-Coder 1.5B",
63- "provider": "vllm",
64- "model": "Qwen/Qwen2.5-Coder-1.5B",
65- "apiBase": "http://<vllm autocomplete endpoint>/v1"
66- }
67- }
68- ```
69- </TabItem>
70-</Tabs>
71-
72-## Embeddings model
73-
74-We recommend configuring **Nomic Embed Text** as your embeddings model.
75-
76-<Tabs groupId="config-example">
77- <TabItem value="yaml" label="YAML">
78- ```yaml title="config.yaml"
79- models:
80- - name: VLLM Nomad Embed Text
81- provider: vllm
82- model: nomic-ai/nomic-embed-text-v1
83- apiBase: http://<vllm embed endpoint>/v1
84- roles:
85- - embed
86- ```
87- </TabItem>
88- <TabItem value="json" label="JSON">
89- ```json title="config.json"
90- {
91- "embeddingsProvider": {
92- "provider": "vllm",
93- "model": "nomic-ai/nomic-embed-text-v1",
94- "apiBase": "http://<vllm embed endpoint>/v1"
95- }
96- }
97- ```
98- </TabItem>
99-</Tabs>
100-
101-## Reranking model
102-
103-Continue automatically handles vLLM's response format (which uses `results` instead of `data`).
104-
105-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
106-
107-The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)
deleted docs/docs/advanced/model-providers/more/watsonx.mdx +0 −279
@@ -1,279 +0,0 @@
1-import TabItem from "@theme/TabItem";
2-import Tabs from "@theme/Tabs";
3-
4-# IBM watsonx
5-
6-watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
7-
8-## Setup
9-
10-Accessing watsonx models can be done either through watsonx SaaS on IBM Cloud or using a dedicated watsonx.ai Software instance.
11-
12-### watsonx.ai SaaS - IBM Cloud
13-
14-To get started with watsonx SaaS, visit the [registration page](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx). If you do not have an existing IBM Cloud account, you can sign up for a free trial.
15-
16-To authenticate to watsonx.ai SaaS with Continue, you will need to create a project and [set up an API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). Then, in continue:
17-
18-- Set **apiBase** to your watsonx SaaS endpoint, e.g. `https://us-south.ml.cloud.ibm.com` for US South region.
19-- Set **projectId** to your watsonx project ID.
20-- Set **apiKey** to your watsonx API Key.
21-
22-### watsonx.ai Software
23-
24-To authenticate to your watsonx.ai Software instance with Continue, you can use either `username/password` or `ZenApiKey` method:
25-
26-1. _Option 1_ (Recommended): using `ZenApiKey` authentication:
27- - Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
28- - Set **projectId** to your watsonx project ID.
29- - Set **apiKey** to your watsonx Zen API Key. To generate it:
30- 1. Log in to the CPD web client.
31- 2. From the toolbar, click your avatar.
32- 3. Click **Profile and settings**.
33- 4. Click **API key** > **Generate new key**.
34- 5. Click **Generate**.
35- 6. Click **Copy** and save your key somewhere safe. You cannot recover this key if you lose it.
36- 7. Generate your ZenApiKey by running the following command in your preferred terminal: `echo "<username>:<apikey>" | base64`, replacing `<username>` with your CPD username and `<apikey>` with the API Key you just created.
37-2. _Option 2_: using `username/password` authentication:
38- - Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
39- - Set **projectId** to your watsonx project ID.
40- - Set **API Key** to your watsonx Username and Password using `username:password` as format.
41-
42-## Configuration
43-
44-Add the following configuration:
45-
46-<Tabs groupId="config-example">
47- <TabItem value="yaml" label="YAML">
48- ```yaml title="config.yaml"
49- models:
50- - name: watsonx - Model Name
51- provider: watsonx
52- model: model ID
53- apiBase: https://us-south.ml.cloud.ibm.com
54- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
55- env:
56- projectId: PROJECT_ID
57- apiVersion: 2024-03-14
58- ```
59- </TabItem>
60- <TabItem value="json" label="JSON">
61- ```json title="config.json"
62- {
63- "models": [
64- {
65- "model": "model ID",
66- "title": "watsonx - Model Name",
67- "provider": "watsonx",
68- "apiBase": "https://us-south.ml.cloud.ibm.com",
69- "projectId": "PROJECT_ID",
70- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
71- "apiVersion": "2024-03-14"
72- }
73- ]
74- }
75- ```
76- </TabItem>
77-</Tabs>
78-
79-`apiVersion` is optional and defaults to the latest version.
80-
81-If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `</>` tab on the right, which will display the endpoint's URL containing the deployment ID.
82-
83-<Tabs groupId="config-example">
84- <TabItem value="yaml" label="YAML">
85- ```yaml title="config.yaml"
86- models:
87- - name: watsonx - Model Name
88- provider: watsonx
89- model: model ID
90- apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
91- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
92- env:
93- apiVersion: 2024-03-14
94- deploymentId: DEPLOYMENT_ID
95- ```
96- </TabItem>
97- <TabItem value="json" label="JSON">
98- ```json title="config.json"
99- {
100- "models": [
101- {
102- "model": "model ID",
103- "title": "watsonx - Model Name",
104- "provider": "watsonx",
105- "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
106- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
107- "apiVersion": "2024-03-14",
108- "deploymentId": "DEPLOYMENT_ID"
109- }
110- ]
111- }
112- ```
113- </TabItem>
114-</Tabs>
115-
116-### Configuration Options
117-
118-Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size.
119-You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences:
120-
121-<Tabs groupId="config-example">
122- <TabItem value="yaml" label="YAML">
123- ```yaml title="config.yaml"
124- models:
125- - name: Granite Code 20b
126- provider: watsonx
127- model: ibm/granite-20b-code-instruct
128- apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
129- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
130- template: granite
131- defaultCompletionOptions:
132- contextLength: 8000
133- temperature: 0.1
134- topP: 0.3
135- topK: 20
136- maxTokens: 2000
137- frequencyPenalty: 1.1
138- stop:
139- - Question:
140- - "\n\n\n"
141- env:
142- projectId: PROJECT_ID
143- apiVersion: 2024-03-14
144-
145- ```
146- </TabItem>
147- <TabItem value="json" label="JSON">
148- ```json title="config.json"
149- {
150- "models": [
151- {
152- "model": "ibm/granite-20b-code-instruct",
153- "title": "Granite Code 20b",
154- "provider": "watsonx",
155- "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
156- "projectId": "PROJECT_ID",
157- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
158- "apiVersion": "2024-03-14",
159- "template": "granite",
160- "contextLength": 8000,
161- "completionOptions": {
162- "temperature": 0.1,
163- "topP": 0.3,
164- "topK": 20,
165- "maxTokens": 2000,
166- "frequencyPenalty": 1.1,
167- "stop": ["Question:", "\n\n\n"]
168- }
169- }
170- ]
171- }
172- ```
173- </TabItem>
174-</Tabs>
175-
176-## Tab Auto Complete Model
177-
178-Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models:
179-
180-<Tabs groupId="config-example">
181- <TabItem value="yaml" label="YAML">
182- ```yaml title="config.yaml"
183- models:
184- - name: Granite Code 8b
185- provider: watsonx
186- model: ibm/granite-8b-code-instruct
187- apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
188- projectId: PROJECT_ID
189- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
190- apiVersion: 2024-03-14
191- roles:
192- - autocomplete
193- ```
194- </TabItem>
195- <TabItem value="json" label="JSON">
196- ```json title="config.json"
197- {
198- "tabAutocompleteModel": {
199- "model": "ibm/granite-8b-code-instruct",
200- "title": "Granite Code 8b",
201- "provider": "watsonx",
202- "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
203- "projectId": "PROJECT_ID",
204- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
205- "apiVersion": "2024-03-14",
206- "contextLength": 4000
207- }
208- }
209- ```
210- </TabItem>
211-</Tabs>
212-
213-## Embeddings Model
214-
215-To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided).
216-
217-<Tabs groupId="config-example">
218- <TabItem value="yaml" label="YAML">
219- ```yaml title="config.yaml"
220- models:
221- - name: Watsonx Embedder
222- provider: watsonx
223- model: ibm/slate-30m-english-rtrvr-v2
224- apiBase: https://us-south.ml.cloud.ibm.com
225- projectId: PROJECT_ID
226- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
227- apiVersion: 2024-03-14
228- roles:
229- - embed
230- ```
231- </TabItem>
232- <TabItem value="json" label="JSON">
233- ```json title="config.json"
234- {
235- "embeddingsProvider": {
236- "provider": "watsonx",
237- "model": "ibm/slate-30m-english-rtrvr-v2",
238- "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
239- "projectId": "PROJECT_ID",
240- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
241- "apiVersion": "2024-03-14"
242- }
243- }
244- ```
245- </TabItem>
246-</Tabs>
247-
248-## Reranker
249-
250-<Tabs groupId="config-example">
251- <TabItem value="yaml" label="YAML">
252- ```yaml title="config.yaml"
253- models:
254- - name: Watsonx Reranker
255- provider: watsonx
256- model: cross-encoder/ms-marco-minilm-l-12-v2
257- apiBase: https://us-south.ml.cloud.ibm.com
258- projectId: PROJECT_ID
259- apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
260- apiVersion: 2024-03-14
261- ```
262- </TabItem>
263- <TabItem value="json" label="JSON">
264- ```json title="config.json"
265- {
266- "reranker": {
267- "name": "watsonx",
268- "params": {
269- "model": "cross-encoder/ms-marco-minilm-l-12-v2",
270- "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
271- "projectId": "PROJECT_ID",
272- "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
273- "apiVersion": "2024-03-14"
274- }
275- }
276- }
277- ```
278- </TabItem>
279-</Tabs>
deleted docs/docs/advanced/model-providers/top-level/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Popular Providers",
3- "position": 1
4-}
deleted docs/docs/advanced/model-providers/top-level/anthropic.mdx +0 −109
@@ -1,109 +0,0 @@
1----
2-title: Anthropic
3-slug: ../anthropic
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **Claude 4 Sonnet** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: Claude 4 Sonnet
22- provider: anthropic
23- model: claude-sonnet-4-20250514
24- apiKey: <YOUR_ANTHROPIC_API_KEY>
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "Claude 4 Sonnet",
33- "provider": "anthropic",
34- "model": "claude-sonnet-4-latest",
35- "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
36- }
37- ]
38- }
39- ```
40- </TabItem>
41-</Tabs>
42-
43-## Autocomplete model
44-
45-Anthropic currently does not offer any autocomplete models.
46-
47-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48-
49-## Embeddings model
50-
51-Anthropic currently does not offer any embeddings models.
52-
53-[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
54-
55-## Reranking model
56-
57-Anthropic currently does not offer any reranking models.
58-
59-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
60-
61-## Prompt caching
62-
63-Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), which allows Claude models to cache system messages and conversation history between requests to improve performance and reduce costs.
64-
65-Prompt caching is generally available for:
66-
67-- Claude 4 Sonnet
68-- Claude 3.7 Sonnet
69-- Claude 3.5 Sonnet
70-- Claude 3.5 Haiku
71-
72-To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
73-
74-<Tabs groupId="config-example">
75- <TabItem value="yaml" label="YAML">
76- ```yaml title="config.yaml"
77- models:
78- - name: Anthropic
79- provider: anthropic
80- model: claude-sonnet-4-20250514
81- apiKey: <YOUR_ANTHROPIC_API_KEY>
82- roles:
83- - chat
84- defaultCompletionOptions:
85- promptCaching: true
86- ```
87- </TabItem>
88- <TabItem value="json" label="JSON">
89- ```json title="config.json"
90- {
91- "models": [
92- {
93- "cacheBehavior": {
94- "cacheSystemMessage": true,
95- "cacheConversation": true
96- },
97- "title": "Anthropic",
98- "provider": "anthropic",
99- "model": "claude-sonnet-4-latest",
100- "defaultCompletionOptions": {
101- "promptCaching": true
102- },
103- "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
104- }
105- ]
106- }
107- ```
108- </TabItem>
109-</Tabs>
deleted docs/docs/advanced/model-providers/top-level/azure.mdx +0 −169
@@ -1,169 +0,0 @@
1----
2-title: Azure AI Foundry
3-slug: ../azure
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com).
10-
11-:::info
12-
13-For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
14-
15-:::
16-
17-## Chat model
18-
19-We recommend configuring **GPT-4o** as your chat model.
20-
21-<Tabs groupId="config-example">
22- <TabItem value="yaml" label="YAML">
23- ```yaml title="config.yaml"
24- models:
25- - name: GPT-4o
26- provider: azure
27- model: gpt-4o
28- apiBase: <YOUR_DEPLOYMENT_BASE>
29- apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey
30- env:
31- deployment: <YOUR_DEPLOYMENT_NAME>
32- apiType: azure-foundry # Or "azure-openai" if using OpenAI models
33- ```
34- </TabItem>
35- <TabItem value="json" label="JSON">
36- ```json title="config.json"
37- {
38- "models": [{
39- "title": "GPT-4o",
40- "provider": "azure",
41- "model": "gpt-4o",
42- "apiBase": "<YOUR_DEPLOYMENT_BASE>",
43- "deployment": "<YOUR_DEPLOYMENT_NAME>",
44- "apiKey": "<YOUR_AZURE_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
45- "apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
46- }]
47- }
48- ```
49- </TabItem>
50-</Tabs>
51-
52-## Autocomplete model
53-
54-We recommend configuring **Codestral** as your autocomplete model. If you use Azure AI Foundry to deploy Codestral:
55-
56-<Tabs groupId="config-example">
57- <TabItem value="yaml" label="YAML">
58- ```yaml title="config.yaml"
59- models:
60- - name: Codestral
61- provider: mistral
62- model: codestral-latest
63- apiBase: https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1
64- apiKey: <YOUR_AZURE_API_KEY>
65- roles:
66- - autocomplete
67- ```
68- </TabItem>
69- <TabItem value="json" label="JSON">
70- ```json title="config.json"
71- {
72- "tabAutocompleteModel": {
73- "title": "Codestral",
74- "provider": "mistral",
75- "model": "codestral-latest",
76- "apiBase": "https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1",
77- "apiKey": "<YOUR_AZURE_API_KEY>"
78- }
79- }
80- ```
81- </TabItem>
82-</Tabs>
83-
84-## Embeddings model
85-
86-We recommend configuring **text-embedding-3-large** as your embeddings model.
87-
88-<Tabs groupId="config-example">
89- <TabItem value="yaml" label="YAML">
90- ```yaml title="config.yaml"
91- models:
92- - name: Text Embedding-3 Large
93- provider: azure
94- model: text-embedding-3-large
95- apiBase: <YOUR_DEPLOYMENT_BASE>
96- apiKey: <YOUR_AZURE_API_KEY>
97- env:
98- deployment: <YOUR_DEPLOYMENT_NAME>
99- apiType: azure
100- ```
101- </TabItem>
102- <TabItem value="json" label="JSON">
103- ```json title="config.json"
104- {
105- "embeddingsProvider": {
106- "provider": "azure",
107- "model": "text-embedding-3-large",
108- "apiBase": "<YOUR_DEPLOYMENT_BASE>",
109- "deployment": "<YOUR_DEPLOYMENT_NAME>",
110- "apiKey": "<YOUR_AZURE_API_KEY>",
111- "apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
112- }
113- }
114- ```
115- </TabItem>
116-</Tabs>
117-
118-## Reranking model
119-
120-Azure OpenAI currently does not offer any reranking models.
121-
122-[Click here](../../model-roles/reranking.mdx) to see a list of reranking models.
123-
124-## Privacy
125-
126-If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
127-
128-:::info[Getting access]
129-[Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days.
130-:::
131-
132-## Azure OpenAI Service configuration
133-
134-Azure OpenAI Service requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
135-
136-To find this information in _Azure AI Foundry_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_.
137-
138-For example, a Target URI of `https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
139-
140-<Tabs groupId="config-example">
141- <TabItem value="yaml" label="YAML">
142- ```yaml title="config.yaml"
143- models:
144- - name: GPT-4o Azure
145- model: gpt-4o
146- provider: azure
147- apiBase: https://just-an-example.openai.azure.com
148- apiKey: <YOUR_AZURE_API_KEY>
149- env:
150- apiVersion: 2023-03-15-preview
151- deployment: gpt-4o-july
152- apiType: azure-openai
153- ```
154- </TabItem>
155- <TabItem value="json" label="JSON">
156- ```json title="config.json"
157- {
158- "title": "GPT-4o Azure",
159- "model": "gpt-4o",
160- "provider": "azure",
161- "apiBase": "https://just-an-example.openai.azure.com",
162- "deployment": "gpt-4o-july",
163- "apiVersion": "2023-03-15-preview",
164- "apiKey": "<YOUR_AZURE_API_KEY>",
165- "apiType": "azure-openai"
166- }
167- ```
168- </TabItem>
169-</Tabs>
deleted docs/docs/advanced/model-providers/top-level/bedrock.mdx +0 −235
@@ -1,235 +0,0 @@
1----
2-title: Amazon Bedrock
3-slug: ../bedrock
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
10-
11-## Chat model
12-
13-We recommend configuring **Claude 3.7 Sonnet** as your chat model.
14-
15-<Tabs groupId="config-example">
16- <TabItem value="yaml" label="YAML">
17- ```yaml title="config.yaml"
18- models:
19- - name: Claude 3.7 Sonnet
20- provider: bedrock
21- model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
22- env:
23- region: us-east-1
24- profile: bedrock
25- roles:
26- - chat
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Claude 3.7 Sonnet",
35- "provider": "bedrock",
36- "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
37- "region": "us-east-1",
38- "profile": "bedrock"
39- }
40- ]
41- }
42- ```
43- </TabItem>
44-</Tabs>
45-
46-> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
47-
48-> You can fix this using the following config:
49-
50-<Tabs groupId="config-example">
51- <TabItem value="yaml" label="YAML">
52- ```yaml title="config.yaml"
53- models:
54- - name: Claude 3.5 Sonnet
55- provider: bedrock
56- model: us.anthropic.claude-3-5-sonnet-20241022-v2:0
57- env:
58- region: us-east-1
59- profile: bedrock
60- roles:
61- - chat
62- ```
63- </TabItem>
64- <TabItem value="json" label="JSON">
65- ```json title="config.json"
66- {
67- "models": [
68- {
69- "title": "Claude 3.5 Sonnet",
70- "provider": "bedrock",
71- "model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
72- "region": "us-east-1",
73- "profile": "bedrock"
74- }
75- ]
76- }
77- ```
78- </TabItem>
79-</Tabs>
80-
81-## Autocomplete model
82-
83-Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolside](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
84-
85-In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete.md).
86-
87-## Embeddings model
88-
89-We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
90-
91-<Tabs groupId="config-example">
92- <TabItem value="yaml" label="YAML">
93- ```yaml title="config.yaml"
94- models:
95- - name: Embeddings Model
96- provider: bedrock
97- model: amazon.titan-embed-text-v2:0
98- env:
99- region: us-west-2
100- roles:
101- - embed
102- ```
103- </TabItem>
104- <TabItem value="json" label="JSON">
105- ```json title="config.json"
106- {
107- "embeddingsProvider": {
108- "title": "Embeddings Model",
109- "provider": "bedrock",
110- "model": "amazon.titan-embed-text-v2:0",
111- "region": "us-west-2"
112- }
113- }
114- ```
115- </TabItem>
116-</Tabs>
117-
118-## Reranking model
119-
120-We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
121-
122-<Tabs groupId="config-example">
123- <TabItem value="yaml" label="YAML">
124- ```yaml title="config.yaml"
125- models:
126- - name: Bedrock Reranker
127- provider: bedrock
128- model: cohere.rerank-v3-5:0
129- env:
130- region: us-west-2
131- roles:
132- - rerank
133- ```
134- </TabItem>
135- <TabItem value="json" label="JSON">
136- ```json title="config.json"
137- {
138- "reranker": {
139- "name": "bedrock",
140- "params": {
141- "model": "cohere.rerank-v3-5:0",
142- "region": "us-west-2"
143- }
144- }
145- }
146- ```
147- </TabItem>
148-</Tabs>
149-
150-## Prompt caching
151-
152-Bedrock allows Claude models to cache tool payloads, system messages, and chat
153-messages between requests. Enable this behavior by adding
154-`promptCaching: true` under `defaultCompletionOptions` in your model
155-configuration.
156-
157-Prompt caching is generally available for:
158-
159-- Claude 3.7 Sonnet
160-- Claude 3.5 Haiku
161-- Amazon Nova Micro
162-- Amazon Nova Lite
163-- Amazon Nova Pro
164-
165-Customers who were granted access to Claude 3.5 Sonnet v2 during the prompt
166-caching preview will retain that access, but it cannot be enabled for new users
167-on that model.
168-
169-```yaml title="config.yaml"
170-models:
171- - name: Claude 3.7 Sonnet
172- provider: bedrock
173- model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
174- defaultCompletionOptions:
175- promptCaching: true
176-```
177-
178-Prompt caching is not supported in JSON configuration files, so use the YAML syntax above to enable it.
179-
180-## Authentication
181-
182-Authentication will be through temporary or long-term credentials in
183-`~/.aws/credentials` under a configured profile (e.g. "bedrock").
184-
185-```title="~/.aws/credentials
186-[bedrock]
187-aws_access_key_id = abcdefg
188-aws_secret_access_key = hijklmno
189-aws_session_token = pqrstuvwxyz # Optional: means short term creds.
190-```
191-
192-## Custom Imported Models
193-
194-To setup Bedrock using custom imported models, add the following to your config file:
195-
196-<Tabs groupId="config-example">
197- <TabItem value="yaml" label="YAML">
198- ```yaml title="config.yaml"
199- models:
200- - name: AWS Bedrock deepseek-coder-6.7b-instruct
201- provider: bedrockimport
202- model: deepseek-coder-6.7b-instruct
203- env:
204- region: us-west-2
205- profile: bedrock
206- modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
207- ```
208- </TabItem>
209- <TabItem value="json" label="JSON">
210- ```json title="config.json"
211- {
212- "models": [
213- {
214- "title": "AWS Bedrock deepseek-coder-6.7b-instruct",
215- "provider": "bedrockimport",
216- "model": "deepseek-coder-6.7b-instruct",
217- "modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
218- "region": "us-west-2",
219- "profile": "bedrock"
220- }
221- ]
222- }
223- ```
224- </TabItem>
225-</Tabs>
226-
227-Authentication will be through temporary or long-term credentials in
228-~/.aws/credentials under a configured profile (e.g. "bedrock").
229-
230-```title="~/.aws/credentials
231-[bedrock]
232-aws_access_key_id = abcdefg
233-aws_secret_access_key = hijklmno
234-aws_session_token = pqrstuvwxyz # Optional: means short term creds.
235-```
deleted docs/docs/advanced/model-providers/top-level/deepseek.mdx +0 −83
@@ -1,83 +0,0 @@
1----
2-title: DeepSeek
3-slug: ../deepseek
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **DeepSeek Chat** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: DeepSeek Chat
22- provider: deepseek
23- model: deepseek-chat
24- apiKey: <YOUR_DEEPSEEK_API_KEY>
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "DeepSeek Chat",
33- "provider": "deepseek",
34- "model": "deepseek-chat",
35- "apiKey": "<YOUR_DEEPSEEK_API_KEY>"
36- }
37- ]
38- }
39- ```
40- </TabItem>
41-</Tabs>
42-
43-## Autocomplete model
44-
45-We recommend configuring **DeepSeek Coder** as your autocomplete model.
46-
47-<Tabs groupId="config-example">
48- <TabItem value="yaml" label="YAML">
49- ```yaml title="config.yaml"
50- models:
51- - name: DeepSeek Coder
52- provider: deepseek
53- model: deepseek-coder
54- apiKey: <YOUR_DEEPSEEK_API_KEY>
55- roles:
56- - autocomplete
57- ```
58- </TabItem>
59- <TabItem value="json" label="JSON">
60- ```json title="config.json"
61- {
62- "tabAutocompleteModel": {
63- "title": "DeepSeek Coder",
64- "provider": "deepseek",
65- "model": "deepseek-coder",
66- "apiKey": "<YOUR_DEEPSEEK_API_KEY>"
67- }
68- }
69- ```
70- </TabItem>
71-</Tabs>
72-
73-## Embeddings model
74-
75-DeepSeek currently does not offer any embeddings models.
76-
77-[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
78-
79-## Reranking model
80-
81-DeepSeek currently does not offer any reranking models.
82-
83-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/top-level/gemini.mdx +0 −82
@@ -1,82 +0,0 @@
1----
2-title: Gemini
3-slug: ../gemini
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **Gemini 2.0 Flash** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: Gemini 2.0 Flash
22- provider: gemini
23- model: gemini-2.0-flash
24- apiKey: <YOUR_GEMINI_API_KEY>
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "Gemini 2.0 Flash",
33- "provider": "gemini",
34- "model": "gemini-2.0-flash",
35- "apiKey": "<YOUR_GEMINI_API_KEY>"
36- }
37- ]
38- }
39- ```
40- </TabItem>
41-</Tabs>
42-
43-## Autocomplete model
44-
45-Gemini currently does not offer any autocomplete models.
46-
47-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48-
49-## Embeddings model
50-
51-We recommend configuring **text-embedding-004** as your embeddings model.
52-
53-<Tabs groupId="config-example">
54- <TabItem value="yaml" label="YAML">
55- ```yaml title="config.yaml"
56- models:
57- - name: Gemini Embeddings
58- provider: gemini
59- model: models/text-embedding-004
60- apiKey: <YOUR_GEMINI_API_KEY>
61- roles:
62- - embed
63- ```
64- </TabItem>
65- <TabItem value="json" label="JSON">
66- ```json title="config.json"
67- {
68- "embeddingsProvider": {
69- "provider": "gemini",
70- "model": "models/text-embedding-004",
71- "apiKey": "<YOUR_GEMINI_API_KEY>"
72- }
73- }
74- ```
75- </TabItem>
76-</Tabs>
77-
78-## Reranking model
79-
80-Gemini currently does not offer any reranking models.
81-
82-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/top-level/inception.mdx +0 −81
@@ -1,81 +0,0 @@
1----
2-title: Inception
3-slug: ../inception
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [Inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **Mercury Coder Small** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - uses: inceptionlabs/mercury-coder-small
22- with:
23- INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
24- ```
25- </TabItem>
26- <TabItem value="json" label="JSON">
27- ```json title="config.json"
28- {
29- "models": [
30- {
31- "title": "Mercury Coder Small",
32- "provider": "inception",
33- "model": "mercury-coder-small",
34- "apiKey": "<INCEPTION_API_KEY>"
35- }
36- ]
37- }
38- ```
39- </TabItem>
40-</Tabs>
41-
42-## Autocomplete model
43-
44-We also recommend configuring **Mercury Coder Small** as your autocomplete model.
45-
46-<Tabs groupId="config-example">
47- <TabItem value="yaml" label="YAML">
48- ```yaml title="config.yaml"
49- models:
50- - uses: inceptionlabs/mercury-coder-small
51- with:
52- INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
53- ```
54- </TabItem>
55- <TabItem value="json" label="JSON">
56- ```json title="config.json"
57- {
58- "tabAutocompleteModel": [
59- {
60- "title": "Mercury Coder Small",
61- "provider": "inception",
62- "model": "mercury-coder-small",
63- "apiKey": "<INCEPTION_API_KEY>"
64- }
65- ]
66- }
67- ```
68- </TabItem>
69-</Tabs>
70-
71-## Embeddings model
72-
73-Inception currently does not offer any embeddings models.
74-
75-[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
76-
77-## Reranking model
78-
79-Inception currently does not offer any reranking models.
80-
81-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/top-level/mistral.mdx +0 −110
@@ -1,110 +0,0 @@
1----
2-title: Mistral
3-slug: ../mistral
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [Mistral Dashboard](https://console.mistral.ai). Note that the API key for Codestral (codestral.mistral.ai) is different from for all other models (api.mistral.ai). If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to using `https://api.mistral.ai/v1`.
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **Mistral Large** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: Mistral Large
22- provider: mistral
23- model: mistral-large-latest
24- apiKey: <YOUR_MISTRAL_API_KEY>
25- roles:
26- - chat
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Mistral Large",
35- "provider": "mistral",
36- "model": "mistral-large-latest",
37- "apiKey": "<YOUR_MISTRAL_API_KEY>"
38- }
39- ]
40- }
41- ```
42- </TabItem>
43-</Tabs>
44-
45-## Autocomplete model
46-
47-We recommend configuring **Codestral** as your autocomplete model.
48-
49-<Tabs groupId="config-example">
50- <TabItem value="yaml" label="YAML">
51- ```yaml title="config.yaml"
52- models:
53- - name: Codestral
54- provider: mistral
55- model: codestral-latest
56- # apiBase: https://codestral.mistral.ai/v1 # Do this if you are using a Codestral API key
57- roles:
58- - autocomplete
59- ```
60- </TabItem>
61- <TabItem value="json" label="JSON">
62- ```json title="config.json"
63- {
64- "tabAutocompleteModel": {
65- "title": "Codestral",
66- "provider": "mistral",
67- "model": "codestral-latest"
68- // "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
69- }
70- }
71- ```
72- </TabItem>
73-</Tabs>
74-
75-## Embeddings model
76-
77-We recommend configuring **Mistral Embed** as your embeddings model.
78-
79-<Tabs groupId="config-example">
80- <TabItem value="yaml" label="YAML">
81- ```yaml title="config.yaml"
82- models:
83- - name: Mistral Embed
84- provider: mistral
85- model: mistral-embed
86- apiKey: <YOUR_MISTRAL_API_KEY>
87- apiBase: https://api.mistral.ai/v1
88- roles:
89- - embed
90- ```
91- </TabItem>
92- <TabItem value="json" label="JSON">
93- ```json title="config.json"
94- {
95- "embeddingsProvider": {
96- "provider": "mistral",
97- "model": "mistral-embed",
98- "apiKey": "<YOUR_MISTRAL_API_KEY>",
99- "apiBase": "https://api.mistral.ai/v1"
100- }
101- }
102- ```
103- </TabItem>
104-</Tabs>
105-
106-## Reranking model
107-
108-Mistral currently does not offer any reranking models.
109-
110-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/top-level/ollama.mdx +0 −128
@@ -1,128 +0,0 @@
1----
2-title: Ollama
3-slug: ../ollama
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-Ollama is an open-source tool that allows to run large language models (LLMs) locally on their own computers. To use Ollama, you can install it [here](https://ollama.ai/download) and download the model you want to run with the `ollama run` command.
10-
11-## Chat model
12-
13-We recommend configuring **Llama3.1 8B** as your chat model.
14-
15-<Tabs groupId="config-example">
16- <TabItem value="yaml" label="YAML">
17- ```yaml title="config.yaml"
18- models:
19- - name: Llama3.1 8B
20- provider: ollama
21- model: llama3.1:8b
22- ```
23- </TabItem>
24- <TabItem value="json" label="JSON">
25- ```json title="config.json"
26- {
27- "models": [
28- {
29- "title": "Llama3.1 8B",
30- "provider": "ollama",
31- "model": "llama3.1:8b"
32- }
33- ]
34- }
35- ```
36- </TabItem>
37-</Tabs>
38-
39-## Autocomplete model
40-
41-We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
42-
43-<Tabs groupId="config-example">
44- <TabItem value="yaml" label="YAML">
45- ```yaml title="config.yaml"
46- models:
47- - name: Qwen2.5-Coder 1.5B
48- provider: ollama
49- model: qwen2.5-coder:1.5b-base
50- roles:
51- - autocomplete
52- ```
53- </TabItem>
54- <TabItem value="json" label="JSON">
55- ```json title="config.json"
56- {
57- "tabAutocompleteModel": {
58- "title": "Qwen2.5-Coder 1.5B",
59- "provider": "ollama",
60- "model": "qwen2.5-coder:1.5b-base"
61- }
62- }
63- ```
64- </TabItem>
65-</Tabs>
66-
67-## Embeddings model
68-
69-We recommend configuring **Nomic Embed Text** as your embeddings model.
70-
71-<Tabs groupId="config-example">
72- <TabItem value="yaml" label="YAML">
73- ```yaml title="config.yaml"
74- models:
75- - name: Nomic Embed Text
76- provider: ollama
77- model: nomic-embed-text
78- roles:
79- - embed
80- ```
81- </TabItem>
82- <TabItem value="json" label="JSON">
83- ```json title="config.json"
84- {
85- "embeddingsProvider": {
86- "provider": "ollama",
87- "model": "nomic-embed-text"
88- }
89- }
90- ```
91- </TabItem>
92-</Tabs>
93-
94-## Reranking model
95-
96-Ollama currently does not offer any reranking models.
97-
98-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
99-
100-## Using a remote instance
101-
102-To configure a remote instance of Ollama, add the `"apiBase"` property to your model in config.json:
103-
104-<Tabs groupId="config-example">
105- <TabItem value="yaml" label="YAML">
106- ```yaml title="config.yaml"
107- models:
108- - name: Llama3.1 8B
109- provider: ollama
110- model: llama3.1:8b
111- apiBase: http://<my endpoint>:11434
112- ```
113- </TabItem>
114- <TabItem value="json" label="JSON">
115- ```json title="config.json"
116- {
117- "models": [
118- {
119- "title": "Llama3.1 8B",
120- "provider": "ollama",
121- "model": "llama3.1:8b",
122- "apiBase": "http://<my endpoint>:11434"
123- }
124- ]
125- }
126- ```
127- </TabItem>
128-</Tabs>
deleted docs/docs/advanced/model-providers/top-level/openai.mdx +0 −160
@@ -1,160 +0,0 @@
1----
2-title: OpenAI
3-slug: ../openai
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [OpenAI console](https://platform.openai.com/account/api-keys)
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **GPT-4o** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: GPT-4o
22- provider: openai
23- model: gpt-4o
24- apiKey: <YOUR_OPENAI_API_KEY>
25- ```
26- </TabItem>
27- <TabItem value="json" label="JSON">
28- ```json title="config.json"
29- {
30- "models": [
31- {
32- "title": "GPT-4o",
33- "provider": "openai",
34- "model": "gpt-4o",
35- "apiKey": "<YOUR_OPENAI_API_KEY>"
36- }
37- ]
38- }
39- ```
40- </TabItem>
41-</Tabs>
42-
43-## Autocomplete model
44-
45-OpenAI currently does not offer any autocomplete models.
46-
47-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48-
49-## Embeddings model
50-
51-We recommend configuring **text-embedding-3-large** as your embeddings model.
52-
53-<Tabs groupId="config-example">
54- <TabItem value="yaml" label="YAML">
55- ```yaml title="config.yaml"
56- models:
57- - name: OpenAI Embeddings
58- provider: openai
59- model: text-embedding-3-large
60- apiKey: <YOUR_OPENAI_API_KEY>
61- roles:
62- - embed
63- ```
64- </TabItem>
65- <TabItem value="json" label="JSON">
66- ```json title="config.json"
67- {
68- "embeddingsProvider": {
69- "provider": "openai",
70- "model": "text-embedding-3-large",
71- "apiKey": "<YOUR_OPENAI_API_KEY>"
72- }
73- }
74- ```
75- </TabItem>
76-</Tabs>
77-
78-## Reranking model
79-
80-OpenAI currently does not offer any reranking models.
81-
82-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
83-
84-## OpenAI compatible servers / APIs
85-
86-OpenAI compatible servers
87-
88-- [KoboldCpp](https://github.com/lostruins/koboldcpp)
89-- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
90-- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)
91-- [LocalAI](https://localai.io/basics/getting_started/)
92-- [llama-cpp-python](https://github.com/abetlen/llama-cpp-python#web-server)
93-- [TensorRT-LLM](https://github.com/NVIDIA/trt-llm-as-openai-windows?tab=readme-ov-file#examples)
94-- [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html)
95-- [BerriAI/litellm](https://github.com/BerriAI/litellm)
96-
97-OpenAI compatible APIs
98-
99-- [Anyscale Endpoints](https://github.com/continuedev/deploy-os-code-llm#others)
100-- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints)
101-
102-If you are using an OpenAI compatible server / API, you can change the `apiBase` like this:
103-
104-<Tabs groupId="config-example">
105- <TabItem value="yaml" label="YAML">
106- ```yaml title="config.yaml"
107- models:
108- - name: OpenAI-compatible server / API
109- provider: openai
110- model: MODEL_NAME
111- apiBase: http://localhost:8000/v1
112- apiKey: <YOUR_CUSTOM_API_KEY>
113- ```
114- </TabItem>
115- <TabItem value="json" label="JSON">
116- ```json title="config.json"
117- {
118- "models": [
119- {
120- "title": "OpenAI-compatible server / API",
121- "provider": "openai",
122- "model": "MODEL_NAME",
123- "apiKey": "<YOUR_CUSTOM_API_KEY>",
124- "apiBase": "http://localhost:8000/v1"
125- }
126- ]
127- }
128- ```
129- </TabItem>
130-</Tabs>
131-
132-To force usage of `chat/completions` instead of `completions` endpoint you can set:
133-
134-<Tabs groupId="config-example">
135- <TabItem value="yaml" label="YAML">
136- ```yaml title="config.yaml"
137- models:
138- - name: OpenAI-compatible server / API
139- provider: openai
140- model: MODEL_NAME
141- apiBase: http://localhost:8000/v1
142- useLegacyCompletionsEndpoint: true
143- ```
144- </TabItem>
145- <TabItem value="json" label="JSON">
146- ```json title="config.json"
147- {
148- "models": [
149- {
150- "title": "OpenAI-compatible server / API",
151- "provider": "openai",
152- "model": "MODEL_NAME",
153- "apiBase": "http://localhost:8000/v1",
154- "useLegacyCompletionsEndpoint": true
155- }
156- ]
157- }
158- ```
159- </TabItem>
160-</Tabs>
deleted docs/docs/advanced/model-providers/top-level/vertexai.mdx +0 −116
@@ -1,116 +0,0 @@
1----
2-title: Vertex AI
3-slug: ../vertexai
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **Claude 3.5 Sonnet** as your chat model.
16-
17-<Tabs groupId="config-example">
18- <TabItem value="yaml" label="YAML">
19- ```yaml title="config.yaml"
20- models:
21- - name: Claude 3.5 Sonnet
22- provider: vertexai
23- model: claude-3-5-sonnet-20240620
24- env:
25- projectId: <PROJECT_ID>
26- region: us-east5
27- ```
28- </TabItem>
29- <TabItem value="json" label="JSON">
30- ```json title="config.json"
31- {
32- "models": [
33- {
34- "title": "Claude 3.5 Sonnet",
35- "provider": "vertexai",
36- "model": "claude-3-5-sonnet-20240620",
37- "projectId": "[PROJECT_ID]",
38- "region": "us-east5"
39- }
40- ]
41- }
42- ```
43- </TabItem>
44-</Tabs>
45-
46-## Autocomplete model
47-
48-We recommend configuring **Codestral** or **code-gecko** as your autocomplete model.
49-
50-<Tabs groupId="config-example">
51- <TabItem value="yaml" label="YAML">
52- ```yaml title="config.yaml"
53- models:
54- - name: Codestral (Vertex AI)
55- provider: vertexai
56- model: codestral
57- roles:
58- - autocomplete
59- env:
60- projectId: <PROJECT_ID>
61- region: us-central1
62-
63- ```
64- </TabItem>
65- <TabItem value="json" label="JSON">
66- ```json title="config.json"
67- {
68- "tabAutocompleteModel": {
69- "title": "Codestral (Vertex AI)",
70- "provider": "vertexai",
71- "model": "codestral",
72- "projectId": "[PROJECT_ID]",
73- "region": "us-central1"
74- }
75- }
76- ```
77- </TabItem>
78-</Tabs>
79-
80-## Embeddings model
81-
82-We recommend configuring **text-embedding-004** as your embeddings model.
83-
84-<Tabs groupId="config-example">
85- <TabItem value="yaml" label="YAML">
86- ```yaml title="config.yaml"
87- models:
88- - name: Text Embedding-004
89- provider: vertexai
90- model: text-embedding-004
91- env:
92- projectId: <PROJECT_ID>
93- region: us-central1
94- roles:
95- - embed
96- ```
97- </TabItem>
98- <TabItem value="json" label="JSON">
99- ```json title="config.json"
100- {
101- "embeddingsProvider": {
102- "provider": "vertexai",
103- "model": "text-embedding-004",
104- "projectId": "[PROJECT_ID]",
105- "region": "us-central1"
106- }
107- }
108- ```
109- </TabItem>
110-</Tabs>
111-
112-## Reranking model
113-
114-Vertex AI currently does not offer any reranking models.
115-
116-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-providers/top-level/xAI.mdx +0 −62
@@ -1,62 +0,0 @@
1----
2-title: xAI
3-slug: ../xai
4----
5-
6-import TabItem from "@theme/TabItem";
7-import Tabs from "@theme/Tabs";
8-
9-:::info
10-You can get an API key from the [xAI console](https://console.x.ai/)
11-:::
12-
13-## Chat model
14-
15-We recommend configuring **grok-2-latest** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
16-
17-<Tabs groupId="hub-config-example">
18- <TabItem value="hub" label="Config">
19- Add the [xAI Grok 2 model block](https://hub.continue.dev/xai/grok-2) on the hub.
20- </TabItem>
21- <TabItem value="yaml" label="YAML">
22- ```yaml title="config.yaml"
23- models:
24- - name: Grok 2
25- provider: xAI
26- model: grok-2-latest
27- apiKey: <YOUR_XAI_API_KEY>
28- ```
29- </TabItem>
30- <TabItem value="json" label="JSON">
31- ```json title="config.json"
32- {
33- "models": [
34- {
35- "title": "Grok 2",
36- "provider": "xAI",
37- "model": "grok-2-latest",
38- "apiKey": "<YOUR_XAI_API_KEY>"
39- }
40- ]
41- }
42- ```
43- </TabItem>
44-</Tabs>
45-
46-## Autocomplete model
47-
48-xAI currently does not offer any autocomplete models.
49-
50-[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
51-
52-## Embeddings model
53-
54-xAI currently does not offer any embeddings models.
55-
56-[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
57-
58-## Reranking model
59-
60-xAI currently does not offer any reranking models.
61-
62-[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
deleted docs/docs/advanced/model-roles/00-intro.mdx +0 −31
@@ -1,31 +0,0 @@
1----
2-title: Intro to Roles
3-description: Apply model role
4-keywords: [apply, model, role]
5-sidebar_position: 0
6-sidebar_label: Introduction
7----
8-
9-import TabItem from "@theme/TabItem";
10-import Tabs from "@theme/Tabs";
11-
12-Models in Continue can be configured to be used for various roles in the extension.
13-
14-- [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar
15-- [`autocomplete`](./autocomplete.md): Used for autocomplete code suggestions in the editor
16-- [`edit`](./edit.mdx): Used to generate code based on edit prompts
17-- [`apply`](./apply.mdx): Used to decide how to apply edits to a file
18-- [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
19-- [`rerank`](./reranking.mdx): Used to rerank results from vector search
20-
21-These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
22-
23-## Selecting model roles
24-
25-You can control which of the models in your assistant for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
26-
27-![Settings Active Models Section](/img/settings-model-roles.png)
28-
29-:::info
30-`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
31-:::
deleted docs/docs/advanced/model-roles/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Model Roles",
3- "position": 5
4-}
deleted docs/docs/advanced/model-roles/apply.mdx +0 −42
@@ -1,42 +0,0 @@
1----
2-title: Apply Role
3-description: Apply model role
4-keywords: [apply, model, role]
5-sidebar_position: 4
6----
7-
8-When editing code, Chat and Edit model output often doesn't clearly align with existing code. A model with the `apply` role is used to generate a more precise diff to apply changes to a file.
9-
10-## Recommended Apply models
11-
12-We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can sign up for Morph's free tier [here](https://morphllm.com/dashboard) or get a Relace API key [here](https://app.relace.ai/settings/api-keys).
13-
14-However, most Chat models can also be used for applying code changes. We recommend smaller/cheaper models for the task, such as Claude 3.5 Haiku.
15-
16-:::info
17-Explore all apply models in [the Hub](https://hub.continue.dev/explore/models?roles=apply)
18-:::
19-
20-## Prompt templating
21-
22-You can customize the prompt template used for applying code changes by setting the `promptTemplates.apply` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
23-
24-Available variables for the apply template:
25-
26-- `{{{original_code}}}` - The original code before changes
27-- `{{{new_code}}}` - The new code after changes
28-
29-Example:
30-
31-```yaml
32-models:
33- - name: My Custom Apply Template
34- provider: anthropic
35- model: claude-3-5-sonnet-latest
36- promptTemplates:
37- apply: |
38- Original: {{{original_code}}}
39- New: {{{new_code}}}
40-
41- Please generate the final code without any markers or explanations.
42-```
deleted docs/docs/advanced/model-roles/autocomplete.md +0 −41
@@ -1,41 +0,0 @@
1----
2-title: Autocomplete Role
3-description: Autocomplete model role
4-keywords: [autocomplete, model, role]
5-sidebar_position: 2
6----
7-
8-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.
9-
10-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`.
11-
12-## Recommended Autocomplete models
13-
14-Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details.
15-
16-## Prompt templating
17-
18-You can customize the prompt template used when autocomplete happens by setting the `promptTemplates.autocomplete` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
19-
20-Available variables for the apply template:
21-
22-- `{{{prefix}}}` - the code before your cursor
23-- `{{{suffix}}}` - the code after your cursor
24-- `{{{filename}}}` - the name of the file your cursor currently is
25-- `{{{reponame}}}` - the name of the folder where the codebase is
26-- `{{{language}}}` - the name of the programming language in full (ex. Typescript)
27-
28-Example:
29-
30-```yaml
31-models:
32- - name: My Custom Autocomplete Template
33- provider: ollama
34- model: qwen2.5-coder:1.5b
35- promptTemplates:
36- autocomplete: |
37- `
38- globalThis.importantFunc = importantFunc
39- <|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>
40- `
41-```
deleted docs/docs/advanced/model-roles/chat.mdx +0 −407
@@ -1,407 +0,0 @@
1----
2-title: Chat Role
3-description: Chat model role
4-keywords: [chat, model, role]
5-sidebar_position: 1
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
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) 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.
14-
15-## Recommended Chat models
16-
17-## Best overall experience
18-
19-For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models.
20-
21-### Claude Sonnet 3.7 from Anthropic
22-
23-Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx).
24-
25-<Tabs groupId="hub-config-example">
26- <TabItem value="hub" label="Hub">
27- View the [Claude 3.7 Sonnet model block](https://hub.continue.dev/anthropic/claude-3-7-sonnet) on the hub.
28- </TabItem>
29- <TabItem value="yaml" label="YAML">
30- ```yaml title="config.yaml"
31- models:
32- - name: Claude 3.7 Sonnet
33- provider: anthropic
34- model: claude-3-7-sonnet-latest
35- apiKey: <YOUR_ANTHROPIC_API_KEY>
36- ```
37- </TabItem>
38- <TabItem value="json" label="JSON">
39- ```json title="config.json"
40- {
41- "models": [
42- {
43- "title": "Claude 3.5 Sonnet",
44- "provider": "anthropic",
45- "model": "claude-3-5-sonnet-latest",
46- "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
47- }
48- ]
49- }
50- ```
51- </TabItem>
52-</Tabs>
53-
54-### Gemma from Google DeepMind
55-
56-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.mdx), or self-host it, e.g. [Ollama](../model-providers/top-level/ollama.mdx).
57-
58-<Tabs groupId="config-example">
59- <TabItem value="hub" label="Hub">
60- <Tabs groupId="providers">
61- <TabItem value="Ollama">
62- Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub
63- </TabItem>
64- <TabItem value="Together">
65- Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub
66- </TabItem>
67- </Tabs>
68- </TabItem>
69- <TabItem value="yaml" label="YAML">
70- <Tabs groupId="providers">
71- <TabItem value="Ollama">
72- ```yaml title="config.yaml"
73- models:
74- - name: "Gemma 3 27B"
75- provider: "ollama"
76- model: "gemma3:27b"
77- ```
78- </TabItem>
79- <TabItem value="Together">
80- ```yaml title="config.yaml"
81- models:
82- - name: "Gemma 3 27B"
83- provider: "together"
84- model: "google/gemma-2-27b-it"
85- apiKey: <YOUR_TOGETHER_API_KEY>
86- ```
87- </TabItem>
88- </Tabs>
89- </TabItem>
90- <TabItem value="json" label="JSON">
91- <Tabs groupId="providers">
92- <TabItem value="Ollama">
93- ```json title="config.json"
94- {
95- "models": [
96- {
97- "title": "Gemma 3 27B",
98- "provider": "ollama",
99- "model": "gemma3:27b"
100- }
101- ]
102- }
103- ```
104- </TabItem>
105- <TabItem value="Together">
106- ```json title="config.json"
107- {
108- "models": [
109- {
110- "title": "Gemma 3 27B",
111- "provider": "together",
112- "model": "google/gemma-2-27b-it",
113- "apiKey": "<YOUR_TOGETHER_API_KEY>"
114- }
115- ]
116- }
117- ```
118- </TabItem>
119- </Tabs>
120- </TabItem>
121-</Tabs>
122-
123-### GPT-4o from OpenAI
124-
125-If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.mdx), then we recommend GPT-4o.
126-
127-<Tabs groupId="hub-config-example">
128- <TabItem value="hub" label="Hub">
129- Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub
130- </TabItem>
131- <TabItem value="yaml" label="YAML">
132- ```yaml title="config.yaml"
133- models:
134- - name: GPT-4o
135- provider: openai
136- model: ''
137- apiKey: <YOUR_OPENAI_API_KEY>
138- ```
139- </TabItem>
140- <TabItem value="json" label="JSON">
141- ```json title="config.json"
142- {
143- "models": [
144- {
145- "title": "GPT-4o",
146- "provider": "openai",
147- "model": "",
148- "apiKey": "<YOUR_OPENAI_API_KEY>"
149- }
150- ]
151- }
152- ```
153- </TabItem>
154-</Tabs>
155-
156-### Grok-2 from xAI
157-
158-If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), then we recommend Grok-2.
159-
160-<Tabs groupId="hub-config-example">
161- <TabItem value="hub" label="Hub">
162- Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub
163- </TabItem>
164- <TabItem value="yaml" label="YAML">
165- ```yaml title="config.yaml"
166- models:
167- - name: Grok-2
168- provider: xAI
169- model: grok-2-latest
170- apiKey: <YOUR_XAI_API_KEY>
171- ```
172- </TabItem>
173- <TabItem value="json" label="JSON">
174- ```json title="config.json"
175- {
176- "models": [
177- {
178- "title": "Grok-2",
179- "provider": "xAI",
180- "model": "grok-2-latest",
181- "apiKey": "<YOUR_XAI_API_KEY>"
182- }
183- ]
184- }
185- ```
186- </TabItem>
187-</Tabs>
188-
189-### Gemini 2.0 Flash from Google
190-
191-If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash.
192-
193-<Tabs groupId="hub-config-example">
194- <TabItem value="hub" label="Hub">
195- Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub
196- </TabItem>
197- <TabItem value="yaml" label="YAML">
198- ```yaml title="config.yaml"
199- models:
200- - name: Gemini 2.0 Flash
201- provider: gemini
202- model: gemini-2.0-flash
203- apiKey: <YOUR_GEMINI_API_KEY>
204- ```
205- </TabItem>
206- <TabItem value="json" label="JSON">
207- ```json title="config.json"
208- {
209- "models": [
210- {
211- "title": "Gemini 2.0 Flash",
212- "provider": "gemini",
213- "model": "gemini-2.0-flash",
214- "apiKey": "<YOUR_GEMINI_API_KEY>"
215- }
216- ]
217- }
218- ```
219- </TabItem>
220-</Tabs>
221-
222-## Local, offline experience
223-
224-For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine.
225-
226-### Llama 3.1 8B
227-
228-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.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
229-
230-<Tabs groupId="hub-config-example">
231- <TabItem value="hub" label="Hub">
232- <Tabs groupId="providers">
233- <TabItem value="ollama" label="Ollama">
234- Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub
235- </TabItem>
236- {/* HUB_TODO nonexistent block */}
237- {/* <TabItem value="lmstudio" label="LM Studio">
238- Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub
239- </TabItem> */}
240- </Tabs>
241- </TabItem>
242- <TabItem value="yaml" label="YAML">
243- <Tabs groupId="providers">
244- <TabItem value="Ollama">
245- ```yaml title="config.yaml"
246- models:
247- - name: Llama 3.1 8B
248- provider: ollama
249- model: llama3.1:8b
250- ```
251- </TabItem>
252- <TabItem value="LM Studio">
253- ```yaml title="config.yaml"
254- models:
255- - name: Llama 3.1 8B
256- provider: lmstudio
257- model: llama3.1:8b
258- ```
259- </TabItem>
260- <TabItem value="Msty">
261- ```yaml title="config.yaml"
262- models:
263- - name: Llama 3.1 8B
264- provider: msty
265- model: llama3.1:8b
266- ```
267- </TabItem>
268- </Tabs>
269- </TabItem>
270- <TabItem value="json" label="JSON">
271- <Tabs groupId="providers">
272- <TabItem value="Ollama">
273- ```json title="config.json"
274- {
275- "models": [
276- {
277- "title": "Llama 3.1 8B",
278- "provider": "ollama",
279- "model": "llama3.1:8b"
280- }
281- ]
282- }
283- ```
284- </TabItem>
285- <TabItem value="LM Studio">
286- ```json title="config.json"
287- {
288- "models": [
289- {
290- "title": "Llama 3.1 8B",
291- "provider": "lmstudio",
292- "model": "llama3.1-8b"
293- }
294- ]
295- }
296- ```
297- </TabItem>
298- <TabItem value="Msty">
299- ```json title="config.json"
300- {
301- "models": [
302- {
303- "title": "Llama 3.1 8B",
304- "provider": "msty",
305- "model": "llama3.1-8b"
306- }
307- ]
308- }
309- ```
310- </TabItem>
311- </Tabs>
312- </TabItem>
313-</Tabs>
314-
315-### DeepSeek Coder 2 16B
316-
317-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.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
318-
319-<Tabs groupId="config-example">
320- {/* HUB_TODO nonexistent blocks */}
321- {/* <TabItem value="hub" label="Hub">
322- <Tabs groupId="providers">
323- <TabItem value="ollama" label="Ollama">
324- Add the [Ollama Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
325- </TabItem>
326- <TabItem value="lmstudio" label="LM Studio">
327- Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
328- </TabItem>
329- </Tabs>
330- </TabItem> */}
331- <TabItem value="yaml" label="YAML">
332- <Tabs groupId="providers">
333- <TabItem value="Ollama">
334- ```yaml title="config.yaml"
335- models:
336- - name: DeepSeek Coder 2 16B
337- provider: ollama
338- model: deepseek-coder-v2:16b
339- ```
340- </TabItem>
341- <TabItem value="LM Studio">
342- ```yaml title="config.yaml"
343- models:
344- - name: DeepSeek Coder 2 16B
345- provider: lmstudio
346- model: deepseek-coder-v2:16b
347- ```
348- </TabItem>
349- <TabItem value="Msty">
350- ```yaml title="config.yaml"
351- models:
352- - name: DeepSeek Coder 2 16B
353- provider: msty
354- model: deepseek-coder-v2:16b
355- ```
356- </TabItem>
357- </Tabs>
358- </TabItem>
359- <TabItem value="json" label="JSON">
360- <Tabs groupId="providers">
361- <TabItem value="Ollama">
362- ```json title="config.json"
363- {
364- "models": [
365- {
366- "title": "DeepSeek Coder 2 16B",
367- "provider": "ollama",
368- "model": "deepseek-coder-v2:16b",
369- "apiBase": "http://localhost:11434"
370- }
371- ]
372- }
373- ```
374- </TabItem>
375- <TabItem value="LM Studio">
376- ```json title="config.json"
377- {
378- "models": [
379- {
380- "title": "DeepSeek Coder 2 16B",
381- "provider": "lmstudio",
382- "model": "deepseek-coder-v2:16b"
383- }
384- ]
385- }
386- ```
387- </TabItem>
388- <TabItem value="Msty">
389- ```json title="config.json"
390- {
391- "models": [
392- {
393- "title": "DeepSeek Coder 2 16B",
394- "provider": "msty",
395- "model": "deepseek-coder-v2:16b"
396- }
397- ]
398- }
399- ```
400- </TabItem>
401- </Tabs>
402- </TabItem>
403-</Tabs>
404-
405-## Other experiences
406-
407-There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx)
deleted docs/docs/advanced/model-roles/edit.mdx +0 −82
@@ -1,82 +0,0 @@
1----
2-title: Edit Role
3-description: Edit model role
4-keywords: [edit, editing, model, role]
5-sidebar_position: 3
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-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.
12-
13-In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.
14-
15-<Tabs groupId="config-example">
16- <TabItem value="yaml" label="YAML">
17- Use model roles.
18- ```yaml title="config.yaml"
19- models:
20- - name: Claude 3.5 Sonnet
21- provider: anthropic
22- model: claude-3-5-sonnet-latest
23- apiKey: <YOUR_ANTHROPIC_API_KEY>
24- roles:
25- - edit
26- ```
27- </TabItem>
28- <TabItem value="json" label="JSON">
29- Set the `experimental.modelRoles.inlineEdit` property in `config.json`.
30- ```json title="config.json"
31- {
32- "models": {
33- "name": "Claude 3.5 Sonnet",
34- "provider": "anthropic",
35- "model": "claude-3-5-sonnet-latest",
36- "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
37- },
38- "experimental": {
39- "modelRoles": {
40- "inlineEdit": "Claude 3.5 Sonnet",
41- }
42- }
43- }
44- ```
45- </TabItem>
46-</Tabs>
47-
48-Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.
49-
50-## Prompt templating
51-
52-You can customize the prompt template used for editing code by setting the `promptTemplates.edit` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
53-
54-Available variables for the edit template:
55-
56-- `{{{userInput}}}` - The user's edit request/instruction
57-- `{{{language}}}` - The programming language of the code
58-- `{{{codeToEdit}}}` - The code that's being edited
59-- `{{{prefix}}}` - Content before the edit area
60-- `{{{suffix}}}` - Content after the edit area
61-- `{{{supportsCompletions}}}` - Whether the model supports completions API
62-- `{{{supportsPrefill}}}` - Whether the model supports prefill capability
63-
64-Example:
65-
66-```yaml
67-models:
68- - name: My Custom Edit Template
69- provider: openai
70- model: gpt-4o
71- promptTemplates:
72- edit: |
73- `Here is the code before editing:
74- \`\`\`{{{language}}}
75- {{{codeToEdit}}}
76- \`\`\`
77-
78- Here is the edit requested:
79- "{{{userInput}}}"
80-
81- Here is the code after editing:`
82-```
deleted docs/docs/advanced/model-roles/embeddings.mdx +0 −154
@@ -1,154 +0,0 @@
1----
2-title: Embed Role
3-description: Embed model role
4-keywords: [embedding, model, role, embeddings]
5-sidebar_position: 5
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
12-
13-In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase.mdx) to perform similarity search over your codebase.
14-
15-You can add `embed` to a model's `roles` to specify that it can be used to embed.
16-
17-:::info[Built-in model (VS Code only)]
18-`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder.
19-:::
20-
21-## Recommended embedding models
22-
23-If you have the ability to use any model, we recommend `voyage-code-3`, which is listed below along with the rest of the options for embeddings models.
24-
25-If you want to generate embeddings locally, we recommend using `nomic-embed-text` with [Ollama](../model-providers/top-level/ollama.mdx#embeddings-model).
26-
27-### Voyage AI
28-
29-After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
30-
31-<Tabs groupId="hub-config-example">
32- <TabItem value="hub" label="Hub">
33- [Voyage Code 3 Embedder Block](https://hub.continue.dev/voyageai/voyage-code-3)
34- </TabItem>
35- <TabItem value="yaml" label="YAML">
36- ```yaml title="config.yaml"
37- models:
38- - name: Voyage Code 3
39- provider: voyage
40- model: voyage-code-3
41- apiKey: <YOUR_VOYAGE_API_KEY>
42- roles:
43- - embed
44- ```
45- </TabItem>
46- <TabItem value="json" label="JSON">
47- ```json title="config.json"
48- {
49- "embeddingsProvider": {
50- "provider": "voyage",
51- "model": "voyage-code-3",
52- "apiKey": "<YOUR_VOYAGE_API_KEY>"
53- }
54- }
55- ```
56- </TabItem>
57-</Tabs>
58-
59-### Ollama
60-
61-See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instructions on how to use Ollama for embeddings.
62-
63-### Transformers.js (currently VS Code only)
64-
65-[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension.
66-
67-<Tabs groupId="config-example">
68- <TabItem value="yaml" label="YAML">
69- ```yaml title="config.yaml"
70- models:
71- - name: default-transformers
72- provider: transformers.js
73- roles:
74- - embed
75- ```
76- </TabItem>
77- <TabItem value="json" label="JSON">
78- ```json title="config.json"
79- {
80- "embeddingsProvider": {
81- "provider": "transformers.js"
82- }
83- }
84- ```
85- </TabItem>
86-</Tabs>
87-
88-### Text Embeddings Inference
89-
90-[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own embeddings endpoint. You can configure embeddings to use your endpoint as follows:
91-
92-<Tabs groupId="config-example">
93- {/* HUB_TODO nonexistent block */}
94- {/* <TabItem value="hub" label="Hub">
95- [HuggingFace Text Embedder Block](https://hub.continue.dev/)
96- </TabItem> */}
97- <TabItem value="yaml" label="YAML">
98- ```yaml title="config.yaml"
99- models:
100- - name: Huggingface TEI Embedder
101- provider: huggingface-tei
102- apiBase: http://localhost:8080
103- apiKey: <YOUR_TEI_API_KEY>
104- roles: [embed]
105- ```
106- </TabItem>
107- <TabItem value="json" label="JSON">
108- ```json title="config.json"
109- {
110- "embeddingsProvider": {
111- "provider": "huggingface-tei",
112- "apiBase": "http://localhost:8080",
113- "apiKey": "<YOUR_TEI_API_KEY>"
114- }
115- }
116- ```
117- </TabItem>
118-</Tabs>
119-
120-### OpenAI
121-
122-See [here](../model-providers/top-level/openai.mdx#embeddings-model) for instructions on how to use OpenAI for embeddings.
123-
124-### Cohere
125-
126-See [here](../model-providers/more/cohere.mdx#embeddings-model) for instructions on how to use Cohere for embeddings.
127-
128-### Gemini
129-
130-See [here](../model-providers/top-level/gemini.mdx#embeddings-model) for instructions on how to use Gemini for embeddings.
131-
132-### Vertex
133-
134-See [here](../model-providers/top-level/vertexai.mdx#embeddings-model) for instructions on how to use Vertex for embeddings.
135-
136-### Mistral
137-
138-See [here](../model-providers/top-level/mistral.mdx#embeddings-model) for instructions on how to use Mistral for embeddings.
139-
140-### NVIDIA
141-
142-See [here](../model-providers/more/nvidia.mdx#embeddings-model) for instructions on how to use NVIDIA for embeddings.
143-
144-### Bedrock
145-
146-See [here](../model-providers/top-level/bedrock.mdx#embeddings-model) for instructions on how to use Bedrock for embeddings.
147-
148-### WatsonX
149-
150-See [here](../model-providers/more/watsonx.mdx#embeddings-model) for instructions on how to use WatsonX for embeddings.
151-
152-### LMStudio
153-
154-See [here](../model-providers/more/lmstudio.mdx#embeddings-model) for instructions on how to use LMStudio for embeddings.
deleted docs/docs/advanced/model-roles/reranking.mdx +0 −156
@@ -1,156 +0,0 @@
1----
2-title: Rerank Role
3-description: Rerank model role
4-keywords: [rerank, reranking, model, role]
5-sidebar_position: 6
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
12-
13-In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase.mdx) in order to select the most relevant code snippets after vector search.
14-
15-## Recommended reranking models
16-
17-If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers.
18-
19-### Voyage AI
20-
21-Voyage AI offers the best reranking model for code with their `rerank-2` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure a reranker as follows:
22-
23-<Tabs groupId="hub-config-example">
24- <TabItem value="hub" label="Hub">
25- [Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2)
26- </TabItem>
27- <TabItem value="yaml" label="YAML">
28- ```yaml title="config.yaml"
29- models:
30- - name: My Voyage Reranker
31- provider: voyage
32- apiKey: <YOUR_VOYAGE_API_KEY>
33- model: rerank-2
34- roles:
35- - rerank
36- ```
37- </TabItem>
38- <TabItem value="json" label="JSON">
39- ```json title="config.json"
40- {
41- "reranker": {
42- "name": "voyage",
43- "params": {
44- "model": "rerank-2",
45- "apiKey": "<YOUR_VOYAGE_API_KEY>"
46- }
47- }
48- }
49- ```
50- </TabItem>
51-</Tabs>
52-
53-### Cohere
54-
55-See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rerank-2).
56-
57-<Tabs groupId="config-example">
58- {/* HUB_TODO block doesn't exist */}
59- {/* <TabItem value="hub" label="Hub">
60- [Cohere Reranker English v3](https://hub.continue.dev/)
61- </TabItem> */}
62- <TabItem value="yaml" label="YAML">
63- ```yaml title="config.yaml"
64- models:
65- - name: Cohere Reranker
66- provider: cohere
67- model: rerank-english-v3.0
68- apiKey: <YOUR_COHERE_API_KEY>
69- roles:
70- - rerank
71- ```
72- </TabItem>
73- <TabItem value="json" label="JSON">
74- ```json title="config.json"
75- {
76- "reranker": {
77- "name": "cohere",
78- "params": {
79- "model": "rerank-english-v3.0",
80- "apiKey": "<YOUR_COHERE_API_KEY>"
81- }
82- }
83- }
84- ```
85- </TabItem>
86-</Tabs>
87-
88-### LLM
89-
90-If you only have access to a single LLM, then you can use it as a reranker. This is discouraged unless truly necessary, because it will be much more expensive and still less accurate than any of the above models trained specifically for the task. Note that this will not work if you are using a local model, for example with Ollama, because too many parallel requests need to be made.
91-
92-<Tabs groupId="config-example">
93- {/* HUB_TODO block doesn't exist */}
94- {/* <TabItem value="hub" label="Hub">
95- [GPT-4o LLM Reranker Block](https://hub.continue.dev/)
96- </TabItem> */}
97- <TabItem value="yaml" label="YAML">
98- ```yaml title="config.yaml"
99- models:
100- - name: LLM Reranker
101- provider: openai
102- model: gpt-4o
103- roles:
104- - rerank
105- ```
106- </TabItem>
107- <TabItem value="json" label="JSON">
108- ```json title="config.json"
109- {
110- "reranker": {
111- "name": "llm",
112- "params": {
113- "modelTitle": "My Model Title"
114- }
115- }
116- }
117- ```
118- </TabItem>
119-</Tabs>
120-
121-The `"modelTitle"` field must match one of the models in your "models" array in config.json.
122-
123-### Text Embeddings Inference
124-
125-[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own [reranker endpoint](https://huggingface.github.io/text-embeddings-inference/#/Text%20Embeddings%20Inference/rerank). You can configure your reranker as follows:
126-
127-<Tabs groupId="config-example">
128- {/* HUB_TODO */}
129- {/* <TabItem value="hub" label="Hub">
130- [HuggingFace TEI Reranker block](https://hub.continue.dev/)
131- </TabItem> */}
132- <TabItem value="yaml" label="YAML">
133- ```yaml title="config.yaml"
134- models:
135- - name: Huggingface-tei Reranker
136- provider: huggingface-tei
137- apiBase: http://localhost:8080
138- apiKey: <YOUR_TEI_API_KEY>
139- roles:
140- - rerank
141- ```
142- </TabItem>
143- <TabItem value="json" label="JSON">
144- ```json title="config.json"
145- {
146- "reranker": {
147- "name": "huggingface-tei",
148- "params": {
149- "apiBase": "http://localhost:8080",
150- "apiKey": "<YOUR_TEI_API_KEY>"
151- }
152- }
153- }
154- ```
155- </TabItem>
156-</Tabs>
deleted docs/docs/advanced/telemetry.mdx +0 −31
@@ -1,31 +0,0 @@
1----
2-title: Telemetry
3-description: Learn how Continue collects anonymous usage information and how you can opt out.
4-keywords: [telemetry, anonymous, usage info, opt out]
5----
6-
7-## Overview
8-
9-The open-source Continue Extensions collect and report **anonymous** usage information to help us improve our product. This data enables us to understand user interactions and optimize the user experience effectively. You can opt out of telemetry collection at any time if you prefer not to share your usage information.
10-
11-We utilize [Posthog](https://posthog.com/), an open-source platform for product analytics, to gather and store this data. For transparency, you can review the implementation code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx) or read our [official privacy policy](https://continue.dev/privacy).
12-
13-## Tracking Policy
14-
15-All data collected by the open-source Continue extensions is anonymized and stripped of personally identifiable information (PII) before being sent to PostHog. We are committed to maintaining the privacy and security of your data.
16-
17-## What We Track
18-
19-The following usage information is collected and reported:
20-
21-- **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved).
22-- **Model and Command Information:** The name of the model and command used.
23-- **Token Metrics:** The number of tokens generated.
24-- **System Information:** The name of your operating system (OS) and integrated development environment (IDE).
25-- **Pageviews:** General pageview statistics.
26-
27-## How to Opt Out
28-
29-You can disable anonymous telemetry by visiting the [User Settings Page](./deep-dives/settings.md) and toggling "Allow Anonymous Telemetry" off.
30-
31-Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut <kbd>ctrl</kbd> + <kbd>,</kbd> on Windows/Linux or <kbd>cmd</kbd> + <kbd>,</kbd> on macOS).
deleted docs/docs/advanced/yaml-migration.mdx +0 −358
@@ -1,358 +0,0 @@
1----
2-title: Config Migration to YAML
3-description: Reference for migrating from JSON to YAML Continue configuration.
4-keywords: [config, yaml, configuration, customize, customization, migration]
5----
6-
7-# Migrating Config to YAML
8-
9-Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from `config.json` to `config.yaml`.
10-
11-See also
12-
13-- [Intro to YAML](https://yaml.org/)
14-- [JSON Continue Config Reference](/reference)
15-- [YAML Continue Config Reference](/reference)
16-
17-## Create YAML file
18-
19-Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current `config.json` file. If a `config.yaml` file is present, it will be loaded instead of `config.json`.
20-
21-Give your configuration a `name` and a `version`:
22-
23-```yaml title="config.yaml"
24-name: my-configuration
25-version: 0.0.1
26-schema: v1
27-```
28-
29-### Models
30-
31-Add all model configurations in `config.json`, including models in `models`, `tabAutocompleteModel`, `embeddingsProvider`, and `reranker`, to the `models` section of your new YAML config file. A new `roles` YAML field specifies which roles a model can be used for, with possible values `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`.
32-
33-- `models` in config should have `roles: [chat]`
34-- `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]`
35-- `embeddingsProvider` in config should have `roles: [embed]`
36-- `reranker` in config should have `roles: [rerank]`
37-- `experimental.modelRoles` is replaced by simply adding roles to the model
38- - `inlineEdit` -> e.g. `roles: [chat, edit]`
39- - `applyCodeBlock` -> e.g. `roles: [chat, apply]`
40-
41-Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#models)
42-
43-Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/reference#models)
44-
45-<!-- TODO - ollama autodetect supported? -->
46-
47-**Before**
48-
49-```json title="config.json""
50-{
51- "models": [
52- {
53- "title": "GPT-4",
54- "provider": "openai",
55- "model": "gpt-4",
56- "apiKey": "<YOUR_OPENAI_API_KEY>",
57- "completionOptions": {
58- "temperature": 0.5,
59- "maxTokens": 2000
60- }
61- },
62- {
63- "title": "Ollama",
64- "provider": "ollama",
65- "model": "AUTODETECT"
66- },
67- {
68- "title": "My Open AI Compatible Model",
69- "provider": "openai",
70- "apiBase": "http://3.3.3.3/v1",
71- "model": "my-openai-compatible-model",
72- "requestOptions": {
73- "headers": { "X-Auth-Token": "<API_KEY>" }
74- }
75- }
76- ],
77- "tabAutocompleteModel": {
78- "title": "My Starcoder",
79- "provider": "ollama",
80- "model": "starcoder2:3b"
81- },
82- "embeddingsProvider": {
83- "provider": "openai",
84- "model": "text-embedding-ada-002",
85- "apiKey": "<YOUR_OPENAI_API_KEY>",
86- "maxEmbeddingChunkSize": 256,
87- "maxEmbeddingBatchSize": 5
88- },
89- "reranker": {
90- "name": "voyage",
91- "params": {
92- "model": "rerank-2",
93- "apiKey": "<YOUR_VOYAGE_API_KEY>"
94- }
95- }
96-}
97-```
98-
99-**After**
100-
101-```yaml title="config.yaml"
102-models:
103- - name: GPT-4
104- provider: openai
105- model: gpt-4
106- apiKey: <YOUR_OPENAI_KEY>
107- defaultCompletionOptions:
108- temperature: 0.5
109- maxTokens: 2000
110- roles:
111- - chat
112- - edit
113-
114- - name: My Voyage Reranker
115- provider: voyage
116- apiKey: <YOUR_VOYAGE_KEY>
117- roles:
118- - rerank
119-
120- - name: My Starcoder
121- provider: ollama
122- model: starcoder2:3b
123- roles:
124- - autocomplete
125-
126- - name: My Ada Embedder
127- provider: openai
128- apiKey: <YOUR_ADA_API_KEY>
129- roles:
130- - embed
131- embedOptions:
132- - maxChunkSize: 256
133- - maxBatchSize: 5
134-
135- - name: Ollama Autodetect
136- provider: ollama
137- model: AUTODETECT
138-
139- - name: My Open AI Compatible Model - Apply
140- provider: openai
141- model: my-openai-compatible-model
142- apiBase: http://3.3.3.3/v1
143- requestOptions:
144- headers:
145- X-Auth-Token: <MY_API_KEY>
146- roles:
147- - chat
148- - apply
149-```
150-
151-Note that the `repoMapFileSelection` experimental model role has been deprecated and is only available in `config.json`.
152-
153-### Context Providers
154-
155-The JSON `contextProviders` field is replaced by the YAML `context` array.
156-
157-- JSON `name` maps to `provider`
158-- JSON `params` map to `params`
159-
160-**Before**
161-
162-```json title="config.json""
163-{
164- "contextProviders": [
165- {
166- "name": "docs"
167- },
168- {
169- "name": "codebase",
170- "params": {
171- "nRetrieve": 30,
172- "nFinal": 3
173- }
174- },
175- {
176- "name": "diff",
177- "params": {}
178- }
179- ]
180-}
181-```
182-
183-**After**
184-
185-```yaml title="config.yaml"
186-context:
187- - provider: docs
188-
189- - provider: codebase
190- params:
191- nRetrieve: 30
192- nFinal: 3
193-
194- - provider: diff
195-```
196-
197-### System Message
198-
199-The `systemMessage` property has been replaced with a `rules` property that takes an array of strings.
200-
201-**Before**
202-
203-```json title="config.json""
204-{
205- "systemMessage": "Always give concise responses"
206-}
207-```
208-
209-**After**
210-
211-```yaml title="config.yaml"
212-rules:
213- - Always give concise responses
214-```
215-
216-### Prompts
217-
218-Rather than with `customCommands`, you can now use the `prompts` field to define custom prompts.
219-
220-**Before**
221-
222-```json title="config.json""
223-{
224- "customCommands": [
225- {
226- "name": "check",
227- "description": "Check for mistakes in my code",
228- "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
229- }
230- ]
231-}
232-```
233-
234-**After**
235-
236-```yaml title="config.yaml"
237-prompts:
238- - name: check
239- description: Check for mistakes in my code
240- prompt: |
241- Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
242- - Syntax errors
243- - Logic errors
244- - Security vulnerabilities
245- - Performance issues
246- - Anything else that looks wrong
247-
248- Once you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found.
249-```
250-
251-### Documentation
252-
253-Documentation is largely the same, but the `title` property has been replaced with `name`. The `startUrl`, `rootUrl`, and `faviconUrl` properties remain.
254-
255-**Before**
256-
257-```json title="config.json""
258-{
259- "docs": [
260- {
261- "startUrl": "https://docs.nestjs.com/",
262- "title": "nest.js"
263- },
264- {
265- "startUrl": "https://mysite.com/docs/",
266- "title": "My site"
267- }
268- ]
269-}
270-```
271-
272-**After**
273-
274-```yaml title="config.yaml"
275-docs:
276- - name: nest.js
277- startUrl: https://docs.nestjs.com/
278-
279- - name: My site
280- startUrl: https://mysite.com/docs/
281-```
282-
283-### MCP Servers
284-
285-**Properties:**
286-
287-- `name` (**required**): The name of the MCP server.
288-- `command` (**required**): The command used to start the server.
289-- `args`: An optional array of arguments for the command.
290-- `env`: An optional map of environment variables for the server process.
291-
292-**Before**
293-
294-```json title="config.json""
295-{
296- "experimental": {
297- "modelContextProtocolServers": [
298- {
299- "transport": {
300- "type": "stdio",
301- "command": "uvx",
302- "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"],
303- "env": {
304- "KEY": "<VALUE>"
305- }
306- }
307- }
308- ]
309- }
310-}
311-```
312-
313-**After**
314-
315-```yaml title="config.yaml"
316-mcpServers:
317- - name: My MCP Server
318- command: uvx
319- args:
320- - mcp-server-sqlite
321- - --db-path
322- - /Users/NAME/test.db
323- env:
324- KEY: <VALUE>
325-```
326-
327----
328-
329-## Deprecated configuration options
330-
331-Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./deep-dives/settings.md) (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
332-
333-See the [JSON Config Reference](/reference) for more information on fully deprecated options.
334-
335-The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent:
336-
337-- Slash commands (JSON `slashCommands`)
338-- top-level `requestOptions`
339-- top-level `completionOptions`
340-- `tabAutocompleteOptions`
341- - `disable`
342- - `maxPromptTokens`
343- - `debounceDelay`
344- - `maxSuffixPercentage`
345- - `prefixPercentage`
346- - `template`
347- - `onlyMyCode`
348-- `analytics`
349-
350-The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI
351-
352-- `customCommands`
353-- `experimental`
354-- `userToken`
355-
356-## New Configuration options
357-
358-The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/reference) for more information.
modified docs/docs/customization/00-overview.mdx +6 −6
@@ -6,11 +6,11 @@
66
77 Continue can be deeply customized. For example you might:
88
9-- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../advanced/model-providers/top-level/openai.mdx).
10-- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](../advanced/model-roles/00-intro.mdx).
11-- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](../advanced/custom-providers.mdx).
12-- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](../advanced/deep-dives/slash-commands.mdx).
13-- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../features/agent/quick-start.mdx). Add custom tools using [MCP Servers](../advanced/deep-dives/mcp.mdx)
9+- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](../customize/model-providers/top-level/openai.mdx).
10+- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](../customize/model-roles/00-intro.mdx).
11+- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](../customize/custom-providers.mdx).
12+- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](../customize/deep-dives/slash-commands.mdx).
13+- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../features/agent/quick-start.mdx). Add custom tools using [MCP Servers](../customize/deep-dives/mcp.mdx)
1414
1515 Whatever you choose, you'll probably start by editing your Assistant.
1616
@@ -21,4 +21,4 @@
2121 ![configure an assistant](/img/configure-continue.png)
2222
2323 - See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hub assistant
24-- See the [Config Deep Dive](../advanced/deep-dives/configuration.md) for more details on configuring local assistants.
24+- See the [Config Deep Dive](../customize/deep-dives/configuration.md) for more details on configuring local assistants.
modified docs/docs/customization/mcp-tools.mdx +2 −2
@@ -18,7 +18,7 @@
1818
1919 ## Learn More
2020
21-Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
21+Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
2222 description: Model Context Protocol servers provide specialized functionality
2323 keywords: [mcp, blocks, model context protocol, integrations, tools]
2424 sidebar_position: 4
@@ -37,4 +37,4 @@
3737
3838 ## Learn More
3939
40-Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
40+Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
modified docs/docs/customization/models.mdx +8 −8
@@ -8,17 +8,17 @@
88
99 These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:
1010
11-- **[Chat](../advanced/model-roles/chat.mdx)**: Power conversational interactions about code and provide detailed guidance
12-- **[Edit](../advanced/model-roles/edit.mdx)**: Handle complex code transformations and refactoring tasks
13-- **[Apply](../advanced/model-roles/apply.mdx)**: Execute targeted code modifications with high accuracy
14-- **[Autocomplete](../advanced/model-roles/autocomplete.md)**: Provide real-time suggestions as developers type
15-- **[Embedding](../advanced/model-roles/embeddings.mdx)**: Transform code into vector representations for semantic search
16-- **[Reranker](../advanced/model-roles/reranking.mdx)**: Improve search relevance by ordering results based on semantic meaning
11+- **[Chat](../customize/model-roles/chat.mdx)**: Power conversational interactions about code and provide detailed guidance
12+- **[Edit](../customize/model-roles/edit.mdx)**: Handle complex code transformations and refactoring tasks
13+- **[Apply](../customize/model-roles/apply.mdx)**: Execute targeted code modifications with high accuracy
14+- **[Autocomplete](../customize/model-roles/autocomplete.md)**: Provide real-time suggestions as developers type
15+- **[Embedding](../customize/model-roles/embeddings.mdx)**: Transform code into vector representations for semantic search
16+- **[Reranker](../customize/model-roles/reranking.mdx)**: Improve search relevance by ordering results based on semantic meaning
1717
1818 ![Model Blocks Overview](/img/model-blocks-overview.png)
1919
2020 ## Learn More
2121
22-Continue supports [many model providers](../advanced/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`.
22+Continue supports [many model providers](../customize/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`.
2323
24-Read more about roles [here](../advanced/model-roles/00-intro.mdx) and view [`models`](/reference#models) in the YAML Reference.
24+Read more about roles [here](../customize/model-roles/00-intro.mdx) and view [`models`](/reference#models) in the YAML Reference.
modified docs/docs/customization/prompts.mdx +1 −1
@@ -18,4 +18,4 @@
1818
1919 ## Learn More
2020
21-Prompt blocks have the same syntax as [prompt files](../advanced/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
21+Prompt blocks have the same syntax as [prompt files](../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
modified docs/docs/customization/rules.mdx +1 −1
@@ -22,4 +22,4 @@
2222
2323 ## Learn More
2424
25-Learn more in the [rules deep dive](../advanced/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details.
25+Learn more in the [rules deep dive](../customize/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details.
added docs/docs/customize/00-overview.mdx +56 −0
@@ -0,0 +1,56 @@
1+---
2+title: Overview
3+description: Deep dive into Continue's advanced features, context providers, and configuration options
4+keywords:
5+ [advanced, context, providers, model providers, configuration, deep dives]
6+---
7+
8+# Advanced Topics
9+
10+Explore Continue's advanced capabilities for power users and complex development scenarios.
11+
12+## Context Providers
13+
14+Master how Continue understands your codebase with powerful context providers for code, documentation, and more.
15+
16+[Explore Context Providers →](./custom-providers)
17+
18+## Context Integration
19+
20+Specialized context features for codebase understanding and documentation integration.
21+
22+[Browse Context Features →](./context/codebase.mdx)
23+
24+## Deep Dives
25+
26+Detailed technical explanations of Continue's internal workings and advanced configuration options.
27+
28+[Read Deep Dives →](./deep-dives/configuration.md)
29+
30+## Model Providers
31+
32+Configure and optimize different AI model providers for your specific needs and infrastructure.
33+
34+[Configure Providers →](./model-providers/top-level/openai.mdx)
35+
36+## Model Roles
37+
38+Understand how different models can be assigned specific roles in your development workflow.
39+
40+[Learn Model Roles →](./model-roles/00-intro.mdx)
41+
42+## Reference
43+
44+Complete configuration reference and API documentation.
45+
46+[View Reference →](/reference)
47+
48+## Troubleshooting
49+
50+Solutions to common issues and debugging techniques.
51+
52+[Get Help →](/troubleshooting)
53+
54+---
55+
56+These advanced topics help you get the most out of Continue in complex development environments.
added docs/docs/customize/context/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Context",
3+ "position": 2
4+}
added docs/docs/customize/context/codebase.mdx +99 −0
@@ -0,0 +1,99 @@
1+---
2+description: Talk to your codebase
3+keywords: [talk, embeddings, reranker, codebase, experimental]
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+# @Codebase
10+
11+Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
12+
13+:::info[`transformers.js cannot be used in JetBrains`]
14+Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-roles/embeddings.mdx).
15+:::
16+
17+Currently, the codebase retrieval feature is available as the "codebase" and "folder" context providers. You can use them by typing `@Codebase` or `@Folder` in the input box, and then asking a question. The contents of the input box will be compared with the embeddings from the rest of the codebase (or folder) to determine relevant files.
18+
19+Here are some common use cases where it can be useful:
20+
21+- Asking high-level questions about your codebase
22+ - "How do I add a new endpoint to the server?"
23+ - "Do we use VS Code's CodeLens feature anywhere?"
24+ - "Is there any code written already to convert HTML to markdown?"
25+- Generate code using existing samples as reference
26+ - "Generate a new React component with a date picker, using the same patterns as existing components"
27+ - "Write a draft of a CLI application for this project using Python's argparse"
28+ - "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`.
29+- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results
30+ - "What is the main purpose of this folder?"
31+ - "How do we use VS Code's CodeLens API?"
32+ - Or any of the above examples, but with `@Folder` instead of `@Codebase`
33+
34+Here are use cases where it is not useful:
35+
36+- When you need the LLM to see _literally every_ file in your codebase
37+ - "Find everywhere where the `foo` function is called"
38+ - "Review our codebase and find any spelling mistakes"
39+- Refactoring
40+ - "Add a new parameter to the `bar` function and update usages"
41+
42+## Configuration
43+
44+There are a few options that let you configure the behavior of the `@codebase` context provider, which are the same for the `@folder` context provider:
45+
46+<Tabs groupId="config-example">
47+ <TabItem value="yaml" label="YAML">
48+ ```yaml title="config.yaml"
49+ context:
50+ - provider: codebase
51+ params:
52+ nRetrieve: 25
53+ nFinal: 5
54+ useReranking: true
55+ ```
56+ </TabItem>
57+ <TabItem value="json" label="JSON">
58+ ```json title="config.json"
59+ {
60+ "contextProviders": [
61+ {
62+ "name": "codebase",
63+ "params": {
64+ "nRetrieve": 25,
65+ "nFinal": 5,
66+ "useReranking": true
67+ }
68+ }
69+ ]
70+ }
71+ ```
72+ </TabItem>
73+</Tabs>
74+
75+### `nRetrieve`
76+
77+Number of results to initially retrieve from vector database (default: 25)
78+
79+### `nFinal`
80+
81+Final number of results to use after re-ranking (default: 5)
82+
83+### `useReranking`
84+
85+Whether to use re-ranking, which will allow initial selection of `nRetrieve` results, then will use an LLM to select the top `nFinal` results (default: true)
86+
87+## Ignore files during indexing
88+
89+Continue respects `.gitignore` files in order to determine which files should not be indexed. If you'd like to exclude additional files, you can add them to a `.continueignore` file, which follows the exact same rules as `.gitignore`.
90+
91+Continue also supports a **global** `.continueignore` file that will be respected for all workspaces, which can be created at `~/.continue/.continueignore`.
92+
93+If you want to see exactly what files Continue has indexed, the metadata is stored in `~/.continue/index/index.sqlite`. You can use a tool like [DB Browser for SQLite](https://sqlitebrowser.org/) to view the `tag_catalog` table within this file.
94+
95+If you need to force a refresh of the index, reload the VS Code window with <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> + "Reload Window".
96+
97+## Repository map
98+
99+Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../custom-providers.mdx#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
added docs/docs/customize/context/documentation.mdx +408 −0
@@ -0,0 +1,408 @@
1+---
2+description: Learn how to access and search your project's documentation directly within Continue
3+keywords:
4+ [
5+ documentation,
6+ indexing,
7+ context provider,
8+ embeddings,
9+ docs,
10+ embedder,
11+ embeddings provider,
12+ documentation,
13+ ]
14+toc_max_heading_level: 5
15+---
16+
17+import TabItem from "@theme/TabItem";
18+import Tabs from "@theme/Tabs";
19+
20+# @Docs
21+
22+The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
23+
24+## Enabling the `@Docs` context provider
25+
26+To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file.
27+
28+<Tabs groupId="config-example">
29+ <TabItem value="yaml" label="YAML">
30+ ```yaml title="config.yaml"
31+ context:
32+ - provider: docs
33+ ```
34+ </TabItem>
35+ <TabItem value="json" label="JSON">
36+ ```json title="config.json"
37+ {
38+ "contextProviders": [
39+ {
40+ "name": "docs"
41+ }
42+ ]
43+ }
44+ ```
45+ </TabItem>
46+</Tabs>
47+
48+## How It Works
49+
50+The `@Docs` context provider works by
51+
52+1. Crawling specified documentation sites
53+2. Generating embeddings for the chunked content
54+3. Storing the embeddings locally on your machine
55+4. Embedding chat input to include similar documentation chunks as context
56+
57+## Indexing Your Own Documentation
58+
59+### Hub `docs` Blocks
60+
61+@Docs uses [`docs` blocks](../../hub/blocks/block-types.md#docs) in Assistants from the hub. Visit the hub to [explore `docs` blocks](https://hub.continue.dev/explore/docs) or [create your own](https://hub.continue.dev/new?type=block&blockType=docs).
62+
63+### Through the `@Docs` Context Provider
64+
65+To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed
66+
67+- from the `@Docs` context provider - type `@Docs` in the chat, hit `Enter`, and search for `Add Docs`
68+- from the `More` page (three dots icon) in the `@docs indexes` section
69+ the `@Docs` context provider.
70+
71+In the **Add Documentation** Form, enter a `Title` and `Start URL` for the site.
72+
73+- `Title`: The name of the documentation site, used for identification in the UI.
74+- `Start URL`: The URL where the indexing process should begin.
75+
76+Indexing will begin upon submission. Progress can be viewed in the form or later in the `@docs indexes` section of the `More` page.
77+
78+Documentation sources may be suggested based on package files in your repo. This currently works for Python `requirements.txt` files and Node.js (Javascript/Typescript) `package.json` files.
79+
80+- Packages with a valid documentation URL (with a `+` icon) can be clicked to immediately kick off indexing
81+- Packages with partial information (with a pen icon) can be clicked to fill the form with the available information
82+- Note that you can hover over the information icon to see where the package suggestion was found.
83+
84+![Add documentation form](/img/docs-form.png)
85+
86+### In a configuration file
87+
88+For bulk documentation site adds or edits, we recommend editing your global configuration file directly. Documentation sites are stored in an array within `docs` in your global configuration, as follows:
89+
90+<Tabs groupId="config-example">
91+ <TabItem value="yaml" label="YAML">
92+ ```yaml title="config.yaml"
93+ docs:
94+ - title: Nest.js
95+ startUrl: https://docs.nestjs.com/
96+ faviconUrl: https://docs.nestjs.com/favicon.ico
97+ ```
98+ </TabItem>
99+ <TabItem value="json" label="JSON">
100+ ```json title="config.json"
101+ {
102+ "docs": [
103+ {
104+ "title": "Nest.js",
105+ "startUrl": "https://docs.nestjs.com/",
106+ "faviconUrl": "https://docs.nestjs.com/favicon.ico"
107+ }
108+ ]
109+ }
110+ ```
111+ </TabItem>
112+</Tabs>
113+
114+See [the config reference](/reference) for all documentation site configuration options.
115+
116+Indexing will re-sync upon saving the configuration file.
117+
118+## Configuration
119+
120+### Using Your Embeddings Provider
121+
122+If you have set up an [embeddings provider](../model-roles/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
123+
124+### Reranking
125+
126+As with [@Codebase context provider configuration](./codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
127+
128+<Tabs groupId="config-example">
129+ <TabItem value="yaml" label="YAML">
130+ ```yaml title="config.yaml"
131+ context:
132+ - provider: docs
133+ params:
134+ nRetrieve: 25 # The number of docs to retrieve from the embeddings query
135+ nFinal: 5 # The number of docs chunks to return IF reranking
136+ useReranking: true # use reranking if a reranker is configured (defaults to true)
137+ ```
138+ </TabItem>
139+ <TabItem value="json" label="JSON">
140+ ```json title="config.json"
141+ {
142+ "contextProviders": [
143+ {
144+ "name": "docs",
145+ "params": {
146+ "nRetrieve": 25, // The number of docs to retrieve from the embeddings query
147+ "nFinal": 5, // The number of docs chunks to return IF reranking
148+ "useReranking": true // use reranking if a reranker is configured (defaults to true)
149+ }
150+ }
151+ ]
152+ }
153+ ```
154+ </TabItem>
155+</Tabs>
156+
157+### GitHub
158+
159+The GitHub API rate limits public requests to 60 per hour. If you want to reliably index GitHub repos, you can add a github token to your config file:
160+
161+<Tabs groupId="config-example">
162+ <TabItem value="yaml" label="YAML">
163+ ```yaml title="config.yaml"
164+ context:
165+ - provider: docs
166+ params:
167+ githubToken: <GITHUB_TOKEN>
168+ ```
169+ </TabItem>
170+ <TabItem value="json" label="JSON">
171+ ```json title="config.json"
172+ {
173+ "contextProviders": [
174+ {
175+ "name": "docs",
176+ "params": {
177+ "githubToken": "github_..."
178+ }
179+ }
180+ ]
181+ }
182+ ```
183+ </TabItem>
184+</Tabs>
185+
186+### Local Crawling
187+
188+By default, Continue crawls documentation sites using a specialized crawling service that provides the best experience for most users and documentation sites.
189+
190+If your documentation is private, you can skip the default crawler and use a local crawler instead by setting `useLocalCrawling` to `true`.
191+
192+<Tabs groupId="config-example">
193+ <TabItem value="yaml" label="YAML">
194+ ```yaml title="config.yaml"
195+ docs:
196+ - title: My Private Docs
197+ startUrl: http://10.2.1.2/docs
198+ faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
199+ useLocalCrawling: true
200+ ```
201+ </TabItem>
202+ <TabItem value="json" label="JSON">
203+ ```json title="config.json"
204+ {
205+ "docs": [
206+ {
207+ "title": "My Private Docs",
208+ "startUrl": "http://10.2.1.2/docs",
209+ "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
210+ "useLocalCrawling": true
211+ }
212+ ]
213+ }
214+ ```
215+ </TabItem>
216+</Tabs>
217+
218+:::info
219+Chromium crawling has been deprecated
220+{/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */}
221+:::
222+
223+Further notes:
224+
225+- If the site is only locally accessible, the default crawler will fail anyways and fall back to the local crawler. `useLocalCrawling` is especially useful if the URL itself is confidential.
226+- For GitHub Repos this has no effect because only the GitHub Crawler will be used, and if the repo is private it can only be accessed with a priveleged GitHub token anyways.
227+
228+## Managing your docs indexes
229+
230+You can view indexing statuses and manage your documentation sites from the `@docs indexes` section of the `More` page (three dots)
231+
232+- Continue does not automatically re-index your docs. Use `Click to re-index` to trigger a reindex for a specific source
233+- While a site is indexing, click `Cancel indexing` to cancel the process
234+- Failed indexing attempts will show an error status bar and icon
235+- Delete a documentation site from your configuration using the trash icon
236+
237+![More Page @docs indexes section](/img/docs-indexes.png)
238+
239+You can also view the overall status of currently indexing docs from a hideable progress bar at the bottom of the chat page
240+
241+![Documentation indexing peek](/img/docs-indexing-peek.png)
242+
243+You can also use the following IDE command to force a re-index of all docs: `Continue: Docs Force Re-Index`.
244+
245+## Examples
246+
247+### VS Code minimal setup
248+
249+The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking.
250+
251+<Tabs groupId="config-example">
252+ <TabItem value="yaml" label="YAML">
253+ ```yaml title="config.yaml"
254+ context:
255+ - provider: docs
256+
257+ docs:
258+ - title: Nest.js
259+ startUrl: https://docs.nestjs.com/
260+ ```
261+ </TabItem>
262+ <TabItem value="json" label="JSON">
263+ ```json title="config.json"
264+ {
265+ "contextProviders": [
266+ {
267+ "name": "docs",
268+ }
269+ ],
270+ "docs": [
271+ {
272+ "title": "Nest.js",
273+ "startUrl": "https://docs.nestjs.com/",
274+ },
275+ ]
276+ }
277+ ```
278+ </TabItem>
279+</Tabs>
280+
281+### Jetbrains minimal setup
282+
283+Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx).
284+
285+<Tabs groupId="config-example">
286+ <TabItem value="yaml" label="YAML">
287+ ```yaml title="config.yaml"
288+ models:
289+ - name: LMStudio embedder
290+ provider: lmstudio
291+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
292+ roles:
293+ - embed
294+ context:
295+ - provider: docs
296+ docs:
297+ - title: Nest.js
298+ startUrl: https://docs.nestjs.com/
299+ ```
300+ </TabItem>
301+ <TabItem value="json" label="JSON">
302+ ```json title="config.json"
303+ {
304+ "contextProviders": [
305+ {
306+ "name": "docs",
307+ }
308+ ],
309+ "docs": [
310+ {
311+ "title": "Nest.js",
312+ "startUrl": "https://docs.nestjs.com/",
313+ },
314+ ],
315+ "embeddingsProvider": {
316+ "provider": "lmstudio",
317+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
318+ }
319+ }
320+ ```
321+ </TabItem>
322+</Tabs>
323+
324+### Full-power setup (VS Code or Jetbrains)
325+
326+The following configuration example includes:
327+
328+- Examples of both public and private documentation sources
329+- A custom embeddings provider
330+- A reranker model available, with reranking parameters customized
331+- A GitHub token to enable GitHub crawling
332+
333+<Tabs groupId="config-example">
334+ <TabItem value="yaml" label="YAML">
335+ ```yaml title="config.yaml"
336+ models:
337+ - name: LMStudio Nomic Text
338+ provider: lmstudio
339+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
340+ roles:
341+ - embed
342+ - name: Voyage Rerank-2
343+ provider: voyage
344+ apiKey: <VOYAGE_API_KEY>
345+ model: rerank-2
346+ roles:
347+ - rerank
348+ context:
349+ - provider: docs
350+ params:
351+ githubToken: <GITHUB_TOKEN>
352+ nRetrieve: 25
353+ nFinal: 5
354+ useReranking: true
355+ docs:
356+ - title: Nest.js
357+ startUrl: https://docs.nestjs.com/
358+ - title: My Private Docs
359+ startUrl: http://10.2.1.2/docs
360+ faviconUrl: http://10.2.1.2/docs/assets/favicon.ico
361+ maxDepth: 4
362+ useLocalCrawling: true
363+ ```
364+ </TabItem>
365+ <TabItem value="json" label="JSON">
366+ ```json title="config.json"
367+ {
368+ "contextProviders": [
369+ {
370+ "name": "docs",
371+ "params": {
372+ "githubToken": "github_...",
373+ "nRetrieve": 25,
374+ "nFinal": 5,
375+ "useReranking": true
376+ }
377+ }
378+ ],
379+ "docs": [
380+ {
381+ "title": "Nest.js",
382+ "startUrl": "https://docs.nestjs.com/"
383+ },
384+ {
385+ "title": "My Private Docs",
386+ "startUrl": "http://10.2.1.2/docs",
387+ "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
388+ "maxDepth": 4,
389+ "useLocalCrawling": true
390+ }
391+ ],
392+ "reranker": {
393+ "name": "voyage",
394+ "params": {
395+ "model": "rerank-2",
396+ "apiKey": "<YOUR_VOYAGE_API_KEY>"
397+ }
398+ },
399+ "embeddingsProvider": {
400+ "provider": "lmstudio",
401+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
402+ }
403+ }
404+ ```
405+ </TabItem>
406+</Tabs>
407+
408+{/* This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../deep-dives/settings.md). */}
added docs/docs/customize/custom-providers.mdx +1059 −0
@@ -0,0 +1,1059 @@
1+---
2+title: Context Providers
3+description: Type '@' to select content to the LLM as context
4+keywords: [context, "@", provider, LLM]
5+---
6+
7+import TabItem from "@theme/TabItem";
8+import Tabs from "@theme/Tabs";
9+
10+Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider.
11+
12+As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
13+
14+![Context Items](/img/context-provider-example.png)
15+
16+## Context blocks
17+
18+You can add context providers to assistants using [`context` blocks](../hub/blocks/block-types.md#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
19+
20+## Built-in Context Providers
21+
22+You can add any built-in context-providers in your config file as shown below:
23+
24+### `@File`
25+
26+Reference any file in your current workspace.
27+
28+<Tabs groupId="config-example">
29+ <TabItem value="yaml" label="YAML">
30+ ```yaml title="config.yaml"
31+ context:
32+ - provider: file
33+ ```
34+ </TabItem>
35+ <TabItem value="json" label="JSON">
36+ ```json title="config.json"
37+ {
38+ "contextProviders": [
39+ {
40+ "name": "file"
41+ }
42+ ]
43+ }
44+ ```
45+ </TabItem>
46+</Tabs>
47+
48+### `@Code`
49+
50+Reference specific functions or classes from throughout your project.
51+
52+<Tabs groupId="config-example">
53+ <TabItem value="yaml" label="YAML">
54+ ```yaml title="config.yaml"
55+ context:
56+ - provider: code
57+ ```
58+ </TabItem>
59+ <TabItem value="json" label="JSON">
60+ ```json title="config.json"
61+ {
62+ "contextProviders": [
63+ {
64+ "name": "code"
65+ }
66+ ]
67+ }
68+ ```
69+ </TabItem>
70+</Tabs>
71+
72+### `@Git Diff`
73+
74+Reference all of the changes you've made to your current branch. This is useful if you want to summarize what you've done or ask for a general review of your work before committing.
75+
76+<Tabs groupId="config-example">
77+ <TabItem value="yaml" label="YAML">
78+ ```yaml title="config.yaml"
79+ context:
80+ - provider: diff
81+ ```
82+ </TabItem>
83+ <TabItem value="json" label="JSON">
84+ ```json title="config.json"
85+ {
86+ "contextProviders": [
87+ {
88+ "name": "diff"
89+ }
90+ ]
91+ }
92+ ```
93+ </TabItem>
94+</Tabs>
95+
96+### `@Current File`
97+
98+Reference the currently open file.
99+
100+<Tabs groupId="config-example">
101+ <TabItem value="yaml" label="YAML">
102+ ```yaml title="config.yaml"
103+ context:
104+ - provider: currentFile
105+ ```
106+ </TabItem>
107+ <TabItem value="json" label="JSON">
108+ ```json title="config.json"
109+ {
110+ "contextProviders": [
111+ {
112+ "name": "currentFile"
113+ }
114+ ]
115+ }
116+ ```
117+ </TabItem>
118+</Tabs>
119+
120+### `@Terminal`
121+
122+Reference the last command you ran in your IDE's terminal and its output.
123+
124+<Tabs groupId="config-example">
125+ <TabItem value="yaml" label="YAML">
126+ ```yaml title="config.yaml"
127+ context:
128+ - provider: terminal
129+ ```
130+ </TabItem>
131+ <TabItem value="json" label="JSON">
132+ ```json title="config.json"
133+ {
134+ "contextProviders": [
135+ {
136+ "name": "terminal"
137+ }
138+ ]
139+ }
140+ ```
141+ </TabItem>
142+</Tabs>
143+
144+### `@Docs`
145+
146+Reference the contents from any documentation site.
147+
148+<Tabs groupId="config-example">
149+ <TabItem value="yaml" label="YAML">
150+ ```yaml title="config.yaml"
151+ context:
152+ - provider: docs
153+ ```
154+ </TabItem>
155+ <TabItem value="json" label="JSON">
156+ ```json title="config.json"
157+ {
158+ "contextProviders": [
159+ {
160+ "name": "docs"
161+ }
162+ ]
163+ }
164+ ```
165+ </TabItem>
166+</Tabs>
167+
168+Note that this will only enable the `@Docs` context provider.
169+
170+To use it, you need to add a documentation site to your config file. See the [docs](./context/documentation.mdx) page for more information.
171+
172+### `@Open`
173+
174+Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
175+
176+<Tabs groupId="config-example">
177+ <TabItem value="yaml" label="YAML">
178+ ```yaml title="config.yaml"
179+ context:
180+ - provider: open
181+ params:
182+ onlyPinned: true
183+ ```
184+ </TabItem>
185+ <TabItem value="json" label="JSON">
186+ ```json title="config.json"
187+ {
188+ "contextProviders": [
189+ {
190+ "name": "open",
191+ "params": {
192+ "onlyPinned": true
193+ }
194+ }
195+ ]
196+ }
197+ ```
198+ </TabItem>
199+</Tabs>
200+
201+### `@Web`
202+
203+Reference relevant pages from across the web, automatically determined from your input.
204+
205+Optionally, set `n` to limit the number of results returned (default 6).
206+
207+<Tabs groupId="config-example">
208+ <TabItem value="yaml" label="YAML">
209+ ```yaml title="config.yaml"
210+ context:
211+ - provider: web
212+ params:
213+ n: 5
214+ ```
215+ </TabItem>
216+ <TabItem value="json" label="JSON">
217+ ```json title="config.json"
218+ {
219+ "contextProviders": [
220+ {
221+ "name": "web",
222+ "params": {
223+ "n": 5
224+ }
225+ }
226+ ]
227+ }
228+ ```
229+ </TabItem>
230+</Tabs>
231+
232+### `@Codebase`
233+
234+Reference the most relevant snippets from your codebase.
235+
236+<Tabs groupId="config-example">
237+ <TabItem value="yaml" label="YAML">
238+ ```yaml title="config.yaml"
239+ context:
240+ - provider: codebase
241+ ```
242+ </TabItem>
243+ <TabItem value="json" label="JSON">
244+ ```json title="config.json"
245+ {
246+ "contextProviders": [
247+ {
248+ "name": "codebase"
249+ }
250+ ]
251+ }
252+ ```
253+ </TabItem>
254+</Tabs>
255+
256+Read more about indexing and retrieval [here](./context/codebase.mdx).
257+
258+### `@Folder`
259+
260+Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
261+
262+<Tabs groupId="config-example">
263+ <TabItem value="yaml" label="YAML">
264+ ```yaml title="config.yaml"
265+ context:
266+ - provider: folder
267+ ```
268+ </TabItem>
269+ <TabItem value="json" label="JSON">
270+ ```json title="config.json"
271+ {
272+ "contextProviders": [
273+ {
274+ "name": "folder"
275+ }
276+ ]
277+ }
278+ ```
279+ </TabItem>
280+</Tabs>
281+
282+### `@Search`
283+
284+Reference the results of codebase search, just like the results you would get from VS Code search.
285+
286+<Tabs groupId="config-example">
287+ <TabItem value="yaml" label="YAML">
288+ ```yaml title="config.yaml"
289+ context:
290+ - provider: search
291+ params:
292+ maxResults: 100 # optional, defaults to 200
293+ ```
294+ </TabItem>
295+ <TabItem value="json" label="JSON">
296+ ```json title="config.json"
297+ {
298+ "contextProviders": [
299+ {
300+ "name": "search",
301+ "params": {
302+ "maxResults": 100 // optional, defaults to 200
303+ }
304+ }
305+ ]
306+ }
307+ ```
308+ </TabItem>
309+</Tabs>
310+
311+This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
312+
313+### `@Url`
314+
315+Reference the markdown converted contents of a given URL.
316+
317+<Tabs groupId="config-example">
318+ <TabItem value="yaml" label="YAML">
319+ ```yaml title="config.yaml"
320+ context:
321+ - provider: url
322+ ```
323+ </TabItem>
324+ <TabItem value="json" label="JSON">
325+ ```json title="config.json"
326+ {
327+ "contextProviders": [
328+ {
329+ "name": "url"
330+ }
331+ ]
332+ }
333+ ```
334+ </TabItem>
335+</Tabs>
336+
337+### `@Clipboard`
338+
339+Reference recent clipboard items
340+
341+<Tabs groupId="config-example">
342+ <TabItem value="yaml" label="YAML">
343+ ```yaml title="config.yaml"
344+ context:
345+ - provider: clipboard
346+ ```
347+ </TabItem>
348+ <TabItem value="json" label="JSON">
349+ ```json title="config.json"
350+ {
351+ "contextProviders": [
352+ {
353+ "name": "clipboard"
354+ }
355+ ]
356+ }
357+ ```
358+ </TabItem>
359+</Tabs>
360+
361+### `@Tree`
362+
363+Reference the structure of your current workspace.
364+
365+<Tabs groupId="config-example">
366+ <TabItem value="yaml" label="YAML">
367+ ```yaml title="config.yaml"
368+ context:
369+ - provider: tree
370+ ```
371+ </TabItem>
372+ <TabItem value="json" label="JSON">
373+ ```json title="config.json"
374+ {
375+ "contextProviders": [
376+ {
377+ "name": "tree"
378+ }
379+ ]
380+ }
381+ ```
382+ </TabItem>
383+</Tabs>
384+
385+### `@Problems`
386+
387+Get Problems from the current file.
388+
389+<Tabs groupId="config-example">
390+ <TabItem value="yaml" label="YAML">
391+ ```yaml title="config.yaml"
392+ context:
393+ - provider: problems
394+ ```
395+ </TabItem>
396+ <TabItem value="json" label="JSON">
397+ ```json title="config.json"
398+ {
399+ "contextProviders": [
400+ {
401+ "name": "problems"
402+ }
403+ ]
404+ }
405+ ```
406+ </TabItem>
407+</Tabs>
408+
409+### `@Debugger`
410+
411+Reference the contents of the local variables in the debugger. Currently only available in VS Code.
412+
413+<Tabs groupId="config-example">
414+ <TabItem value="yaml" label="YAML">
415+ ```yaml title="config.yaml"
416+ context:
417+ - provider: debugger
418+ params:
419+ stackDepth: 3
420+ ```
421+ </TabItem>
422+ <TabItem value="json" label="JSON">
423+ ```json title="config.json"
424+ {
425+ "contextProviders": [
426+ {
427+ "name": "debugger",
428+ "params": {
429+ "stackDepth": 3
430+ }
431+ }
432+ ]
433+ }
434+ ```
435+ </TabItem>
436+</Tabs>
437+
438+Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
439+
440+### `@Repository Map`
441+
442+Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
443+
444+`includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled.
445+
446+<Tabs groupId="config-example">
447+ <TabItem value="yaml" label="YAML">
448+ ```yaml title="config.yaml"
449+ context:
450+ - provider: repo-map
451+ params:
452+ includeSignatures: false # default true
453+ ```
454+ </TabItem>
455+ <TabItem value="json" label="JSON">
456+ ```json title="config.json"
457+ {
458+ "contextProviders": [
459+ {
460+ "name": "repo-map",
461+ "params": {
462+ "includeSignatures": false // default true
463+ }
464+ }
465+ ]
466+ }
467+ ```
468+ </TabItem>
469+</Tabs>
470+
471+Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
472+
473+In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
474+
475+This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
476+
477+### `@Operating System`
478+
479+Reference the architecture and platform of your current operating system.
480+
481+<Tabs groupId="config-example">
482+ <TabItem value="yaml" label="YAML">
483+ ```yaml title="config.yaml"
484+ context:
485+ - provider: os
486+ ```
487+ </TabItem>
488+ <TabItem value="json" label="JSON">
489+ ```json title="config.json"
490+ {
491+ "contextProviders": [
492+ {
493+ "name": "os"
494+ }
495+ ]
496+ }
497+ ```
498+ </TabItem>
499+</Tabs>
500+
501+### Model Context Protocol
502+
503+The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify prompts, context, and tool use. Continue supports any MCP server with the MCP context provider. Read their [quickstart](https://modelcontextprotocol.io/quickstart) to learn how to set up a local server and then set up your configuration like this:
504+
505+<Tabs groupId="config-example">
506+ <TabItem value="yaml" label="YAML">
507+ ```yaml title="config.yaml"
508+ mcpServers:
509+ - name: My MCP Server
510+ command: uvx
511+ args:
512+ - mcp-server-sqlite
513+ - --db-path
514+ - /Users/NAME/test.db
515+ ```
516+ </TabItem>
517+ <TabItem value="json" label="JSON">
518+ ```json title="config.json"
519+ {
520+ "experimental": {
521+ "modelContextProtocolServers": [
522+ {
523+ "transport": {
524+ "type": "stdio",
525+ "command": "uvx",
526+ "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
527+ }
528+ }
529+ ]
530+ }
531+ }
532+ ```
533+ </TabItem>
534+</Tabs>
535+
536+You'll then be able to type "@" and see "MCP" in the context providers dropdown.
537+
538+### `@Issue`
539+
540+Reference the conversation in a GitHub issue.
541+
542+<Tabs groupId="config-example">
543+ <TabItem value="yaml" label="YAML">
544+ ```yaml title="config.yaml"
545+ context:
546+ - provider: issue
547+ params:
548+ repos:
549+ - owner: continuedev
550+ repo: continue
551+ githubToken: ghp_xxx
552+ ```
553+ </TabItem>
554+ <TabItem value="json" label="JSON">
555+ ```json title="config.json"
556+ {
557+ "contextProviders": [
558+ {
559+ "name": "issue",
560+ "params": {
561+ "repos": [
562+ {
563+ "owner": "continuedev",
564+ "repo": "continue"
565+ }
566+ ],
567+ "githubToken": "ghp_xxx"
568+ }
569+ }
570+ ]
571+ }
572+ ```
573+ </TabItem>
574+</Tabs>
575+
576+Make sure to include your own [GitHub personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token) to avoid being rate-limited.
577+
578+### `@Database`
579+
580+Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
581+
582+<Tabs groupId="config-example">
583+ <TabItem value="yaml" label="YAML">
584+ ```yaml title="config.yaml"
585+ context:
586+ - provider: database
587+ params:
588+ connections:
589+ - name: examplePostgres
590+ connection_type: postgres
591+ connection:
592+ user: username
593+ host: localhost
594+ database: exampleDB
595+ password: yourPassword
596+ port: 5432
597+ - name: exampleMssql
598+ connection_type: mssql
599+ connection:
600+ user: username
601+ server: localhost
602+ database: exampleDB
603+ password: yourPassword
604+ - name: exampleSqlite
605+ connection_type: sqlite
606+ connection:
607+ filename: /path/to/your/sqlite/database.db
608+ ```
609+ </TabItem>
610+ <TabItem value="json" label="JSON">
611+ ```json title="config.json"
612+ {
613+ "contextProviders": [
614+ {
615+ "name": "database",
616+ "params": {
617+ "connections": [
618+ {
619+ "name": "examplePostgres",
620+ "connection_type": "postgres",
621+ "connection": {
622+ "user": "username",
623+ "host": "localhost",
624+ "database": "exampleDB",
625+ "password": "yourPassword",
626+ "port": 5432
627+ }
628+ },
629+ {
630+ "name": "exampleMssql",
631+ "connection_type": "mssql",
632+ "connection": {
633+ "user": "username",
634+ "server": "localhost",
635+ "database": "exampleDB",
636+ "password": "yourPassword"
637+ }
638+ },
639+ {
640+ "name": "exampleSqlite",
641+ "connection_type": "sqlite",
642+ "connection": {
643+ "filename": "/path/to/your/sqlite/database.db"
644+ }
645+ }
646+ ]
647+ }
648+ }
649+ ]
650+ }
651+ ```
652+ </TabItem>
653+</Tabs>
654+
655+Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
656+
657+Available connection types:
658+
659+- `postgres`
660+- `mysql`
661+- `sqlite`
662+
663+### `@Postgres`
664+
665+Reference the schema of a table, and some sample rows
666+
667+<Tabs groupId="config-example">
668+ <TabItem value="yaml" label="YAML">
669+ ```yaml title="config.yaml"
670+ context:
671+ - provider: postgres
672+ params:
673+ host: localhost
674+ port: 5436
675+ user: myuser
676+ password: catsarecool
677+ database: animals
678+ schema: public
679+ sampleRows: 3
680+ ```
681+ </TabItem>
682+ <TabItem value="json" label="JSON">
683+ ```json title="config.json"
684+ {
685+ "contextProviders": [
686+ {
687+ "name": "postgres",
688+ "params": {
689+ "host": "localhost",
690+ "port": 5436,
691+ "user": "myuser",
692+ "password": "catsarecool",
693+ "database": "animals",
694+ "schema": "public",
695+ "sampleRows": 3
696+ }
697+ }
698+ ]
699+ }
700+ ```
701+ </TabItem>
702+</Tabs>
703+
704+The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
705+
706+By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
707+
708+[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
709+
710+### `@Google`
711+
712+Reference the results of a Google search.
713+
714+<Tabs groupId="config-example">
715+ <TabItem value="yaml" label="YAML">
716+ ```yaml title="config.yaml"
717+ context:
718+ - provider: google
719+ params:
720+ serperApiKey: <YOUR_SERPER.DEV_API_KEY>
721+ ```
722+ </TabItem>
723+ <TabItem value="json" label="JSON">
724+ ```json title="config.json"
725+ {
726+ "contextProviders": [
727+ {
728+ "name": "google",
729+ "params": {
730+ "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>"
731+ }
732+ }
733+ ]
734+ }
735+ ```
736+ </TabItem>
737+</Tabs>
738+
739+For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
740+
741+Note: You can get an API key for free at [serper.dev](https://serper.dev).
742+
743+### `@Gitlab Merge Request`
744+
745+Reference an open MR for this branch on GitLab.
746+
747+<Tabs groupId="config-example">
748+ <TabItem value="yaml" label="YAML">
749+ ```yaml title="config.yaml"
750+ context:
751+ - provider: gitlab-mr
752+ params:
753+ token: "..."
754+ ```
755+ </TabItem>
756+ <TabItem value="json" label="JSON">
757+ ```json title="config.json"
758+ {
759+ "contextProviders": [
760+ {
761+ "name": "gitlab-mr",
762+ "params": {
763+ "token": "..."
764+ }
765+ }
766+ ]
767+ }
768+ ```
769+ </TabItem>
770+</Tabs>
771+
772+You will need to create a [personal access token](https://docs.gitlab.com/ee/user/profile/personal_access_tokens.html) with the `read_api` scope.
773+
774+#### Using Self-Hosted GitLab
775+
776+You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
777+
778+<Tabs groupId="config-example">
779+ <TabItem value="yaml" label="YAML">
780+ ```yaml title="config.yaml"
781+ context:
782+ - provider: gitlab-mr
783+ params:
784+ token: "..."
785+ domain: "gitlab.example.com"
786+ ```
787+ </TabItem>
788+ <TabItem value="json" label="JSON">
789+ ```json title="config.json"
790+ {
791+ "contextProviders": [
792+ {
793+ "name": "gitlab-mr",
794+ "params": {
795+ "token": "...",
796+ "domain": "gitlab.example.com"
797+ }
798+ }
799+ ]
800+ }
801+ ```
802+ </TabItem>
803+</Tabs>
804+
805+#### Filtering Comments
806+
807+If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
808+
809+### `@Jira`
810+
811+Reference the conversation in a Jira issue.
812+
813+<Tabs groupId="config-example">
814+ <TabItem value="yaml" label="YAML">
815+ ```yaml title="config.yaml"
816+ context:
817+ - provider: jira
818+ params:
819+ domain: company.atlassian.net
820+ token: ATATT...
821+ ```
822+ </TabItem>
823+ <TabItem value="json" label="JSON">
824+ ```json title="config.json"
825+ {
826+ "contextProviders": [
827+ {
828+ "name": "jira",
829+ "params": {
830+ "domain": "company.atlassian.net",
831+ "token": "ATATT..."
832+ }
833+ }
834+ ]
835+ }
836+ ```
837+ </TabItem>
838+</Tabs>
839+
840+Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email.
841+
842+#### Jira Datacenter Support
843+
844+This context provider supports both Jira API version 2 and 3. It will use version 3 by default since
845+that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need
846+to set the API Version to 2 using the `apiVersion` property.
847+
848+<Tabs groupId="config-example">
849+ <TabItem value="yaml" label="YAML">
850+ ```yaml title="config.yaml"
851+ context:
852+ - provider: jira
853+ params:
854+ apiVersion: "2"
855+ ```
856+ </TabItem>
857+ <TabItem value="json" label="JSON">
858+ ```json title="config.json"
859+ {
860+ "contextProviders": [
861+ {
862+ "name": "jira",
863+ "params": {
864+ "apiVersion": "2"
865+ }
866+ }
867+ ]
868+ }
869+ ```
870+ </TabItem>
871+</Tabs>
872+
873+#### Issue Query
874+
875+By default, the following query will be used to find issues:
876+
877+```jql
878+assignee = currentUser() AND resolution = Unresolved order by updated DESC
879+```
880+
881+You can override this query by setting the `issueQuery` parameter.
882+
883+#### Max results
884+
885+You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
886+
887+### `@Discord`
888+
889+Reference the messages in a Discord channel.
890+
891+<Tabs groupId="config-example">
892+ <TabItem value="yaml" label="YAML">
893+ ```yaml title="config.yaml"
894+ context:
895+ - provider: discord
896+ params:
897+ discordKey: "bot token"
898+ guildId: "1234567890"
899+ channels:
900+ - id: "123456"
901+ name: "example-channel"
902+ - id: "678901"
903+ name: "example-channel-2"
904+ ```
905+ </TabItem>
906+ <TabItem value="json" label="JSON">
907+ ```json title="config.json"
908+ {
909+ "contextProviders": [
910+ {
911+ "name": "discord",
912+ "params": {
913+ "discordKey": "bot token",
914+ "guildId": "1234567890",
915+ "channels": [
916+ {
917+ "id": "123456",
918+ "name": "example-channel"
919+ },
920+ {
921+ "id": "678901",
922+ "name": "example-channel-2"
923+ }
924+ ]
925+ }
926+ }
927+ ]
928+ }
929+ ```
930+ </TabItem>
931+</Tabs>
932+
933+Make sure to include your own [Bot Token](https://discord.com/developers/applications), and join it to your related server . If you want more granular control over which channels are searched, you can specify a list of channel IDs to search in. If you don't want to specify any channels, just include the guild id(Server ID) and all channels will be included. The provider only reads text channels.
934+
935+### `@HTTP`
936+
937+The HttpContextProvider makes a POST request to the url passed in the configuration. The server must return 200 OK with a ContextItem object or an array of ContextItems.
938+
939+<Tabs groupId="config-example">
940+ <TabItem value="yaml" label="YAML">
941+ ```yaml title="config.yaml"
942+ context:
943+ - provider: http
944+ params:
945+ url: "https://api.example.com/v1/users"
946+ ```
947+ </TabItem>
948+ <TabItem value="json" label="JSON">
949+ ```json title="config.json"
950+ {
951+ "contextProviders": [
952+ {
953+ "name": "http",
954+ "params": {
955+ "url": "https://api.example.com/v1/users"
956+ }
957+ }
958+ ]
959+ }
960+ ```
961+ </TabItem>
962+</Tabs>
963+
964+The receiving URL should expect to receive the following parameters:
965+
966+```js title="POST parameters"
967+{
968+ query: string,
969+ fullInput: string
970+}
971+```
972+
973+The response 200 OK should be a JSON object with the following structure:
974+
975+```json title="Response"
976+[
977+ {
978+ "name": "",
979+ "description": "",
980+ "content": ""
981+ }
982+]
983+
984+// OR
985+{
986+ "name": "",
987+ "description": "",
988+ "content": ""
989+}
990+```
991+
992+### `@Commits`
993+
994+Reference specific git commit metadata and diff or all of the recent commits.
995+
996+<Tabs groupId="config-example">
997+ <TabItem value="yaml" label="YAML">
998+ ```yaml title="config.yaml"
999+ context:
1000+ - provider: commit
1001+ params:
1002+ Depth: 50
1003+ LastXCommitsDepth: 10
1004+ ```
1005+ </TabItem>
1006+ <TabItem value="json" label="JSON">
1007+ ```json title="config.json"
1008+ {
1009+ "contextProviders": [
1010+ {
1011+ "name": "commit",
1012+ "params": {
1013+ "Depth": 50,
1014+ "LastXCommitsDepth": 10
1015+ }
1016+ }
1017+ ]
1018+ }
1019+ ```
1020+ </TabItem>
1021+</Tabs>
1022+
1023+The depth is how many commits will be loaded into the submenu, defaults to 50.
1024+The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
1025+
1026+### `@Greptile`
1027+
1028+Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
1029+
1030+<Tabs groupId="config-example">
1031+ <TabItem value="yaml" label="YAML">
1032+ ```yaml title="config.yaml"
1033+ context:
1034+ - provider: greptile
1035+ params:
1036+ greptileToken: "..."
1037+ githubToken: "..."
1038+ ```
1039+ </TabItem>
1040+ <TabItem value="json" label="JSON">
1041+ ```json title="config.json"
1042+ {
1043+ "contextProviders": [
1044+ {
1045+ "name": "greptile",
1046+ "params": {
1047+ "GreptileToken": "...",
1048+ "GithubToken": "..."
1049+ }
1050+ }
1051+ ]
1052+ }
1053+ ```
1054+ </TabItem>
1055+</Tabs>
1056+
1057+### Requesting Context Providers
1058+
1059+Not seeing what you want? Create an issue [here](https://github.com/continuedev/continue/issues/new?assignees=TyDunn&labels=enhancement&projects=&template=feature-request-%F0%9F%92%AA.md&title=) to request a new Context Provider.
added docs/docs/customize/deep-dives/_apply.md +16 −0
@@ -0,0 +1,16 @@
1+---
2+description: Learn how to use the Apply feature
3+keywords: [apply, speculative]
4+toc_max_heading_level: 5
5+---
6+
7+<!-- This is a work in progress and excluded by prefixing the file name with an underscore -->
8+
9+# Apply
10+
11+## Instant Diff Apply
12+
13+If you have large files (exeeding the output token of your model) the edit apply will delete all lines that exceed the model window. To mitigate you can instead of applying the changes directly, ask the chat LLM to "generate a unified diff".
14+The resulting diff (if the LLM has not made a mistake) can be instantly applied, changing only the lines that need to change.
15+
16+Explainer Video: https://youtu.be/b7Xxsot4gyw
added docs/docs/customize/deep-dives/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Deep Dives",
3+ "position": 3
4+}
added docs/docs/customize/deep-dives/autocomplete.mdx +162 −0
@@ -0,0 +1,162 @@
1+---
2+title: Autocomplete
3+keywords: [autocomplete]
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+### Setting up with Codestral (recommended)
10+
11+If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config:
12+
13+<Tabs groupId="hub-config-example">
14+ <TabItem value="hub" label="Hub">
15+ [Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
16+ </TabItem>
17+ <TabItem value="yaml" label="YAML">
18+ ```yaml title="config.yaml"
19+ models:
20+ - name: Codestral
21+ provider: mistral
22+ model: codestral-latest
23+ apiKey: <YOUR_CODESTRAL_API_KEY>
24+ roles:
25+ - autocomplete
26+ ```
27+ </TabItem>
28+ <TabItem value="json" label="JSON">
29+ ```json title="config.json"
30+ {
31+ "tabAutocompleteModel": {
32+ "title": "Codestral",
33+ "provider": "mistral",
34+ "model": "codestral-latest",
35+ "apiKey": "<YOUR_CODESTRAL_API_KEY>"
36+ }
37+ }
38+ ```
39+ </TabItem>
40+</Tabs>
41+
42+:::tip[Codestral API Key]
43+The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
44+:::
45+
46+### Setting up with Ollama (default)
47+
48+If you'd like to run your autocomplete model locally, we recommend using Ollama. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model:
49+
50+```bash
51+ollama run qwen2.5-coder:1.5b
52+```
53+
54+Then, add the model to your configuration:
55+
56+<Tabs groupId="hub-config-example">
57+ <TabItem value="hub" label="Hub">
58+ [Ollama Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)
59+ </TabItem>
60+ <TabItem value="yaml" label="YAML">
61+ ```yaml title="config.yaml"
62+ models:
63+ - name: Qwen 1.5b Autocomplete Model
64+ provider: ollama
65+ model: qwen2.5-coder:1.5b
66+ roles:
67+ - autocomplete
68+ ```
69+ </TabItem>
70+ <TabItem value="json" label="JSON">
71+ ```json title="config.json"
72+ {
73+ "tabAutocompleteModel": {
74+ "title": "Qwen 1.5b Autocomplete Model",
75+ "provider": "ollama",
76+ "model": "qwen2.5-coder:1.5b",
77+ }
78+ }
79+ ```
80+ </TabItem>
81+</Tabs>
82+
83+Once the model has been downloaded, you should begin to see completions in VS Code.
84+
85+## Configuration Options
86+
87+### Hub Autocomplete models
88+
89+Explore autocomplete model configurations on [the hub](https://hub.continue.dev/explore/models?roles=autocomplete)
90+
91+### Autocomplete User Settings
92+
93+{/* - `Use autocomplete cache`: If on, caches completions */}
94+The following settings can be configured for autocompletion in the IDE extension [User Settings Page](../settings.md):
95+
96+- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
97+- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt"
98+
99+### `config.json` Configuration
100+
101+The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](/reference) for more details.
102+
103+## FAQs
104+
105+### I want better completions, should I use GPT-4?
106+
107+Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/main/core/autocomplete/templating/AutocompleteTemplate.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
108+
109+### I'm not seeing any completions
110+
111+Follow these steps to ensure that everything is set up correctly:
112+
113+1. Make sure you have the "Enable Tab Autocomplete" setting checked (in VS Code, you can toggle by clicking the "Continue" button in the status bar, and in JetBrains by going to Settings -> Tools -> Continue).
114+2. Make sure you have downloaded Ollama.
115+3. Run `ollama run qwen2.5-coder:1.5b` to verify that the model is downloaded.
116+4. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere.
117+5. Check the output of the logs to find any potential errors: <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> -> "Toggle Developer Tools" -> "Console" tab in VS Code, ~/.continue/logs/core.log in JetBrains.
118+6. Check VS Code settings to make sure that `"editor.inlineSuggest.enabled"` is set to `true` (use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> then search for this and check the box)
119+7. If you are still having issues, please let us know in our [Discord](https://discord.gg/vapESyrFmJ) and we'll help as soon as possible.
120+
121+### Completions are only ever single-line
122+
123+To ensure that you receive multi-line completions, you can set `"multilineCompletions": "always"` in `tabAutocompleteOptions`. By default, it is `"auto"`. If you still find that you are only seeing single-line completions, this may be because some models tend to produce shorter completions when starting in the middle of a file. You can try temporarily moving text below your cursor out of your active file, or switching to a larger model.
124+
125+### Can I configure a "trigger key" for autocomplete?
126+
127+Yes, in VS Code, if you don't want to be shown suggestions automatically you can:
128+
129+1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions
130+2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger`
131+3. Click the "+" icon to add a new keybinding
132+4. Press the key combination you want to use to trigger suggestions (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>)
133+5. Now whenever you want to see a suggestion, you can press your key binding (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>) to trigger suggestions manually
134+
135+### Is there a shortcut to accept one line at a time?
136+
137+This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code:
138+
139+1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
140+2. Search for `editor.action.inlineSuggest.acceptNextLine`.
141+3. Set the key binding to `Tab`.
142+4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
143+ This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
144+ If you need to apply all the code, just press `Tab` multiple times.
145+
146+### How to turn off autocomplete
147+
148+#### VS Code
149+
150+Click the "Continue" button in the status panel at the bottom right of the screen. The checkmark will become a "cancel" symbol and you will no longer see completions. You can click again to turn it back on.
151+
152+Alternatively, open VS Code settings, search for "Continue" and uncheck the box for "Enable Tab Autocomplete".
153+
154+You can also use the default shortcut to disable autocomplete directly using a chord: press and hold <kbd>ctrl/cmd</kbd> + <kbd>K</kbd> (continue holding <kbd>ctrl/cmd</kbd>) and press <kbd>ctrl/cmd</kbd> + <kbd>A</kbd>. This will turn off autocomplete without navigating through settings.
155+
156+#### JetBrains
157+
158+Open Settings -> Tools -> Continue and uncheck the box for "Enable Tab Autocomplete".
159+
160+#### Feedback
161+
162+If you're turning off autocomplete, we'd love to hear how we can improve! Please let us know in our [Discord](https://discord.gg/vapESyrFmJ) or file an issue on GitHub.
added docs/docs/customize/deep-dives/configuration.md +86 −0
@@ -0,0 +1,86 @@
1+---
2+description: Configuration
3+keywords: [config, settings, customize]
4+---
5+
6+# Configuration
7+
8+You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
9+
10+![configure an assistant](/img/configure-continue.png)
11+
12+## Hub Assistants
13+
14+Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
15+
16+## YAML Config
17+
18+Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
19+
20+- `~/.continue/config.yaml` (MacOS / Linux)
21+- `%USERPROFILE%\.continue\config.yaml` (Windows)
22+
23+To open this `config.yaml`, you need to open the assistants dropdown in the top-right portion of the chat input. On that dropdown beside the "Local Assistant" option, select the cog icon. It will open the local `config.yaml`.
24+
25+![local-config-open-steps](/img/local-config-open-steps.png)
26+
27+When editing this file, you can see the available options suggested as you type, or check the reference below. When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
28+
29+See the full reference for `config.yaml` [here](/reference).
30+
31+## Deprecated configuration methods
32+
33+:::info
34+View the `config.json` migration guide [here](../yaml-migration.mdx)
35+:::
36+
37+- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`
38+- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
39+- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema:
40+ - `~/.continue/config.ts` (MacOS / Linux)
41+ - `%USERPROFILE%\.continue\config.ts` (Windows)
42+
43+### `.continuerc.json`
44+
45+The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`.
46+
47+Example
48+
49+```json title=".continuerc.json"
50+{
51+ "tabAutocompleteOptions": {
52+ "disable": true
53+ },
54+ "mergeBehavior": "overwrite"
55+}
56+```
57+
58+### `config.ts`
59+
60+`config.yaml` or `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically extend Continue configuration, you can use a `config.ts` file, placed at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
61+
62+`config.ts` must export a `modifyConfig` function, like:
63+
64+```ts title="config.ts"
65+export function modifyConfig(config: Config): Config {
66+ config.slashCommands?.push({
67+ name: "commit",
68+ description: "Write a commit message",
69+ run: async function* (sdk) {
70+ // The getDiff function takes a boolean parameter that indicates whether
71+ // to include unstaged changes in the diff or not.
72+ const diff = await sdk.ide.getDiff(false); // Pass false to exclude unstaged changes
73+ for await (const message of sdk.llm.streamComplete(
74+ `${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`,
75+ new AbortController().signal,
76+ {
77+ maxTokens: 20,
78+ },
79+ )) {
80+ yield message;
81+ }
82+ },
83+ });
84+ return config;
85+}
86+```
added docs/docs/customize/deep-dives/development-data.md +21 −0
@@ -0,0 +1,21 @@
1+---
2+title: Development Data
3+description: Collecting data on how you build software
4+keywords: [development data, dev data, LLM-aided development]
5+---
6+
7+# Development Data
8+
9+When you use Continue, you automatically collect data on how you build software. By default, this development data is saved to `.continue/dev_data` on your local machine.
10+
11+You can read more about how development data is generated as a byproduct of LLM-aided development and why we believe that you should start collecting it now: [It’s time to collect data on how you build software](https://blog.continue.dev/its-time-to-collect-data-on-how-you-build-software)
12+
13+## Custom Data Destinations
14+
15+You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories.
16+
17+For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data).
18+
19+See more details about adding `data` blocks to your configuration files in the [YAML specification](/reference#data)
20+
21+When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data).
added docs/docs/customize/deep-dives/mcp.mdx +181 −0
@@ -0,0 +1,181 @@
1+---
2+title: MCP
3+description: MCP use and customization
4+keywords: [tool, use, function calling, claude, automatic]
5+---
6+
7+import TabItem from "@theme/TabItem";
8+import Tabs from "@theme/Tabs";
9+
10+# MCP
11+
12+As AI systems get better, they're still held back by their training data and
13+can't access real-time information or specialized tools. The [Model Context
14+Protocol](https://modelcontextprotocol.io/introduction) (MCP) fixes this by
15+letting AI models connect with outside data sources, tools, and environments.
16+This allows smooth sharing of information and abilities between AI systems and
17+the wider digital world. This standard, created by Anthropic to bring together
18+prompts, context, and tool use, is key for building truly useful AI experiences
19+that can be set up with custom tools.
20+
21+## How it works
22+
23+Currently custom tools can be configured using the Model Context
24+Protocol standard to unify prompts, context, and tool use.
25+
26+MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
27+explore available MCP server blocks
28+[here](https://hub.continue.dev/explore/mcp).
29+
30+:::info
31+MCP can only be used in the **agent** mode.
32+:::
33+
34+## Quick Start
35+
36+Below is a quick example of setting up a new MCP server for use in your assistant:
37+
38+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
39+2. Add a file called `playwright-mcp.yaml` to this folder.
40+3. Write the following contents to `playwright-mcp.yaml` and save.
41+
42+```yaml title=".continue/mcpServers/playwright-mcp.yaml"
43+name: Playwright mcpServer
44+version: 0.0.1
45+schema: v1
46+mcpServers:
47+ - name: Browser search
48+ command: npx
49+ args:
50+ - "@playwright/mcp@latest"
51+```
52+
53+Now test your MCP server by prompting the following command:
54+
55+```
56+Open the browser and navigate Hacker News. Save the top 10 headlines in a hn.txt file.
57+```
58+
59+The result will be a generated file called `hn.txt` in the current working directory.
60+
61+![playwright mcp](/img/mcp-playwright.png)
62+
63+## Using MCP Servers
64+
65+To set up your own MCP server, read the [MCP
66+quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
67+`mcpServers`
68+block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a local MCP
69+server block to your [config file](./configuration.md):
70+
71+<Tabs groupId="config.yaml">
72+ <TabItem value="yaml" label="YAML">
73+ ```yaml title="config.yaml"
74+ mcpServers:
75+ - name: SQLite MCP
76+ command: npx
77+ args:
78+ - "-y"
79+ - "mcp-sqlite"
80+ - "/path/to/your/database.db"
81+
82+````
83+</TabItem>
84+<TabItem value="json" label="JSON">
85+```json title="config.json"
86+{
87+ "experimental": {
88+ "modelContextProtocolServers": [
89+ {
90+ "transport": {
91+ "type": "stdio",
92+ "command": "uvx",
93+ "args": ["mcp-server-sqlite", "--db-path", "/path/to/your/database.db"]
94+ }
95+ }
96+ ]
97+ }
98+}
99+````
100+
101+ </TabItem>
102+</Tabs>
103+
104+### Syntax
105+
106+MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
107+
108+- `name` (**required**): A display name for the MCP server.
109+- `command` (**required**): The command to run to start the MCP server.
110+- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
111+- `args` (optional): Arguments to pass to the command.
112+- `env` (optional): Secrets to be injected into the command as environment variables.
113+
114+### Transport Types
115+
116+MCP now supports remote server connections through HTTP-based transports, expanding beyond the traditional local stdio transport method. This enables integration with cloud-hosted MCP servers and distributed architectures.
117+
118+#### Server-Sent Events (SSE) Transport
119+
120+For real-time streaming communication, use the SSE transport:
121+
122+```yaml
123+mcpServers:
124+ - name: Name
125+ type: sse
126+ url: https://....
127+```
128+
129+#### Standard Input/Output (stdio)
130+
131+For local MCP servers that communicate via standard input and output:
132+
133+```yaml
134+mcpServers:
135+ - name: Name
136+ type: stdio
137+ command: npx
138+ args:
139+ - "@modelcontextprotocol/server-sqlite"
140+ - "/path/to/your/database.db"
141+```
142+
143+#### Streamable HTTP Transport
144+
145+For standard HTTP-based communication with streaming capabilities:
146+
147+```yaml
148+mcpServers:
149+ - name: Name
150+ type: streamable-http
151+ url: https://....
152+```
153+
154+These remote transport options allow you to connect to MCP servers hosted on remote infrastructure, enabling more flexible deployment architectures and shared server resources across multiple clients.
155+
156+For detailed information about transport mechanisms and their use cases, refer to the official MCP documentation on [transports](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse).
157+
158+### Working with Secrets
159+
160+With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets
161+as well as access hosted secrets in the Continue Hub. To leverage Hub secrets, you can use the `inputs` property in your MCP env block instead of `secrets`.
162+
163+```yaml
164+mcpServers:
165+ - name: Supabase MCP
166+ command: npx
167+ args:
168+ - -y
169+ - "@supabase/mcp-server-supabase@latest"
170+ - --access-token
171+ - ${{ secrets.SUPABASE_TOKEN }}
172+ env:
173+ SUPABASE_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
174+ - name: GitHub
175+ command: npx
176+ args:
177+ - "-y"
178+ - "@modelcontextprotocol/server-github"
179+ env:
180+ GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
181+```
added docs/docs/customize/deep-dives/prompts.md +58 −0
@@ -0,0 +1,58 @@
1+---
2+title: Prompts
3+---
4+
5+Prompts are reusable instructions that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks.
6+
7+:::info
8+Prompts were previously defined in a `.prompt` file format, but for consistency we now recommend using the same Markdown format as [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered.
9+:::
10+
11+### Quick Start
12+
13+Below is a quick example of setting up a prompt file:
14+
15+1. Create a folder called `.continue/rules` at the top level of your workspace
16+2. Add a file called `review-prompt.md` to this folder.
17+3. Write the following contents to `review-prompt.md` and save.
18+
19+```md title="review-prompt.md"
20+---
21+name: Redux best practices review
22+alwaysApply: false
23+---
24+
25+Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/.
26+```
27+
28+Now to use this prompt, you can open Chat, type <kbd>/</kbd>, select the prompt, and type out any additional instructions you'd like to add.
29+
30+## Further Examples
31+
32+Below are more examples to get you started. You can also visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts).
33+
34+### Security review
35+
36+```md title="security-review.md"
37+---
38+name: Security best practices review
39+alwaysApply: false
40+---
41+
42+Review the changes in the current git diff for these security best practices:
43+
44+- Does the architecture follow security-by-design principles?
45+- Are there potential security vulnerabilities in the system design?
46+- Is sensitive data handled appropriately throughout the lifecycle?
47+```
48+
49+### Pull in commonly used files for tasks
50+
51+```md title="typeorm-entity-generator.md"
52+---
53+name: Generate a new TypeORM entity
54+alwaysApply: false
55+---
56+
57+Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements:
58+```
added docs/docs/customize/deep-dives/rules.mdx +189 −0
@@ -0,0 +1,189 @@
1+---
2+description: Rules are used to provide instructions to the model for Chat, Edit, and Agent requests.
3+keywords: [rules, .continuerules, system, prompt, message]
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+# Rules
10+
11+Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
12+
13+:::info Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
14+:::
15+
16+## How it works
17+
18+You can view the current rules by clicking the pen icon above the main toolbar:
19+
20+![rules input toolbar section](/img/notch-rules.png)
21+
22+To form the system message, rules are joined with new lines, in the order they appear in the toolbar. This includes the base chat system message ([see below](#chat-system-message)).
23+
24+## Quick Start
25+
26+Below is a quick example of setting up a new rule file:
27+
28+1. Create a folder called `.continue/rules` at the top level of your workspace
29+2. Add a file called `pirates-rule.md` to this folder.
30+3. Write the following contents to `pirates-rule.md` and save.
31+
32+```md title=".continue/rules/pirates-rule.md"
33+---
34+name: Pirate rule
35+---
36+
37+- Talk like a pirate.
38+```
39+
40+Now test your rules by asking a question about a file in chat.
41+
42+![pirate rule test](/img/pirate-rule-test.png)
43+
44+## Creating `rules` blocks
45+
46+Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
47+
48+![add local rules button](/img/add-local-rules.png)
49+
50+:::info Automatically create local rule blocks
51+When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled.
52+
53+For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
54+:::
55+
56+Rules can also be added to an Assistant on the Continue Hub.
57+
58+Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
59+
60+### Syntax
61+
62+:::info
63+
64+Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown.
65+
66+:::
67+
68+Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
69+
70+- `name` (**required** for YAML): A display name/title for the rule
71+- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`).
72+- `regex` (optional): When files are provided as context and their content matches this regex pattern, the rule will be included. This can be either a single pattern (e.g., `"^import .* from '.*';$"`) or an array of patterns (e.g., `["^import .* from '.*';$", "^export .* from '.*';$"]`).
73+- `description` (optional): A description for the rule. Agents may read this description when `alwaysApply` is false to determine whether the rule should be pulled into context.
74+- `alwaysApply`: Determines whether the rule is always included. Behavior is described below:
75+ - `true`: Always included, regardless of file context
76+ - `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description
77+ - `undefined` (default behavior): Included if no globs exist OR globs exist and match
78+
79+<Tabs groupId="rules-example">
80+ <TabItem value="md" label="Markdown">
81+ ```yaml title="doc-standards.md"
82+ ---
83+ name: Documentation Standards
84+ globs: docs/**/*.{md,mdx}
85+ alwaysApply: false
86+ description: Standards for writing and maintaining Continue Docs
87+ ---
88+
89+# Continue Docs Standards
90+
91+- Follow Docusaurus documentation standards
92+- Include YAML frontmatter with title, description, and keywords
93+- Use consistent heading hierarchy starting with h2 (##)
94+- Include relevant Admonition components for tips, warnings, and info
95+- Use descriptive alt text for images
96+- Include cross-references to related documentation
97+- Reference other docs with relative paths
98+- Keep paragraphs concise and scannable
99+- Use code blocks with appropriate language tags
100+
101+ ````
102+ </TabItem>
103+ <TabItem value="yaml" label="YAML">
104+
105+ ```yaml title="doc-standards.yaml"
106+ name: Documentation Standards
107+ version: 1.0.0
108+ schema: v1
109+
110+ rules:
111+ - name: Documentation Standards
112+ globs: docs/**/*.{md,mdx}
113+ alwaysApply: false
114+ rule: >
115+ - Follow Docusaurus documentation standards
116+ - Include YAML frontmatter with title, description, and keywords
117+ - Use consistent heading hierarchy starting with h2 (##)
118+ - Include relevant Admonition components for tips, warnings, and info
119+ - Use descriptive alt text for images
120+ - Include cross-references to related documentation
121+ - Reference other docs with relative paths
122+ - Keep paragraphs concise and scannable
123+ - Use code blocks with appropriate language tags
124+ ````
125+
126+ </TabItem>
127+
128+ </Tabs>
129+
130+### `.continue/rules` folder
131+
132+You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files.
133+
134+```md title=".continue/rules/new-rule.md"
135+---
136+name: New rule
137+---
138+
139+Always give concise responses
140+```
141+
142+This is also done when selecting "Add Rule" in the Assistant settings. This will create a new folder in `.continue/rules` with a default file named `new-rule.md`.
143+
144+### Examples
145+
146+If you want concise answers:
147+
148+```md title=".continue/rules/concise-rule.md"
149+---
150+name: Always give concise answers
151+---
152+
153+Please provide concise answers. Don't explain obvious concepts.
154+You can assume that I am knowledgable about most programming topics.
155+```
156+
157+If you want to ensure certain practices are followed, for example in React:
158+
159+```md title=".continue/rules/functional-rule.md"
160+---
161+name: Always use functional components
162+---
163+
164+Whenever you are writing React code, make sure to
165+
166+- use functional components instead of class components
167+- use hooks for state management
168+- define an interface for your component props
169+- use Tailwind CSS for styling
170+- modularize components into smaller, reusable pieces
171+```
172+
173+### Chat System Message
174+
175+Continue includes a simple default system message for [Chat](../../features/chat/quick-start) and [Agent](../../features/agent/quick-start) requests, to help the model provide reliable codeblock formats in its output.
176+
177+This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4).
178+
179+Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
180+
181+### `.continuerules`
182+
183+:::warning
184+
185+`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
186+
187+:::
188+
189+You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
added docs/docs/customize/deep-dives/slash-commands.mdx +33 −0
@@ -0,0 +1,33 @@
1+---
2+title: Slash commands
3+description: Shortcuts that can be activated by prefacing your input with '/'
4+keywords: [slash command, custom commands, step]
5+---
6+
7+import TabItem from "@theme/TabItem";
8+import Tabs from "@theme/Tabs";
9+
10+![actions](/img/actions.gif)
11+
12+## Slash commands
13+
14+Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
15+![slash-commands](/img/slash-commands.png)
16+
17+Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code.
18+
19+## Prompts
20+
21+### Assistant prompt blocks
22+
23+The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works.mdx).
24+
25+### Prompt files
26+
27+It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
28+
29+Learn more about prompt files [here](./prompts.md)
30+
31+### MCP Server prompts
32+
33+Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp.mdx) for more details.
added docs/docs/customize/deep-dives/vscode-actions.md +49 −0
@@ -0,0 +1,49 @@
1+---
2+title: VS Code Actions
3+description: VS Code Actions
4+keywords: [vscode, quick actions, quick, actions]
5+---
6+
7+### Other triggers for Actions (VS Code)
8+
9+:::info
10+Currently all of these are only available in VS Code
11+:::
12+
13+To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
14+
15+## Quick actions
16+
17+Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompts.md) to perform custom actions.
18+
19+![quick-actions](/img/quick-actions.png)
20+
21+By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
22+
23+## Right click actions
24+
25+Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
26+
27+The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
28+
29+Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx).
30+
31+![context-menu](/img/context-menu.png)
32+
33+## Debug action
34+
35+The debug action is a special built-in keyboard shortcut in the VS Code extension. Use <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>R</kbd> to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
36+
37+```
38+I got the following error, can you please help explain how to fix it?
39+
40+[ERROR_MESSAGE]
41+```
42+
43+## Quick fixes
44+
45+Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
46+
47+Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
48+
49+![ask-continue](/img/ask-continue.png)
added docs/docs/customize/json-reference.md +530 −0
@@ -0,0 +1,530 @@
1+---
2+title: config.json Reference
3+description: Reference for the Continue _config.json_ configuration file
4+keywords: [config, config_schema.json, json]
5+---
6+
7+:::info
8+We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](/reference).
9+:::
10+
11+Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json).
12+
13+**All properties at all levels are optional unless explicitly marked required**
14+
15+### `models`
16+
17+Your **chat** models are defined here, which are used for [Chat](/features/chat/how-it-works), [Edit](/features/edit/how-it-works) and [VS Code actions](/customize/deep-dives/vscode-actions).
18+
19+Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json.
20+
21+**Properties:**
22+
23+- `title` (**required**): The title to assign to your model, shown in dropdowns, etc.
24+- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions.
25+- `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models.
26+- `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI.
27+- `apiBase`: The base URL of the LLM API.
28+- `contextLength`: Maximum context length of the model, typically in tokens (default: 2048).
29+- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
30+- `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions.
31+- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. [Customization Guide](https://docs.continue.dev/model-setup/configuration#customizing-the-edit-prompt).
32+- `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override.
33+- `systemMessage`: A system message that will precede responses from the LLM.
34+- `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override.
35+- `apiType`: Specifies the type of API (`openai` or `azure`).
36+- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`).
37+- `engine`: Engine for Azure OpenAI requests.
38+- `capabilities`: Override auto-detected capabilities:
39+ - `uploadImage`: Boolean indicating if the model supports image uploads.
40+ - `tools`: Boolean indicating if the model supports tool use.
41+
42+_(AWS Only)_
43+
44+- `profile`: AWS security profile for authorization.
45+- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider).
46+- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`).
47+
48+Example:
49+
50+```json title="config.json"
51+{
52+ "models": [
53+ {
54+ "title": "Ollama",
55+ "provider": "ollama",
56+ "model": "AUTODETECT"
57+ },
58+ {
59+ "model": "gpt-4o",
60+ "contextLength": 128000,
61+ "title": "GPT-4o",
62+ "provider": "openai",
63+ "apiKey": "YOUR_API_KEY"
64+ }
65+ ]
66+}
67+```
68+
69+### `tabAutocompleteModel`
70+
71+Specifies the model or models for tab autocompletion, defaulting to an Ollama instance. This property uses the same format as `models`. Can be an array of models or an object for one model.
72+
73+Example
74+
75+```json title="config.json"
76+{
77+ "tabAutocompleteModel": {
78+ "title": "My Starcoder",
79+ "provider": "ollama",
80+ "model": "starcoder2:3b"
81+ }
82+}
83+```
84+
85+### `tabAutocompleteOptions`
86+
87+Specifies options for tab autocompletion behavior.
88+
89+**Properties:**
90+
91+- `disable`: If `true`, disables tab autocomplete (default: `false`).
92+- `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`).
93+- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`).
94+- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`).
95+- `prefixPercentage`: Percentage of input for prefix (default: `0.3`).
96+- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables.
97+- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`).
98+
99+Example
100+
101+```json title="config.json"
102+{
103+ "tabAutocompleteOptions": {
104+ "debounceDelay": 500,
105+ "maxPromptTokens": 1500,
106+ "disableInFiles": ["*.md"]
107+ }
108+}
109+```
110+
111+### `embeddingsProvider`
112+
113+Embeddings model settings - the model used for @Codebase and @docs.
114+
115+**Properties:**
116+
117+- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `gemini`, etc
118+- `model`: Model name for embeddings.
119+- `apiKey`: API key for the provider.
120+- `apiBase`: Base URL for API requests.
121+- `requestOptions`: Additional HTTP request settings specific to the embeddings provider.
122+- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
123+- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
124+
125+(AWS ONLY)
126+
127+- `region`: Specifies the region hosting the model.
128+- `profile`: AWS security profile.
129+
130+Example:
131+
132+```json title="config.json"
133+{
134+ "embeddingsProvider": {
135+ "provider": "openai",
136+ "model": "text-embedding-ada-002",
137+ "apiKey": "<API_KEY>",
138+ "maxEmbeddingChunkSize": 256,
139+ "maxEmbeddingBatchSize": 5
140+ }
141+}
142+```
143+
144+### `completionOptions`
145+
146+Parameters that control the behavior of text generation and completion settings. Top-level `completionOptions` apply to all models, _unless overridden at the model level_.
147+
148+**Properties:**
149+
150+- `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`).
151+- `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs.
152+- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass.
153+- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability.
154+- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output.
155+- `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition.
156+- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0).
157+- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions.
158+- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`).
159+- `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`.
160+- `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes).
161+- `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM.
162+- `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
163+- `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models.
164+- `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
165+
166+Example
167+
168+```json title="config.json"
169+{
170+ "completionOptions": {
171+ "stream": false,
172+ "temperature": 0.5
173+ }
174+}
175+```
176+
177+### `requestOptions`
178+
179+Default HTTP request options that apply to all models and context providers, unless overridden at the model level.
180+
181+**Properties:**
182+
183+- `timeout`: Timeout for each request to the LLM (default: 7200 seconds).
184+- `verifySsl`: Whether to verify SSL certificates for requests.
185+- `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths)
186+- `proxy`: Proxy URL to use for HTTP requests.
187+- `headers`: Custom headers for HTTP requests.
188+- `extraBodyProperties`: Additional properties to merge with the HTTP request body.
189+- `noProxy`: List of hostnames that should bypass the specified proxy.
190+- `clientCertificate`: Client certificate for HTTP requests.
191+
192+ - `cert`: Path to the client certificate file.
193+ - `key`: Path to the client certificate key file.
194+ - `passphrase`: Optional passphrase for the client certificate key file.
195+
196+Example
197+
198+```json title="config.json"
199+{
200+ "requestOptions": {
201+ "headers": {
202+ "X-Auth-Token": "xxx"
203+ }
204+ }
205+}
206+```
207+
208+### `reranker`
209+
210+Configuration for the reranker model used in response ranking.
211+
212+**Properties:**
213+
214+- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock`
215+- `params`:
216+ - `model`: Model name
217+ - `apiKey`: Api key
218+ - `region`: Region (for Bedrock only)
219+
220+Example
221+
222+```json title="config.json"
223+{
224+ "reranker": {
225+ "name": "voyage",
226+ "params": {
227+ "model": "rerank-2",
228+ "apiKey": "<VOYAGE_API_KEY>"
229+ }
230+ }
231+}
232+```
233+
234+### `docs`
235+
236+List of documentation sites to index.
237+
238+**Properties:**
239+
240+- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc.
241+- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
242+<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL -->
243+- `maxDepth`: Maximum link depth for crawling. Default `4`
244+- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
245+- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
246+
247+Example
248+
249+```json title="config.json"
250+"docs": [
251+ {
252+ "title": "Continue",
253+ "startUrl": "https://docs.continue.dev/intro",
254+ "faviconUrl": "https://docs.continue.dev/favicon.ico",
255+ }
256+]
257+```
258+
259+### `slashCommands`
260+
261+Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined.
262+
263+**Properties:**
264+
265+- `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review".
266+- `description`: Brief description of the command.
267+- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options.
268+- `params`: Additional parameters to configure command behavior (command-specific - see code for command)
269+
270+The following commands are built-in and can be added to `config.json` to make them visible:
271+
272+#### `/share`
273+
274+Generate a shareable markdown transcript of your current chat history.
275+
276+```json title="config.json"
277+{
278+ "slashCommands": [
279+ {
280+ "name": "share",
281+ "description": "Export the current chat session to markdown",
282+ "params": { "outputDir": "~/.continue/session-transcripts" }
283+ }
284+ ]
285+}
286+```
287+
288+Use the `outputDir` parameter to specify where you want to the markdown file to be saved.
289+
290+#### `/cmd`
291+
292+Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.
293+
294+```json title="config.json"
295+{
296+ "slashCommands": [
297+ {
298+ "name": "cmd",
299+ "description": "Generate a shell command"
300+ }
301+ ]
302+}
303+```
304+
305+#### `/commit`
306+
307+Shows the LLM your current git diff and asks it to generate a commit message.
308+
309+```json title="config.json"
310+{
311+ "slashCommands": [
312+ {
313+ "name": "commit",
314+ "description": "Generate a commit message for the current changes"
315+ }
316+ ]
317+}
318+```
319+
320+#### `/http`
321+
322+Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic [FastAPI example](https://github.com/continuedev/continue/blob/74002369a5e435735b83278fb965e004ae38a97d/core/context/providers/context_provider_server.py#L34-L45) for reference.
323+
324+```json title="config.json"
325+{
326+ "slashCommands": [
327+ {
328+ "name": "http",
329+ "description": "Does something custom",
330+ "params": { "url": "<my server endpoint>" }
331+ }
332+ ]
333+}
334+```
335+
336+#### `/issue`
337+
338+Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.
339+
340+```json title="config.json"
341+{
342+ "slashCommands": [
343+ {
344+ "name": "issue",
345+ "description": "Generate a link to a drafted GitHub issue",
346+ "params": { "repositoryUrl": "https://github.com/continuedev/continue" }
347+ }
348+ ]
349+}
350+```
351+
352+#### `/onboard`
353+
354+The onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.
355+
356+```json title="config.json"
357+{
358+ "slashCommands": [
359+ {
360+ "name": "onboard",
361+ "description": "Familiarize yourself with the codebase"
362+ }
363+ ]
364+}
365+```
366+
367+Example:
368+
369+```json title="config.json"
370+{
371+ "slashCommands": [
372+ {
373+ "name": "commit",
374+ "description": "Generate a commit message"
375+ },
376+ {
377+ "name": "share",
378+ "description": "Export this session as markdown"
379+ },
380+ {
381+ "name": "cmd",
382+ "description": "Generate a shell command"
383+ }
384+ ]
385+}
386+```
387+
388+### `customCommands`
389+
390+User-defined commands for prompt shortcuts in the sidebar, allowing quick access to common actions.
391+
392+**Properties:**
393+
394+- `name`: The name of the custom command.
395+- `prompt`: Text prompt for the command.
396+- `description`: Brief description explaining the command's function.
397+
398+Example:
399+
400+```json title="config.json"
401+{
402+ "customCommands": [
403+ {
404+ "name": "test",
405+ "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.",
406+ "description": "Write unit tests for highlighted code"
407+ }
408+ ]
409+}
410+```
411+
412+### `contextProviders`
413+
414+List of the pre-defined context providers that will show up as options while typing in the chat, and their customization with `params`.
415+
416+**Properties:**
417+
418+- `name`: Name of the context provider, e.g. `docs` or `web`
419+- `params`: A context-provider-specific record of params to configure the context behavior
420+
421+Example
422+
423+```json title="config.json"
424+{
425+ "contextProviders": [
426+ {
427+ "name": "code",
428+ "params": {}
429+ },
430+ {
431+ "name": "docs",
432+ "params": {}
433+ },
434+ {
435+ "name": "diff",
436+ "params": {}
437+ },
438+ {
439+ "name": "open",
440+ "params": {}
441+ }
442+ ]
443+}
444+```
445+
446+### `userToken`
447+
448+An optional token that identifies the user, primarily for authenticated services.
449+
450+### `systemMessage`
451+
452+Defines a system message that appears before every response from the language model, providing guidance or context.
453+
454+### `experimental`
455+
456+Several experimental config parameters are available, as described below:
457+
458+`experimental`:
459+
460+- `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.=
461+- `modelRoles`:
462+ - `inlineEdit`: Model title for inline edits.
463+ - `applyCodeBlock`: Model title for applying code blocks.
464+ - `repoMapFileSelection`: Model title for repo map selections.
465+- `quickActions`: Array of custom quick actions
466+ - `title` (**required**): Display title for the quick action.
467+ - `prompt` (**required**): Prompt for quick action.
468+ - `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`.
469+- `contextMenuPrompts`:
470+ - `comment`: Prompt for commenting code.
471+ - `docstring`: Prompt for adding docstrings.
472+ - `fix`: Prompt for fixing code.
473+ - `optimize`: Prompt for optimizing code.
474+- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools)
475+
476+Example
477+
478+```json title="config.json"
479+{
480+ "experimental": {
481+ "modelRoles": {
482+ "inlineEdit": "Edit Model"
483+ },
484+ "quickActions": [
485+ {
486+ "title": "Tags",
487+ "prompt": "Return a list of any function and class names from the included code block",
488+ "sendToChat": true
489+ }
490+ ],
491+ "contextMenuPrompts": {
492+ "fixGrammar": "Fix grammar in the above but allow for typos."
493+ },
494+ "modelContextProtocolServers": [
495+ {
496+ "transport": {
497+ "type": "stdio",
498+ "command": "uvx",
499+ "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
500+ }
501+ }
502+ ]
503+ }
504+}
505+```
506+
507+### Fully deprecated settings
508+
509+Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](/customize/settings). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
510+
511+- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`).
512+- `promptPath`: This value will override during migration.
513+- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`).
514+- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false
515+- `tabAutocompleteOptions`
516+ - `useCache`: This value will override during migration.
517+ - `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated)
518+ - `multilineCompletions`: This value will override during migration.
519+- `experimental`
520+ - `useChromiumForDocsCrawling`: This value will override during migration.
521+ - `readResponseTTS`: This value will override during migration.
522+- `ui` - all will override during migration
523+
524+ - `codeBlockToolbarPosition`
525+ - `fontSize`
526+ - `codeWrap`
527+ - `displayRawMarkdown`
528+ - `showChatScrollbar`
529+
530+ See [User Settings Page](/customize/settings) for more information about each option.
added docs/docs/customize/model-providers/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Model Providers",
3+ "position": 4
4+}
added docs/docs/customize/model-providers/assets/watsonx2.gif +0 −0

Not shown: the file is larger than the hub shows, or this page holds as much as it shows. View the file.

added docs/docs/customize/model-providers/llamastack.mdx +113 −0
@@ -0,0 +1,113 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Llama Stack
5+
6+[Llama Stack](https://llama-stack.readthedocs.io/en/latest/index.html) is an open-source library that standardizes the core building blocks that simplify AI application development. It codifies best practices across the Llama ecosystem. More specifically, it provides
7+
8+- **Unified API layer** for Inference, RAG, Agents, Tools, Safety, Evals, and Telemetry.
9+- **Plugin architecture** to support the rich ecosystem of different API implementations in various environments, including local development, on-premises, cloud, and mobile.
10+- **Prepackaged verified distributions** which offer a one-stop solution for developers to get started quickly and reliably in any environment.
11+- **Multiple developer interfaces** like CLI and SDKs for Python, Typescript, iOS, and Android.
12+- **Standalone applications** as examples for how to build production-grade AI applications with Llama Stack.
13+
14+To try Llama Stack locally, run:
15+
16+```shell
17+curl -LsSf https://github.com/meta-llama/llama-stack/raw/main/install.sh | bash
18+```
19+
20+Learn more about how to get started with llama stack in this [guide](https://llama-stack.readthedocs.io/en/latest/getting_started/index.html)
21+
22+## Chat model
23+
24+We recommend configuring **Llama 4 Maverick** as your chat model.
25+
26+<Tabs groupId="config-example">
27+ <TabItem value="yaml" label="YAML">
28+ ```yaml title="config.yaml"
29+ models:
30+ - name: Llama4 Maverick
31+ provider: llamastack
32+ model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
33+ apiBase: http://<llama stack endpoint>/v1/openai/v1/
34+ ```
35+ </TabItem>
36+ <TabItem value="json" label="JSON">
37+ ```json title="config.json"
38+ {
39+ "models": [
40+ {
41+ "title": "Llama4 Maverick",
42+ "provider": "llamastack",
43+ "model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",
44+ "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
45+ }
46+ ]
47+ }
48+ ```
49+ </TabItem>
50+</Tabs>
51+
52+## Autocomplete model
53+
54+We recommend configuring **CodeLlama 7B** as your autocomplete model.
55+
56+<Tabs groupId="config-example">
57+ <TabItem value="yaml" label="YAML">
58+ ```yaml title="config.yaml"
59+ models:
60+ - name: CodeLlama 7B
61+ provider: llamastack
62+ model: codellama:7b
63+ apiBase: http://<llama stack endpoint>/v1/openai/v1/
64+ roles:
65+ - autocomplete
66+ ```
67+ </TabItem>
68+ <TabItem value="json" label="JSON">
69+ ```json title="config.json"
70+ {
71+ "tabAutocompleteModel": {
72+ "title": "CodeLlama 7B",
73+ "provider": "llamastack",
74+ "model": "codellama:7b",
75+ "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
76+ }
77+ }
78+ ```
79+ </TabItem>
80+</Tabs>
81+
82+## Embeddings model
83+
84+By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
85+
86+<Tabs groupId="config-example">
87+ <TabItem value="yaml" label="YAML">
88+ ```yaml title="config.yaml"
89+ models:
90+ - name: all-MiniLM-L6-v2
91+ provider: llamastack
92+ model: all-MiniLM-L6-v2
93+ apiBase: http://<llama stack endpoint>/v1/openai/v1/
94+ roles:
95+ - embed
96+ ```
97+ </TabItem>
98+ <TabItem value="json" label="JSON">
99+ ```json title="config.json"
100+ {
101+ "embeddingsProvider": {
102+ "provider": "llamastack",
103+ "model": "all-MiniLM-L6-v2",
104+ "apiBase": "http://<llama stack endpoint>/v1/openai/v1/"
105+ }
106+ }
107+ ```
108+ </TabItem>
109+</Tabs>
110+
111+## Reranking model
112+
113+Llama Stack currently did not support Reranking API yet.
added docs/docs/customize/model-providers/more/SambaNova.mdx +34 −0
@@ -0,0 +1,34 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# SambaNova Cloud
5+
6+The SambaNova Cloud is a cloud platform for running large AI models with the world record open source models performance. You can follow the instructions in [this blog post](https://sambanova.ai/blog/accelerating-coding-with-sambanova-cloud?ref=blog.continue.dev) to configure your setup.
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: SambaNova Llama 4 Scout
13+ provider: sambanova
14+ model: Llama-4-Scout-17B-16E-Instruct
15+ apiKey: <YOUR_SAMBANOVA_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "SambaNova Llama 4 Scout",
24+ "provider": "sambanova",
25+ "model": "Llama-4-Scout-17B-16E-Instruct",
26+ "apiKey": "<YOUR_SAMBANOVA_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)
added docs/docs/customize/model-providers/more/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "More Providers",
3+ "position": 2
4+}
added docs/docs/customize/model-providers/more/asksage.mdx +91 −0
@@ -0,0 +1,91 @@
1+# Ask Sage
2+
3+import TabItem from "@theme/TabItem";
4+import Tabs from "@theme/Tabs";
5+
6+:::info
7+To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs: [Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html)
8+:::
9+
10+## Configuration
11+
12+To use the Ask Sage models, you can use the following
13+
14+<Tabs groupId="config-example">
15+ <TabItem value="yaml" label="YAML">
16+ ```yaml title="config.yaml"
17+ models:
18+ - name: GPT-4 gov
19+ provider: askSage
20+ model: gpt4-gov
21+ apiBase: https://api.asksage.ai/server/
22+ apiKey: <YOUR_ASK_SAGE_API_KEY>
23+ ```
24+ </TabItem>
25+ <TabItem value="json" label="JSON">
26+ ```json title="config.json"
27+ {
28+ "models": [
29+ {
30+ "title": "GPT-4 gov",
31+ "provider": "askSage",
32+ "model": "gpt4-gov",
33+ "apiBase": "https://api.asksage.ai/server/",
34+ "apiKey": "<YOUR_ASK_SAGE_API_KEY>"
35+ }
36+ ]
37+ }
38+ ```
39+ </TabItem>
40+</Tabs>
41+
42+The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:
43+
44+> Server API for query/training etc.:
45+>
46+> - Documentation: https://app.swaggerhub.com/apis-docs/NICOLASCHAILLAN_1/server_ask-sage_api/1.0
47+> - URL for this API is: https://api.asksage.ai/server/
48+
49+## Usage
50+
51+Currently, the setup for the models provided by Ask Sage is to support the following two functionalities provided by Continue.Dev:
52+
53+- `Chat` to understand and iterate on code in the sidebar
54+- `Edit` to modify code without leaving your current file
55+
56+More models, functionalities and documentation will be added in the future for Ask Sage Integration.
57+
58+> We recommend to utilize the `OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
59+
60+## Ask Sage Documentation
61+
62+Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
63+
64+## Current Models From Ask Sage Supported
65+
66+The current Models available provided by Ask Sage are:
67+
68+| Index | Model | Added |
69+| ----- | --------------------- | ----- |
70+| 1 | GPT-4 Gov | ✅ |
71+| 2 | GPT-4o Gov | ✅ |
72+| 3 | GPT-4o-mini Gov | ✅ |
73+| 4 | GPT-3.5-Turbo Gov | ✅ |
74+| 5 | GPT-4o | ✅ |
75+| 6 | GPT-4o-mini | ✅ |
76+| 7 | GPT-4 | ✅ |
77+| 8 | GPT-4-32K | ✅ |
78+| 9 | GPT-o1 | ✅ |
79+| 10 | GPT-o1-mini | ✅ |
80+| 10 | GPT-o3-mini | ✅ |
81+| 11 | GPT-3.5-turbo | ✅ |
82+| 12 | Claude 3.5 Sonnet Gov | ✅ |
83+| 13 | Claude 3 Opus | ✅ |
84+| 14 | Claude 3 Sonet | ✅ |
85+| 15 | Claude 3.5 Sonnet | ✅ |
86+| 16 | Grok (xAI) | ✅ |
87+| 17 | Groq Llama 3.3 | ✅ |
88+| 18 | Groq 70B | ✅ |
89+| 19 | Gemini Pro | ✅ |
90+| 20 | llama 3 | ✅ |
91+| 21 | Mistral Large | ✅ |
added docs/docs/customize/model-providers/more/cerebras.mdx +36 −0
@@ -0,0 +1,36 @@
1+# Cerebras Inference
2+
3+import TabItem from "@theme/TabItem";
4+import Tabs from "@theme/Tabs";
5+
6+Cerebras Inference uses specialized silicon to provides fast inference.
7+
8+1. Create an account in the portal [here](https://cloud.cerebras.ai/).
9+2. Create and copy the API key for use in Continue.
10+3. Update your Continue config file:
11+
12+<Tabs groupId="config-example">
13+ <TabItem value="yaml" label="YAML">
14+ ```yaml title="config.yaml"
15+ models:
16+ - name: Cerebras Llama 3.1 70B
17+ provider: cerebras
18+ model: llama3.1-70b
19+ apiKey: <YOUR_CEREBRAS_API_KEY>
20+ ```
21+ </TabItem>
22+ <TabItem value="json" label="JSON">
23+ ```json title="config.json"
24+ {
25+ "models": [
26+ {
27+ "title": "Cerebras Llama 3.1 70B",
28+ "provider": "cerebras",
29+ "model": "llama3.1-70b",
30+ "apiKey": "<YOUR_CEREBRAS_API_KEY>"
31+ }
32+ ]
33+ }
34+ ```
35+ </TabItem>
36+</Tabs>
added docs/docs/customize/model-providers/more/cloudflare.mdx +87 −0
@@ -0,0 +1,87 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Cloudflare Workers AI
5+
6+Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Llama 3 8B
13+ provider: cloudflare
14+ apiKey: <YOUR_CLOUDFARE_API_KEY>
15+ model: "@cf/meta/llama-3-8b-instruct"
16+ contextLength: 2400
17+ defaultCompletionOptions:
18+ maxTokens: 500
19+ roles:
20+ - chat
21+ env:
22+ accountId: YOUR CLOUDFLARE ACCOUNT ID
23+ - name: DeepSeek Coder 6.7b Instruct
24+ provider: cloudflare
25+ apiKey: <YOUR_CLOUDFARE_API_KEY>
26+ model: "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
27+ contextLength: 2400
28+ defaultCompletionOptions:
29+ maxTokens: 500
30+ roles:
31+ - chat
32+ env:
33+ accountId: YOUR CLOUDFLARE ACCOUNT ID
34+ - name: DeepSeek 7b
35+ provider: cloudflare
36+ apiKey: <YOUR_CLOUDFARE_API_KEY>
37+ model: "@hf/thebloke/deepseek-coder-6.7b-base-awq"
38+ roles:
39+ - autocomplete
40+ env:
41+ accountId: YOUR CLOUDFLARE ACCOUNT ID
42+ ```
43+ </TabItem>
44+ <TabItem value="json" label="JSON">
45+ ```json title="config.json"
46+ {
47+ "models": [
48+ {
49+ "title": "Llama 3 8B",
50+ "provider": "cloudflare",
51+ "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
52+ "apiKey": "YOUR CLOUDFLARE API KEY",
53+ "contextLength": 2400,
54+ "completionOptions": {
55+ "maxTokens": 500
56+ },
57+ "model": "@cf/meta/llama-3-8b-instruct"
58+ },
59+ {
60+ "title": "DeepSeek Coder 6.7b Instruct",
61+ "provider": "cloudflare",
62+ "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
63+ "apiKey": "YOUR CLOUDFLARE API KEY",
64+ "contextLength": 2400,
65+ "completionOptions": {
66+ "maxTokens": 500
67+ },
68+ "model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
69+ }
70+ ],
71+ "tabAutocompleteModel": {
72+ "title": "DeepSeek 7b",
73+ "provider": "cloudflare",
74+ "accountId": "YOUR CLOUDFLARE ACCOUNT ID",
75+ "apiKey": "YOUR CLOUDFLARE API KEY",
76+ "model": "@hf/thebloke/deepseek-coder-6.7b-base-awq"
77+ }
78+ }
79+ ```
80+ </TabItem>
81+</Tabs>
82+
83+Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
84+
85+Review [available models](https://developers.cloudflare.com/workers-ai/models/) on Workers AI
86+
87+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cloudflare.ts)
added docs/docs/customize/model-providers/more/cohere.mdx +102 −0
@@ -0,0 +1,102 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Cohere
5+
6+Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
7+
8+## Chat model
9+
10+We recommend configuring **Command A** as your chat model.
11+
12+<Tabs groupId="config-example">
13+ <TabItem value="yaml" label="YAML">
14+ ```yaml title="config.yaml"
15+ models:
16+ - name: Command A 03-2025
17+ provider: cohere
18+ model: command-a-03-2025
19+ apiKey: <YOUR_COHERE_API_KEY>
20+ ```
21+ </TabItem>
22+ <TabItem value="json" label="JSON">
23+ ```json title="config.json"
24+ {
25+ "models": [
26+ {
27+ "title": "Command A 03-2025",
28+ "provider": "cohere",
29+ "model": "command-a-03-2025",
30+ "apiKey": "<YOUR_COHERE_API_KEY>"
31+ }
32+ ]
33+ }
34+ ```
35+ </TabItem>
36+</Tabs>
37+
38+## Autocomplete model
39+
40+Cohere currently does not offer any autocomplete models.
41+
42+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
43+
44+## Embeddings model
45+
46+We recommend configuring **embed-v4.0** as your embeddings model.
47+
48+<Tabs groupId="config-example">
49+ <TabItem value="yaml" label="YAML">
50+ ```yaml title="config.yaml"
51+ models:
52+ - name: Cohere Embed v4.0
53+ provider: cohere
54+ model: embed-v4.0
55+ apiKey: <YOUR_COHERE_API_KEY>
56+ roles:
57+ - embed
58+ ```
59+ </TabItem>
60+ <TabItem value="json" label="JSON">
61+ ```json title="config.json"
62+ {
63+ "embeddingsProvider": {
64+ "provider": "cohere",
65+ "model": "embed-v4.0",
66+ "apiKey": "<YOUR_COHERE_API_KEY>"
67+ }
68+ }
69+ ```
70+ </TabItem>
71+</Tabs>
72+
73+## Reranking model
74+
75+We recommend configuring **rerank-v3.5** as your reranking model.
76+
77+<Tabs groupId="config-example">
78+ <TabItem value="yaml" label="YAML">
79+ ```yaml title="config.yaml"
80+ models:
81+ - name: Cohere Rerank v3.5
82+ provider: cohere
83+ model: rerank-v3.5
84+ apiKey: <YOUR_COHERE_API_KEY>
85+ roles:
86+ - rerank
87+ ```
88+ </TabItem>
89+ <TabItem value="json" label="JSON">
90+ ```json title="config.json"
91+ {
92+ "reranker": {
93+ "name": "cohere",
94+ "params": {
95+ "model": "rerank-v3.5",
96+ "apiKey": "<YOUR_COHERE_API_KEY>"
97+ }
98+ }
99+ }
100+ ```
101+ </TabItem>
102+</Tabs>
added docs/docs/customize/model-providers/more/deepinfra.mdx +34 −0
@@ -0,0 +1,34 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# DeepInfra
5+
6+[DeepInfra](https://deepinfra.com) provides inference for open-source models at very low cost. To get started with DeepInfra, obtain your API key [here](https://deepinfra.com/dash). Then, find the model you want to use [here](https://deepinfra.com/models?type=text-generation) and copy the name of the model. Continue can then be configured to use the `DeepInfra` LLM class, like the example here:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: DeepInfra
13+ provider: deepinfra
14+ model: mistralai/Mixtral-8x7B-Instruct-v0.1
15+ apiKey: <YOUR_DEEP_INFRA_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "provider": "deepinfra",
24+ "title": "DeepInfra",
25+ "model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
26+ "apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
added docs/docs/customize/model-providers/more/flowise.mdx +34 −0
@@ -0,0 +1,34 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Flowise
5+
6+[Flowise](https://flowiseai.com/) is a low-code/no-code drag & drop tool with the aim to make it easy for people to visualize and build LLM apps. Continue can then be configured to use the `Flowise` LLM class, like the example here:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Flowise
13+ provider: flowise
14+ model: <MODEL>
15+ apiBase: <API_BASE>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "provider": "flowise",
24+ "title": "Flowise",
25+ "model": "<MODEL>",
26+ "apiBase": "<API_BASE>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)
added docs/docs/customize/model-providers/more/function-network.mdx +116 −0
@@ -0,0 +1,116 @@
1+---
2+title: Function Network
3+slug: ../function-network
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+# Function Network
10+
11+> Private, Affordable User-Owned AI
12+
13+:::info
14+
15+To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
16+
17+:::
18+
19+## Chat model
20+
21+Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
22+
23+<Tabs groupId="config-example">
24+ <TabItem value="yaml" label="YAML">
25+ ```yaml title="config.yaml"
26+ models:
27+ - name: Llama 3.1 70b
28+ provider: function-network
29+ model: meta/llama-3.1-70b-instruct
30+ apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
31+ roles:
32+ - chat
33+ ```
34+ </TabItem>
35+ <TabItem value="json" label="JSON">
36+ ```json title="config.json"
37+ {
38+ "models": [
39+ {
40+ "title": "Llama 3.1 70b",
41+ "provider": "function-network",
42+ "model": "meta/llama-3.1-70b-instruct",
43+ "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
44+ }
45+ ]
46+ }
47+ ```
48+ </TabItem>
49+</Tabs>
50+
51+[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
52+
53+## Autocomplete model
54+
55+Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
56+
57+<Tabs groupId="config-example">
58+ <TabItem value="yaml" label="YAML">
59+ ```yaml title="config.yaml"
60+ models:
61+ - name: Deepseek Coder 6.7b
62+ provider: function-network
63+ model: thebloke/deepseek-coder-6.7b-base-awq
64+ apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
65+ roles:
66+ - autocomplete
67+ ```
68+ </TabItem>
69+ <TabItem value="json" label="JSON">
70+ ```json title="config.json"
71+ {
72+ "tabAutocompleteModel": {
73+ "title": "Deepseek Coder 6.7b",
74+ "provider": "function-network",
75+ "model": "thebloke/deepseek-coder-6.7b-base-awq",
76+ "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
77+ }
78+ }
79+ ```
80+ </TabItem>
81+</Tabs>
82+
83+## Embeddings model
84+
85+Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
86+
87+<Tabs groupId="config-example">
88+ <TabItem value="yaml" label="YAML">
89+ ```yaml title="config.yaml"
90+ models:
91+ - name: BGE Base En
92+ provider: function-network
93+ model: baai/bge-base-en-v1.5
94+ apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
95+ roles:
96+ - embed
97+ ```
98+ </TabItem>
99+ <TabItem value="json" label="JSON">
100+ ```json title="config.json"
101+ {
102+ "embeddingsProvider": {
103+ "provider": "function-network",
104+ "model": "baai/bge-base-en-v1.5",
105+ "apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
106+ }
107+ }
108+ ```
109+ </TabItem>
110+</Tabs>
111+
112+[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
113+
114+## Reranking model
115+
116+Function Network currently does not offer any reranking models.
added docs/docs/customize/model-providers/more/groq.mdx +41 −0
@@ -0,0 +1,41 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Groq
5+
6+:::info
7+Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it.
8+:::
9+
10+Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
11+
12+1. Obtain an API key [here](https://console.groq.com/keys)
13+2. Update your Continue config file like this:
14+
15+<Tabs groupId="config-example">
16+ <TabItem value="yaml" label="YAML">
17+ ```yaml title="config.yaml"
18+ models:
19+ - name: Llama 3.3 70b Versatile
20+ provider: groq
21+ model: llama-3.3-70b-versatile
22+ apiKey: <YOUR_GROQ_API_KEY>
23+ roles:
24+ - chat
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "Llama 3.3 70b Versatile",
33+ "provider": "groq",
34+ "model": "llama-3.3-70b-versatile",
35+ "apiKey": "<YOUR_GROQ_API_KEY>"
36+ }
37+ ]
38+ }
39+ ```
40+ </TabItem>
41+</Tabs>
added docs/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx +36 −0
@@ -0,0 +1,36 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# HuggingFace Inference Endpoints
5+
6+Hugging Face Inference Endpoints are an easy way to setup instances of open-source language models on any cloud. Sign up for an account and add billing [here](https://huggingface.co/settings/billing), access the Inference Endpoints [here](https://ui.endpoints.huggingface.co), click on “New endpoint”, and fill out the form (e.g. select a model like [WizardCoder-Python-34B-V1.0](https://huggingface.co/WizardLM/WizardCoder-Python-34B-V1.0)), and then deploy your model by clicking “Create Endpoint”. Change `~/.continue/config.json` to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Hugging Face Inference API
13+ provider: huggingface-inference-api
14+ model: MODEL_NAME
15+ apiKey: <YOUR_HF_TOKEN>
16+ apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
17+ ```
18+ </TabItem>
19+ <TabItem value="json" label="JSON">
20+ ```json title="config.json"
21+ {
22+ "models": [
23+ {
24+ "title": "Hugging Face Inference API",
25+ "provider": "huggingface-inference-api",
26+ "model": "MODEL_NAME",
27+ "apiKey": "<YOUR_HF_TOKEN>",
28+ "apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
29+ }
30+ ]
31+ }
32+ ```
33+ </TabItem>
34+</Tabs>
35+
36+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
added docs/docs/customize/model-providers/more/ipex_llm.mdx +66 −0
@@ -0,0 +1,66 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# IPEX-LLM
5+
6+:::info
7+[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc A-Series, Flex and Max) with very low latency.
8+:::
9+
10+IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows:
11+
12+<Tabs groupId="config-example">
13+ <TabItem value="yaml" label="YAML">
14+ ```yaml title="config.yaml"
15+ models:
16+ - name: IPEX-LLM
17+ provider: ollama
18+ model: AUTODETECT
19+ ```
20+ </TabItem>
21+ <TabItem value="json" label="JSON">
22+ ```json title="config.json"
23+ {
24+ "models": [
25+ {
26+ "title": "IPEX-LLM",
27+ "provider": "ollama",
28+ "model": "AUTODETECT"
29+ }
30+ ]
31+ }
32+ ```
33+ </TabItem>
34+</Tabs>
35+
36+If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
37+
38+<Tabs groupId="config-example">
39+ <TabItem value="yaml" label="YAML">
40+ ```yaml title="config.yaml"
41+ models:
42+ - name: IPEX-LLM
43+ provider: ollama
44+ model: AUTODETECT
45+ apiBase: http://your-ollama-service-ip:11434
46+ ```
47+ </TabItem>
48+ <TabItem value="json" label="JSON">
49+ ```json title="config.json"
50+ {
51+ "models": [
52+ {
53+ "title": "IPEX-LLM",
54+ "provider": "ollama",
55+ "model": "AUTODETECT",
56+ "apiBase": "http://your-ollama-service-ip:11434"
57+ }
58+ ]
59+ }
60+ ```
61+ </TabItem>
62+</Tabs>
63+
64+:::tip
65+If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information.
66+:::
added docs/docs/customize/model-providers/more/kindo.mdx +69 −0
@@ -0,0 +1,69 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Kindo
5+
6+Kindo offers centralized control over your organization's AI operations, ensuring data protection and compliance with internal policies while supporting various commercial and open-source models. To get started, sign up [here](https://app.kindo.ai/), create an API key in [Settings > API > API Keys](https://app.kindo.ai/settings/api), and choose a model from the list of supported models in the "Available Models" tab or copy and paste the config in [Plugins > Your Configuration](https://app.kindo.ai/plugins).
7+
8+## Config Example
9+
10+<Tabs groupId="config-example">
11+ <TabItem value="yaml" label="YAML">
12+ ```yaml title="config.yaml"
13+ models:
14+ - name: Claude 3.5 Sonnet
15+ provider: kindo
16+ model: claude-3-5-sonnet
17+ apiKey: <YOUR_KINDO_API_KEY>
18+ ```
19+ </TabItem>
20+ <TabItem value="json" label="JSON">
21+ ```json title="config.json"
22+ {
23+ "models": [
24+ {
25+ "title": "Claude 3.5 Sonnet",
26+ "provider": "kindo",
27+ "model": "claude-3-5-sonnet",
28+ "apiKey": "<YOUR_KINDO_API_KEY>"
29+ }
30+ ]
31+ }
32+ ```
33+ </TabItem>
34+</Tabs>
35+
36+## Tab Autocomplete Config Example
37+
38+<Tabs groupId="config-example">
39+ <TabItem value="yaml" label="YAML">
40+ ```yaml title="config.yaml"
41+ models:
42+ - name: WhiteRabbitNeo
43+ provider: kindo
44+ model: /models/WhiteRabbitNeo-33B-DeepSeekCoder
45+ apiKey: <YOUR_KINDO_API_KEY>
46+ roles:
47+ - autocomplete
48+ ```
49+ </TabItem>
50+ <TabItem value="json" label="JSON">
51+ ```json title="config.json"
52+ {
53+ "tabAutocompleteModel": [
54+ {
55+ "title": "WhiteRabbitNeo",
56+ "provider": "kindo",
57+ "model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder",
58+ "apiKey": "<YOUR_KINDO_API_KEY>",
59+ "template": "none"
60+ }
61+ ]
62+ }
63+ ```
64+ </TabItem>
65+</Tabs>
66+
67+## Security
68+
69+To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
added docs/docs/customize/model-providers/more/llamacpp.mdx +40 −0
@@ -0,0 +1,40 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# LlamaCpp
5+
6+Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
7+
8+```bash
9+.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
10+```
11+
12+After it's up and running, change `~/.continue/config.json` to look like this:
13+
14+<Tabs groupId="config-example">
15+ <TabItem value="yaml" label="YAML">
16+ ```yaml title="config.yaml"
17+ models:
18+ - name: Llama CPP
19+ provider: llama.cpp
20+ model: MODEL_NAME
21+ apiBase: http://localhost:8080
22+ ```
23+ </TabItem>
24+ <TabItem value="json" label="JSON">
25+ ```json title="config.json"
26+ {
27+ "models": [
28+ {
29+ "title": "Llama CPP",
30+ "provider": "llama.cpp",
31+ "model": "MODEL_NAME",
32+ "apiBase": "http://localhost:8080"
33+ }
34+ ]
35+ }
36+ ```
37+ </TabItem>
38+</Tabs>
39+
40+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
added docs/docs/customize/model-providers/more/llamafile.mdx +32 −0
@@ -0,0 +1,32 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# Llamafile
5+
6+A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contained binary that can run an open-source LLM. You can configure this provider in your config.json as follows:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Llamafile
13+ provider: llamafile
14+ model: mistral-7b
15+ ```
16+ </TabItem>
17+ <TabItem value="json" label="JSON">
18+ ```json title="config.json"
19+ {
20+ "models": [
21+ {
22+ "title": "Llamafile",
23+ "provider": "llamafile",
24+ "model": "mistral-7b"
25+ }
26+ ]
27+ }
28+ ```
29+ </TabItem>
30+</Tabs>
31+
32+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)
added docs/docs/customize/model-providers/more/lmstudio.mdx +88 −0
@@ -0,0 +1,88 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# LM Studio
5+
6+[LM Studio](https://lmstudio.ai) is an application for Mac, Windows, and Linux that makes it easy to locally run open-source models and comes with a great UI. To get started with LM Studio, download from the website, use the UI to download a model, and then start the local inference server. Continue can then be configured to use the `LMStudio` LLM class:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: LM Studio
13+ provider: lmstudio
14+ model: llama2-7b
15+ ```
16+ </TabItem>
17+ <TabItem value="json" label="JSON">
18+ ```json title="config.json"
19+ {
20+ "models": [
21+ {
22+ "title": "LM Studio",
23+ "provider": "lmstudio",
24+ "model": "llama2-7b"
25+ }
26+ ]
27+ }
28+ ```
29+ </TabItem>
30+</Tabs>
31+
32+### Embeddings model
33+
34+LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
35+
36+<Tabs groupId="config-example">
37+ <TabItem value="yaml" label="YAML">
38+ ```yaml title="config.yaml"
39+ models:
40+ - name: Nomic Embed Text
41+ provider: lmstudio
42+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
43+ roles:
44+ - embed
45+ ```
46+ </TabItem>
47+ <TabItem value="json" label="JSON">
48+ ```json title="config.json"
49+ {
50+ "embeddingsProvider": {
51+ "provider": "lmstudio",
52+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
53+ }
54+ }
55+ ```
56+ </TabItem>
57+</Tabs>
58+
59+## Setting up a remote instance
60+
61+To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
62+
63+<Tabs groupId="config-example">
64+ <TabItem value="yaml" label="YAML">
65+ ```yaml title="config.yaml"
66+ models:
67+ - name: Nomic Embed Text
68+ provider: lmstudio
69+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
70+ roles:
71+ - embed
72+ ```
73+ </TabItem>
74+ <TabItem value="json" label="JSON">
75+ ```json title="config.json"
76+ {
77+ "embeddingsProvider": {
78+ "provider": "lmstudio",
79+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
80+ }
81+ }
82+ ```
83+ </TabItem>
84+</Tabs>
85+
86+This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
87+
88+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
added docs/docs/customize/model-providers/more/moonshot.mdx +94 −0
@@ -0,0 +1,94 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Moonshot
5+
6+[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
7+
8+## Configuration
9+
10+To use Moonshot AI models, you need to:
11+
12+1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
13+2. Add the following configuration:
14+
15+<Tabs groupId="config-example">
16+ <TabItem value="yaml" label="YAML">
17+ ```yaml title="config.yaml"
18+ models:
19+ - name: Moonshot
20+ provider: moonshot
21+ model: moonshot-v1-8k
22+ apiKey: <YOUR_MOONSHOT_API_KEY>
23+ ```
24+ </TabItem>
25+ <TabItem value="json" label="JSON">
26+ ```json title="config.json"
27+ {
28+ "models": [
29+ {
30+ "title": "Moonshot",
31+ "provider": "moonshot",
32+ "model": "moonshot-v1-8k",
33+ "apiKey": "<YOUR_MOONSHOT_API_KEY>"
34+ }
35+ ]
36+ }
37+ ```
38+ </TabItem>
39+</Tabs>
40+
41+## Available Models
42+
43+Moonshot AI currently provides the following models:
44+
45+- `moonshot-v1-8k`: Base model with 8K context window
46+- `moonshot-v1-32k`: Base model with 32K context window
47+- `moonshot-v1-128k`: Base model with 128K context window
48+
49+## Configuration Options
50+
51+| Option | Description | Default |
52+| --------- | ----------------- | ----------------------------- |
53+| `apiKey` | Moonshot API key | Required |
54+| `apiBase` | API base URL | `https://api.moonshot.cn/v1/` |
55+| `model` | Model name to use | `moonshot-v1-8k` |
56+
57+## Example
58+
59+Here's a complete configuration example:
60+
61+<Tabs groupId="config-example">
62+ <TabItem value="yaml" label="YAML">
63+ ```yaml title="config.yaml"
64+ models:
65+ - name: Moonshot-8K
66+ provider: moonshot
67+ model: moonshot-v1-8k
68+ apiKey: <YOUR_MOONSHOT_API_KEY>
69+ defaultCompletionOptions:
70+ temperature: 0.7
71+ topP: 0.95
72+ maxTokens: 2048
73+ ```
74+ </TabItem>
75+ <TabItem value="json" label="JSON">
76+ ```json title="config.json"
77+ {
78+ "models": [
79+ {
80+ "title": "Moonshot-8K",
81+ "provider": "moonshot",
82+ "model": "moonshot-v1-8k",
83+ "apiKey": "<YOUR_MOONSHOT_API_KEY>",
84+ "completionOptions": {
85+ "temperature": 0.7,
86+ "topP": 0.95,
87+ "maxTokens": 2048
88+ }
89+ }
90+ ]
91+ }
92+ ```
93+ </TabItem>
94+</Tabs>
added docs/docs/customize/model-providers/more/morph.mdx +112 −0
@@ -0,0 +1,112 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# Morph
5+
6+Morph provides a fast apply model that helps you quickly and accurately apply code changes from chat suggestions to your files. It's optimized for speed and precision when integrating generated code into your existing codebase. You can sign up for Morph's generous free tier [here](https://morphllm.com/dashboard). Then, update your configuration file as follows:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - uses: morphllm/morph-v0
13+ with:
14+ MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
15+```
16+or
17+```yaml title="config.yaml"
18+ - name: Morph Fast Apply
19+ provider: openai
20+ model: morph-v2
21+ apiKey: <YOUR_MORPH_API_KEY>
22+ apiBase: https://api.morphllm.com/v1/
23+ roles:
24+ - apply
25+ promptTemplates:
26+ apply: "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Morph Fast Apply",
35+ "provider": "openai",
36+ "model": "morph-v2",
37+ "apiKey": "<YOUR_MORPH_API_KEY>",
38+ "apiBase": "https://api.morphllm.com/v1/",
39+ "roles": ["apply"],
40+ "promptTemplates": {
41+ "apply": "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
42+ }
43+ }
44+ ]
45+ }
46+ ```
47+ </TabItem>
48+</Tabs>
49+
50+## Embeddings model
51+
52+We recommend configuring **morph-embedding-v2** as your embeddings model.
53+
54+<Tabs groupId="config-example">
55+ <TabItem value="yaml" label="YAML">
56+ ```yaml title="config.yaml"
57+ models:
58+ - name: Morph Embeddings
59+ provider: openai
60+ model: morph-embedding-v2
61+ apiKey: <YOUR_MORPH_API_KEY>
62+ apiBase: https://api.morphllm.com/v1/
63+ roles:
64+ - embed
65+ ```
66+ </TabItem>
67+ <TabItem value="json" label="JSON">
68+ ```json title="config.json"
69+ {
70+ "embeddingsProvider": {
71+ "provider": "openai",
72+ "model": "morph-embedding-v2",
73+ "apiKey": "<YOUR_MORPH_API_KEY>",
74+ "apiBase": "https://api.morphllm.com/v1/"
75+ }
76+ }
77+ ```
78+ </TabItem>
79+</Tabs>
80+
81+## Reranking model
82+
83+We recommend configuring **morph-rerank-v2** as your reranking model.
84+
85+<Tabs groupId="config-example">
86+ <TabItem value="yaml" label="YAML">
87+ ```yaml title="config.yaml"
88+ models:
89+ - name: Morph Reranker
90+ provider: cohere
91+ model: morph-rerank-v2
92+ apiKey: <YOUR_MORPH_API_KEY>
93+ apiBase: https://api.morphllm.com/v1/
94+ roles:
95+ - rerank
96+ ```
97+ </TabItem>
98+ <TabItem value="json" label="JSON">
99+ ```json title="config.json"
100+ {
101+ "reranker": {
102+ "name": "cohere",
103+ "params": {
104+ "model": "morph-rerank-v2",
105+ "apiKey": "<YOUR_MORPH_API_KEY>",
106+ "apiBase": "https://api.morphllm.com/v1/"
107+ }
108+ }
109+ }
110+ ```
111+ </TabItem>
112+</Tabs>
added docs/docs/customize/model-providers/more/msty.mdx +79 −0
@@ -0,0 +1,79 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Msty
5+
6+[Msty](https://msty.app/) is an application for Windows, Mac, and Linux that makes it really easy to run online as well as local open-source models, including Llama-2, DeepSeek Coder, etc. No need to fidget with your terminal, run a command, or anything. Just download the app from the website, click a button, and you are up and running. Continue can then be configured to use the `Msty` LLM class:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Msty
13+ provider: msty
14+ model: deepseek-coder:6.7b
15+ ```
16+ </TabItem>
17+ <TabItem value="json" label="JSON">
18+ ```json title="config.json"
19+ {
20+ "models": [
21+ {
22+ "title": "Msty",
23+ "provider": "msty",
24+ "model": "deepseek-coder:6.7b",
25+ }
26+ ]
27+ }
28+ ```
29+ </TabItem>
30+</Tabs>
31+
32+## Completion Options
33+
34+In addition to the model type, you can also configure some of the parameters that Msty uses to run the model.
35+
36+- temperature: options.temperature - This is a parameter that controls the randomness of the generated text. Higher values result in more creative but potentially less coherent outputs, while lower values lead to more predictable and focused outputs.
37+- top_p: options.topP - This sets a threshold (between 0 and 1) to control how diverse the predicted tokens should be. The model generates tokens that are likely according to their probability distribution, but also considers the top-k most probable tokens.
38+- top_k: options.topK - This parameter limits the number of unique tokens to consider when generating the next token in the sequence. Higher values increase the variety of generated sequences, while lower values lead to more focused outputs.
39+- num_predict: options.maxTokens - This determines the maximum number of tokens (words or characters) to generate for the given input prompt.
40+- num_thread: options.numThreads - This is the multi-threading configuration option that controls how many threads the model uses for parallel processing. Higher values may lead to faster generation times but could also increase memory usage and complexity. Set this to one or two lower than the number of threads your CPU can handle to leave some for your GUI when running the model locally.
41+- use_mmap: options.useMmap - For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
42+
43+## Authentication
44+
45+If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
46+
47+<Tabs groupId="config-example">
48+ <TabItem value="yaml" label="YAML">
49+ ```yaml title="config.yaml"
50+ models:
51+ - name: Msty
52+ provider: msty
53+ model: deepseek-coder:6.7b
54+ requestOptions:
55+ headers:
56+ Authorization: Bearer xxx
57+ ```
58+ </TabItem>
59+ <TabItem value="json" label="JSON">
60+ ```json title="config.json"
61+ {
62+ "models": [
63+ {
64+ "title": "Msty",
65+ "provider": "msty",
66+ "model": "deepseek-coder:6.7b",
67+ "requestOptions": {
68+ "headers": {
69+ "Authorization": "Bearer xxx"
70+ }
71+ }
72+ }
73+ ]
74+ }
75+ ```
76+ </TabItem>
77+</Tabs>
78+
79+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts)
added docs/docs/customize/model-providers/more/ncompass.mdx +34 −0
@@ -0,0 +1,34 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# nCompass
5+
6+The nCompass Technologies API exposes an extremely fast inference engine for open-source language models. You can sign up [here](https://app.ncompass.tech/api-settings), copy your API key on the initial welcome screen, and then hit the play button on any model from the [nCompass Models list](https://ncompass.tech/models). Change `~/.continue/config.json` to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="Package or config.yaml"
11+ models:
12+ - name: Ncompass Gemma 3 Coder
13+ provider: ncompass
14+ model: google/gemma-3-27b-it
15+ apiKey: <YOUR_NCOMPASS_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "Ncompass Gemma 3 Coder",
24+ "provider": "ncompass",
25+ "model": "google/gemma-3-27b-it",
26+ "apiKey": "<YOUR_NCOMPASS_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/NCompass.ts)
added docs/docs/customize/model-providers/more/nebius.mdx +67 −0
@@ -0,0 +1,67 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Nebius AI Studio
5+
6+You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
7+
8+## Availible models
9+
10+Available models can be found on the [Nebius AI Studio models page](https://studio.nebius.ai/models/text2text)
11+
12+## Chat model
13+
14+<Tabs groupId="config-example">
15+ <TabItem value="yaml" label="YAML">
16+ ```yaml title="config.yaml"
17+ models:
18+ - name: DeepSeek R1
19+ provider: nebius
20+ model: deepseek-ai/DeepSeek-R1
21+ apiKey: <YOUR_NEBIUS_API_KEY>
22+ ```
23+ </TabItem>
24+ <TabItem value="json" label="JSON">
25+ ```json title="config.json"
26+ {
27+ "models": [
28+ {
29+ "title": "DeepSeek R1",
30+ "provider": "nebius",
31+ "model": "deepseek-ai/DeepSeek-R1",
32+ "apiKey": "<YOUR_NEBIUS_API_KEY>"
33+ }
34+ ]
35+ }
36+ ```
37+ </TabItem>
38+</Tabs>
39+
40+## Embeddings model
41+
42+Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding)
43+
44+<Tabs groupId="config-example">
45+ <TabItem value="yaml" label="YAML">
46+ ```yaml title="config.yaml"
47+ models:
48+ - name: BAAI Embedder
49+ provider: nebius
50+ model: BAAI/bge-en-icl
51+ apiKey: <YOUR_NEBIUS_API_KEY>
52+ roles:
53+ - embed
54+ ```
55+ </TabItem>
56+ <TabItem value="json" label="JSON">
57+ ```json title="config.json"
58+ {
59+ "embeddingsProvider": {
60+ "provider": "nebius",
61+ "model": "BAAI/bge-en-icl",
62+ "apiKey": "<YOUR_NEBIUS_API_KEY>"
63+ }
64+ }
65+ ```
66+ </TabItem>
67+</Tabs>
added docs/docs/customize/model-providers/more/novita.mdx +34 −0
@@ -0,0 +1,34 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Novita
5+
6+[Novita AI](https://novita.ai?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) offers an affordable, reliable, and simple inference platform with scalable [LLM API](https://novita.ai/docs/model-api/reference/introduction.html), empowering developers to build AI applications. Try the [Novita AI Llama 3 API Demo](https://novita.ai/model-api/product/llm-api/playground/meta-llama-llama-3.1-70b-instruct?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link) today!. You can sign up [here](https://novita.ai/user/login?&redirect=/&utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), copy your API key on the [Key Management](https://novita.ai/settings/key-management?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link), and then hit the play button on any model from the [Novita AI Models list](https://novita.ai/llm-api?utm_source=github_continuedev&utm_medium=github_readme&utm_campaign=github_link). Change `~/.continue/config.json` to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Llama 3.1 8B
13+ provider: novita
14+ model: meta-llama/llama-3.1-8b-instruct
15+ apiKey: <YOUR_NOVITA_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "Llama 3.1 8B",
24+ "provider": "novita",
25+ "model": "meta-llama/llama-3.1-8b-instruct",
26+ "apiKey": "<YOUR_NOVITA_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
added docs/docs/customize/model-providers/more/nvidia.mdx +81 −0
@@ -0,0 +1,81 @@
1+---
2+title: NVIDIA
3+---
4+
5+import TabItem from "@theme/TabItem";
6+import Tabs from "@theme/Tabs";
7+
8+:::info
9+[View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) to learn how to get an API key.
10+:::
11+
12+## Chat model
13+
14+We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
15+
16+<Tabs groupId="config-example">
17+ <TabItem value="yaml" label="YAML">
18+ ```yaml title="config.yaml"
19+ models:
20+ - name: Nemotron-4-340B-Instruct
21+ provider: nvidia
22+ model: nvidia-nemotron-4-340b-instruct
23+ apiKey: <YOUR_NVIDIA_API_KEY>
24+ ```
25+ </TabItem>
26+ <TabItem value="json" label="JSON">
27+ ```json title="config.json"
28+ {
29+ "models": [
30+ {
31+ "title": "Nemotron-4-340B-Instruct",
32+ "provider": "nvidia",
33+ "model": "nvidia-nemotron-4-340b-instruct",
34+ "apiKey": "<YOUR_NVIDIA_API_KEY>"
35+ }
36+ ]
37+ }
38+ ```
39+ </TabItem>
40+</Tabs>
41+
42+## Autocomplete model
43+
44+NVIDIA currently does not offer any autocomplete models.
45+
46+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
47+
48+## Embeddings model
49+
50+We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
51+
52+<Tabs groupId="config-example">
53+ <TabItem value="yaml" label="YAML">
54+ ```yaml title="config.yaml"
55+ models:
56+ - name: Nvidia Embedder
57+ provider: nvidia
58+ model: nvidia/nv-embedqa-mistral-7b-v2
59+ apiKey: <YOUR_NVIDIA_API_KEY>
60+ roles:
61+ - embed
62+ ```
63+ </TabItem>
64+ <TabItem value="json" label="JSON">
65+ ```json title="config.json"
66+ {
67+ "embeddingsProvider": {
68+ "provider": "nvidia",
69+ "model": "nvidia/nv-embedqa-mistral-7b-v2",
70+ "apiKey": "<YOUR_NVIDIA_API_KEY>"
71+ }
72+ }
73+ ```
74+ </TabItem>
75+</Tabs>
76+
77+## Reranking model
78+
79+NVIDIA currently does not offer any reranking models.
80+
81+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/more/openrouter.mdx +74 −0
@@ -0,0 +1,74 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# OpenRouter
5+
6+OpenRouter is a unified interface for commercial and open-source models, giving you access to the best models at the best prices. You can sign up [here](https://openrouter.ai/signup), create your API key on the [keys page](https://openrouter.ai/keys), and then choose a model from the [list of supported models](https://openrouter.ai/models).
7+
8+Change `~/.continue/config.json` to look like the following.
9+
10+<Tabs groupId="config-example">
11+ <TabItem value="yaml" label="YAML">
12+ ```yaml title="config.yaml"
13+ models:
14+ - name: OpenRouter LLaMA 70 8B
15+ provider: openrouter
16+ model: meta-llama/llama-3-70b-instruct
17+ apiBase: https://openrouter.ai/api/v1
18+ apiKey: <YOUR_OPEN_ROUTER_API_KEY>
19+ ```
20+ </TabItem>
21+ <TabItem value="json" label="JSON">
22+ ```json title="config.json"
23+ {
24+ "models": [
25+ {
26+ "title": "OpenRouter LLaMA 70 8B",
27+ "provider": "openrouter",
28+ "model": "meta-llama/llama-3-70b-instruct",
29+ "apiBase": "https://openrouter.ai/api/v1",
30+ "apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
31+ }
32+ ]
33+ }
34+ ```
35+ </TabItem>
36+</Tabs>
37+
38+To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
39+
40+For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
41+
42+<Tabs groupId="config-example">
43+ <TabItem value="yaml" label="YAML">
44+ ```yaml title="config.yaml"
45+ models:
46+ - name: Example Model
47+ provider: exampleProvider
48+ model: example-model
49+ requestOptions:
50+ extraBodyProperties:
51+ transforms: []
52+ ```
53+ </TabItem>
54+ <TabItem value="json" label="JSON">
55+ ```json title="config.json"
56+ {
57+ "models": [
58+ {
59+ "title": "Example Model",
60+ "provider": "exampleProvider",
61+ "model": "example-model",
62+ "requestOptions": {
63+ "extraBodyProperties": {
64+ "transforms": []
65+ }
66+ }
67+ }
68+ ]
69+ }
70+ ```
71+ </TabItem>
72+</Tabs>
73+
74+Learn more about available settings [here](https://openrouter.ai/docs).
added docs/docs/customize/model-providers/more/openvino_model_server.mdx +29 −0
@@ -0,0 +1,29 @@
1+# OpenVINO™ Model Server
2+
3+:::info
4+[**OpenVINO™ Mode Server**](https://github.com/openvinotoolkit/model_server) is scalable inference server for models optimized with OpenVINO™ for Intel CPU, iGPU, GPU and NPU.
5+:::
6+
7+OpenVINO™ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server.
8+
9+Example configuration once OVMS is launched:
10+
11+```yaml title="config.yaml"
12+models:
13+ - name: OVMS CodeLlama-7b-Instruct-hf
14+ provider: openai
15+ model: codellama/CodeLlama-7b-Instruct-hf
16+ apiKey: unused
17+ apiBase: http://localhost:5555/v3
18+ roles:
19+ - chat
20+ - edit
21+ - apply
22+ - name: OVMS Qwen2.5-Coder-1.5B
23+ provider: openai
24+ model: Qwen/Qwen2.5-Coder-1.5B
25+ apiKey: unused
26+ apiBase: http://localhost:5555/v3
27+ roles:
28+ - autocomplete
29+```
added docs/docs/customize/model-providers/more/ovhcloud.mdx +72 −0
@@ -0,0 +1,72 @@
1+---
2+title: OVHcloud AI Endpoints
3+---
4+
5+import TabItem from "@theme/TabItem";
6+import Tabs from "@theme/Tabs";
7+
8+OVHcloud AI Endpoints is a serverless inference API that provides access to a curated selection of models (e.g., Llama, Mistral, Qwen, Deepseek). It is designed with security and data privacy in mind and is compliant with GDPR.
9+
10+:::info
11+To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/).
12+:::
13+
14+## Chat model
15+
16+We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
17+Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of our models hsoted on AI Endpoints.
18+
19+<Tabs groupId="config-example">
20+ <TabItem value="yaml" label="YAML">
21+ ```yaml title="config.yaml"
22+ models:
23+ - name: Qwen2.5-Coder-32B-Instruct
24+ provider: ovhcloud
25+ model: qwen2.5-coder-32b
26+ apiKey: <YOUR_AIENDPOINTS_API_KEY>
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Qwen2.5-Coder-32B-Instruct",
35+ "provider": "ovhcloud",
36+ "model": "qwen2.5-coder-32b",
37+ "apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
38+ }
39+ ]
40+ }
41+ ```
42+ </TabItem>
43+</Tabs>
44+
45+## Embeddings model
46+
47+We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
48+
49+<Tabs groupId="config-example">
50+ <TabItem value="yaml" label="YAML">
51+ ```yaml title="config.yaml"
52+ models:
53+ - name: BGE Multilingual Gemma2
54+ provider: ovhcloud
55+ model: bge-multilingual-gemma2
56+ apiKey: <YOUR_AIENDPOINTS_API_KEY>
57+ roles:
58+ - embed
59+ ```
60+ </TabItem>
61+ <TabItem value="json" label="JSON">
62+ ```json title="config.json"
63+ {
64+ "embeddingsProvider": {
65+ "provider": "ovhcloud",
66+ "model": "bge-multilingual-gemma2",
67+ "apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
68+ }
69+ }
70+ ```
71+ </TabItem>
72+</Tabs>
added docs/docs/customize/model-providers/more/relace.mdx +38 −0
@@ -0,0 +1,38 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# Relace
5+
6+Relace provides a fast apply model through their API that helps you reliably and almost instantly apply chat suggestions to your codebase. You can sign up and obtain an API key [here](https://app.relace.ai/settings/api-keys). Then, change your configuration file to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="Package or config.yaml"
11+ models:
12+ - name: Relace Fast Apply
13+ provider: relace
14+ model: Fast-Apply
15+ apiKey: <YOUR_RELACE_API_KEY>
16+ roles:
17+ - apply
18+ promptTemplates:
19+ apply: "{{{ new_code }}}"
20+ ```
21+ </TabItem>
22+ <TabItem value="json" label="JSON">
23+ ```json title="config.json"
24+ {
25+ "models": [
26+ {
27+ "title": "Relace Fast Apply",
28+ "provider": "relace",
29+ "model": "Fast-Apply",
30+ "apiKey": "<YOUR_RELACE_API_KEY>"
31+ }
32+ ]
33+ }
34+ ```
35+ </TabItem>
36+</Tabs>
37+
38+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Relace.ts)
added docs/docs/customize/model-providers/more/replicatellm.mdx +36 −0
@@ -0,0 +1,36 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# ReplicateLLM
5+
6+Replicate is a great option for newly released language models or models that you've deployed through their platform. Sign up for an account [here](https://replicate.ai/), copy your API key, and then select any model from the [Replicate Streaming List](https://replicate.com/collections/streaming-language-models). Change `~/.continue/config.json` to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Replicate CodeLLama
13+ provider: replicate
14+ model: codellama-13b
15+ apiKey: <YOUR_REPLICATE_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "Replicate CodeLLama",
24+ "provider": "replicate",
25+ "model": "codellama-13b",
26+ "apiKey": "<YOUR_REPLICATE_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.
35+
36+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Replicate.ts)
added docs/docs/customize/model-providers/more/sagemaker.mdx +57 −0
@@ -0,0 +1,57 @@
1+import Tabs from "@theme/Tabs";
2+import TabItem from "@theme/TabItem";
3+
4+# AWS SageMaker
5+
6+SageMaker can be used for both chat and embedding models. Chat models are supported for endpoints deployed with [LMI](https://docs.djl.ai/docs/serving/serving/docs/lmi/index.html), and embedding models are supported for endpoints deployed with [HuggingFace TEI](https://huggingface.co/blog/sagemaker-huggingface-embedding)
7+
8+Here is an example Sagemaker configuration setup:
9+
10+<Tabs groupId="config-example">
11+ <TabItem value="yaml" label="YAML">
12+ ```yaml title="config.yaml"
13+ models:
14+ - name: deepseek-6.7b-instruct
15+ provider: sagemaker
16+ model: lmi-model-deepseek-coder-xxxxxxx
17+ region: us-west-2
18+ roles:
19+ - chat
20+ - name: mxbai-embed
21+ provider: sagemaker
22+ model: mxbai-embed-large-v1-endpoint
23+ roles:
24+ - embed
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "deepseek-6.7b-instruct",
33+ "provider": "sagemaker",
34+ "model": "lmi-model-deepseek-coder-xxxxxxx",
35+ "region": "us-west-2"
36+ }
37+ ],
38+ "embeddingsProvider": {
39+ "provider": "sagemaker",
40+ "model": "mxbai-embed-large-v1-endpoint"
41+ }
42+ }
43+ ```
44+ </TabItem>
45+</Tabs>
46+
47+The value in model should be the SageMaker endpoint name you deployed.
48+
49+Authentication will be through temporary or long-term credentials in
50+~/.aws/credentials under a profile called "sagemaker".
51+
52+```title="~/.aws/credentials
53+[sagemaker]
54+aws_access_key_id = abcdefg
55+aws_secret_access_key = hijklmno
56+aws_session_token = pqrstuvwxyz # Optional: means short term creds.
57+```
added docs/docs/customize/model-providers/more/scaleway.mdx +78 −0
@@ -0,0 +1,78 @@
1+---
2+title: Scaleway
3+---
4+
5+import TabItem from "@theme/TabItem";
6+import Tabs from "@theme/Tabs";
7+
8+:::info
9+Scaleway Generative APIs give you instant access to leading AI models hosted in European data centers, ideal for developers requiring low latency, full data privacy, and compliance with EU AI Act.
10+You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models).
11+Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/).
12+:::
13+
14+## Chat model
15+
16+We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
17+[Click here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/) to see the list of available chat models.
18+
19+<Tabs groupId="config-example">
20+ <TabItem value="yaml" label="YAML">
21+ ```yaml title="config.yaml"
22+ models:
23+ - name: Qwen2.5-Coder-32B-Instruct
24+ provider: scaleway
25+ model: qwen2.5-coder-32b-instruct
26+ apiKey: <YOUR_SCALEWAY_API_KEY>
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Qwen2.5-Coder-32B-Instruct",
35+ "provider": "scaleway",
36+ "model": "qwen2.5-coder-32b-instruct",
37+ "apiKey": "<YOUR_SCALEWAY_API_KEY>"
38+ }
39+ ]
40+ }
41+ ```
42+ </TabItem>
43+</Tabs>
44+
45+## Autocomplete model
46+
47+Scaleway currently does not offer any autocomplete models.
48+
49+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
50+
51+## Embeddings model
52+
53+We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
54+
55+<Tabs groupId="config-example">
56+ <TabItem value="yaml" label="YAML">
57+ ```yaml title="config.yaml"
58+ models:
59+ - name: BGE Multilingual Gemma2
60+ provider: scaleway
61+ model: bge-multilingual-gemma2
62+ apiKey: <YOUR_SCALEWAY_API_KEY>
63+ roles:
64+ - embed
65+ ```
66+ </TabItem>
67+ <TabItem value="json" label="JSON">
68+ ```json title="config.json"
69+ {
70+ "embeddingsProvider": {
71+ "provider": "scaleway",
72+ "model": "bge-multilingual-gemma2",
73+ "apiKey": "<YOUR_SCALEWAY_API_KEY>"
74+ }
75+ }
76+ ```
77+ </TabItem>
78+</Tabs>
added docs/docs/customize/model-providers/more/siliconflow.mdx +88 −0
@@ -0,0 +1,88 @@
1+---
2+title: SiliconFlow
3+---
4+
5+import Tabs from "@theme/Tabs";
6+import TabItem from "@theme/TabItem";
7+
8+:::info
9+You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
10+:::
11+
12+## Chat model
13+
14+We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
15+
16+<Tabs groupId="config-example">
17+ <TabItem value="yaml" label="YAML">
18+ ```yaml title="config.yaml"
19+ models:
20+ - name: Qwen
21+ provider: siliconflow
22+ model: Qwen/Qwen2.5-Coder-32B-Instruct
23+ apiKey: <YOUR_SILICONFLOW_API_KEY>
24+ roles:
25+ - chat
26+ ```
27+ </TabItem>
28+ <TabItem value="json" label="JSON">
29+ ```json title="config.json"
30+ {
31+ "models": [
32+ {
33+ "title": "Qwen",
34+ "provider": "siliconflow",
35+ "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
36+ "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
37+ }
38+ ]
39+ }
40+ ```
41+ </TabItem>
42+</Tabs>
43+
44+## Autocomplete model
45+
46+We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model.
47+
48+<Tabs groupId="config-example">
49+ <TabItem value="yaml" label="YAML">
50+ ```yaml title="config.yaml"
51+ models:
52+ - name: Qwen
53+ provider: siliconflow
54+ model: Qwen/Qwen2.5-Coder-32B-Instruct
55+ apiKey: <YOUR_SILICONFLOW_API_KEY>
56+ roles:
57+ - autocomplete
58+ ```
59+ </TabItem>
60+ <TabItem value="json" label="JSON">
61+ ```json title="config.json"
62+ {
63+ "models": [
64+ {
65+ "title": "Qwen",
66+ "provider": "siliconflow",
67+ "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
68+ "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
69+ }
70+ ]
71+ "tabAutocompleteModel": {
72+ "title": "Qwen",
73+ "provider": "siliconflow",
74+ "model": "Qwen/Qwen2.5-Coder-7B-Instruct",
75+ "apiKey": "<YOUR_SILICONFLOW_API_KEY>"
76+ }
77+ }
78+ ```
79+ </TabItem>
80+</Tabs>
81+
82+## Embeddings model
83+
84+SiliconFlow provide some embeddings models. [Click here](https://siliconflow.cn/models) to see a list of embeddings models.
85+
86+## Reranking model
87+
88+SiliconFlow provide some reranking models. [Click here](https://siliconflow.cn/models) to see a list of reranking models.
added docs/docs/customize/model-providers/more/textgenwebui.mdx +32 −0
@@ -0,0 +1,32 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# TextGenWebUI
5+
6+TextGenWebUI is a comprehensive, open-source language model UI and local server. You can set it up with an OpenAI-compatible server plugin, and then configure it like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Text Generation WebUI
13+ provider: text-gen-webui
14+ apiBase: http://localhost:5000/v1
15+ model: MODEL_NAME
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "Text Generation WebUI",
24+ "provider": "text-gen-webui",
25+ "apiBase": "http://localhost:5000/v1",
26+ "model": "MODEL_NAME"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
added docs/docs/customize/model-providers/more/together.mdx +34 −0
@@ -0,0 +1,34 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# Together
5+
6+The Together API is a cloud platform for running large AI models. You can sign up [here](https://api.together.xyz/signup), copy your API key on the initial welcome screen, and then hit the play button on any model from the [Together Models list](https://docs.together.ai/docs/serverless-models). Change `~/.continue/config.json` to look like this:
7+
8+<Tabs groupId="config-example">
9+ <TabItem value="yaml" label="YAML">
10+ ```yaml title="config.yaml"
11+ models:
12+ - name: Together Qwen2.5 Coder
13+ provider: together
14+ model: Qwen/Qwen2.5-Coder-32B-Instruct
15+ apiKey: <YOUR_TOGETHER_API_KEY>
16+ ```
17+ </TabItem>
18+ <TabItem value="json" label="JSON">
19+ ```json title="config.json"
20+ {
21+ "models": [
22+ {
23+ "title": "Together Qwen2.5 Coder",
24+ "provider": "together",
25+ "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
26+ "apiKey": "<YOUR_TOGETHER_API_KEY>"
27+ }
28+ ]
29+ }
30+ ```
31+ </TabItem>
32+</Tabs>
33+
34+[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
added docs/docs/customize/model-providers/more/venice.md +35 −0
@@ -0,0 +1,35 @@
1+# Venice
2+
3+Venice.AI is a privacy focused generative AI platform, allowing users to interact with open-source LLMs without storing any private user data. To get started with Venice's API, either purchase a pro account, stake $VVV to obtain daily inference allotments or fund your account with USD and head over to https://venice.ai/settings/api. Venice hosts state of the art open-source AI models and supports the OpenAI API standard, allowing users to easily interact with the platform. Learn more about the Venice API at https://venice.ai/api.
4+
5+Change `~/.continue/config.json` to look like the following.
6+
7+```json title="config.json"
8+{
9+ "models": [
10+ {
11+ "provider": "venice",
12+ "title": "Autodetect",
13+ "model": "AUTODETECT",
14+ "apiKey": "..."
15+ }
16+ ]
17+}
18+```
19+
20+To utilize features offered by the venice API that are not apart of the standard OpenAI API schema, include these as `venice_parameters`
21+
22+For example, to use models with no system prompt, you can explicitly turn off the feature like so:
23+
24+```json title="config.json"
25+{
26+ "completionOptions": {
27+ "venice_parameters": {
28+ "include_venice_system_prompt" : false
29+ },
30+ ...
31+ }
32+}
33+```
34+
35+Learn more about available settings [here](https://docs.venice.ai/api-reference/api-spec).
added docs/docs/customize/model-providers/more/vllm.mdx +107 −0
@@ -0,0 +1,107 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# vLLM
5+
6+vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same time. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
7+
8+```shell
9+vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
10+```
11+
12+## Chat model
13+
14+We recommend configuring **Llama3.1 8B** as your chat model.
15+
16+<Tabs groupId="config-example">
17+ <TabItem value="yaml" label="YAML">
18+ ```yaml title="config.yaml"
19+ models:
20+ - name: Llama3.1 8B Instruct
21+ provider: vllm
22+ model: meta-llama/Meta-Llama-3.1-8B-Instruct
23+ apiBase: http://<vllm chat endpoint>/v1
24+ ```
25+ </TabItem>
26+ <TabItem value="json" label="JSON">
27+ ```json title="config.json"
28+ {
29+ "models": [
30+ {
31+ "title": "Llama3.1 8B Instruct",
32+ "provider": "vllm",
33+ "model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
34+ "apiBase": "http://<vllm chat endpoint>/v1"
35+ }
36+ ]
37+ }
38+ ```
39+ </TabItem>
40+</Tabs>
41+
42+## Autocomplete model
43+
44+We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
45+
46+<Tabs groupId="config-example">
47+ <TabItem value="yaml" label="YAML">
48+ ```yaml title="config.yaml"
49+ models:
50+ - name: Qwen2.5-Coder 1.5B
51+ provider: vllm
52+ model: Qwen/Qwen2.5-Coder-1.5B
53+ apiBase: http://<vllm autocomplete endpoint>/v1
54+ roles:
55+ - autocomplete
56+ ```
57+ </TabItem>
58+ <TabItem value="json" label="JSON">
59+ ```json title="config.json"
60+ {
61+ "tabAutocompleteModel": {
62+ "title": "Qwen2.5-Coder 1.5B",
63+ "provider": "vllm",
64+ "model": "Qwen/Qwen2.5-Coder-1.5B",
65+ "apiBase": "http://<vllm autocomplete endpoint>/v1"
66+ }
67+ }
68+ ```
69+ </TabItem>
70+</Tabs>
71+
72+## Embeddings model
73+
74+We recommend configuring **Nomic Embed Text** as your embeddings model.
75+
76+<Tabs groupId="config-example">
77+ <TabItem value="yaml" label="YAML">
78+ ```yaml title="config.yaml"
79+ models:
80+ - name: VLLM Nomad Embed Text
81+ provider: vllm
82+ model: nomic-ai/nomic-embed-text-v1
83+ apiBase: http://<vllm embed endpoint>/v1
84+ roles:
85+ - embed
86+ ```
87+ </TabItem>
88+ <TabItem value="json" label="JSON">
89+ ```json title="config.json"
90+ {
91+ "embeddingsProvider": {
92+ "provider": "vllm",
93+ "model": "nomic-ai/nomic-embed-text-v1",
94+ "apiBase": "http://<vllm embed endpoint>/v1"
95+ }
96+ }
97+ ```
98+ </TabItem>
99+</Tabs>
100+
101+## Reranking model
102+
103+Continue automatically handles vLLM's response format (which uses `results` instead of `data`).
104+
105+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
106+
107+The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)
added docs/docs/customize/model-providers/more/watsonx.mdx +279 −0
@@ -0,0 +1,279 @@
1+import TabItem from "@theme/TabItem";
2+import Tabs from "@theme/Tabs";
3+
4+# IBM watsonx
5+
6+watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
7+
8+## Setup
9+
10+Accessing watsonx models can be done either through watsonx SaaS on IBM Cloud or using a dedicated watsonx.ai Software instance.
11+
12+### watsonx.ai SaaS - IBM Cloud
13+
14+To get started with watsonx SaaS, visit the [registration page](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx). If you do not have an existing IBM Cloud account, you can sign up for a free trial.
15+
16+To authenticate to watsonx.ai SaaS with Continue, you will need to create a project and [set up an API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). Then, in continue:
17+
18+- Set **apiBase** to your watsonx SaaS endpoint, e.g. `https://us-south.ml.cloud.ibm.com` for US South region.
19+- Set **projectId** to your watsonx project ID.
20+- Set **apiKey** to your watsonx API Key.
21+
22+### watsonx.ai Software
23+
24+To authenticate to your watsonx.ai Software instance with Continue, you can use either `username/password` or `ZenApiKey` method:
25+
26+1. _Option 1_ (Recommended): using `ZenApiKey` authentication:
27+ - Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
28+ - Set **projectId** to your watsonx project ID.
29+ - Set **apiKey** to your watsonx Zen API Key. To generate it:
30+ 1. Log in to the CPD web client.
31+ 2. From the toolbar, click your avatar.
32+ 3. Click **Profile and settings**.
33+ 4. Click **API key** > **Generate new key**.
34+ 5. Click **Generate**.
35+ 6. Click **Copy** and save your key somewhere safe. You cannot recover this key if you lose it.
36+ 7. Generate your ZenApiKey by running the following command in your preferred terminal: `echo "<username>:<apikey>" | base64`, replacing `<username>` with your CPD username and `<apikey>` with the API Key you just created.
37+2. _Option 2_: using `username/password` authentication:
38+ - Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
39+ - Set **projectId** to your watsonx project ID.
40+ - Set **API Key** to your watsonx Username and Password using `username:password` as format.
41+
42+## Configuration
43+
44+Add the following configuration:
45+
46+<Tabs groupId="config-example">
47+ <TabItem value="yaml" label="YAML">
48+ ```yaml title="config.yaml"
49+ models:
50+ - name: watsonx - Model Name
51+ provider: watsonx
52+ model: model ID
53+ apiBase: https://us-south.ml.cloud.ibm.com
54+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
55+ env:
56+ projectId: PROJECT_ID
57+ apiVersion: 2024-03-14
58+ ```
59+ </TabItem>
60+ <TabItem value="json" label="JSON">
61+ ```json title="config.json"
62+ {
63+ "models": [
64+ {
65+ "model": "model ID",
66+ "title": "watsonx - Model Name",
67+ "provider": "watsonx",
68+ "apiBase": "https://us-south.ml.cloud.ibm.com",
69+ "projectId": "PROJECT_ID",
70+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
71+ "apiVersion": "2024-03-14"
72+ }
73+ ]
74+ }
75+ ```
76+ </TabItem>
77+</Tabs>
78+
79+`apiVersion` is optional and defaults to the latest version.
80+
81+If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `</>` tab on the right, which will display the endpoint's URL containing the deployment ID.
82+
83+<Tabs groupId="config-example">
84+ <TabItem value="yaml" label="YAML">
85+ ```yaml title="config.yaml"
86+ models:
87+ - name: watsonx - Model Name
88+ provider: watsonx
89+ model: model ID
90+ apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
91+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
92+ env:
93+ apiVersion: 2024-03-14
94+ deploymentId: DEPLOYMENT_ID
95+ ```
96+ </TabItem>
97+ <TabItem value="json" label="JSON">
98+ ```json title="config.json"
99+ {
100+ "models": [
101+ {
102+ "model": "model ID",
103+ "title": "watsonx - Model Name",
104+ "provider": "watsonx",
105+ "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
106+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
107+ "apiVersion": "2024-03-14",
108+ "deploymentId": "DEPLOYMENT_ID"
109+ }
110+ ]
111+ }
112+ ```
113+ </TabItem>
114+</Tabs>
115+
116+### Configuration Options
117+
118+Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size.
119+You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences:
120+
121+<Tabs groupId="config-example">
122+ <TabItem value="yaml" label="YAML">
123+ ```yaml title="config.yaml"
124+ models:
125+ - name: Granite Code 20b
126+ provider: watsonx
127+ model: ibm/granite-20b-code-instruct
128+ apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
129+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
130+ template: granite
131+ defaultCompletionOptions:
132+ contextLength: 8000
133+ temperature: 0.1
134+ topP: 0.3
135+ topK: 20
136+ maxTokens: 2000
137+ frequencyPenalty: 1.1
138+ stop:
139+ - Question:
140+ - "\n\n\n"
141+ env:
142+ projectId: PROJECT_ID
143+ apiVersion: 2024-03-14
144+
145+ ```
146+ </TabItem>
147+ <TabItem value="json" label="JSON">
148+ ```json title="config.json"
149+ {
150+ "models": [
151+ {
152+ "model": "ibm/granite-20b-code-instruct",
153+ "title": "Granite Code 20b",
154+ "provider": "watsonx",
155+ "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
156+ "projectId": "PROJECT_ID",
157+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
158+ "apiVersion": "2024-03-14",
159+ "template": "granite",
160+ "contextLength": 8000,
161+ "completionOptions": {
162+ "temperature": 0.1,
163+ "topP": 0.3,
164+ "topK": 20,
165+ "maxTokens": 2000,
166+ "frequencyPenalty": 1.1,
167+ "stop": ["Question:", "\n\n\n"]
168+ }
169+ }
170+ ]
171+ }
172+ ```
173+ </TabItem>
174+</Tabs>
175+
176+## Tab Auto Complete Model
177+
178+Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models:
179+
180+<Tabs groupId="config-example">
181+ <TabItem value="yaml" label="YAML">
182+ ```yaml title="config.yaml"
183+ models:
184+ - name: Granite Code 8b
185+ provider: watsonx
186+ model: ibm/granite-8b-code-instruct
187+ apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
188+ projectId: PROJECT_ID
189+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
190+ apiVersion: 2024-03-14
191+ roles:
192+ - autocomplete
193+ ```
194+ </TabItem>
195+ <TabItem value="json" label="JSON">
196+ ```json title="config.json"
197+ {
198+ "tabAutocompleteModel": {
199+ "model": "ibm/granite-8b-code-instruct",
200+ "title": "Granite Code 8b",
201+ "provider": "watsonx",
202+ "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
203+ "projectId": "PROJECT_ID",
204+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
205+ "apiVersion": "2024-03-14",
206+ "contextLength": 4000
207+ }
208+ }
209+ ```
210+ </TabItem>
211+</Tabs>
212+
213+## Embeddings Model
214+
215+To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided).
216+
217+<Tabs groupId="config-example">
218+ <TabItem value="yaml" label="YAML">
219+ ```yaml title="config.yaml"
220+ models:
221+ - name: Watsonx Embedder
222+ provider: watsonx
223+ model: ibm/slate-30m-english-rtrvr-v2
224+ apiBase: https://us-south.ml.cloud.ibm.com
225+ projectId: PROJECT_ID
226+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
227+ apiVersion: 2024-03-14
228+ roles:
229+ - embed
230+ ```
231+ </TabItem>
232+ <TabItem value="json" label="JSON">
233+ ```json title="config.json"
234+ {
235+ "embeddingsProvider": {
236+ "provider": "watsonx",
237+ "model": "ibm/slate-30m-english-rtrvr-v2",
238+ "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
239+ "projectId": "PROJECT_ID",
240+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
241+ "apiVersion": "2024-03-14"
242+ }
243+ }
244+ ```
245+ </TabItem>
246+</Tabs>
247+
248+## Reranker
249+
250+<Tabs groupId="config-example">
251+ <TabItem value="yaml" label="YAML">
252+ ```yaml title="config.yaml"
253+ models:
254+ - name: Watsonx Reranker
255+ provider: watsonx
256+ model: cross-encoder/ms-marco-minilm-l-12-v2
257+ apiBase: https://us-south.ml.cloud.ibm.com
258+ projectId: PROJECT_ID
259+ apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
260+ apiVersion: 2024-03-14
261+ ```
262+ </TabItem>
263+ <TabItem value="json" label="JSON">
264+ ```json title="config.json"
265+ {
266+ "reranker": {
267+ "name": "watsonx",
268+ "params": {
269+ "model": "cross-encoder/ms-marco-minilm-l-12-v2",
270+ "apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
271+ "projectId": "PROJECT_ID",
272+ "apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
273+ "apiVersion": "2024-03-14"
274+ }
275+ }
276+ }
277+ ```
278+ </TabItem>
279+</Tabs>
added docs/docs/customize/model-providers/top-level/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Popular Providers",
3+ "position": 1
4+}
added docs/docs/customize/model-providers/top-level/anthropic.mdx +109 −0
@@ -0,0 +1,109 @@
1+---
2+title: Anthropic
3+slug: ../anthropic
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **Claude 4 Sonnet** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: Claude 4 Sonnet
22+ provider: anthropic
23+ model: claude-sonnet-4-20250514
24+ apiKey: <YOUR_ANTHROPIC_API_KEY>
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "Claude 4 Sonnet",
33+ "provider": "anthropic",
34+ "model": "claude-sonnet-4-latest",
35+ "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
36+ }
37+ ]
38+ }
39+ ```
40+ </TabItem>
41+</Tabs>
42+
43+## Autocomplete model
44+
45+Anthropic currently does not offer any autocomplete models.
46+
47+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48+
49+## Embeddings model
50+
51+Anthropic currently does not offer any embeddings models.
52+
53+[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
54+
55+## Reranking model
56+
57+Anthropic currently does not offer any reranking models.
58+
59+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
60+
61+## Prompt caching
62+
63+Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), which allows Claude models to cache system messages and conversation history between requests to improve performance and reduce costs.
64+
65+Prompt caching is generally available for:
66+
67+- Claude 4 Sonnet
68+- Claude 3.7 Sonnet
69+- Claude 3.5 Sonnet
70+- Claude 3.5 Haiku
71+
72+To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
73+
74+<Tabs groupId="config-example">
75+ <TabItem value="yaml" label="YAML">
76+ ```yaml title="config.yaml"
77+ models:
78+ - name: Anthropic
79+ provider: anthropic
80+ model: claude-sonnet-4-20250514
81+ apiKey: <YOUR_ANTHROPIC_API_KEY>
82+ roles:
83+ - chat
84+ defaultCompletionOptions:
85+ promptCaching: true
86+ ```
87+ </TabItem>
88+ <TabItem value="json" label="JSON">
89+ ```json title="config.json"
90+ {
91+ "models": [
92+ {
93+ "cacheBehavior": {
94+ "cacheSystemMessage": true,
95+ "cacheConversation": true
96+ },
97+ "title": "Anthropic",
98+ "provider": "anthropic",
99+ "model": "claude-sonnet-4-latest",
100+ "defaultCompletionOptions": {
101+ "promptCaching": true
102+ },
103+ "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
104+ }
105+ ]
106+ }
107+ ```
108+ </TabItem>
109+</Tabs>
added docs/docs/customize/model-providers/top-level/azure.mdx +169 −0
@@ -0,0 +1,169 @@
1+---
2+title: Azure AI Foundry
3+slug: ../azure
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+Azure AI Foundry is a cloud-based service that provides access to models from OpenAI, Mistral AI, and others, integrated with the security and enterprise features of the Microsoft Azure platform. To get started, create an Azure AI Foundry resource in the [Azure portal](https://portal.azure.com).
10+
11+:::info
12+
13+For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
14+
15+:::
16+
17+## Chat model
18+
19+We recommend configuring **GPT-4o** as your chat model.
20+
21+<Tabs groupId="config-example">
22+ <TabItem value="yaml" label="YAML">
23+ ```yaml title="config.yaml"
24+ models:
25+ - name: GPT-4o
26+ provider: azure
27+ model: gpt-4o
28+ apiBase: <YOUR_DEPLOYMENT_BASE>
29+ apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey
30+ env:
31+ deployment: <YOUR_DEPLOYMENT_NAME>
32+ apiType: azure-foundry # Or "azure-openai" if using OpenAI models
33+ ```
34+ </TabItem>
35+ <TabItem value="json" label="JSON">
36+ ```json title="config.json"
37+ {
38+ "models": [{
39+ "title": "GPT-4o",
40+ "provider": "azure",
41+ "model": "gpt-4o",
42+ "apiBase": "<YOUR_DEPLOYMENT_BASE>",
43+ "deployment": "<YOUR_DEPLOYMENT_NAME>",
44+ "apiKey": "<YOUR_AZURE_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
45+ "apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
46+ }]
47+ }
48+ ```
49+ </TabItem>
50+</Tabs>
51+
52+## Autocomplete model
53+
54+We recommend configuring **Codestral** as your autocomplete model. If you use Azure AI Foundry to deploy Codestral:
55+
56+<Tabs groupId="config-example">
57+ <TabItem value="yaml" label="YAML">
58+ ```yaml title="config.yaml"
59+ models:
60+ - name: Codestral
61+ provider: mistral
62+ model: codestral-latest
63+ apiBase: https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1
64+ apiKey: <YOUR_AZURE_API_KEY>
65+ roles:
66+ - autocomplete
67+ ```
68+ </TabItem>
69+ <TabItem value="json" label="JSON">
70+ ```json title="config.json"
71+ {
72+ "tabAutocompleteModel": {
73+ "title": "Codestral",
74+ "provider": "mistral",
75+ "model": "codestral-latest",
76+ "apiBase": "https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1",
77+ "apiKey": "<YOUR_AZURE_API_KEY>"
78+ }
79+ }
80+ ```
81+ </TabItem>
82+</Tabs>
83+
84+## Embeddings model
85+
86+We recommend configuring **text-embedding-3-large** as your embeddings model.
87+
88+<Tabs groupId="config-example">
89+ <TabItem value="yaml" label="YAML">
90+ ```yaml title="config.yaml"
91+ models:
92+ - name: Text Embedding-3 Large
93+ provider: azure
94+ model: text-embedding-3-large
95+ apiBase: <YOUR_DEPLOYMENT_BASE>
96+ apiKey: <YOUR_AZURE_API_KEY>
97+ env:
98+ deployment: <YOUR_DEPLOYMENT_NAME>
99+ apiType: azure
100+ ```
101+ </TabItem>
102+ <TabItem value="json" label="JSON">
103+ ```json title="config.json"
104+ {
105+ "embeddingsProvider": {
106+ "provider": "azure",
107+ "model": "text-embedding-3-large",
108+ "apiBase": "<YOUR_DEPLOYMENT_BASE>",
109+ "deployment": "<YOUR_DEPLOYMENT_NAME>",
110+ "apiKey": "<YOUR_AZURE_API_KEY>",
111+ "apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
112+ }
113+ }
114+ ```
115+ </TabItem>
116+</Tabs>
117+
118+## Reranking model
119+
120+Azure OpenAI currently does not offer any reranking models.
121+
122+[Click here](../../model-roles/reranking.mdx) to see a list of reranking models.
123+
124+## Privacy
125+
126+If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant.
127+
128+:::info[Getting access]
129+[Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days.
130+:::
131+
132+## Azure OpenAI Service configuration
133+
134+Azure OpenAI Service requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
135+
136+To find this information in _Azure AI Foundry_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_.
137+
138+For example, a Target URI of `https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
139+
140+<Tabs groupId="config-example">
141+ <TabItem value="yaml" label="YAML">
142+ ```yaml title="config.yaml"
143+ models:
144+ - name: GPT-4o Azure
145+ model: gpt-4o
146+ provider: azure
147+ apiBase: https://just-an-example.openai.azure.com
148+ apiKey: <YOUR_AZURE_API_KEY>
149+ env:
150+ apiVersion: 2023-03-15-preview
151+ deployment: gpt-4o-july
152+ apiType: azure-openai
153+ ```
154+ </TabItem>
155+ <TabItem value="json" label="JSON">
156+ ```json title="config.json"
157+ {
158+ "title": "GPT-4o Azure",
159+ "model": "gpt-4o",
160+ "provider": "azure",
161+ "apiBase": "https://just-an-example.openai.azure.com",
162+ "deployment": "gpt-4o-july",
163+ "apiVersion": "2023-03-15-preview",
164+ "apiKey": "<YOUR_AZURE_API_KEY>",
165+ "apiType": "azure-openai"
166+ }
167+ ```
168+ </TabItem>
169+</Tabs>
added docs/docs/customize/model-providers/top-level/bedrock.mdx +235 −0
@@ -0,0 +1,235 @@
1+---
2+title: Amazon Bedrock
3+slug: ../bedrock
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API.
10+
11+## Chat model
12+
13+We recommend configuring **Claude 3.7 Sonnet** as your chat model.
14+
15+<Tabs groupId="config-example">
16+ <TabItem value="yaml" label="YAML">
17+ ```yaml title="config.yaml"
18+ models:
19+ - name: Claude 3.7 Sonnet
20+ provider: bedrock
21+ model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
22+ env:
23+ region: us-east-1
24+ profile: bedrock
25+ roles:
26+ - chat
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Claude 3.7 Sonnet",
35+ "provider": "bedrock",
36+ "model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
37+ "region": "us-east-1",
38+ "profile": "bedrock"
39+ }
40+ ]
41+ }
42+ ```
43+ </TabItem>
44+</Tabs>
45+
46+> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
47+
48+> You can fix this using the following config:
49+
50+<Tabs groupId="config-example">
51+ <TabItem value="yaml" label="YAML">
52+ ```yaml title="config.yaml"
53+ models:
54+ - name: Claude 3.5 Sonnet
55+ provider: bedrock
56+ model: us.anthropic.claude-3-5-sonnet-20241022-v2:0
57+ env:
58+ region: us-east-1
59+ profile: bedrock
60+ roles:
61+ - chat
62+ ```
63+ </TabItem>
64+ <TabItem value="json" label="JSON">
65+ ```json title="config.json"
66+ {
67+ "models": [
68+ {
69+ "title": "Claude 3.5 Sonnet",
70+ "provider": "bedrock",
71+ "model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
72+ "region": "us-east-1",
73+ "profile": "bedrock"
74+ }
75+ ]
76+ }
77+ ```
78+ </TabItem>
79+</Tabs>
80+
81+## Autocomplete model
82+
83+Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolside](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
84+
85+In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete.md).
86+
87+## Embeddings model
88+
89+We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
90+
91+<Tabs groupId="config-example">
92+ <TabItem value="yaml" label="YAML">
93+ ```yaml title="config.yaml"
94+ models:
95+ - name: Embeddings Model
96+ provider: bedrock
97+ model: amazon.titan-embed-text-v2:0
98+ env:
99+ region: us-west-2
100+ roles:
101+ - embed
102+ ```
103+ </TabItem>
104+ <TabItem value="json" label="JSON">
105+ ```json title="config.json"
106+ {
107+ "embeddingsProvider": {
108+ "title": "Embeddings Model",
109+ "provider": "bedrock",
110+ "model": "amazon.titan-embed-text-v2:0",
111+ "region": "us-west-2"
112+ }
113+ }
114+ ```
115+ </TabItem>
116+</Tabs>
117+
118+## Reranking model
119+
120+We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
121+
122+<Tabs groupId="config-example">
123+ <TabItem value="yaml" label="YAML">
124+ ```yaml title="config.yaml"
125+ models:
126+ - name: Bedrock Reranker
127+ provider: bedrock
128+ model: cohere.rerank-v3-5:0
129+ env:
130+ region: us-west-2
131+ roles:
132+ - rerank
133+ ```
134+ </TabItem>
135+ <TabItem value="json" label="JSON">
136+ ```json title="config.json"
137+ {
138+ "reranker": {
139+ "name": "bedrock",
140+ "params": {
141+ "model": "cohere.rerank-v3-5:0",
142+ "region": "us-west-2"
143+ }
144+ }
145+ }
146+ ```
147+ </TabItem>
148+</Tabs>
149+
150+## Prompt caching
151+
152+Bedrock allows Claude models to cache tool payloads, system messages, and chat
153+messages between requests. Enable this behavior by adding
154+`promptCaching: true` under `defaultCompletionOptions` in your model
155+configuration.
156+
157+Prompt caching is generally available for:
158+
159+- Claude 3.7 Sonnet
160+- Claude 3.5 Haiku
161+- Amazon Nova Micro
162+- Amazon Nova Lite
163+- Amazon Nova Pro
164+
165+Customers who were granted access to Claude 3.5 Sonnet v2 during the prompt
166+caching preview will retain that access, but it cannot be enabled for new users
167+on that model.
168+
169+```yaml title="config.yaml"
170+models:
171+ - name: Claude 3.7 Sonnet
172+ provider: bedrock
173+ model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
174+ defaultCompletionOptions:
175+ promptCaching: true
176+```
177+
178+Prompt caching is not supported in JSON configuration files, so use the YAML syntax above to enable it.
179+
180+## Authentication
181+
182+Authentication will be through temporary or long-term credentials in
183+`~/.aws/credentials` under a configured profile (e.g. "bedrock").
184+
185+```title="~/.aws/credentials
186+[bedrock]
187+aws_access_key_id = abcdefg
188+aws_secret_access_key = hijklmno
189+aws_session_token = pqrstuvwxyz # Optional: means short term creds.
190+```
191+
192+## Custom Imported Models
193+
194+To setup Bedrock using custom imported models, add the following to your config file:
195+
196+<Tabs groupId="config-example">
197+ <TabItem value="yaml" label="YAML">
198+ ```yaml title="config.yaml"
199+ models:
200+ - name: AWS Bedrock deepseek-coder-6.7b-instruct
201+ provider: bedrockimport
202+ model: deepseek-coder-6.7b-instruct
203+ env:
204+ region: us-west-2
205+ profile: bedrock
206+ modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
207+ ```
208+ </TabItem>
209+ <TabItem value="json" label="JSON">
210+ ```json title="config.json"
211+ {
212+ "models": [
213+ {
214+ "title": "AWS Bedrock deepseek-coder-6.7b-instruct",
215+ "provider": "bedrockimport",
216+ "model": "deepseek-coder-6.7b-instruct",
217+ "modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
218+ "region": "us-west-2",
219+ "profile": "bedrock"
220+ }
221+ ]
222+ }
223+ ```
224+ </TabItem>
225+</Tabs>
226+
227+Authentication will be through temporary or long-term credentials in
228+~/.aws/credentials under a configured profile (e.g. "bedrock").
229+
230+```title="~/.aws/credentials
231+[bedrock]
232+aws_access_key_id = abcdefg
233+aws_secret_access_key = hijklmno
234+aws_session_token = pqrstuvwxyz # Optional: means short term creds.
235+```
added docs/docs/customize/model-providers/top-level/deepseek.mdx +83 −0
@@ -0,0 +1,83 @@
1+---
2+title: DeepSeek
3+slug: ../deepseek
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **DeepSeek Chat** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: DeepSeek Chat
22+ provider: deepseek
23+ model: deepseek-chat
24+ apiKey: <YOUR_DEEPSEEK_API_KEY>
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "DeepSeek Chat",
33+ "provider": "deepseek",
34+ "model": "deepseek-chat",
35+ "apiKey": "<YOUR_DEEPSEEK_API_KEY>"
36+ }
37+ ]
38+ }
39+ ```
40+ </TabItem>
41+</Tabs>
42+
43+## Autocomplete model
44+
45+We recommend configuring **DeepSeek Coder** as your autocomplete model.
46+
47+<Tabs groupId="config-example">
48+ <TabItem value="yaml" label="YAML">
49+ ```yaml title="config.yaml"
50+ models:
51+ - name: DeepSeek Coder
52+ provider: deepseek
53+ model: deepseek-coder
54+ apiKey: <YOUR_DEEPSEEK_API_KEY>
55+ roles:
56+ - autocomplete
57+ ```
58+ </TabItem>
59+ <TabItem value="json" label="JSON">
60+ ```json title="config.json"
61+ {
62+ "tabAutocompleteModel": {
63+ "title": "DeepSeek Coder",
64+ "provider": "deepseek",
65+ "model": "deepseek-coder",
66+ "apiKey": "<YOUR_DEEPSEEK_API_KEY>"
67+ }
68+ }
69+ ```
70+ </TabItem>
71+</Tabs>
72+
73+## Embeddings model
74+
75+DeepSeek currently does not offer any embeddings models.
76+
77+[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
78+
79+## Reranking model
80+
81+DeepSeek currently does not offer any reranking models.
82+
83+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/top-level/gemini.mdx +82 −0
@@ -0,0 +1,82 @@
1+---
2+title: Gemini
3+slug: ../gemini
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **Gemini 2.0 Flash** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: Gemini 2.0 Flash
22+ provider: gemini
23+ model: gemini-2.0-flash
24+ apiKey: <YOUR_GEMINI_API_KEY>
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "Gemini 2.0 Flash",
33+ "provider": "gemini",
34+ "model": "gemini-2.0-flash",
35+ "apiKey": "<YOUR_GEMINI_API_KEY>"
36+ }
37+ ]
38+ }
39+ ```
40+ </TabItem>
41+</Tabs>
42+
43+## Autocomplete model
44+
45+Gemini currently does not offer any autocomplete models.
46+
47+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48+
49+## Embeddings model
50+
51+We recommend configuring **text-embedding-004** as your embeddings model.
52+
53+<Tabs groupId="config-example">
54+ <TabItem value="yaml" label="YAML">
55+ ```yaml title="config.yaml"
56+ models:
57+ - name: Gemini Embeddings
58+ provider: gemini
59+ model: models/text-embedding-004
60+ apiKey: <YOUR_GEMINI_API_KEY>
61+ roles:
62+ - embed
63+ ```
64+ </TabItem>
65+ <TabItem value="json" label="JSON">
66+ ```json title="config.json"
67+ {
68+ "embeddingsProvider": {
69+ "provider": "gemini",
70+ "model": "models/text-embedding-004",
71+ "apiKey": "<YOUR_GEMINI_API_KEY>"
72+ }
73+ }
74+ ```
75+ </TabItem>
76+</Tabs>
77+
78+## Reranking model
79+
80+Gemini currently does not offer any reranking models.
81+
82+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/top-level/inception.mdx +81 −0
@@ -0,0 +1,81 @@
1+---
2+title: Inception
3+slug: ../inception
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [Inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **Mercury Coder Small** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - uses: inceptionlabs/mercury-coder-small
22+ with:
23+ INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
24+ ```
25+ </TabItem>
26+ <TabItem value="json" label="JSON">
27+ ```json title="config.json"
28+ {
29+ "models": [
30+ {
31+ "title": "Mercury Coder Small",
32+ "provider": "inception",
33+ "model": "mercury-coder-small",
34+ "apiKey": "<INCEPTION_API_KEY>"
35+ }
36+ ]
37+ }
38+ ```
39+ </TabItem>
40+</Tabs>
41+
42+## Autocomplete model
43+
44+We also recommend configuring **Mercury Coder Small** as your autocomplete model.
45+
46+<Tabs groupId="config-example">
47+ <TabItem value="yaml" label="YAML">
48+ ```yaml title="config.yaml"
49+ models:
50+ - uses: inceptionlabs/mercury-coder-small
51+ with:
52+ INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
53+ ```
54+ </TabItem>
55+ <TabItem value="json" label="JSON">
56+ ```json title="config.json"
57+ {
58+ "tabAutocompleteModel": [
59+ {
60+ "title": "Mercury Coder Small",
61+ "provider": "inception",
62+ "model": "mercury-coder-small",
63+ "apiKey": "<INCEPTION_API_KEY>"
64+ }
65+ ]
66+ }
67+ ```
68+ </TabItem>
69+</Tabs>
70+
71+## Embeddings model
72+
73+Inception currently does not offer any embeddings models.
74+
75+[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
76+
77+## Reranking model
78+
79+Inception currently does not offer any reranking models.
80+
81+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/top-level/mistral.mdx +110 −0
@@ -0,0 +1,110 @@
1+---
2+title: Mistral
3+slug: ../mistral
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [Mistral Dashboard](https://console.mistral.ai). Note that the API key for Codestral (codestral.mistral.ai) is different from for all other models (api.mistral.ai). If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to using `https://api.mistral.ai/v1`.
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **Mistral Large** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: Mistral Large
22+ provider: mistral
23+ model: mistral-large-latest
24+ apiKey: <YOUR_MISTRAL_API_KEY>
25+ roles:
26+ - chat
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Mistral Large",
35+ "provider": "mistral",
36+ "model": "mistral-large-latest",
37+ "apiKey": "<YOUR_MISTRAL_API_KEY>"
38+ }
39+ ]
40+ }
41+ ```
42+ </TabItem>
43+</Tabs>
44+
45+## Autocomplete model
46+
47+We recommend configuring **Codestral** as your autocomplete model.
48+
49+<Tabs groupId="config-example">
50+ <TabItem value="yaml" label="YAML">
51+ ```yaml title="config.yaml"
52+ models:
53+ - name: Codestral
54+ provider: mistral
55+ model: codestral-latest
56+ # apiBase: https://codestral.mistral.ai/v1 # Do this if you are using a Codestral API key
57+ roles:
58+ - autocomplete
59+ ```
60+ </TabItem>
61+ <TabItem value="json" label="JSON">
62+ ```json title="config.json"
63+ {
64+ "tabAutocompleteModel": {
65+ "title": "Codestral",
66+ "provider": "mistral",
67+ "model": "codestral-latest"
68+ // "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
69+ }
70+ }
71+ ```
72+ </TabItem>
73+</Tabs>
74+
75+## Embeddings model
76+
77+We recommend configuring **Mistral Embed** as your embeddings model.
78+
79+<Tabs groupId="config-example">
80+ <TabItem value="yaml" label="YAML">
81+ ```yaml title="config.yaml"
82+ models:
83+ - name: Mistral Embed
84+ provider: mistral
85+ model: mistral-embed
86+ apiKey: <YOUR_MISTRAL_API_KEY>
87+ apiBase: https://api.mistral.ai/v1
88+ roles:
89+ - embed
90+ ```
91+ </TabItem>
92+ <TabItem value="json" label="JSON">
93+ ```json title="config.json"
94+ {
95+ "embeddingsProvider": {
96+ "provider": "mistral",
97+ "model": "mistral-embed",
98+ "apiKey": "<YOUR_MISTRAL_API_KEY>",
99+ "apiBase": "https://api.mistral.ai/v1"
100+ }
101+ }
102+ ```
103+ </TabItem>
104+</Tabs>
105+
106+## Reranking model
107+
108+Mistral currently does not offer any reranking models.
109+
110+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/top-level/ollama.mdx +128 −0
@@ -0,0 +1,128 @@
1+---
2+title: Ollama
3+slug: ../ollama
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+Ollama is an open-source tool that allows to run large language models (LLMs) locally on their own computers. To use Ollama, you can install it [here](https://ollama.ai/download) and download the model you want to run with the `ollama run` command.
10+
11+## Chat model
12+
13+We recommend configuring **Llama3.1 8B** as your chat model.
14+
15+<Tabs groupId="config-example">
16+ <TabItem value="yaml" label="YAML">
17+ ```yaml title="config.yaml"
18+ models:
19+ - name: Llama3.1 8B
20+ provider: ollama
21+ model: llama3.1:8b
22+ ```
23+ </TabItem>
24+ <TabItem value="json" label="JSON">
25+ ```json title="config.json"
26+ {
27+ "models": [
28+ {
29+ "title": "Llama3.1 8B",
30+ "provider": "ollama",
31+ "model": "llama3.1:8b"
32+ }
33+ ]
34+ }
35+ ```
36+ </TabItem>
37+</Tabs>
38+
39+## Autocomplete model
40+
41+We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
42+
43+<Tabs groupId="config-example">
44+ <TabItem value="yaml" label="YAML">
45+ ```yaml title="config.yaml"
46+ models:
47+ - name: Qwen2.5-Coder 1.5B
48+ provider: ollama
49+ model: qwen2.5-coder:1.5b-base
50+ roles:
51+ - autocomplete
52+ ```
53+ </TabItem>
54+ <TabItem value="json" label="JSON">
55+ ```json title="config.json"
56+ {
57+ "tabAutocompleteModel": {
58+ "title": "Qwen2.5-Coder 1.5B",
59+ "provider": "ollama",
60+ "model": "qwen2.5-coder:1.5b-base"
61+ }
62+ }
63+ ```
64+ </TabItem>
65+</Tabs>
66+
67+## Embeddings model
68+
69+We recommend configuring **Nomic Embed Text** as your embeddings model.
70+
71+<Tabs groupId="config-example">
72+ <TabItem value="yaml" label="YAML">
73+ ```yaml title="config.yaml"
74+ models:
75+ - name: Nomic Embed Text
76+ provider: ollama
77+ model: nomic-embed-text
78+ roles:
79+ - embed
80+ ```
81+ </TabItem>
82+ <TabItem value="json" label="JSON">
83+ ```json title="config.json"
84+ {
85+ "embeddingsProvider": {
86+ "provider": "ollama",
87+ "model": "nomic-embed-text"
88+ }
89+ }
90+ ```
91+ </TabItem>
92+</Tabs>
93+
94+## Reranking model
95+
96+Ollama currently does not offer any reranking models.
97+
98+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
99+
100+## Using a remote instance
101+
102+To configure a remote instance of Ollama, add the `"apiBase"` property to your model in config.json:
103+
104+<Tabs groupId="config-example">
105+ <TabItem value="yaml" label="YAML">
106+ ```yaml title="config.yaml"
107+ models:
108+ - name: Llama3.1 8B
109+ provider: ollama
110+ model: llama3.1:8b
111+ apiBase: http://<my endpoint>:11434
112+ ```
113+ </TabItem>
114+ <TabItem value="json" label="JSON">
115+ ```json title="config.json"
116+ {
117+ "models": [
118+ {
119+ "title": "Llama3.1 8B",
120+ "provider": "ollama",
121+ "model": "llama3.1:8b",
122+ "apiBase": "http://<my endpoint>:11434"
123+ }
124+ ]
125+ }
126+ ```
127+ </TabItem>
128+</Tabs>
added docs/docs/customize/model-providers/top-level/openai.mdx +160 −0
@@ -0,0 +1,160 @@
1+---
2+title: OpenAI
3+slug: ../openai
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [OpenAI console](https://platform.openai.com/account/api-keys)
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **GPT-4o** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: GPT-4o
22+ provider: openai
23+ model: gpt-4o
24+ apiKey: <YOUR_OPENAI_API_KEY>
25+ ```
26+ </TabItem>
27+ <TabItem value="json" label="JSON">
28+ ```json title="config.json"
29+ {
30+ "models": [
31+ {
32+ "title": "GPT-4o",
33+ "provider": "openai",
34+ "model": "gpt-4o",
35+ "apiKey": "<YOUR_OPENAI_API_KEY>"
36+ }
37+ ]
38+ }
39+ ```
40+ </TabItem>
41+</Tabs>
42+
43+## Autocomplete model
44+
45+OpenAI currently does not offer any autocomplete models.
46+
47+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
48+
49+## Embeddings model
50+
51+We recommend configuring **text-embedding-3-large** as your embeddings model.
52+
53+<Tabs groupId="config-example">
54+ <TabItem value="yaml" label="YAML">
55+ ```yaml title="config.yaml"
56+ models:
57+ - name: OpenAI Embeddings
58+ provider: openai
59+ model: text-embedding-3-large
60+ apiKey: <YOUR_OPENAI_API_KEY>
61+ roles:
62+ - embed
63+ ```
64+ </TabItem>
65+ <TabItem value="json" label="JSON">
66+ ```json title="config.json"
67+ {
68+ "embeddingsProvider": {
69+ "provider": "openai",
70+ "model": "text-embedding-3-large",
71+ "apiKey": "<YOUR_OPENAI_API_KEY>"
72+ }
73+ }
74+ ```
75+ </TabItem>
76+</Tabs>
77+
78+## Reranking model
79+
80+OpenAI currently does not offer any reranking models.
81+
82+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
83+
84+## OpenAI compatible servers / APIs
85+
86+OpenAI compatible servers
87+
88+- [KoboldCpp](https://github.com/lostruins/koboldcpp)
89+- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
90+- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)
91+- [LocalAI](https://localai.io/basics/getting_started/)
92+- [llama-cpp-python](https://github.com/abetlen/llama-cpp-python#web-server)
93+- [TensorRT-LLM](https://github.com/NVIDIA/trt-llm-as-openai-windows?tab=readme-ov-file#examples)
94+- [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html)
95+- [BerriAI/litellm](https://github.com/BerriAI/litellm)
96+
97+OpenAI compatible APIs
98+
99+- [Anyscale Endpoints](https://github.com/continuedev/deploy-os-code-llm#others)
100+- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints)
101+
102+If you are using an OpenAI compatible server / API, you can change the `apiBase` like this:
103+
104+<Tabs groupId="config-example">
105+ <TabItem value="yaml" label="YAML">
106+ ```yaml title="config.yaml"
107+ models:
108+ - name: OpenAI-compatible server / API
109+ provider: openai
110+ model: MODEL_NAME
111+ apiBase: http://localhost:8000/v1
112+ apiKey: <YOUR_CUSTOM_API_KEY>
113+ ```
114+ </TabItem>
115+ <TabItem value="json" label="JSON">
116+ ```json title="config.json"
117+ {
118+ "models": [
119+ {
120+ "title": "OpenAI-compatible server / API",
121+ "provider": "openai",
122+ "model": "MODEL_NAME",
123+ "apiKey": "<YOUR_CUSTOM_API_KEY>",
124+ "apiBase": "http://localhost:8000/v1"
125+ }
126+ ]
127+ }
128+ ```
129+ </TabItem>
130+</Tabs>
131+
132+To force usage of `chat/completions` instead of `completions` endpoint you can set:
133+
134+<Tabs groupId="config-example">
135+ <TabItem value="yaml" label="YAML">
136+ ```yaml title="config.yaml"
137+ models:
138+ - name: OpenAI-compatible server / API
139+ provider: openai
140+ model: MODEL_NAME
141+ apiBase: http://localhost:8000/v1
142+ useLegacyCompletionsEndpoint: true
143+ ```
144+ </TabItem>
145+ <TabItem value="json" label="JSON">
146+ ```json title="config.json"
147+ {
148+ "models": [
149+ {
150+ "title": "OpenAI-compatible server / API",
151+ "provider": "openai",
152+ "model": "MODEL_NAME",
153+ "apiBase": "http://localhost:8000/v1",
154+ "useLegacyCompletionsEndpoint": true
155+ }
156+ ]
157+ }
158+ ```
159+ </TabItem>
160+</Tabs>
added docs/docs/customize/model-providers/top-level/vertexai.mdx +116 −0
@@ -0,0 +1,116 @@
1+---
2+title: Vertex AI
3+slug: ../vertexai
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc).
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **Claude 3.5 Sonnet** as your chat model.
16+
17+<Tabs groupId="config-example">
18+ <TabItem value="yaml" label="YAML">
19+ ```yaml title="config.yaml"
20+ models:
21+ - name: Claude 3.5 Sonnet
22+ provider: vertexai
23+ model: claude-3-5-sonnet-20240620
24+ env:
25+ projectId: <PROJECT_ID>
26+ region: us-east5
27+ ```
28+ </TabItem>
29+ <TabItem value="json" label="JSON">
30+ ```json title="config.json"
31+ {
32+ "models": [
33+ {
34+ "title": "Claude 3.5 Sonnet",
35+ "provider": "vertexai",
36+ "model": "claude-3-5-sonnet-20240620",
37+ "projectId": "[PROJECT_ID]",
38+ "region": "us-east5"
39+ }
40+ ]
41+ }
42+ ```
43+ </TabItem>
44+</Tabs>
45+
46+## Autocomplete model
47+
48+We recommend configuring **Codestral** or **code-gecko** as your autocomplete model.
49+
50+<Tabs groupId="config-example">
51+ <TabItem value="yaml" label="YAML">
52+ ```yaml title="config.yaml"
53+ models:
54+ - name: Codestral (Vertex AI)
55+ provider: vertexai
56+ model: codestral
57+ roles:
58+ - autocomplete
59+ env:
60+ projectId: <PROJECT_ID>
61+ region: us-central1
62+
63+ ```
64+ </TabItem>
65+ <TabItem value="json" label="JSON">
66+ ```json title="config.json"
67+ {
68+ "tabAutocompleteModel": {
69+ "title": "Codestral (Vertex AI)",
70+ "provider": "vertexai",
71+ "model": "codestral",
72+ "projectId": "[PROJECT_ID]",
73+ "region": "us-central1"
74+ }
75+ }
76+ ```
77+ </TabItem>
78+</Tabs>
79+
80+## Embeddings model
81+
82+We recommend configuring **text-embedding-004** as your embeddings model.
83+
84+<Tabs groupId="config-example">
85+ <TabItem value="yaml" label="YAML">
86+ ```yaml title="config.yaml"
87+ models:
88+ - name: Text Embedding-004
89+ provider: vertexai
90+ model: text-embedding-004
91+ env:
92+ projectId: <PROJECT_ID>
93+ region: us-central1
94+ roles:
95+ - embed
96+ ```
97+ </TabItem>
98+ <TabItem value="json" label="JSON">
99+ ```json title="config.json"
100+ {
101+ "embeddingsProvider": {
102+ "provider": "vertexai",
103+ "model": "text-embedding-004",
104+ "projectId": "[PROJECT_ID]",
105+ "region": "us-central1"
106+ }
107+ }
108+ ```
109+ </TabItem>
110+</Tabs>
111+
112+## Reranking model
113+
114+Vertex AI currently does not offer any reranking models.
115+
116+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-providers/top-level/xAI.mdx +62 −0
@@ -0,0 +1,62 @@
1+---
2+title: xAI
3+slug: ../xai
4+---
5+
6+import TabItem from "@theme/TabItem";
7+import Tabs from "@theme/Tabs";
8+
9+:::info
10+You can get an API key from the [xAI console](https://console.x.ai/)
11+:::
12+
13+## Chat model
14+
15+We recommend configuring **grok-2-latest** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
16+
17+<Tabs groupId="hub-config-example">
18+ <TabItem value="hub" label="Config">
19+ Add the [xAI Grok 2 model block](https://hub.continue.dev/xai/grok-2) on the hub.
20+ </TabItem>
21+ <TabItem value="yaml" label="YAML">
22+ ```yaml title="config.yaml"
23+ models:
24+ - name: Grok 2
25+ provider: xAI
26+ model: grok-2-latest
27+ apiKey: <YOUR_XAI_API_KEY>
28+ ```
29+ </TabItem>
30+ <TabItem value="json" label="JSON">
31+ ```json title="config.json"
32+ {
33+ "models": [
34+ {
35+ "title": "Grok 2",
36+ "provider": "xAI",
37+ "model": "grok-2-latest",
38+ "apiKey": "<YOUR_XAI_API_KEY>"
39+ }
40+ ]
41+ }
42+ ```
43+ </TabItem>
44+</Tabs>
45+
46+## Autocomplete model
47+
48+xAI currently does not offer any autocomplete models.
49+
50+[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
51+
52+## Embeddings model
53+
54+xAI currently does not offer any embeddings models.
55+
56+[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
57+
58+## Reranking model
59+
60+xAI currently does not offer any reranking models.
61+
62+[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
added docs/docs/customize/model-roles/00-intro.mdx +31 −0
@@ -0,0 +1,31 @@
1+---
2+title: Intro to Roles
3+description: Apply model role
4+keywords: [apply, model, role]
5+sidebar_position: 0
6+sidebar_label: Introduction
7+---
8+
9+import TabItem from "@theme/TabItem";
10+import Tabs from "@theme/Tabs";
11+
12+Models in Continue can be configured to be used for various roles in the extension.
13+
14+- [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar
15+- [`autocomplete`](./autocomplete.md): Used for autocomplete code suggestions in the editor
16+- [`edit`](./edit.mdx): Used to generate code based on edit prompts
17+- [`apply`](./apply.mdx): Used to decide how to apply edits to a file
18+- [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
19+- [`rerank`](./reranking.mdx): Used to rerank results from vector search
20+
21+These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
22+
23+## Selecting model roles
24+
25+You can control which of the models in your assistant for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
26+
27+![Settings Active Models Section](/img/settings-model-roles.png)
28+
29+:::info
30+`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
31+:::
added docs/docs/customize/model-roles/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Model Roles",
3+ "position": 5
4+}
added docs/docs/customize/model-roles/apply.mdx +42 −0
@@ -0,0 +1,42 @@
1+---
2+title: Apply Role
3+description: Apply model role
4+keywords: [apply, model, role]
5+sidebar_position: 4
6+---
7+
8+When editing code, Chat and Edit model output often doesn't clearly align with existing code. A model with the `apply` role is used to generate a more precise diff to apply changes to a file.
9+
10+## Recommended Apply models
11+
12+We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can sign up for Morph's free tier [here](https://morphllm.com/dashboard) or get a Relace API key [here](https://app.relace.ai/settings/api-keys).
13+
14+However, most Chat models can also be used for applying code changes. We recommend smaller/cheaper models for the task, such as Claude 3.5 Haiku.
15+
16+:::info
17+Explore all apply models in [the Hub](https://hub.continue.dev/explore/models?roles=apply)
18+:::
19+
20+## Prompt templating
21+
22+You can customize the prompt template used for applying code changes by setting the `promptTemplates.apply` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
23+
24+Available variables for the apply template:
25+
26+- `{{{original_code}}}` - The original code before changes
27+- `{{{new_code}}}` - The new code after changes
28+
29+Example:
30+
31+```yaml
32+models:
33+ - name: My Custom Apply Template
34+ provider: anthropic
35+ model: claude-3-5-sonnet-latest
36+ promptTemplates:
37+ apply: |
38+ Original: {{{original_code}}}
39+ New: {{{new_code}}}
40+
41+ Please generate the final code without any markers or explanations.
42+```
added docs/docs/customize/model-roles/autocomplete.md +41 −0
@@ -0,0 +1,41 @@
1+---
2+title: Autocomplete Role
3+description: Autocomplete model role
4+keywords: [autocomplete, model, role]
5+sidebar_position: 2
6+---
7+
8+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.
9+
10+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`.
11+
12+## Recommended Autocomplete models
13+
14+Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details.
15+
16+## Prompt templating
17+
18+You can customize the prompt template used when autocomplete happens by setting the `promptTemplates.autocomplete` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
19+
20+Available variables for the apply template:
21+
22+- `{{{prefix}}}` - the code before your cursor
23+- `{{{suffix}}}` - the code after your cursor
24+- `{{{filename}}}` - the name of the file your cursor currently is
25+- `{{{reponame}}}` - the name of the folder where the codebase is
26+- `{{{language}}}` - the name of the programming language in full (ex. Typescript)
27+
28+Example:
29+
30+```yaml
31+models:
32+ - name: My Custom Autocomplete Template
33+ provider: ollama
34+ model: qwen2.5-coder:1.5b
35+ promptTemplates:
36+ autocomplete: |
37+ `
38+ globalThis.importantFunc = importantFunc
39+ <|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>
40+ `
41+```
added docs/docs/customize/model-roles/chat.mdx +407 −0
@@ -0,0 +1,407 @@
1+---
2+title: Chat Role
3+description: Chat model role
4+keywords: [chat, model, role]
5+sidebar_position: 1
6+---
7+
8+import TabItem from "@theme/TabItem";
9+import Tabs from "@theme/Tabs";
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) 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.
14+
15+## Recommended Chat models
16+
17+## Best overall experience
18+
19+For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models.
20+
21+### Claude Sonnet 3.7 from Anthropic
22+
23+Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx).
24+
25+<Tabs groupId="hub-config-example">
26+ <TabItem value="hub" label="Hub">
27+ View the [Claude 3.7 Sonnet model block](https://hub.continue.dev/anthropic/claude-3-7-sonnet) on the hub.
28+ </TabItem>
29+ <TabItem value="yaml" label="YAML">
30+ ```yaml title="config.yaml"
31+ models:
32+ - name: Claude 3.7 Sonnet
33+ provider: anthropic
34+ model: claude-3-7-sonnet-latest
35+ apiKey: <YOUR_ANTHROPIC_API_KEY>
36+ ```
37+ </TabItem>
38+ <TabItem value="json" label="JSON">
39+ ```json title="config.json"
40+ {
41+ "models": [
42+ {
43+ "title": "Claude 3.5 Sonnet",
44+ "provider": "anthropic",
45+ "model": "claude-3-5-sonnet-latest",
46+ "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
47+ }
48+ ]
49+ }
50+ ```
51+ </TabItem>
52+</Tabs>
53+
54+### Gemma from Google DeepMind
55+
56+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.mdx), or self-host it, e.g. [Ollama](../model-providers/top-level/ollama.mdx).
57+
58+<Tabs groupId="config-example">
59+ <TabItem value="hub" label="Hub">
60+ <Tabs groupId="providers">
61+ <TabItem value="Ollama">
62+ Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub
63+ </TabItem>
64+ <TabItem value="Together">
65+ Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub
66+ </TabItem>
67+ </Tabs>
68+ </TabItem>
69+ <TabItem value="yaml" label="YAML">
70+ <Tabs groupId="providers">
71+ <TabItem value="Ollama">
72+ ```yaml title="config.yaml"
73+ models:
74+ - name: "Gemma 3 27B"
75+ provider: "ollama"
76+ model: "gemma3:27b"
77+ ```
78+ </TabItem>
79+ <TabItem value="Together">
80+ ```yaml title="config.yaml"
81+ models:
82+ - name: "Gemma 3 27B"
83+ provider: "together"
84+ model: "google/gemma-2-27b-it"
85+ apiKey: <YOUR_TOGETHER_API_KEY>
86+ ```
87+ </TabItem>
88+ </Tabs>
89+ </TabItem>
90+ <TabItem value="json" label="JSON">
91+ <Tabs groupId="providers">
92+ <TabItem value="Ollama">
93+ ```json title="config.json"
94+ {
95+ "models": [
96+ {
97+ "title": "Gemma 3 27B",
98+ "provider": "ollama",
99+ "model": "gemma3:27b"
100+ }
101+ ]
102+ }
103+ ```
104+ </TabItem>
105+ <TabItem value="Together">
106+ ```json title="config.json"
107+ {
108+ "models": [
109+ {
110+ "title": "Gemma 3 27B",
111+ "provider": "together",
112+ "model": "google/gemma-2-27b-it",
113+ "apiKey": "<YOUR_TOGETHER_API_KEY>"
114+ }
115+ ]
116+ }
117+ ```
118+ </TabItem>
119+ </Tabs>
120+ </TabItem>
121+</Tabs>
122+
123+### GPT-4o from OpenAI
124+
125+If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.mdx), then we recommend GPT-4o.
126+
127+<Tabs groupId="hub-config-example">
128+ <TabItem value="hub" label="Hub">
129+ Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub
130+ </TabItem>
131+ <TabItem value="yaml" label="YAML">
132+ ```yaml title="config.yaml"
133+ models:
134+ - name: GPT-4o
135+ provider: openai
136+ model: ''
137+ apiKey: <YOUR_OPENAI_API_KEY>
138+ ```
139+ </TabItem>
140+ <TabItem value="json" label="JSON">
141+ ```json title="config.json"
142+ {
143+ "models": [
144+ {
145+ "title": "GPT-4o",
146+ "provider": "openai",
147+ "model": "",
148+ "apiKey": "<YOUR_OPENAI_API_KEY>"
149+ }
150+ ]
151+ }
152+ ```
153+ </TabItem>
154+</Tabs>
155+
156+### Grok-2 from xAI
157+
158+If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), then we recommend Grok-2.
159+
160+<Tabs groupId="hub-config-example">
161+ <TabItem value="hub" label="Hub">
162+ Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub
163+ </TabItem>
164+ <TabItem value="yaml" label="YAML">
165+ ```yaml title="config.yaml"
166+ models:
167+ - name: Grok-2
168+ provider: xAI
169+ model: grok-2-latest
170+ apiKey: <YOUR_XAI_API_KEY>
171+ ```
172+ </TabItem>
173+ <TabItem value="json" label="JSON">
174+ ```json title="config.json"
175+ {
176+ "models": [
177+ {
178+ "title": "Grok-2",
179+ "provider": "xAI",
180+ "model": "grok-2-latest",
181+ "apiKey": "<YOUR_XAI_API_KEY>"
182+ }
183+ ]
184+ }
185+ ```
186+ </TabItem>
187+</Tabs>
188+
189+### Gemini 2.0 Flash from Google
190+
191+If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash.
192+
193+<Tabs groupId="hub-config-example">
194+ <TabItem value="hub" label="Hub">
195+ Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub
196+ </TabItem>
197+ <TabItem value="yaml" label="YAML">
198+ ```yaml title="config.yaml"
199+ models:
200+ - name: Gemini 2.0 Flash
201+ provider: gemini
202+ model: gemini-2.0-flash
203+ apiKey: <YOUR_GEMINI_API_KEY>
204+ ```
205+ </TabItem>
206+ <TabItem value="json" label="JSON">
207+ ```json title="config.json"
208+ {
209+ "models": [
210+ {
211+ "title": "Gemini 2.0 Flash",
212+ "provider": "gemini",
213+ "model": "gemini-2.0-flash",
214+ "apiKey": "<YOUR_GEMINI_API_KEY>"
215+ }
216+ ]
217+ }
218+ ```
219+ </TabItem>
220+</Tabs>
221+
222+## Local, offline experience
223+
224+For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine.
225+
226+### Llama 3.1 8B
227+
228+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.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
229+
230+<Tabs groupId="hub-config-example">
231+ <TabItem value="hub" label="Hub">
232+ <Tabs groupId="providers">
233+ <TabItem value="ollama" label="Ollama">
234+ Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub
235+ </TabItem>
236+ {/* HUB_TODO nonexistent block */}
237+ {/* <TabItem value="lmstudio" label="LM Studio">
238+ Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub
239+ </TabItem> */}
240+ </Tabs>
241+ </TabItem>
242+ <TabItem value="yaml" label="YAML">
243+ <Tabs groupId="providers">
244+ <TabItem value="Ollama">
245+ ```yaml title="config.yaml"
246+ models:
247+ - name: Llama 3.1 8B
248+ provider: ollama
249+ model: llama3.1:8b
250+ ```
251+ </TabItem>
252+ <TabItem value="LM Studio">
253+ ```yaml title="config.yaml"
254+ models:
255+ - name: Llama 3.1 8B
256+ provider: lmstudio
257+ model: llama3.1:8b
258+ ```
259+ </TabItem>
260+ <TabItem value="Msty">
261+ ```yaml title="config.yaml"
262+ models:
263+ - name: Llama 3.1 8B
264+ provider: msty
265+ model: llama3.1:8b
266+ ```
267+ </TabItem>
268+ </Tabs>
269+ </TabItem>
270+ <TabItem value="json" label="JSON">
271+ <Tabs groupId="providers">
272+ <TabItem value="Ollama">
273+ ```json title="config.json"
274+ {
275+ "models": [
276+ {
277+ "title": "Llama 3.1 8B",
278+ "provider": "ollama",
279+ "model": "llama3.1:8b"
280+ }
281+ ]
282+ }
283+ ```
284+ </TabItem>
285+ <TabItem value="LM Studio">
286+ ```json title="config.json"
287+ {
288+ "models": [
289+ {
290+ "title": "Llama 3.1 8B",
291+ "provider": "lmstudio",
292+ "model": "llama3.1-8b"
293+ }
294+ ]
295+ }
296+ ```
297+ </TabItem>
298+ <TabItem value="Msty">
299+ ```json title="config.json"
300+ {
301+ "models": [
302+ {
303+ "title": "Llama 3.1 8B",
304+ "provider": "msty",
305+ "model": "llama3.1-8b"
306+ }
307+ ]
308+ }
309+ ```
310+ </TabItem>
311+ </Tabs>
312+ </TabItem>
313+</Tabs>
314+
315+### DeepSeek Coder 2 16B
316+
317+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.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
318+
319+<Tabs groupId="config-example">
320+ {/* HUB_TODO nonexistent blocks */}
321+ {/* <TabItem value="hub" label="Hub">
322+ <Tabs groupId="providers">
323+ <TabItem value="ollama" label="Ollama">
324+ Add the [Ollama Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
325+ </TabItem>
326+ <TabItem value="lmstudio" label="LM Studio">
327+ Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
328+ </TabItem>
329+ </Tabs>
330+ </TabItem> */}
331+ <TabItem value="yaml" label="YAML">
332+ <Tabs groupId="providers">
333+ <TabItem value="Ollama">
334+ ```yaml title="config.yaml"
335+ models:
336+ - name: DeepSeek Coder 2 16B
337+ provider: ollama
338+ model: deepseek-coder-v2:16b
339+ ```
340+ </TabItem>
341+ <TabItem value="LM Studio">
342+ ```yaml title="config.yaml"
343+ models:
344+ - name: DeepSeek Coder 2 16B
345+ provider: lmstudio
346+ model: deepseek-coder-v2:16b
347+ ```
348+ </TabItem>
349+ <TabItem value="Msty">
350+ ```yaml title="config.yaml"
351+ models:
352+ - name: DeepSeek Coder 2 16B
353+ provider: msty
354+ model: deepseek-coder-v2:16b
355+ ```
356+ </TabItem>
357+ </Tabs>
358+ </TabItem>
359+ <TabItem value="json" label="JSON">
360+ <Tabs groupId="providers">
361+ <TabItem value="Ollama">
362+ ```json title="config.json"
363+ {
364+ "models": [
365+ {
366+ "title": "DeepSeek Coder 2 16B",
367+ "provider": "ollama",
368+ "model": "deepseek-coder-v2:16b",
369+ "apiBase": "http://localhost:11434"
370+ }
371+ ]
372+ }
373+ ```
374+ </TabItem>
375+ <TabItem value="LM Studio">
376+ ```json title="config.json"
377+ {
378+ "models": [
379+ {
380+ "title": "DeepSeek Coder 2 16B",
381+ "provider": "lmstudio",
382+ "model": "deepseek-coder-v2:16b"
383+ }
384+ ]
385+ }
386+ ```
387+ </TabItem>
388+ <TabItem value="Msty">
389+ ```json title="config.json"
390+ {
391+ "models": [
392+ {
393+ "title": "DeepSeek Coder 2 16B",
394+ "provider": "msty",
395+ "model": "deepseek-coder-v2:16b"
396+ }
397+ ]
398+ }
399+ ```
400+ </TabItem>
401+ </Tabs>
402+ </TabItem>
403+</Tabs>
404+
405+## Other experiences
406+
407+There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx)
added docs/docs/customize/model-roles/edit.mdx +82 −0
@@ -0,0 +1,82 @@
1+---
2+title: Edit Role
3+description: Edit model role
4+keywords: [edit, editing, model, role]
5+sidebar_position: 3
6+---
7+
8+import TabItem from "@theme/TabItem";
9+import Tabs from "@theme/Tabs";
10+
11+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.
12+
13+In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used.
14+
15+<Tabs groupId="config-example">
16+ <TabItem value="yaml" label="YAML">
17+ Use model roles.
18+ ```yaml title="config.yaml"
19+ models:
20+ - name: Claude 3.5 Sonnet
21+ provider: anthropic
22+ model: claude-3-5-sonnet-latest
23+ apiKey: <YOUR_ANTHROPIC_API_KEY>
24+ roles:
25+ - edit
26+ ```
27+ </TabItem>
28+ <TabItem value="json" label="JSON">
29+ Set the `experimental.modelRoles.inlineEdit` property in `config.json`.
30+ ```json title="config.json"
31+ {
32+ "models": {
33+ "name": "Claude 3.5 Sonnet",
34+ "provider": "anthropic",
35+ "model": "claude-3-5-sonnet-latest",
36+ "apiKey": "<YOUR_ANTHROPIC_API_KEY>"
37+ },
38+ "experimental": {
39+ "modelRoles": {
40+ "inlineEdit": "Claude 3.5 Sonnet",
41+ }
42+ }
43+ }
44+ ```
45+ </TabItem>
46+</Tabs>
47+
48+Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.
49+
50+## Prompt templating
51+
52+You can customize the prompt template used for editing code by setting the `promptTemplates.edit` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
53+
54+Available variables for the edit template:
55+
56+- `{{{userInput}}}` - The user's edit request/instruction
57+- `{{{language}}}` - The programming language of the code
58+- `{{{codeToEdit}}}` - The code that's being edited
59+- `{{{prefix}}}` - Content before the edit area
60+- `{{{suffix}}}` - Content after the edit area
61+- `{{{supportsCompletions}}}` - Whether the model supports completions API
62+- `{{{supportsPrefill}}}` - Whether the model supports prefill capability
63+
64+Example:
65+
66+```yaml
67+models:
68+ - name: My Custom Edit Template
69+ provider: openai
70+ model: gpt-4o
71+ promptTemplates:
72+ edit: |
73+ `Here is the code before editing:
74+ \`\`\`{{{language}}}
75+ {{{codeToEdit}}}
76+ \`\`\`
77+
78+ Here is the edit requested:
79+ "{{{userInput}}}"
80+
81+ Here is the code after editing:`
82+```
added docs/docs/customize/model-roles/embeddings.mdx +154 −0
@@ -0,0 +1,154 @@
1+---
2+title: Embed Role
3+description: Embed model role
4+keywords: [embedding, model, role, embeddings]
5+sidebar_position: 5
6+---
7+
8+import TabItem from "@theme/TabItem";
9+import Tabs from "@theme/Tabs";
10+
11+An "embeddings model" is trained to convert a piece of text into a vector, which can later be rapidly compared to other vectors to determine similarity between the pieces of text. Embeddings models are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
12+
13+In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase.mdx) to perform similarity search over your codebase.
14+
15+You can add `embed` to a model's `roles` to specify that it can be used to embed.
16+
17+:::info[Built-in model (VS Code only)]
18+`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder.
19+:::
20+
21+## Recommended embedding models
22+
23+If you have the ability to use any model, we recommend `voyage-code-3`, which is listed below along with the rest of the options for embeddings models.
24+
25+If you want to generate embeddings locally, we recommend using `nomic-embed-text` with [Ollama](../model-providers/top-level/ollama.mdx#embeddings-model).
26+
27+### Voyage AI
28+
29+After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
30+
31+<Tabs groupId="hub-config-example">
32+ <TabItem value="hub" label="Hub">
33+ [Voyage Code 3 Embedder Block](https://hub.continue.dev/voyageai/voyage-code-3)
34+ </TabItem>
35+ <TabItem value="yaml" label="YAML">
36+ ```yaml title="config.yaml"
37+ models:
38+ - name: Voyage Code 3
39+ provider: voyage
40+ model: voyage-code-3
41+ apiKey: <YOUR_VOYAGE_API_KEY>
42+ roles:
43+ - embed
44+ ```
45+ </TabItem>
46+ <TabItem value="json" label="JSON">
47+ ```json title="config.json"
48+ {
49+ "embeddingsProvider": {
50+ "provider": "voyage",
51+ "model": "voyage-code-3",
52+ "apiKey": "<YOUR_VOYAGE_API_KEY>"
53+ }
54+ }
55+ ```
56+ </TabItem>
57+</Tabs>
58+
59+### Ollama
60+
61+See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instructions on how to use Ollama for embeddings.
62+
63+### Transformers.js (currently VS Code only)
64+
65+[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension.
66+
67+<Tabs groupId="config-example">
68+ <TabItem value="yaml" label="YAML">
69+ ```yaml title="config.yaml"
70+ models:
71+ - name: default-transformers
72+ provider: transformers.js
73+ roles:
74+ - embed
75+ ```
76+ </TabItem>
77+ <TabItem value="json" label="JSON">
78+ ```json title="config.json"
79+ {
80+ "embeddingsProvider": {
81+ "provider": "transformers.js"
82+ }
83+ }
84+ ```
85+ </TabItem>
86+</Tabs>
87+
88+### Text Embeddings Inference
89+
90+[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own embeddings endpoint. You can configure embeddings to use your endpoint as follows:
91+
92+<Tabs groupId="config-example">
93+ {/* HUB_TODO nonexistent block */}
94+ {/* <TabItem value="hub" label="Hub">
95+ [HuggingFace Text Embedder Block](https://hub.continue.dev/)
96+ </TabItem> */}
97+ <TabItem value="yaml" label="YAML">
98+ ```yaml title="config.yaml"
99+ models:
100+ - name: Huggingface TEI Embedder
101+ provider: huggingface-tei
102+ apiBase: http://localhost:8080
103+ apiKey: <YOUR_TEI_API_KEY>
104+ roles: [embed]
105+ ```
106+ </TabItem>
107+ <TabItem value="json" label="JSON">
108+ ```json title="config.json"
109+ {
110+ "embeddingsProvider": {
111+ "provider": "huggingface-tei",
112+ "apiBase": "http://localhost:8080",
113+ "apiKey": "<YOUR_TEI_API_KEY>"
114+ }
115+ }
116+ ```
117+ </TabItem>
118+</Tabs>
119+
120+### OpenAI
121+
122+See [here](../model-providers/top-level/openai.mdx#embeddings-model) for instructions on how to use OpenAI for embeddings.
123+
124+### Cohere
125+
126+See [here](../model-providers/more/cohere.mdx#embeddings-model) for instructions on how to use Cohere for embeddings.
127+
128+### Gemini
129+
130+See [here](../model-providers/top-level/gemini.mdx#embeddings-model) for instructions on how to use Gemini for embeddings.
131+
132+### Vertex
133+
134+See [here](../model-providers/top-level/vertexai.mdx#embeddings-model) for instructions on how to use Vertex for embeddings.
135+
136+### Mistral
137+
138+See [here](../model-providers/top-level/mistral.mdx#embeddings-model) for instructions on how to use Mistral for embeddings.
139+
140+### NVIDIA
141+
142+See [here](../model-providers/more/nvidia.mdx#embeddings-model) for instructions on how to use NVIDIA for embeddings.
143+
144+### Bedrock
145+
146+See [here](../model-providers/top-level/bedrock.mdx#embeddings-model) for instructions on how to use Bedrock for embeddings.
147+
148+### WatsonX
149+
150+See [here](../model-providers/more/watsonx.mdx#embeddings-model) for instructions on how to use WatsonX for embeddings.
151+
152+### LMStudio
153+
154+See [here](../model-providers/more/lmstudio.mdx#embeddings-model) for instructions on how to use LMStudio for embeddings.
added docs/docs/customize/model-roles/reranking.mdx +156 −0
@@ -0,0 +1,156 @@
1+---
2+title: Rerank Role
3+description: Rerank model role
4+keywords: [rerank, reranking, model, role]
5+sidebar_position: 6
6+---
7+
8+import TabItem from "@theme/TabItem";
9+import Tabs from "@theme/Tabs";
10+
11+A "reranking model" is trained to take two pieces of text (often a user question and a document) and return a relevancy score between 0 and 1, estimating how useful the document will be in answering the question. Rerankers are typically much smaller than LLMs, and will be extremely fast and cheap in comparison.
12+
13+In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase.mdx) in order to select the most relevant code snippets after vector search.
14+
15+## Recommended reranking models
16+
17+If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers.
18+
19+### Voyage AI
20+
21+Voyage AI offers the best reranking model for code with their `rerank-2` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure a reranker as follows:
22+
23+<Tabs groupId="hub-config-example">
24+ <TabItem value="hub" label="Hub">
25+ [Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2)
26+ </TabItem>
27+ <TabItem value="yaml" label="YAML">
28+ ```yaml title="config.yaml"
29+ models:
30+ - name: My Voyage Reranker
31+ provider: voyage
32+ apiKey: <YOUR_VOYAGE_API_KEY>
33+ model: rerank-2
34+ roles:
35+ - rerank
36+ ```
37+ </TabItem>
38+ <TabItem value="json" label="JSON">
39+ ```json title="config.json"
40+ {
41+ "reranker": {
42+ "name": "voyage",
43+ "params": {
44+ "model": "rerank-2",
45+ "apiKey": "<YOUR_VOYAGE_API_KEY>"
46+ }
47+ }
48+ }
49+ ```
50+ </TabItem>
51+</Tabs>
52+
53+### Cohere
54+
55+See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rerank-2).
56+
57+<Tabs groupId="config-example">
58+ {/* HUB_TODO block doesn't exist */}
59+ {/* <TabItem value="hub" label="Hub">
60+ [Cohere Reranker English v3](https://hub.continue.dev/)
61+ </TabItem> */}
62+ <TabItem value="yaml" label="YAML">
63+ ```yaml title="config.yaml"
64+ models:
65+ - name: Cohere Reranker
66+ provider: cohere
67+ model: rerank-english-v3.0
68+ apiKey: <YOUR_COHERE_API_KEY>
69+ roles:
70+ - rerank
71+ ```
72+ </TabItem>
73+ <TabItem value="json" label="JSON">
74+ ```json title="config.json"
75+ {
76+ "reranker": {
77+ "name": "cohere",
78+ "params": {
79+ "model": "rerank-english-v3.0",
80+ "apiKey": "<YOUR_COHERE_API_KEY>"
81+ }
82+ }
83+ }
84+ ```
85+ </TabItem>
86+</Tabs>
87+
88+### LLM
89+
90+If you only have access to a single LLM, then you can use it as a reranker. This is discouraged unless truly necessary, because it will be much more expensive and still less accurate than any of the above models trained specifically for the task. Note that this will not work if you are using a local model, for example with Ollama, because too many parallel requests need to be made.
91+
92+<Tabs groupId="config-example">
93+ {/* HUB_TODO block doesn't exist */}
94+ {/* <TabItem value="hub" label="Hub">
95+ [GPT-4o LLM Reranker Block](https://hub.continue.dev/)
96+ </TabItem> */}
97+ <TabItem value="yaml" label="YAML">
98+ ```yaml title="config.yaml"
99+ models:
100+ - name: LLM Reranker
101+ provider: openai
102+ model: gpt-4o
103+ roles:
104+ - rerank
105+ ```
106+ </TabItem>
107+ <TabItem value="json" label="JSON">
108+ ```json title="config.json"
109+ {
110+ "reranker": {
111+ "name": "llm",
112+ "params": {
113+ "modelTitle": "My Model Title"
114+ }
115+ }
116+ }
117+ ```
118+ </TabItem>
119+</Tabs>
120+
121+The `"modelTitle"` field must match one of the models in your "models" array in config.json.
122+
123+### Text Embeddings Inference
124+
125+[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own [reranker endpoint](https://huggingface.github.io/text-embeddings-inference/#/Text%20Embeddings%20Inference/rerank). You can configure your reranker as follows:
126+
127+<Tabs groupId="config-example">
128+ {/* HUB_TODO */}
129+ {/* <TabItem value="hub" label="Hub">
130+ [HuggingFace TEI Reranker block](https://hub.continue.dev/)
131+ </TabItem> */}
132+ <TabItem value="yaml" label="YAML">
133+ ```yaml title="config.yaml"
134+ models:
135+ - name: Huggingface-tei Reranker
136+ provider: huggingface-tei
137+ apiBase: http://localhost:8080
138+ apiKey: <YOUR_TEI_API_KEY>
139+ roles:
140+ - rerank
141+ ```
142+ </TabItem>
143+ <TabItem value="json" label="JSON">
144+ ```json title="config.json"
145+ {
146+ "reranker": {
147+ "name": "huggingface-tei",
148+ "params": {
149+ "apiBase": "http://localhost:8080",
150+ "apiKey": "<YOUR_TEI_API_KEY>"
151+ }
152+ }
153+ }
154+ ```
155+ </TabItem>
156+</Tabs>
added docs/docs/customize/settings.md +42 −0
@@ -0,0 +1,42 @@
1+---
2+title: User Settings Page
3+description: Reference for Adjusting User-Specific Settings
4+keywords: [config, settings, configuration, customize, customization, sidebar]
5+---
6+
7+# The User Settings Page
8+
9+The **User Settings page** can be accessed by clicking the gear icon in the header of the Continue sidebar and then selecting the "Settings" tab.
10+
11+![settings](/img/settings-header.png)
12+
13+Which takes you to this page (select the "Settings" tab):
14+
15+![User Settings Page](/img/settings-page.png)
16+
17+Below that, the following settings which are not part of a configuration file are available:
18+
19+- `Show Session Tabs`: If on, displays tabs above the chat as an alternative way to organize and access your sessions. Off by default
20+- `Wrap Codeblocks`: If on, enables text wrapping in code blocks. Off by default.
21+- `Show Chat Scrollbar`: If on, enables a scrollbar in the chat window. Off by default.
22+- `Text-to-Speech Output`: If on, reads LLM responses aloud with TTS. Off by default.
23+- `Enable Session Titles`: If on, generates summary titles for each chat session after the first message, using the current Chat model. On by default.
24+- `Format Markdown`: If off, shows responses as raw text. On by default.
25+- `Allow Anonymous Telemetry`: If on, allows Continue to send anonymous telemetry. **On** by default.
26+- `Enable Indexing`: Enables indexing of the codebase for the @codebase and @code context providers. **On** by default.
27+- `Font Size`: Specifies base font size for UI elements
28+- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
29+- `Autocomplete timeout`: Maximum time in milliseconds for autocomplete request/retreival. Defaults to 150
30+- `Autocomplete debounce`: Minimum time in milliseconds to trigger an autocomplete request after a change. Defaults to 250
31+- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., `**/*.{txt,md}`
32+
33+### Experimental settings
34+
35+At the bottom of the User Settings page there is an "Experimental Settings" section which contains new or otherwise experimental settings, including:
36+
37+- `Auto-Accept Agent Edits`: **CAUTION: Be very careful with this setting. When turned on, Agent mode's edit tool can make changes to files with no manual review or guaranteed stopping point. If on, diffs generated by the edit tool are automatically accepted and Agent proceeds with the next conversational turn.** Off by default.
38+
39+<!-- - `Use autocomplete cache`: If on, caches completions. -->
40+<!-- - `Use Chromium for Docs Crawling`: Use Chromium to crawl docs locally. Useful if the default Cheerio crawler fails on sites that require JavaScript rendering. Downloads and installs Chromium to ~/.continue/.utils. Off by default -->
41+<!-- - `Codeblock Actions Position`: Sets the position for the actions that show when hovering over codeblocks. Defaults to `top` -->
42+<!-- - `Workspace prompts path`: Where to find Prompt Files in a workspace - replaces the default .continue/prompts -->
added docs/docs/customize/telemetry.mdx +31 −0
@@ -0,0 +1,31 @@
1+---
2+title: Telemetry
3+description: Learn how Continue collects anonymous usage information and how you can opt out.
4+keywords: [telemetry, anonymous, usage info, opt out]
5+---
6+
7+## Overview
8+
9+The open-source Continue Extensions collect and report **anonymous** usage information to help us improve our product. This data enables us to understand user interactions and optimize the user experience effectively. You can opt out of telemetry collection at any time if you prefer not to share your usage information.
10+
11+We utilize [Posthog](https://posthog.com/), an open-source platform for product analytics, to gather and store this data. For transparency, you can review the implementation code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx) or read our [official privacy policy](https://continue.dev/privacy).
12+
13+## Tracking Policy
14+
15+All data collected by the open-source Continue extensions is anonymized and stripped of personally identifiable information (PII) before being sent to PostHog. We are committed to maintaining the privacy and security of your data.
16+
17+## What We Track
18+
19+The following usage information is collected and reported:
20+
21+- **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved).
22+- **Model and Command Information:** The name of the model and command used.
23+- **Token Metrics:** The number of tokens generated.
24+- **System Information:** The name of your operating system (OS) and integrated development environment (IDE).
25+- **Pageviews:** General pageview statistics.
26+
27+## How to Opt Out
28+
29+You can disable anonymous telemetry by visiting the [User Settings Page](./settings.md) and toggling "Allow Anonymous Telemetry" off.
30+
31+Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut <kbd>ctrl</kbd> + <kbd>,</kbd> on Windows/Linux or <kbd>cmd</kbd> + <kbd>,</kbd> on macOS).
added docs/docs/customize/yaml-migration.mdx +358 −0
@@ -0,0 +1,358 @@
1+---
2+title: Config Migration to YAML
3+description: Reference for migrating from JSON to YAML Continue configuration.
4+keywords: [config, yaml, configuration, customize, customization, migration]
5+---
6+
7+# Migrating Config to YAML
8+
9+Continue's YAML configuration format provides more readable, maintainable, consistent configuration files, as well as new configuration options and removal of some old configuration options. YAML is the preferred format and will be used to integrate with future Continue products. Below is a brief guide for migration from `config.json` to `config.yaml`.
10+
11+See also
12+
13+- [Intro to YAML](https://yaml.org/)
14+- [JSON Continue Config Reference](/reference)
15+- [YAML Continue Config Reference](/reference)
16+
17+## Create YAML file
18+
19+Create a `config.yaml` file in your Continue Global Directory (`~/.continue` on Mac, `%USERPROFILE%\.continue`) alongside your current `config.json` file. If a `config.yaml` file is present, it will be loaded instead of `config.json`.
20+
21+Give your configuration a `name` and a `version`:
22+
23+```yaml title="config.yaml"
24+name: my-configuration
25+version: 0.0.1
26+schema: v1
27+```
28+
29+### Models
30+
31+Add all model configurations in `config.json`, including models in `models`, `tabAutocompleteModel`, `embeddingsProvider`, and `reranker`, to the `models` section of your new YAML config file. A new `roles` YAML field specifies which roles a model can be used for, with possible values `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`.
32+
33+- `models` in config should have `roles: [chat]`
34+- `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]`
35+- `embeddingsProvider` in config should have `roles: [embed]`
36+- `reranker` in config should have `roles: [rerank]`
37+- `experimental.modelRoles` is replaced by simply adding roles to the model
38+ - `inlineEdit` -> e.g. `roles: [chat, edit]`
39+ - `applyCodeBlock` -> e.g. `roles: [chat, apply]`
40+
41+Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#models)
42+
43+Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](/reference#models)
44+
45+<!-- TODO - ollama autodetect supported? -->
46+
47+**Before**
48+
49+```json title="config.json""
50+{
51+ "models": [
52+ {
53+ "title": "GPT-4",
54+ "provider": "openai",
55+ "model": "gpt-4",
56+ "apiKey": "<YOUR_OPENAI_API_KEY>",
57+ "completionOptions": {
58+ "temperature": 0.5,
59+ "maxTokens": 2000
60+ }
61+ },
62+ {
63+ "title": "Ollama",
64+ "provider": "ollama",
65+ "model": "AUTODETECT"
66+ },
67+ {
68+ "title": "My Open AI Compatible Model",
69+ "provider": "openai",
70+ "apiBase": "http://3.3.3.3/v1",
71+ "model": "my-openai-compatible-model",
72+ "requestOptions": {
73+ "headers": { "X-Auth-Token": "<API_KEY>" }
74+ }
75+ }
76+ ],
77+ "tabAutocompleteModel": {
78+ "title": "My Starcoder",
79+ "provider": "ollama",
80+ "model": "starcoder2:3b"
81+ },
82+ "embeddingsProvider": {
83+ "provider": "openai",
84+ "model": "text-embedding-ada-002",
85+ "apiKey": "<YOUR_OPENAI_API_KEY>",
86+ "maxEmbeddingChunkSize": 256,
87+ "maxEmbeddingBatchSize": 5
88+ },
89+ "reranker": {
90+ "name": "voyage",
91+ "params": {
92+ "model": "rerank-2",
93+ "apiKey": "<YOUR_VOYAGE_API_KEY>"
94+ }
95+ }
96+}
97+```
98+
99+**After**
100+
101+```yaml title="config.yaml"
102+models:
103+ - name: GPT-4
104+ provider: openai
105+ model: gpt-4
106+ apiKey: <YOUR_OPENAI_KEY>
107+ defaultCompletionOptions:
108+ temperature: 0.5
109+ maxTokens: 2000
110+ roles:
111+ - chat
112+ - edit
113+
114+ - name: My Voyage Reranker
115+ provider: voyage
116+ apiKey: <YOUR_VOYAGE_KEY>
117+ roles:
118+ - rerank
119+
120+ - name: My Starcoder
121+ provider: ollama
122+ model: starcoder2:3b
123+ roles:
124+ - autocomplete
125+
126+ - name: My Ada Embedder
127+ provider: openai
128+ apiKey: <YOUR_ADA_API_KEY>
129+ roles:
130+ - embed
131+ embedOptions:
132+ - maxChunkSize: 256
133+ - maxBatchSize: 5
134+
135+ - name: Ollama Autodetect
136+ provider: ollama
137+ model: AUTODETECT
138+
139+ - name: My Open AI Compatible Model - Apply
140+ provider: openai
141+ model: my-openai-compatible-model
142+ apiBase: http://3.3.3.3/v1
143+ requestOptions:
144+ headers:
145+ X-Auth-Token: <MY_API_KEY>
146+ roles:
147+ - chat
148+ - apply
149+```
150+
151+Note that the `repoMapFileSelection` experimental model role has been deprecated and is only available in `config.json`.
152+
153+### Context Providers
154+
155+The JSON `contextProviders` field is replaced by the YAML `context` array.
156+
157+- JSON `name` maps to `provider`
158+- JSON `params` map to `params`
159+
160+**Before**
161+
162+```json title="config.json""
163+{
164+ "contextProviders": [
165+ {
166+ "name": "docs"
167+ },
168+ {
169+ "name": "codebase",
170+ "params": {
171+ "nRetrieve": 30,
172+ "nFinal": 3
173+ }
174+ },
175+ {
176+ "name": "diff",
177+ "params": {}
178+ }
179+ ]
180+}
181+```
182+
183+**After**
184+
185+```yaml title="config.yaml"
186+context:
187+ - provider: docs
188+
189+ - provider: codebase
190+ params:
191+ nRetrieve: 30
192+ nFinal: 3
193+
194+ - provider: diff
195+```
196+
197+### System Message
198+
199+The `systemMessage` property has been replaced with a `rules` property that takes an array of strings.
200+
201+**Before**
202+
203+```json title="config.json""
204+{
205+ "systemMessage": "Always give concise responses"
206+}
207+```
208+
209+**After**
210+
211+```yaml title="config.yaml"
212+rules:
213+ - Always give concise responses
214+```
215+
216+### Prompts
217+
218+Rather than with `customCommands`, you can now use the `prompts` field to define custom prompts.
219+
220+**Before**
221+
222+```json title="config.json""
223+{
224+ "customCommands": [
225+ {
226+ "name": "check",
227+ "description": "Check for mistakes in my code",
228+ "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found."
229+ }
230+ ]
231+}
232+```
233+
234+**After**
235+
236+```yaml title="config.yaml"
237+prompts:
238+ - name: check
239+ description: Check for mistakes in my code
240+ prompt: |
241+ Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
242+ - Syntax errors
243+ - Logic errors
244+ - Security vulnerabilities
245+ - Performance issues
246+ - Anything else that looks wrong
247+
248+ Once you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found.
249+```
250+
251+### Documentation
252+
253+Documentation is largely the same, but the `title` property has been replaced with `name`. The `startUrl`, `rootUrl`, and `faviconUrl` properties remain.
254+
255+**Before**
256+
257+```json title="config.json""
258+{
259+ "docs": [
260+ {
261+ "startUrl": "https://docs.nestjs.com/",
262+ "title": "nest.js"
263+ },
264+ {
265+ "startUrl": "https://mysite.com/docs/",
266+ "title": "My site"
267+ }
268+ ]
269+}
270+```
271+
272+**After**
273+
274+```yaml title="config.yaml"
275+docs:
276+ - name: nest.js
277+ startUrl: https://docs.nestjs.com/
278+
279+ - name: My site
280+ startUrl: https://mysite.com/docs/
281+```
282+
283+### MCP Servers
284+
285+**Properties:**
286+
287+- `name` (**required**): The name of the MCP server.
288+- `command` (**required**): The command used to start the server.
289+- `args`: An optional array of arguments for the command.
290+- `env`: An optional map of environment variables for the server process.
291+
292+**Before**
293+
294+```json title="config.json""
295+{
296+ "experimental": {
297+ "modelContextProtocolServers": [
298+ {
299+ "transport": {
300+ "type": "stdio",
301+ "command": "uvx",
302+ "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"],
303+ "env": {
304+ "KEY": "<VALUE>"
305+ }
306+ }
307+ }
308+ ]
309+ }
310+}
311+```
312+
313+**After**
314+
315+```yaml title="config.yaml"
316+mcpServers:
317+ - name: My MCP Server
318+ command: uvx
319+ args:
320+ - mcp-server-sqlite
321+ - --db-path
322+ - /Users/NAME/test.db
323+ env:
324+ KEY: <VALUE>
325+```
326+
327+---
328+
329+## Deprecated configuration options
330+
331+Some deprecated `config.json` settings are no longer stored in config and have been moved to be editable through the [User Settings Page](./settings.md) (Gear Icon). If found in `config.json`, they will be auto-migrated to User Settings and removed from `config.json`.
332+
333+See the [JSON Config Reference](/reference) for more information on fully deprecated options.
334+
335+The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent:
336+
337+- Slash commands (JSON `slashCommands`)
338+- top-level `requestOptions`
339+- top-level `completionOptions`
340+- `tabAutocompleteOptions`
341+ - `disable`
342+ - `maxPromptTokens`
343+ - `debounceDelay`
344+ - `maxSuffixPercentage`
345+ - `prefixPercentage`
346+ - `template`
347+ - `onlyMyCode`
348+- `analytics`
349+
350+The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI
351+
352+- `customCommands`
353+- `experimental`
354+- `userToken`
355+
356+## New Configuration options
357+
358+The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/reference) for more information.
modified docs/docs/features/agent/how-it-works.mdx +1 −1
@@ -35,6 +35,6 @@
3535 - **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
3636 - **Search web** (`search_web`): Perform a web search to get top results
3737 - **View diff** (`view_diff`): View the current working git diff
38-- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../../advanced/custom-providers#repository-map)
38+- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../../customize/custom-providers#repository-map)
3939 - **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project
4040 - **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
modified docs/docs/features/autocomplete/how-it-works.mdx +1 −1
@@ -27,4 +27,4 @@
2727
2828 We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
2929
30-You can learn more about how it works in the [Autocomplete deep dive](../../advanced/deep-dives/autocomplete.mdx).
30+You can learn more about how it works in the [Autocomplete deep dive](../../customize/deep-dives/autocomplete.mdx).
modified docs/docs/features/chat/how-it-works.mdx +2 −2
@@ -56,8 +56,8 @@
5656
5757 Learn more about how context providers work:
5858
59-- [Codebase Context](../../advanced/context/codebase)
60-- [Documentation Context](../../advanced/context/documentation)
59+- [Codebase Context](../../customize/context/codebase)
60+- [Documentation Context](../../customize/context/documentation)
6161
6262 ---
6363
modified docs/docs/guides/build-your-own-context-provider.mdx +1 −1
@@ -60,7 +60,7 @@
6060 ```
6161
6262 :::info
63-The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../customization/mcp-tools.mdx), and [Prompts](../advanced/deep-dives/prompts.md) where possible.
63+The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../customization/mcp-tools.mdx), and [Prompts](../customize/deep-dives/prompts.md) where possible.
6464 :::
6565
6666 ## Using CustomContextProvider
modified docs/docs/guides/custom-code-rag.mdx +1 −1
@@ -8,7 +8,7 @@
88
99 # Custom code RAG
1010
11-While Continue comes with [@Codebase](../advanced/context/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this.
11+While Continue comes with [@Codebase](../customize/context/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this.
1212
1313 ## Step 1: Choose an embeddings model
1414
modified docs/docs/guides/running-continue-without-internet.mdx +2 −2
@@ -7,6 +7,6 @@
77 Continue can be run even on an air-gapped computer if you use a local model. Only a few adjustments are required for this to work.
88
99 1. Download the latest .vsix file from the [Open VSX Registry](https://open-vsx.org/extension/Continue/continue) and [install it to VS Code](https://code.visualstudio.com/docs/editor/extension-marketplace#_install-from-a-vsix).
10-2. Open the [User Settings Page](../advanced/deep-dives/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../advanced/telemetry.mdx).
11-3. Also in `config.json`, set the default model to a local model. You can available options [here](../advanced/model-providers/top-level/openai.mdx).
10+2. Open the [User Settings Page](../customize/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../customize/telemetry.mdx).
11+3. Also in `config.json`, set the default model to a local model. You can available options [here](../customize/model-providers/top-level/openai.mdx).
1212 4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
modified docs/docs/hub/blocks/block-types.md +6 −6
@@ -11,7 +11,7 @@
1111
1212 Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the open-source IDE extension like Chat, Autocomplete, Edit, Embed, Rerank, etc. You can explore available models on [the hub](https://hub.continue.dev/explore/models).
1313
14-Continue supports [many model providers](../../advanced/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../advanced/model-roles/00-intro.mdx). View [`models`](/reference#models) in the YAML Reference for more details.
14+Continue supports [many model providers](../../customize/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles/00-intro.mdx). View [`models`](/reference#models) in the YAML Reference for more details.
1515
1616 ## Context
1717
@@ -23,28 +23,28 @@
2323
2424 Docs are blocks that point to documentation sites, which will be indexed locally and then can be referenced as context using @Docs in Chat. [Explore docs](https://hub.continue.dev/explore/docs) on the hub.
2525
26-Learn more in the [@Docs deep dive](../../advanced/context/documentation.mdx), and view [`docs`](/reference#docs) in the YAML Reference for more details.
26+Learn more in the [@Docs deep dive](../../customize/context/documentation.mdx), and view [`docs`](/reference#docs) in the YAML Reference for more details.
2727
2828 ## MCP Servers
2929
3030 Model Context Protocol (MCP) is a standard way of building and sharing tools for language models. MCP Servers can be defined in `mcpServers` blocks. [Explore MCP Servers](https://hub.continue.dev/explore/mcp) on the hub.
3131
32-Learn more in the [MCP deep dive](../../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
32+Learn more in the [MCP deep dive](../../customize/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
3333
3434 ## Rules
3535
3636 Rules blocks are instructions that your custom AI code assistant will always keep in mind - the contents of rules are inserted into the system message for all Chat requests. [Explore rules](https://hub.continue.dev/explore/rules) on the hub.
3737
38-Learn more in the [rules deep dive](../../advanced/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details.
38+Learn more in the [rules deep dive](../../customize/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details.
3939
4040 ## Prompts
4141
4242 Prompts blocks are pre-written, reusable prompts that can be referenced at any time during chat. They are especially useful as context for repetitive and/or complex tasks. [Explore prompts](https://hub.continue.dev/explore/prompts) on the hub.
4343
44-Prompt blocks have the same syntax as [prompt files](../../advanced/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
44+Prompt blocks have the same syntax as [prompt files](../../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
4545
4646 ## Data
4747
48-Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](../../advanced/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data).
48+Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](../../customize/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data).
4949
5050 Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`.
modified docs/docs/reference.mdx +6 −6
@@ -19,7 +19,7 @@
1919 - in your workspace in a `/.continue/assistants` folder, with the same naming convention
2020
2121 :::info
22-Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/advanced/yaml-migration)**.
22+Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/customize/yaml-migration)**.
2323 :::
2424
2525 An assistant is made up of:
@@ -191,9 +191,9 @@
191191 provider and model. Supported capabilities include `tool_use` and `image_input`.
192192 - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
193193 - `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are
194- `chat`, [`edit`](/advanced/model-roles/edit#prompt-templating), [
195- `apply`](/advanced/model-roles/apply#prompt-templating) and [
196- `autocomplete`](/advanced/model-roles/autocomplete#prompt-templating). The `chat` property must be a
194+ `chat`, [`edit`](/customize/model-roles/edit#prompt-templating), [
195+ `apply`](/customize/model-roles/apply#prompt-templating) and [
196+ `autocomplete`](/customize/model-roles/autocomplete#prompt-templating). The `chat` property must be a
197197 valid template name, such as `llama3` or `anthropic`.
198198 - `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode:
199199 - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode.
@@ -263,7 +263,7 @@
263263 The `context` section defines context providers, which supply additional information or context to the language models.
264264 Each context provider can be configured with specific parameters.
265265
266-More information about usage/params for each context provider can be found [here](/advanced/custom-providers)
266+More information about usage/params for each context provider can be found [here](/customize/custom-providers)
267267
268268 **Properties:**
269269
@@ -400,7 +400,7 @@
400400
401401 ### `data`
402402
403-Destinations to which [development data](/advanced/deep-dives/development-data) will be sent.
403+Destinations to which [development data](/customize/deep-dives/development-data) will be sent.
404404
405405 **Properties:**
406406
modified docs/docusaurus.config.js +207 −90
@@ -254,28 +254,44 @@
254254 from: ["/install/vscode", "/install/jetbrains"],
255255 },
256256 {
257- to: "/advanced/deep-dives/settings",
258- from: "/customize/settings",
257+ to: "/customize/settings",
258+ from: [
259+ "/advanced/deep-dives/settings",
260+ "/customize/deep-dives/settings",
261+ ],
259262 },
260263 {
261- to: "/advanced/model-roles/intro",
262- from: ["/customize/model-types", "/setup/overview"],
264+ to: "/customize/model-roles/intro",
265+ from: [
266+ "/customize/model-types",
267+ "/setup/overview",
268+ "/advanced/model-roles/intro",
269+ ],
263270 },
264271 {
265- to: "/advanced/model-roles/embeddings",
266- from: "/customize/model-types/embeddings",
272+ to: "/customize/model-roles/embeddings",
273+ from: [
274+ "/customize/model-types/embeddings",
275+ "/advanced/model-roles/embeddings",
276+ ],
267277 },
268278 {
269- to: "/advanced/model-roles/autocomplete",
270- from: "/customize/model-types/autocomplete",
279+ to: "/customize/model-roles/autocomplete",
280+ from: [
281+ "/customize/model-types/autocomplete",
282+ "/advanced/model-roles/autocomplete",
283+ ],
271284 },
272285 {
273- to: "/advanced/model-roles/chat",
274- from: "/customize/model-types/chat",
286+ to: "/customize/model-roles/chat",
287+ from: ["/customize/model-types/chat", "/advanced/model-roles/chat"],
275288 },
276289 {
277- to: "/advanced/model-roles/reranking",
278- from: "/customize/model-types/reranking",
290+ to: "/customize/model-roles/reranking",
291+ from: [
292+ "/customize/model-types/reranking",
293+ "/advanced/model-roles/reranking",
294+ ],
279295 },
280296 {
281297 to: "/getting-started/overview",
@@ -288,31 +304,41 @@
288304 ],
289305 },
290306 {
291- to: "/advanced/model-providers/anthropic",
292- from: ["/setup/select-provider", "/setup/model-providers"],
307+ to: "/customize/model-providers/anthropic",
308+ from: [
309+ "/setup/select-provider",
310+ "/setup/model-providers",
311+ "/advanced/model-providers/anthropic",
312+ ],
293313 },
294314 {
295- to: "/advanced/context/codebase",
315+ to: "/customize/context/codebase",
296316 from: [
297317 "/walkthroughs/codebase-embeddings",
298318 "/features/codebase-embeddings",
299319 "/advanced/deep-dives/codebase",
320+ "/advanced/context/codebase",
300321 ],
301322 },
302323 {
303- to: "/advanced/deep-dives/autocomplete",
324+ to: "/customize/deep-dives/autocomplete",
304325 from: [
305326 "/walkthroughs/tab-autocomplete",
306327 "/features/tab-autocomplete",
328+ "/advanced/deep-dives/autocomplete",
307329 ],
308330 },
309331 {
310- to: "/advanced/deep-dives/prompts",
311- from: ["/walkthroughs/prompt-files", "/features/prompt-files"],
332+ to: "/customize/deep-dives/prompts",
333+ from: [
334+ "/walkthroughs/prompt-files",
335+ "/features/prompt-files",
336+ "/advanced/deep-dives/prompts",
337+ ],
312338 },
313339 // TODO - actions redirects
314340 {
315- to: "/advanced/deep-dives/slash-commands",
341+ to: "/customize/deep-dives/slash-commands",
316342 from: [
317343 "/actions/how-to-use-it",
318344 "/actions/how-to-customize",
@@ -322,12 +348,16 @@
322348 "/actions/how-it-works",
323349 "/customize/slash-commands",
324350 "/customization/slash-commands",
351+ "/advanced/deep-dives/slash-commands",
325352 ],
326353 },
327354
328355 {
329- to: "/advanced/deep-dives/vscode-actions",
330- from: ["/walkthroughs/quick-actions"],
356+ to: "/customize/deep-dives/vscode-actions",
357+ from: [
358+ "/walkthroughs/quick-actions",
359+ "/advanced/deep-dives/vscode-actions",
360+ ],
331361 },
332362 {
333363 to: "/reference",
@@ -342,148 +372,235 @@
342372 ],
343373 },
344374 {
345- to: "/advanced/custom-providers",
375+ to: "/customize/custom-providers",
346376 from: [
347377 "/customization/context-providers",
348378 "/advanced/context-integration/custom-providers",
349379 "/advanced/context/custom-providers",
380+ "/advanced/custom-providers",
350381 ],
351382 },
352383 {
353- to: "/advanced/deep-dives/development-data",
354- from: ["/development-data", "/customize/development-data"],
384+ to: "/customize/deep-dives/development-data",
385+ from: [
386+ "/development-data",
387+ "/customize/development-data",
388+ "/advanced/deep-dives/development-data",
389+ ],
355390 },
356391 {
357- to: "/advanced/context/documentation",
392+ to: "/customize/context/documentation",
358393 from: [
359394 "/features/talk-to-your-docs",
360395 "/advanced/context-integration/documentation",
361396 "/advanced/deep-dives/docs",
397+ "/advanced/context/documentation",
362398 ],
363399 },
364400 {
365- to: "/advanced/model-providers/anthropic",
366- from: "/reference/Model Providers/anthropicllm",
401+ to: "/customize/model-providers/anthropic",
402+ from: ["/reference/Model Providers/anthropicllm"],
367403 },
368404 {
369- to: "/advanced/model-providers/azure",
370- from: "/reference/Model Providers/azure",
405+ to: "/customize/model-providers/azure",
406+ from: [
407+ "/reference/Model Providers/azure",
408+ "/advanced/model-providers/azure",
409+ ],
371410 },
372411 {
373- to: "/advanced/model-providers/bedrock",
374- from: "/reference/Model Providers/bedrock",
412+ to: "/customize/model-providers/bedrock",
413+ from: [
414+ "/reference/Model Providers/bedrock",
415+ "/advanced/model-providers/bedrock",
416+ ],
375417 },
376418 {
377- to: "/advanced/model-providers/deepseek",
378- from: "/reference/Model Providers/deepseek",
419+ to: "/customize/model-providers/deepseek",
420+ from: [
421+ "/reference/Model Providers/deepseek",
422+ "/advanced/model-providers/deepseek",
423+ ],
379424 },
380425 {
381- to: "/advanced/model-providers/anthropic",
426+ to: "/customize/model-providers/anthropic",
382427 from: "/reference/Model Providers/freetrial",
383428 },
384429 {
385- to: "/advanced/model-providers/gemini",
386- from: "/reference/Model Providers/geminiapi",
430+ to: "/customize/model-providers/gemini",
431+ from: [
432+ "/reference/Model Providers/geminiapi",
433+ "/advanced/model-providers/gemini",
434+ ],
387435 },
388436 {
389- to: "/advanced/model-providers/mistral",
390- from: "/reference/Model Providers/mistral",
437+ to: "/customize/model-providers/mistral",
438+ from: [
439+ "/reference/Model Providers/mistral",
440+ "/advanced/model-providers/mistral",
441+ ],
391442 },
392443 {
393- to: "/advanced/model-providers/ollama",
394- from: "/reference/Model Providers/ollama",
444+ to: "/customize/model-providers/ollama",
445+ from: [
446+ "/reference/Model Providers/ollama",
447+ "/advanced/model-providers/ollama",
448+ ],
395449 },
396450 {
397- to: "/advanced/model-providers/openai",
398- from: "/reference/Model Providers/openai",
451+ to: "/customize/model-providers/openai",
452+ from: [
453+ "/reference/Model Providers/openai",
454+ "/advanced/model-providers/openai",
455+ ],
399456 },
400457 {
401458 to: "/",
402459 from: "/intro",
403460 },
404461 {
405- to: "/advanced/model-providers/more/cloudflare",
406- from: "/reference/Model Providers/cloudflare",
462+ to: "/customize/model-providers/more/cloudflare",
463+ from: [
464+ "/reference/Model Providers/cloudflare",
465+ "/advanced/model-providers/more/cloudflare",
466+ ],
407467 },
408468 {
409- to: "/advanced/model-providers/more/cohere",
410- from: "/reference/Model Providers/cohere",
469+ to: "/customize/model-providers/more/cohere",
470+ from: [
471+ "/reference/Model Providers/cohere",
472+ "/advanced/model-providers/more/cohere",
473+ ],
411474 },
412475 {
413- to: "/advanced/model-providers/more/deepinfra",
414- from: "/reference/Model Providers/deepinfra",
476+ to: "/customize/model-providers/more/deepinfra",
477+ from: [
478+ "/reference/Model Providers/deepinfra",
479+ "/advanced/model-providers/more/deepinfra",
480+ ],
415481 },
416482 {
417- to: "/advanced/model-providers/more/flowise",
418- from: "/reference/Model Providers/flowise",
483+ to: "/customize/model-providers/more/flowise",
484+ from: [
485+ "/reference/Model Providers/flowise",
486+ "/advanced/model-providers/more/flowise",
487+ ],
419488 },
420489 {
421- to: "/advanced/model-providers/llamastack",
490+ to: "/customize/model-providers/llamastack",
422491 from: "/advanced/model-providers/more/llamastack",
423492 },
424493 {
425- to: "/advanced/model-providers/more/huggingfaceinferenceapi",
426- from: "/reference/Model Providers/huggingfaceinferenceapi",
494+ to: "/customize/model-providers/more/huggingfaceinferenceapi",
495+ from: [
496+ "/reference/Model Providers/huggingfaceinferenceapi",
497+ "/advanced/model-providers/more/huggingfaceinferenceapi",
498+ ],
427499 },
428500 {
429- to: "/advanced/model-providers/more/ipex_llm",
430- from: "/reference/Model Providers/ipex_llm",
501+ to: "/customize/model-providers/more/ipex_llm",
502+ from: [
503+ "/reference/Model Providers/ipex_llm",
504+ "/advanced/model-providers/more/ipex_llm",
505+ ],
431506 },
432507 {
433- to: "/advanced/model-providers/more/kindo",
434- from: "/reference/Model Providers/kindo",
508+ to: "/customize/model-providers/more/kindo",
509+ from: [
510+ "/reference/Model Providers/kindo",
511+ "/advanced/model-providers/more/kindo",
512+ ],
435513 },
436514 {
437- to: "/advanced/model-providers/more/llamacpp",
438- from: "/reference/Model Providers/llamacpp",
515+ to: "/customize/model-providers/more/llamacpp",
516+ from: [
517+ "/reference/Model Providers/llamacpp",
518+ "/advanced/model-providers/more/llamacpp",
519+ ],
439520 },
440521 {
441- to: "/advanced/model-providers/more/llamafile",
442- from: "/reference/Model Providers/llamafile",
522+ to: "/customize/model-providers/more/llamafile",
523+ from: [
524+ "/reference/Model Providers/llamafile",
525+ "/advanced/model-providers/more/llamafile",
526+ ],
443527 },
444528 {
445- to: "/advanced/model-providers/more/lmstudio",
446- from: "/reference/Model Providers/lmstudio",
529+ to: "/customize/model-providers/more/lmstudio",
530+ from: [
531+ "/reference/Model Providers/lmstudio",
532+ "/advanced/model-providers/more/lmstudio",
533+ ],
447534 },
448535 {
449- to: "/advanced/model-providers/more/msty",
450- from: "/reference/Model Providers/msty",
536+ to: "/customize/model-providers/more/msty",
537+ from: [
538+ "/reference/Model Providers/msty",
539+ "/advanced/model-providers/more/msty",
540+ ],
451541 },
452542 {
453- to: "/advanced/model-providers/more/openrouter",
454- from: "/reference/Model Providers/openrouter",
543+ to: "/customize/model-providers/more/openrouter",
544+ from: [
545+ "/reference/Model Providers/openrouter",
546+ "/advanced/model-providers/more/openrouter",
547+ ],
455548 },
456549 {
457- to: "/advanced/model-providers/more/replicatellm",
458- from: "/reference/Model Providers/replicatellm",
550+ to: "/customize/model-providers/more/replicatellm",
551+ from: [
552+ "/reference/Model Providers/replicatellm",
553+ "/advanced/model-providers/more/replicatellm",
554+ ],
459555 },
460556 {
461- to: "/advanced/model-providers/more/sagemaker",
462- from: "/reference/Model Providers/sagemaker",
557+ to: "/customize/model-providers/more/sagemaker",
558+ from: [
559+ "/reference/Model Providers/sagemaker",
560+ "/advanced/model-providers/more/sagemaker",
561+ ],
463562 },
464563 {
465- to: "/advanced/model-providers/more/textgenwebui",
466- from: "/reference/Model Providers/textgenwebui",
564+ to: "/customize/model-providers/more/textgenwebui",
565+ from: [
566+ "/reference/Model Providers/textgenwebui",
567+ "/advanced/model-providers/more/textgenwebui",
568+ ],
467569 },
468570 {
469- to: "/advanced/model-providers/more/together",
470- from: "/reference/Model Providers/together",
571+ to: "/customize/model-providers/more/together",
572+ from: [
573+ "/reference/Model Providers/together",
574+ "/advanced/model-providers/more/together",
575+ ],
471576 },
472577 {
473- to: "/advanced/model-providers/more/novita",
474- from: "/reference/Model Providers/novita",
578+ to: "/customize/model-providers/more/novita",
579+ from: [
580+ "/reference/Model Providers/novita",
581+ "/advanced/model-providers/more/novita",
582+ ],
475583 },
476584 {
477- to: "/advanced/model-providers/more/vllm",
478- from: "/reference/Model Providers/vllm",
585+ to: "/customize/model-providers/more/vllm",
586+ from: [
587+ "/reference/Model Providers/vllm",
588+ "/advanced/model-providers/more/vllm",
589+ ],
479590 },
480591 {
481- to: "/advanced/model-providers/more/watsonx",
482- from: "/reference/Model Providers/watsonx",
592+ to: "/customize/model-providers/more/watsonx",
593+ from: [
594+ "/reference/Model Providers/watsonx",
595+ "/advanced/model-providers/more/watsonx",
596+ ],
483597 },
484598 {
485- to: "/advanced/model-providers/more/nebius",
486- from: "/reference/Model Providers/nebius",
599+ to: "/customize/model-providers/more/nebius",
600+ from: [
601+ "/reference/Model Providers/nebius",
602+ "/advanced/model-providers/more/nebius",
603+ ],
487604 },
488605 // Sidebar items that should route directly to a subpage
489606 {
@@ -507,7 +624,7 @@
507624 from: "/getting-started",
508625 },
509626 {
510- to: "/advanced/deep-dives/prompts",
627+ to: "/customize/deep-dives/prompts",
511628 from: "/customize/deep-dives/prompt-files",
512629 },
513630 // Migrated from netlify.toml
@@ -528,16 +645,16 @@
528645 from: "/agent/how-it-works",
529646 },
530647 {
531- to: "/advanced/telemetry",
532- from: "/telemetry",
648+ to: "/customize/telemetry",
649+ from: ["/telemetry", "/advanced/telemetry"],
533650 },
534651 {
535- to: "/advanced/yaml-migration",
536- from: "/yaml-migration",
652+ to: "/customize/yaml-migration",
653+ from: ["/yaml-migration", "/advanced/yaml-migration"],
537654 },
538655 {
539- to: "/advanced/json-reference",
540- from: "/json-reference",
656+ to: "/customize/json-reference",
657+ from: ["/json-reference", "/advanced/json-reference"],
541658 },
542659 ],
543660 },
modified docs/plugins/custom-llms-txt.js +3 −3
@@ -28,7 +28,7 @@
2828 Features: [],
2929 Guides: [],
3030 Customization: [],
31- Advanced: [],
31+ Customize: [],
3232 Hub: [],
3333 };
3434
@@ -73,8 +73,8 @@
7373 sections["Guides"].push(docInfo);
7474 } else if (cleanPath.includes("customization")) {
7575 sections["Customization"].push(docInfo);
76- } else if (cleanPath.includes("advanced")) {
77- sections["Advanced"].push(docInfo);
76+ } else if (cleanPath.includes("customize")) {
77+ sections["Customize"].push(docInfo);
7878 } else if (cleanPath.includes("hub")) {
7979 sections["Hub"].push(docInfo);
8080 } else if (cleanPath === "" || cleanPath === "/") {
modified docs/sidebars.js +2 −2
@@ -47,11 +47,11 @@
4747 },
4848 {
4949 type: "category",
50- label: "Advanced",
50+ label: "Customize",
5151 items: [
5252 {
5353 type: "autogenerated",
54- dirName: "advanced",
54+ dirName: "customize",
5555 },
5656 ],
5757 },
modified extensions/vscode/src/activation/NextEditWindowManager.ts +67 −36
@@ -23,14 +23,30 @@
2323 }
2424
2525 const SVG_CONFIG = {
26- stroke: "#999998",
26+ // stroke: "#999998",
27+ stroke: "#666667",
2728 strokeWidth: 1,
2829 textColor: "#999998",
29- filter: "drop-shadow(0 2px 2px rgba(0,0,0,0.2))",
30+ purple: "rgba(112, 114, 209)",
31+ blue: "rgba(107, 166, 205)",
32+ green: "rgba(136 194 163)",
33+ // filter: "drop-shadow(0 2px 2px rgba(0,0,0,0.2))",
34+ // filter: "drop-shadow(0 2px 2px rgba(255,255,255,0.2))",
35+ // filter:
36+ // "drop-shadow(0 2px 4px rgb(112, 114, 209)) drop-shadow(0 4px 8px rgb(136, 194, 163)) drop-shadow(0 6px 12px rgb(107, 166, 205));",
37+ // filter:
38+ // "drop-shadow(0 3px 6px rgba(112, 114, 209, 0.4)) drop-shadow(0 3px 6px rgba(136, 194, 163, 0.4)) drop-shadow(0 3px 6px rgba(107, 166, 205, 0.4));",
39+ // filter: `drop-shadow(4px 4px 0px rgba(112, 114, 209, 0.4))
40+ // drop-shadow(8px 8px 0px rgba(107, 166, 205, 0.3))
41+ // drop-shadow(12px 12px 0px rgba(136, 194, 163, 0.2));`,
42+ filter: `drop-shadow(4px 4px 0px rgba(112, 114, 209, 0.4))
43+ drop-shadow(-2px 4px 0px rgba(107, 166, 205, 0.3))
44+ drop-shadow(4px -2px 0px rgba(136, 194, 163, 0.2))
45+ drop-shadow(-2px -2px 0px rgba(112, 114, 209, 0.2));`,
3046 radius: 3,
3147 leftMargin: 40,
3248 defaultText: "",
33- lineSpacing: 1.2, // Line spacing multiplier
49+ lineSpacing: 1.3, // Line spacing multiplier
3450 cursorOffset: 4, // Spaces to offset from cursor
3551
3652 get fontSize() {
@@ -244,6 +260,7 @@
244260 editor: vscode.TextEditor,
245261 currCursorPos: vscode.Position,
246262 editableRegionStartLine: number,
263+ oldEditRangeSlice: string,
247264 newEditRangeSlice: string,
248265 diffLines: DiffLine[],
249266 ) {
@@ -278,7 +295,13 @@
278295 );
279296
280297 // Create and apply decoration with the text.
281- await this.renderTooltip(editor, currCursorPos, newEditRangeSlice);
298+ await this.renderTooltip(
299+ editor,
300+ currCursorPos,
301+ oldEditRangeSlice,
302+ newEditRangeSlice,
303+ editableRegionStartLine,
304+ );
282305
283306 // Reserve tab and esc to either accept or reject the displayed next edit contents.
284307 await NextEditWindowManager.reserveTabAndEsc();
@@ -507,6 +530,7 @@
507530 */
508531 private async createCodeRender(
509532 text: string,
533+ currLineOffsetFromTop: number,
510534 ): Promise<
511535 | { uri: vscode.Uri; dimensions: { width: number; height: number } }
512536 | undefined
@@ -529,6 +553,7 @@
529553 {
530554 imageType: "svg",
531555 },
556+ currLineOffsetFromTop,
532557 );
533558
534559 return {
@@ -547,9 +572,16 @@
547572 * @returns The decoration.
548573 */
549574 private async createCodeRenderDecoration(
550- code: string,
575+ originalCode: string,
576+ predictedCode: string,
577+ position: vscode.Position,
578+ editableRegionStartLine: number,
551579 ): Promise<vscode.TextEditorDecorationType | undefined> {
552- const uriAndDimensions = await this.createCodeRender(code);
580+ const currLineOffsetFromTop = position.line - editableRegionStartLine;
581+ const uriAndDimensions = await this.createCodeRender(
582+ predictedCode,
583+ currLineOffsetFromTop,
584+ );
553585 if (!uriAndDimensions) {
554586 return undefined;
555587 }
@@ -558,38 +590,30 @@
558590 const tipWidth = dimensions.width;
559591 const tipHeight = dimensions.height;
560592
593+ const offsetFromTop =
594+ (position.line - editableRegionStartLine) * SVG_CONFIG.lineHeight;
595+
596+ // Set the margin-left so that it's never covering code inside the editable region.
597+ const marginLeft =
598+ SVG_CONFIG.getTipWidth(originalCode) -
599+ SVG_CONFIG.getTipWidth(originalCode.split("\n")[currLineOffsetFromTop]);
600+
601+ console.log(marginLeft);
602+ console.log(SVG_CONFIG.getTipWidth(originalCode));
603+ console.log(
604+ SVG_CONFIG.getTipWidth(originalCode.split("\n")[currLineOffsetFromTop]),
605+ );
606+ console.log(originalCode.split("\n")[currLineOffsetFromTop]);
561607 return vscode.window.createTextEditorDecorationType({
562- after: {
608+ before: {
563609 contentIconPath: uri,
564- // border: `;box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke}, inset 0 0 0 ${tipHeight}px ${backgroundColour};
565- // border-radius: ${SVG_CONFIG.radius}px;
566- // filter: ${SVG_CONFIG.filter}`,
567- // width: `${tipWidth}px`,
568- // height: `${tipHeight}px`,
569- // border: `transparent; position: absolute; z-index: 1000;
570- // box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke},
571- // inset 0 0 0 ${tipHeight}px ${backgroundColour};
572- // border-radius: ${SVG_CONFIG.radius}px;
573- // filter: ${SVG_CONFIG.filter};
574- // margin-left: ${SVG_CONFIG.cursorOffset * 8}px;`,
575- border: `transparent; position: absolute; z-index: 1000;
576- box-shadow: inset 0 0 0 ${SVG_CONFIG.strokeWidth}px ${SVG_CONFIG.stroke}, inset 0 0 0 ${tipHeight}px;
577- filter: ${SVG_CONFIG.filter};
578- border-radius: ${SVG_CONFIG.radius}px;
579- margin-left: ${SVG_CONFIG.cursorOffset * 8}px;`,
580- // border: `solid 1px white; position: absolute; z-index: 1000;
581- // margin-left: ${SVG_CONFIG.cursorOffset * 8}px;
582- // margin-top: 0em;`,
583- // border: `solid 1px white; position: absolute; z-index: 1000;
584- // margin: 0em; padding: 0em;
585- // margin-left: ${SVG_CONFIG.cursorOffset * 8}px;
586- // margin-top: 0em;`,
610+ border: `transparent; position: absolute; z-index: 2147483647;
611+ filter: ${SVG_CONFIG.filter};
612+ margin-top: ${-1 * offsetFromTop}px;
613+ margin-left: ${marginLeft}px;`,
587614 width: `${tipWidth}px`,
588615 height: `${tipHeight}px`,
589- // textDecoration: `none; transform: translateY(-100%);`,
590616 },
591- // Set a negative margin to make the decoration float if it starts to displace text.
592- // Also use absolute positioning.
593617 rangeBehavior: vscode.DecorationRangeBehavior.ClosedClosed,
594618 });
595619 }
@@ -684,16 +708,23 @@
684708 private async renderTooltip(
685709 editor: vscode.TextEditor,
686710 position: vscode.Position,
687- text: string,
711+ originalCode: string,
712+ predictedCode: string,
713+ editableRegionStartLine: number,
688714 ) {
689715 console.log("renderTooltip");
690716 // Capture document version to detect changes.
691717 const docVersion = editor.document.version;
692718
693719 // Create a new decoration with the text.
694- const decoration = await this.createCodeRenderDecoration(text);
720+ const decoration = await this.createCodeRenderDecoration(
721+ originalCode,
722+ predictedCode,
723+ position,
724+ editableRegionStartLine,
725+ );
695726 if (!decoration) {
696- console.error("Failed to create decoration for text:", text);
727+ console.error("Failed to create decoration for text:", predictedCode);
697728 return;
698729 }
699730
modified extensions/vscode/src/autocomplete/completionProvider.ts +1 −0
@@ -420,6 +420,7 @@
420420 editor,
421421 currCursorPos,
422422 editableRegionStartLine,
423+ oldEditRangeSlice,
423424 newEditRangeSlice,
424425 diffLines,
425426 );