Elffuss BraidHub

kikocis/continue public

Merge pull request #6335 from continuedev/bdougie/docs-structure

docs: Restructure docs to a 8-Section Navigation with Guides
Changesetd26a03bcbf7f5f626a3b7adc22a6ceda1cfb69790cc095242adadf84263fa706
AuthorBrian Douglas <bdougie@users.noreply.github.com> · 2025-07-03 22:21 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-03 22:21 -07:00
Parents988853aa4b36, f6e539b7524c

Browse the files at this changeset

248 files changed

added docs/CLA.md +48 −0
@@ -0,0 +1,48 @@
1+# Individual Contributor License Agreement (v1.0, Continue)
2+
3+_Based on the Apache Software Foundation Individual CLA v 2.2._
4+
5+By commenting **“I have read the CLA Document and I hereby sign the CLA”**
6+on a Pull Request, **you (“Contributor”) agree to the following terms** for any
7+past and future “Contributions” submitted to **Continue (the “Project”)**.
8+
9+---
10+
11+## 1. Definitions
12+
13+- **“Contribution”** – any original work of authorship submitted to the Project
14+ (code, documentation, designs, etc.).
15+- **“You” / “Your”** – the individual (or legal entity) posting the acceptance
16+ comment.
17+
18+## 2. Copyright License
19+
20+You grant **Continue Dev, Inc.** and all recipients of software distributed by the
21+Project a perpetual, worldwide, non‑exclusive, royalty‑free, irrevocable
22+license to reproduce, prepare derivative works of, publicly display, publicly
23+perform, sublicense, and distribute Your Contributions and derivative works.
24+
25+## 3. Patent License
26+
27+You grant **Continue Dev, Inc.** and all recipients of the Project a perpetual,
28+worldwide, non‑exclusive, royalty‑free, irrevocable (except as below) patent
29+license to make, have made, use, sell, offer to sell, import, and otherwise
30+transfer Your Contributions alone or in combination with the Project.
31+
32+If any entity brings patent litigation alleging that the Project or a
33+Contribution infringes a patent, the patent licenses granted by You to that
34+entity under this CLA terminate.
35+
36+## 4. Representations
37+
38+1. You are legally entitled to grant the licenses above.
39+2. Each Contribution is either Your original creation or You have authority to
40+ submit it under this CLA.
41+3. Your Contributions are provided **“AS IS”** without warranties of any kind.
42+4. You will notify the Project if any statement above becomes inaccurate.
43+
44+## 5. Miscellany
45+
46+This Agreement is governed by the laws of the **State of California**, USA,
47+excluding its conflict‑of‑laws rules. If any provision is held unenforceable,
48+the remaining provisions remain in force.
deleted docs/docs/CLA.md +0 −48
@@ -1,48 +0,0 @@
1-# Individual Contributor License Agreement (v1.0, Continue)
2-
3-_Based on the Apache Software Foundation Individual CLA v 2.2._
4-
5-By commenting **“I have read the CLA Document and I hereby sign the CLA”**
6-on a Pull Request, **you (“Contributor”) agree to the following terms** for any
7-past and future “Contributions” submitted to **Continue (the “Project”)**.
8-
9----
10-
11-## 1. Definitions
12-
13-- **“Contribution”** – any original work of authorship submitted to the Project
14- (code, documentation, designs, etc.).
15-- **“You” / “Your”** – the individual (or legal entity) posting the acceptance
16- comment.
17-
18-## 2. Copyright License
19-
20-You grant **Continue Dev, Inc.** and all recipients of software distributed by the
21-Project a perpetual, worldwide, non‑exclusive, royalty‑free, irrevocable
22-license to reproduce, prepare derivative works of, publicly display, publicly
23-perform, sublicense, and distribute Your Contributions and derivative works.
24-
25-## 3. Patent License
26-
27-You grant **Continue Dev, Inc.** and all recipients of the Project a perpetual,
28-worldwide, non‑exclusive, royalty‑free, irrevocable (except as below) patent
29-license to make, have made, use, sell, offer to sell, import, and otherwise
30-transfer Your Contributions alone or in combination with the Project.
31-
32-If any entity brings patent litigation alleging that the Project or a
33-Contribution infringes a patent, the patent licenses granted by You to that
34-entity under this CLA terminate.
35-
36-## 4. Representations
37-
38-1. You are legally entitled to grant the licenses above.
39-2. Each Contribution is either Your original creation or You have authority to
40- submit it under this CLA.
41-3. Your Contributions are provided **“AS IS”** without warranties of any kind.
42-4. You will notify the Project if any statement above becomes inaccurate.
43-
44-## 5. Miscellany
45-
46-This Agreement is governed by the laws of the **State of California**, USA,
47-excluding its conflict‑of‑laws rules. If any provision is held unenforceable,
48-the remaining provisions remain in force.
added docs/docs/advanced/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/advanced/context/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Context",
3+ "position": 2
4+}
added docs/docs/advanced/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/advanced/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/advanced/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/advanced/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/advanced/deep-dives/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Deep Dives",
3+ "position": 3
4+}
added docs/docs/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/deep-dives/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/advanced/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/advanced/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/advanced/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](/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.
added docs/docs/advanced/model-providers/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Model Providers",
3+ "position": 4
4+}
added 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.

added docs/docs/advanced/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/advanced/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/advanced/model-providers/more/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "More Providers",
3+ "position": 2
4+}
added docs/docs/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/model-providers/top-level/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Popular Providers",
3+ "position": 1
4+}
added docs/docs/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/model-roles/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Model Roles",
3+ "position": 5
4+}
added docs/docs/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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/advanced/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](./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).
added docs/docs/advanced/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](./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.
deleted docs/docs/agent/context-selection.md +0 −12
@@ -1,12 +0,0 @@
1----
2-title: Context selection
3-description: How context can be selected for Chat
4-keywords: [context]
5-sidebar_position: 3
6----
7-
8-You can use the same [methods to manually add context as Chat](../chat/context-selection.md).
9-
10-In addition, tool call responses are automatically included as context items.
11-
12-This enables Agent mode to see the result of the previous action and decide what to do next.
deleted docs/docs/agent/how-it-works.md +0 −39
@@ -1,39 +0,0 @@
1----
2-title: How it works
3-description: How Agent works
4-keywords: [how, agent, works]
5-sidebar_position: 4
6----
7-
8-Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses.
9-
10-## The tool handshake
11-
12-Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
13-
14-The following handshake describes how Agent uses tools:
15-
16-1. In Agent mode, available tools are sent along with `user` chat requests
17-2. The model can choose to include a tool call in its response
18-3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
19-4. Continue calls the tool using built-in functionality or the MCP server that offers that particular tool
20-5. Continue sends the result back to the model
21-6. The model responds, potentially with another tool call and step 2 begins again
22-
23-:::info
24-In [Chat mode](../chat/how-to-use-it.md), tools are **not** included in the request to the model.
25-:::
26-
27-## Built-in tools
28-
29-Continue includes several built-in tools which provide the model access to IDE functionality:
30-
31-- **Read file** (`read_file`): read the contents of a file within the project
32-- **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file
33-- **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model
34-- **Exact search** (`exact_search`): perform a `ripgrep` search within the project
35-- **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.
36-- **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
37-- **Search web** (`search_web`): Perform a web search to get top results
38-- **View diff** (`view_diff`): View the current working git diff
39-- **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
deleted docs/docs/agent/how-to-customize.md +0 −38
@@ -1,38 +0,0 @@
1----
2-title: How to customize
3-description: How to customize Chat
4-keywords: [customize, chat]
5-sidebar_position: 5
6----
7-
8-## Add Rules Blocks
9-
10-Adding Rules can be done in your assistant locally or in the Hub.
11-
12-[Explore Rules on the Hub](https://hub.continue.dev/explore/rules) and see the [Rules deep dive](../customize/deep-dives/rules.mdx) for more details and tips on creating rules.
13-
14-## Add MCP tools
15-
16-You can add MCP servers to your assistant to give Agent access to more tools. [Explore MCP Servers on the Hub](https://hub.continue.dev/explore/mcp) and see the [MCP guide](../customize/deep-dives/mcp.mdx) for more details.
17-
18-## Tool policies
19-
20-You can adjust Agent's usage behavior for each tool in your assistant to one of these options:
21-
22-- **Ask First (default)** - request permission from the user; show the `Cancel` and `Continue` buttons
23-- **Automatic** - do not request permission, automatically call the tool and feed the response back to the model
24-- **Excluded** - do not send this tool to the model
25-
26-:::warning
27-Be careful setting any tools to `automatic` if their behavior is not read-only.
28-:::
29-
30-First, open `Tool Policies` by clicking the tools icon in the input toolbar
31-
32-![Input Toolbar](/img/lump-toolbar.png)
33-
34-Then, you can view and change tool policies. To change a policy, click on the policy text ("Excluded", etc.) to toggle it. You can also turn groups of tools (e.g. all Built-in tools or all tools from a specific MCP server) off using the section toggles.
35-
36-![Tool Policies](/img/tool-policies.png)
37-
38-Tool policies are stored locally per user.
deleted docs/docs/agent/how-to-use-it.md +0 −49
@@ -1,49 +0,0 @@
1----
2-title: Agent
3-description: How to use Agent
4-sidebar_label: How to use it
5-keywords: [how, use, agent]
6-sidebar_position: 1
7----
8-
9-![agent mode](/img/agent.gif)
10-
11-## How to use it
12-
13-Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing the model to make decisions and save you the work of manually finding context and performing actions.
14-
15-### Use Agent
16-
17-You can switch to `Agent` in the mode selector below the chat input box.
18-
19-![How to select agent mode](/img/mode-select-agent.png)
20-
21-:::info
22-If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Setup](./model-setup.mdx) for more information.
23-:::
24-
25-### Chat with Agent
26-
27-Agent lives within the same interface as [Chat](../chat/how-it-works.md), so the same [input](../chat/how-to-use-it.md#type-a-request-and-press-enter) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/how-to-use-it.md#reference-context-with-the--symbol) or adding [highlighted code from the editor](../chat/how-to-use-it.md#highlight-a-code-section-to-include-as-context).
28-
29-#### Use natural language
30-
31-With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say
32-
33-> Set the @typescript-eslint/naming-convention rule to "off" for all eslint configurations in this project
34-
35-Agent will then decide which tools to use to get the job done.
36-
37-## Give Agent permission
38-
39-By default, Agent will ask permission when it wants to use a tool. Click `Continue` to allow Agent mode to proceed with the tool call or `Cancel` to reject it.
40-
41-![agent requesting permission](/img/agent-permission.png)
42-
43-You can use tool policies to exclude or make usage automatic for specific tools. See [How to Customize](./how-to-customize.md) for more background.
44-
45-## View Tool Responses
46-
47-Any data returned from a tool call is automatically fed back into the model as a context item. Most errors are also caught and returned, so that Agent mode can decide how to proceed.
48-
49-![agent response](/img/agent-response.png)
deleted docs/docs/agent/model-setup.mdx +0 −18
@@ -1,18 +0,0 @@
1----
2-title: Model setup
3-description: Models for Continue Agent
4-keywords: [model, agent]
5-sidebar_position: 2
6----
7-
8-Agent can be used with models that support tool use through Continue.
9-
10-For the best Agent experience we recommend Claude Sonnet 4 from Anthropic. Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-4-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys).
11-
12-Currently the following models are recommended:
13-
14-- [Anthropic](../customize/model-providers/top-level/anthropic.mdx) - we recommend [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)
15-- [OpenAI](../customize/model-providers/top-level/openai.mdx) - we recommend [GPT-4o](https://hub.continue.dev/openai/gpt-4o)
16-- [Gemini](../customize/model-providers/top-level/gemini.mdx) - we recommend [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)
17-
18-The best chat models generally support tool use. See [recommended chat models](../customize/model-roles/chat.mdx#recommended-chat-models) for more.
deleted docs/docs/autocomplete/context-selection.md +0 −24
@@ -1,24 +0,0 @@
1----
2-title: Context selection
3-description: Autocomplete context selection
4-keywords: [context, autocomplete, lsp, recent]
5-sidebar_position: 3
6----
7-
8-Autocomplete will automatically determine context based on the current cursor position. We use the following techniques to determine what to include in the prompt:
9-
10-### File prefix/suffix
11-
12-We will always include the code from your file prior to and after the cursor position.
13-
14-### Definitions from the Language Server Protocol
15-
16-Similar to how you can use <kbd>cmd/ctrl</kbd> + `click` in your editor, we use the same tool (the LSP) to power "go to definition". For example, if you are typing out a function call, we will include the function definition. Or, if you are writing code inside of a method, we will include the type definitions for any parameters or the return type.
17-
18-### Imported files
19-
20-Because there are often many imports, we can't include all of them. Instead, we look for symbols around your cursor that have matching imports and use that as context.
21-
22-### Recent files
23-
24-We automatically consider recently opened or edited files and include snippets that are relevant to the current completion.
deleted docs/docs/autocomplete/how-it-works.md +0 −31
@@ -1,31 +0,0 @@
1----
2-title: How it works
3-description: How Autocomplete works
4-keywords: [how, autocomplete, context]
5-sidebar_position: 4
6----
7-
8-Autocomplete is a [compound AI system](https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/) that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts.
9-
10-## Timing
11-
12-In order to display suggestions quickly, without sending too many requests, we do the following:
13-
14-- Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
15-- Caching: If your cursor is in a position that we've already generated a completion for, this completion is reused. For example, if you backspace, we'll be able to immediately show the suggestion you saw before.
16-
17-## Context
18-
19-As explained on the [context selection](./context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
20-
21-## Filtering
22-
23-Language models aren't perfect, but can be made much closer by adjusting their output. We do extensive post-processing on responses before displaying a suggestion, including:
24-
25-- filtering out special tokens
26-- stopping early when re-generating code
27-- fixing indentation
28-
29-We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
30-
31-You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
deleted docs/docs/autocomplete/how-to-customize.md +0 −10
@@ -1,10 +0,0 @@
1----
2-title: How to customize
3-description: How to customize Autocomplete
4-keywords: [customize]
5-sidebar_position: 5
6----
7-
8-Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](../customize/deep-dives/settings.md) to manage these settings.
9-
10-For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
deleted docs/docs/autocomplete/how-to-use-it.md +0 −29
@@ -1,29 +0,0 @@
1----
2-title: Autocomplete
3-description: Autocomplete \- how to use it
4-sidebar_label: How to use it
5-keywords: [autocomplete]
6-sidebar_position: 1
7----
8-
9-![autocomplete](/img/autocomplete.gif)
10-
11-## How to use it
12-
13-Autocomplete provides inline code suggestions as you type. To enable it, simply click the "Continue" button in the status bar at the bottom right of your IDE or ensure the "Enable Tab Autocomplete" option is checked in your IDE settings.
14-
15-### Accepting a full suggestion
16-
17-Accept a full suggestion by pressing <kbd>Tab</kbd>
18-
19-### Rejecting a full suggestion
20-
21-Reject a full suggestion with <kbd>Esc</kbd>
22-
23-### Partially accepting a suggestion
24-
25-For more granular control, use <kbd>cmd/ctrl</kbd> + <kbd>→</kbd> to accept parts of the suggestion word-by-word.
26-
27-### Forcing a suggestion (VS Code)
28-
29-If you want to trigger a suggestion immediately without waiting, or if you've dismissed a suggestion and want a new one, you can force it by using the keyboard shortcut **<kbd>cmd/ctrl</kbd> + <kbd>alt</kbd> + <kbd>space</kbd>**.
deleted docs/docs/autocomplete/model-setup.mdx +0 −17
@@ -1,17 +0,0 @@
1----
2-title: Model setup
3-description: Autocomplete \-model setup
4-keywords: [model, autocomplete]
5-sidebar_position: 2
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-For the best autocomplete experience we recommend Codestral from Mistral.
12-
13-Add Codestral to your assistant from the hub [here](https://hub.continue.dev/mistral/codestral). Visit the [Mistral Platform](https://console.mistral.ai/codestral) to get a Codestral API key.
14-
15-For a fully local autocomplete experience, we recommend [Qwen 2.5 Coder 1.5B on Ollama](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b).
16-
17-For more details about setup and recommended models, visit the [autocomplete deep dive](../customize/deep-dives/autocomplete.mdx).
deleted docs/docs/blocks/context-providers.md +0 −21
@@ -1,21 +0,0 @@
1----
2-title: Context Blocks
3-sidebar_label: Context
4-description: Determine what internal information your AI assistant can access
5-keywords: [context, blocks, repositories, integration, knowledge base]
6-sidebar_position: 2
7----
8-
9-These blocks determine what internal information your AI assistant can access:
10-
11-- **Connect to source repositories** and issues, CI/CD systems, wikis, and knowledge bases
12-- **Determine the scope** of what the AI can "see" when providing assistance
13-- **Customize** to match your specific development environment
14-- **Include proprietary code patterns** unique to your organization
15-- **Integrate data sources** to connect to any internal system with valuable context
16-
17-![Context Blocks Overview](/img/context-blocks-overview.png)
18-
19-## Learn More
20-
21-Learn more about context providers [here](../reference.md#context), and check out [this guide](../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider.
deleted docs/docs/blocks/data.md +0 −20
@@ -1,20 +0,0 @@
1----
2-title: Data Blocks
3-sidebar_label: Data
4-description: Help organizations capture and analyze AI assistant usage data
5-keywords: [data, blocks, analytics, metrics, storage, compliance]
6-sidebar_position: 7
7----
8-
9-These help organizations capture and analyze AI assistant usage data:
10-
11-- **Analytics Integration**: Export metrics to observability platforms like Splunk or New Relic
12-- **Cloud Storage**: Store development data in S3/Azure Blob for model fine-tuning and auditing
13-- **Impact Measurement**: Track acceptance rates and productivity outcomes for ROI calculation
14-- **Compliance Reporting**: Generate audit trails for security and governance requirements
15-
16-![Data Blocks Overview](/img/data-blocks-overview.png)
17-
18-## Learn More
19-
20-You can read more about development data [here](../customize/deep-dives/development-data.md). Data destinations are configured in the [`data`](../reference.md#data) section of `config.yaml`.
deleted docs/docs/blocks/docs.md +0 −19
@@ -1,19 +0,0 @@
1----
2-title: Docs Blocks
3-sidebar_label: Docs
4-description: Bring your documentation directly into the IDE
5-keywords: [docs, blocks, documentation, guidance, flow]
6-sidebar_position: 3
7----
8-
9-This is how Continue brings your documentation directly into the IDE:
10-
11-- **Provide just-in-time guidance** without context switching
12-- **Reduce support burden** by making information discoverable
13-- **Keep developers in flow** by eliminating searches through multiple systems
14-
15-![Docs Blocks Overview](/img/docs-blocks-overview.png)
16-
17-## Learn More
18-
19-Learn more in the [@Docs deep dive](../customize/deep-dives/docs.mdx), and view [`docs`](../reference.md#docs) in the YAML Reference for more details.
deleted docs/docs/blocks/mcp.md +0 −40
@@ -1,40 +0,0 @@
1----
2-title: MCP Blocks
3-sidebar_label: MCP
4-description: Model Context Protocol servers provide specialized functionality
5-keywords: [mcp, blocks, model context protocol, integrations, tools]
6-sidebar_position: 4
7----
8-
9-Model Context Protocol servers provide specialized functionality:
10-
11-- **Enable integration** with external tools and systems
12-- **Create extensible interfaces** for custom capabilities
13-- **Support complex interactions** with your development environment
14-- **Allow partners** to contribute specialized functionality
15-- **Connect to databases** to understand schema and data models during development
16-
17-![MCP Blocks Overview](/img/mcp-blocks-overview.png)
18-
19-## Learn More
20-
21-Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../reference.md#mcpservers) in the YAML Reference for more details.
22-description: Model Context Protocol servers provide specialized functionality
23-keywords: [mcp, blocks, model context protocol, integrations, tools]
24-sidebar_position: 4
25-
26----
27-
28-Model Context Protocol servers provide specialized functionality:
29-
30-- Enable integration with external tools and systems
31-- Create extensible interfaces for custom capabilities
32-- Support more complex interactions with your development environment
33-- Allow partners to contribute specialized functionality
34-- Database Connectors: Understand schema and data models during development
35-
36-![MCP Blocks Overview](/img/mcp-blocks-overview.png)
37-
38-## Learn More
39-
40-Learn more in the [MCP deep dive](../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../reference.md#mcpservers) in the YAML Reference for more details.
deleted docs/docs/blocks/models.md +0 −24
@@ -1,24 +0,0 @@
1----
2-title: Model Blocks
3-sidebar_label: Model
4-description: Foundation of the entire assistant experience offering specialized capabilities
5-keywords: [model, blocks, chat, edit, apply, autocomplete, embedding, reranker]
6-sidebar_position: 1
7----
8-
9-These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:
10-
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
17-
18-![Model Blocks Overview](/img/model-blocks-overview.png)
19-
20-## Learn More
21-
22-Continue supports [many model providers](../customize/model-providers), 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`.
23-
24-Read more about roles [here](../customize/model-roles/intro.mdx) and view [`models`](../reference.md#models) in the YAML Reference.
deleted docs/docs/blocks/prompts.md +0 −21
@@ -1,21 +0,0 @@
1----
2-title: Prompt Blocks
3-sidebar_label: Prompt
4-description: Specialized instructions that shape how models respond
5-keywords: [prompts, blocks, instructions, guidance, code review]
6-sidebar_position: 6
7----
8-
9-These are the specialized instructions that shape how models respond:
10-
11-- **Define interaction patterns** for specific tasks or frameworks
12-- **Encode domain expertise** for particular technologies
13-- **Ensure consistent guidance** aligned with organizational practices
14-- **Can be shared and reused** across multiple assistants
15-- **Act as automated code reviewers** that ensure consistency across teams
16-
17-![Prompt Blocks Overview](/img/prompts-blocks-overview.png)
18-
19-## Learn More
20-
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.md#prompts).
deleted docs/docs/blocks/rules.md +0 −25
@@ -1,25 +0,0 @@
1----
2-title: Rules Blocks
3-sidebar_label: Rules
4-description: Guardrails for your AI coding assistants
5-keywords: [rules, blocks, standards, practices, guardrails]
6-sidebar_position: 5
7----
8-
9-Rules allow you to provide specific instructions that guide how the AI assistant behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses.
10-
11-Think of these as the guardrails for your AI coding assistants:
12-
13-- **Enforce company-specific coding standards** and security practices
14-- **Implement quality checks** that match your engineering culture
15-- **Create paved paths** for developers to follow organizational best practices
16-
17-By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints.
18-
19-### How Rules Work
20-
21-Your assistant detects rule blocks and applies the specified rules while in [Agent](../agent/how-to-use-it), [Chat](../chat/how-to-use-it), and [Edit](../edit/how-to-use-it) modes.
22-
23-## Learn More
24-
25-Learn more in the [rules deep dive](../customize/deep-dives/rules.mdx), and view [`rules`](../reference.md#rules) in the YAML Reference for more details.
deleted docs/docs/chat/context-selection.md +0 −46
@@ -1,46 +0,0 @@
1----
2-title: Context selection
3-description: How context can be selected for Chat
4-keywords: [context]
5-sidebar_position: 3
6----
7-
8-## Input
9-
10-Typing a question or instructions into the input box is the only required context. All of the other methods to select and include additional context listed below are optional.
11-
12-## Highlighted code
13-
14-The highlighted code you’ve selected by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) will be included in your prompt alongside the input you provide. This is the only section of code that will be provided to the model unless you highlight additional sections or use one of the other selection methods below.
15-
16-## Active file
17-
18-You can include the currently open file as context by pressing <kbd>opt</kbd> + <kbd>enter</kbd> (Mac) or <kbd>alt</kbd> + <kbd>enter</kbd> (Windows) when you send your request at Chat window(Prompt can't be empty).
19-
20-## Specific file
21-
22-You can include a specific file in your current workspace as context by typing [`@Files`](../customize/context-providers.mdx#file) and selecting the file.
23-
24-## Specific folder
25-
26-You can include a folder in your current workspace as context by typing [`@Folder`](../customize/context-providers.mdx#folder) and selecting the directory. It [works like `@Codebase`](../customize/deep-dives/codebase.mdx) but only includes the files in the selected folder.
27-
28-## Codebase search
29-
30-You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../customize/context-providers.mdx#codebase). You can learn about how @Codebase works [here](../customize/deep-dives/codebase.mdx).
31-
32-## Documentation site
33-
34-You can include a documentation site as context by typing [`@Docs`](../customize/context-providers.mdx#docs) and selecting the documentation site. You can learn about how @Docs works [here](../customize/deep-dives/docs.mdx).
35-
36-## Terminal contents
37-
38-You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../customize/context-providers.mdx#terminal).
39-
40-## Git diff
41-
42-You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../customize/context-providers.mdx#git-diff).
43-
44-## Other context
45-
46-You can see a full list of built-in context providers [here](../customize/context-providers.mdx) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.mdx).
deleted docs/docs/chat/how-it-works.md +0 −14
@@ -1,14 +0,0 @@
1----
2-title: How it works
3-description: How Chat works
4-keywords: [how, chat, works]
5-sidebar_position: 4
6----
7-
8-Using any selected code sections, all context that you have selected with @, and your input instructions, we prompt the model to provide a response in the sidebar. If you are asking a follow-up, then all earlier session context is also included. No other additional context is provided to the model.
9-
10-The model response is then streamed directly back to the sidebar. Each code section included in the response will be placed into its own code block, which gives you buttons to either “Apply to current file”, “Insert at cursor”, or “Copy” for each section. When you press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) at the end of a session, all context is cleared and a new session is started, so that you can begin a new task.
11-
12-If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](troubleshooting.mdx#llm-prompt-logs).
13-
14-You can learn more about how `@Codebase` works [here](../customize/deep-dives/codebase.mdx) and `@Docs` [here](../customize/deep-dives/docs.mdx).
deleted docs/docs/chat/how-to-customize.md +0 −14
@@ -1,14 +0,0 @@
1----
2-title: How to customize
3-description: How to customize Chat
4-keywords: [customize, chat]
5-sidebar_position: 5
6----
7-
8-There are a number of different ways to customize Chat:
9-
10-- You can add a [`rules` block](../hub/blocks/block-types.md#rules) to your assistant to give the model persistent instructions through the system prompt. See the [rules deep dive](../customize/deep-dives/rules.mdx) for more information.
11-- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx)
12-- You can configure [`@Docs`](../customize/deep-dives/docs.mdx)
13-- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.mdx)
14-- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx)
deleted docs/docs/chat/how-to-use-it.md +0 −39
@@ -1,39 +0,0 @@
1----
2-title: Chat
3-description: How to use Chat
4-sidebar_label: How to use it
5-keywords: [how, use, chat]
6-sidebar_position: 1
7----
8-
9-![chat](/img/chat.gif)
10-
11-## How to use it
12-
13-Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you what you want, then you can send follow up messages to clarify and adjust its approach until the task is completed.
14-
15-Chat is best used to understand and iterate on code or as a replacement for search engine queries.
16-
17-## Type a request and press enter
18-
19-You send it a question, and it replies with an answer. You tell it to solve a problem, and it provides you a solution. You ask for some code, and it generates it.
20-
21-## Highlight a code section to include as context
22-
23-You select a code section with your mouse, press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) to send it to the LLM, and then ask for it to be explained to you or request it to be refactored in some way.
24-
25-## Reference context with the @ symbol
26-
27-If there is information from the codebase, documentation, IDE, or other tools that you want to include as context, you can type @ to select and include it as context. You can learn more about how to use this in [Chat context selection](context-selection.md).
28-
29-## Apply generated code to your file
30-
31-When the LLM replies with edits to a file, you can click the “Apply” button. This will update the existing code in the editor to reflect the suggested changes.
32-
33-## Start a fresh session for a new task
34-
35-Once you complete a task and want to start a new one, press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) to begin a new session, ensuring only relevant context for the next task is provided to the LLM.
36-
37-## Switch between different models
38-
39-If you have configured multiple models, you can switch between models using the dropdown or by pressing <kbd>cmd/ctrl</kbd> + <kbd>’</kbd>
deleted docs/docs/chat/model-setup.mdx +0 −24
@@ -1,24 +0,0 @@
1----
2-title: Model setup
3-description: How to set up a Chat model
4-keywords: [model]
5-sidebar_position: 2
6----
7-
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-For the best chat experience we recommend Claude 3.7 Sonnet from Anthropic.
12-
13-Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-3-7-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys).
14-
15-Other recommended chat models include:
16-
17-- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
18-- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2)
19-- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash)
20-- [Llama 3.1 8b from Meta on Ollama](https://hub.continue.dev/ollama/llama3.1-8b) for a fully local experience
21- {/* HUB_TODO nonexistent blocks */}
22- {/* - Deepseek Coder 2 from deepseek on [Ollama](https://hub.continue.dev/explore/models) or [LM Studio](https://hub.continue.dev/explore/models) */}
23-
24-For more details about setup and recommended models, see [here](../customize/model-roles/chat.mdx).
added docs/docs/customization/00-overview.mdx +24 −0
@@ -0,0 +1,24 @@
1+---
2+title: Overview
3+description: Introduction to customizing Continue
4+keywords: [customize, configure, config]
5+---
6+
7+Continue can be deeply customized. For example you might:
8+
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)
14+
15+Whatever you choose, you'll probably start by editing your Assistant.
16+
17+## Editing your assistant
18+
19+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.
20+
21+![configure an assistant](/img/configure-continue.png)
22+
23+- 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.
added docs/docs/customization/mcp-tools.mdx +40 −0
@@ -0,0 +1,40 @@
1+---
2+title: MCP Blocks
3+sidebar_label: MCP Tools
4+description: Model Context Protocol servers provide specialized functionality
5+keywords: [mcp, blocks, model context protocol, integrations, tools]
6+sidebar_position: 4
7+---
8+
9+Model Context Protocol servers provide specialized functionality:
10+
11+- **Enable integration** with external tools and systems
12+- **Create extensible interfaces** for custom capabilities
13+- **Support complex interactions** with your development environment
14+- **Allow partners** to contribute specialized functionality
15+- **Connect to databases** to understand schema and data models during development
16+
17+![MCP Blocks Overview](/img/mcp-blocks-overview.png)
18+
19+## Learn More
20+
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.
22+description: Model Context Protocol servers provide specialized functionality
23+keywords: [mcp, blocks, model context protocol, integrations, tools]
24+sidebar_position: 4
25+
26+---
27+
28+Model Context Protocol servers provide specialized functionality:
29+
30+- Enable integration with external tools and systems
31+- Create extensible interfaces for custom capabilities
32+- Support more complex interactions with your development environment
33+- Allow partners to contribute specialized functionality
34+- Database Connectors: Understand schema and data models during development
35+
36+![MCP Blocks Overview](/img/mcp-blocks-overview.png)
37+
38+## Learn More
39+
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.
added docs/docs/customization/models.mdx +24 −0
@@ -0,0 +1,24 @@
1+---
2+title: Model Blocks
3+sidebar_label: Model
4+description: Foundation of the entire assistant experience offering specialized capabilities
5+keywords: [model, blocks, chat, edit, apply, autocomplete, embedding, reranker]
6+sidebar_position: 1
7+---
8+
9+These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:
10+
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
17+
18+![Model Blocks Overview](/img/model-blocks-overview.png)
19+
20+## Learn More
21+
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`.
23+
24+Read more about roles [here](../advanced/model-roles/00-intro.mdx) and view [`models`](/reference#models) in the YAML Reference.
added docs/docs/customization/prompts.mdx +21 −0
@@ -0,0 +1,21 @@
1+---
2+title: Prompt Blocks
3+sidebar_label: Prompts
4+description: Specialized instructions that shape how models respond
5+keywords: [prompts, blocks, instructions, guidance, code review]
6+sidebar_position: 6
7+---
8+
9+These are the specialized instructions that shape how models respond:
10+
11+- **Define interaction patterns** for specific tasks or frameworks
12+- **Encode domain expertise** for particular technologies
13+- **Ensure consistent guidance** aligned with organizational practices
14+- **Can be shared and reused** across multiple assistants
15+- **Act as automated code reviewers** that ensure consistency across teams
16+
17+![Prompt Blocks Overview](/img/prompts-blocks-overview.png)
18+
19+## Learn More
20+
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).
added docs/docs/customization/rules.mdx +25 −0
@@ -0,0 +1,25 @@
1+---
2+title: Rules Blocks
3+sidebar_label: Rules
4+description: Guardrails for your AI coding assistants
5+keywords: [rules, blocks, standards, practices, guardrails]
6+sidebar_position: 5
7+---
8+
9+Rules allow you to provide specific instructions that guide how the AI assistant behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses.
10+
11+Think of these as the guardrails for your AI coding assistants:
12+
13+- **Enforce company-specific coding standards** and security practices
14+- **Implement quality checks** that match your engineering culture
15+- **Create paved paths** for developers to follow organizational best practices
16+
17+By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints.
18+
19+### How Rules Work
20+
21+Your assistant detects rule blocks and applies the specified rules while in [Agent](../features/agent/quick-start), [Chat](../features/chat/quick-start), and [Edit](../features/edit/quick-start) modes.
22+
23+## Learn More
24+
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.
deleted docs/docs/customize/changelog.md +0 −13
@@ -1,13 +0,0 @@
1----
2-title: Continue Changelog
3-description: Redirecting to our Changelog
4-hide_table_of_contents: true
5----
6-
7-# Redirecting to Changelog
8-
9-If you are not redirected automatically, follow this [link to the changelog](https://changelog.continue.dev).
10-
11-<head>
12- <meta http-equiv="refresh" content="0;url=https://changelog.continue.dev" />
13-</head>
deleted docs/docs/customize/context-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](../customize/deep-dives/docs.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](../customize/deep-dives/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/customize/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/customize/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](../../json-reference.md#tabautocompleteoptions) 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/customize/deep-dives/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](../context-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/customize/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.md).
30-
31-## Deprecated configuration methods
32-
33-:::info
34-View the `config.json` migration guide [here](../../yaml-migration.md)
35-:::
36-
37-- [`config.json`](../../json-reference.md) - 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/customize/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.md#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/customize/deep-dives/docs.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](customize/context-providers.mdx#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/customize/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/customize/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/customize/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](../../chat/how-to-use-it.md), [Edit](../../edit/how-to-use-it.md), and [Agent](../../agent/how-to-use-it.md) 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](../../chat/how-to-use-it.md) and [Agent](../../agent/how-to-use-it.md) 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.md#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/customize/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/customize/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](../context-providers.mdx) or [highlighted code](../../edit/context-selection#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](../../chat/how-it-works.md).
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/customize/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](../../edit/how-it-works.md).
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/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.

deleted docs/docs/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/model-providers/more/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.
No newline at the end of the file
deleted docs/docs/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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/customize/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](../../autocomplete/how-to-use-it.md) 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/customize/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](../../chat/how-to-use-it.md) and [VS Code actions](../deep-dives/vscode-actions.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) 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/customize/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/customize/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](../deep-dives/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/customize/model-roles/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.md#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/customize/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](../deep-dives/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/customize/overview.md +0 −24
@@ -1,24 +0,0 @@
1----
2-title: Overview
3-description: Introduction to customizing Continue
4-keywords: [customize, configure, config]
5----
6-
7-Continue can be deeply customized. For example you might:
8-
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/).
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](./model-roles/) .
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](./context-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](./deep-dives/slash-commands.mdx).
13-- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../agent/how-to-use-it.md). Add custom tools using [MCP Servers](./deep-dives/mcp.mdx)
14-
15-Whatever you choose, you'll probably start by editing your Assistant.
16-
17-## Editing your assistant
18-
19-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.
20-
21-![configure an assistant](/img/configure-continue.png)
22-
23-- See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hub assistant
24-- See the [Config Deep Dive](./deep-dives/configuration.md) for more details on configuring local assistants.
deleted docs/docs/customize/tutorials/assets/image.png +0 −0

Binary content is not shown. View the file.

deleted docs/docs/customize/tutorials/build-your-own-context-provider.mdx +0 −329
@@ -1,329 +0,0 @@
1----
2-title: Build your own context provider
3----
4-
5-import TabItem from "@theme/TabItem";
6-import Tabs from "@theme/Tabs";
7-
8-# Build Your Own Context Provider
9-
10-Continue offers several way to provide your custom context to the extension.
11-
12-## HTTP Context Provider
13-
14-Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this:
15-
16-<Tabs groupId="config-example">
17- <TabItem value="yaml" label="YAML">
18- ```yaml title="config.yaml"
19- context:
20- provider: http
21- params:
22- url: https://myserver.com/context-provider
23- title: http
24- displayTitle: My Custom Context
25- description: Gets things from my private list
26- options:
27- maxItems: 20
28- ```
29- </TabItem>
30- <TabItem value="json" label="JSON">
31- ```json title="config.json"
32- {
33- "name": "http",
34- "params": {
35- "url": "https://myserver.com/context-provider",
36- "title": "http",
37- "description": "Custom HTTP Context Provider",
38- "displayTitle": "My Custom Context",
39- "options": {
40- "maxItems": 20
41- }
42- }
43- }
44- ```
45- </TabItem>
46-</Tabs>
47-
48-Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI.
49-
50-The `"options"` property can be used to send additional parameters to your endpoint. The full request body has the following shape:
51-
52-```typescript
53-{
54- query: string;
55- fullInput: string;
56- options: Record<string, JsonValue>;
57-
58- workspacePath?: string; // Only provided if the server is local.
59-}
60-```
61-
62-:::info
63-The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../context-providers.mdx#model-context-protocol), and [Prompts](../deep-dives/prompts.md) where possible.
64-:::
65-
66-## Using CustomContextProvider
67-
68-Custom context providers can be implemented in a `config.ts` placed in your Continue global directory (`~/.continue` for MacOS, `%USERPROFILE%/.continue` for Windows). You can implement the `CustomContextProvider` interface in your `config.ts`
69-
70-```typescript
71-interface CustomContextProvider {
72- title: string;
73- displayTitle?: string;
74- description?: string;
75- renderInlineAs?: string;
76- type?: ContextProviderType;
77- getContextItems(
78- query: string,
79- extras: ContextProviderExtras,
80- ): Promise<ContextItem[]>;
81- loadSubmenuItems?: (
82- args: LoadSubmenuItemsArgs,
83- ) => Promise<ContextSubmenuItem[]>;
84-}
85-```
86-
87-As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties:
88-
89-- `name`: The name of the context item, which will be displayed as a title
90-- `description`: A longer description of the context item
91-- `content`: The actual content of the context item, which will be fed to the LLM as context
92-
93-```typescript title="~/.continue/config.ts"
94-const RagContextProvider: CustomContextProvider = {
95- title: "rag",
96- displayTitle: "RAG",
97- description:
98- "Retrieve snippets from our vector database of internal documents",
99-
100- getContextItems: async (
101- query: string,
102- extras: ContextProviderExtras,
103- ): Promise<ContextItem[]> => {
104- const response = await fetch("https://internal_rag_server.com/retrieve", {
105- method: "POST",
106- body: JSON.stringify({ query }),
107- });
108-
109- const results = await response.json();
110-
111- return results.map((result) => ({
112- name: result.title,
113- description: result.title,
114- content: result.contents,
115- }));
116- },
117-};
118-```
119-
120-It can then be added in `config.ts` like so:
121-
122-```typescript title="~/.continue/config.ts"
123-export function modifyConfig(config: Config): Config {
124- if (!config.contextProviders) {
125- config.contextProviders = [];
126- }
127- config.contextProviders.push(RagContextProvider);
128- return config;
129-}
130-```
131-
132-This is automatically appended to your configuration.
133-
134-### Custom Context Providers with Submenu or Query
135-
136-There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far.
137-
138-The **"query"** type is used when you want to display a text box to the user, and then use the contents of that text box to generate the context items. Built-in examples include "search" and "google". This text is what gets passed to the "query" argument in `getContextItems`. To implement a "query" context provider, simply set `"type": "query"` in your custom context provider object.
139-
140-The **"submenu"** type is used when you want to display a list of searchable items in the dropdown. Built-in examples include "issue" and "folder". To implement a "submenu" context provider, set `"type": "submenu"` and implement the `loadSubmenuItems` and `getContextItems` functions. Here is an example that shows a list of all README files in the current workspace:
141-
142-```typescript title="~/.continue/config.ts"
143-const ReadMeContextProvider: CustomContextProvider = {
144- title: "readme",
145- displayTitle: "README",
146- description: "Reference README.md files in your workspace",
147- type: "submenu",
148-
149- getContextItems: async (
150- query: string,
151- extras: ContextProviderExtras,
152- ): Promise<ContextItem[]> => {
153- // 'query' is the filepath of the README selected from the dropdown
154- const content = await extras.ide.readFile(query);
155- return [
156- {
157- name: getFolder(query),
158- description: getFolderAndBasename(query),
159- content,
160- },
161- ];
162- },
163-
164- loadSubmenuItems: async (
165- args: LoadSubmenuItemsArgs,
166- ): Promise<ContextSubmenuItem[]> => {
167- const { ide } = args;
168-
169- // Filter all workspace files for READMEs
170- const workspaceDirs = await ide.getWorkspaceDirs();
171-
172- const allFiles = await Promise.all(
173- workspaceDirs.map((dir) =>
174- ide.subprocess(`find ${dir} -name "README.md"`),
175- ),
176- );
177-
178- // 'readmes' now contains an array of file paths for each README.md file found in the workspace,
179- // excluding those in 'node_modules'
180- const readmes = allFiles
181- .flatMap((mds) => mds[0].split("\n"))
182- .filter((file) => file.trim() !== "" && !file.includes("/node_modules/"));
183-
184- // Return the items that will be shown in the dropdown
185- return readmes.map((filepath) => {
186- return {
187- id: filepath,
188- title: getFolder(filepath),
189- description: getFolderAndBasename(filepath),
190- };
191- });
192- },
193-};
194-
195-export function modifyConfig(config: Config): Config {
196- if (!config.contextProviders) {
197- config.contextProviders = [];
198- }
199- config.contextProviders.push(ReadMeContextProvider);
200- return config;
201-}
202-
203-function getFolder(path: string): string {
204- return path.split(/[\/\\]/g).slice(-2)[0];
205-}
206-
207-function getFolderAndBasename(path: string): string {
208- return path
209- .split(/[\/\\]/g)
210- .slice(-2)
211- .join("/");
212-}
213-```
214-
215-The flow of information in the above example is as follows:
216-
217-1. The user types `@readme` and selects it from the dropdown, now displaying the submenu where they can search for any item returned by `loadSubmenuItems`.
218-2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter.
219-3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README.
220-4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt.
221-
222-### Importing outside modules
223-
224-To include outside Node modules in your config.ts, run `npm install <module_name>` from the `~/.continue` directory, and then import them in config.ts.
225-
226-Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52).
227-
228-### `CustomContextProvider` Reference
229-
230-- `title`: An identifier for the context provider
231-- `displayTitle` (optional): The title displayed in the dropdown
232-- `description` (optional): The longer description displayed in the dropdown when hovered
233-- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal".
234-- `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`.
235-- `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments:
236- - `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents
237- - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding
238- - `extras.llm`: The current default LLM, which you can use to make completion requests
239- - `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file.
240- - `query`: (not currently used) A string representing the query
241-- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`.
242- .
243-
244-## Extension API for VSCode
245-
246-Continue exposes an API for registering context providers from a 3rd party VSCode extension. This is useful if you have a VSCode extension that provides some additional context that you would like to use in Continue. To use this API, add the following to your `package.json`:
247-
248-```json title="package.json"
249-{
250- "extensionDependencies": ["continue.continue"]
251-}
252-```
253-
254-Or install the Continue Core module from npm:
255-
256-```bash
257-npm i @continuedev/core
258-```
259-
260-You can add the Continue core module as a dev dependency in your `package.json`:
261-
262-```json title="package.json"
263-{
264- "devDependencies": {
265- "@continuedev/core": "^0.0.1"
266- }
267-}
268-```
269-
270-Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface.
271-Here is an example:
272-
273-```typescript title="myCustomContextProvider.ts"
274-import * as vscode from "vscode";
275-import {
276- IContextProvider,
277- ContextProviderDescription,
278- ContextProviderExtras,
279- ContextItem,
280- LoadSubmenuItemsArgs,
281- ContextSubmenuItem,
282-} from "@continuedev/core";
283-
284-class MyCustomProvider implements IContextProvider {
285- get description(): ContextProviderDescription {
286- return {
287- title: "Custom",
288- displayTitle: "Custom",
289- description: "my custom context provider",
290- type: "normal",
291- };
292- }
293-
294- async getContextItems(
295- query: string,
296- extras: ContextProviderExtras,
297- ): Promise<ContextItem[]> {
298- return [
299- {
300- name: "Custom",
301- description: "Custom description",
302- content: "Custom content",
303- },
304- ];
305- }
306-
307- async loadSubmenuItems(
308- args: LoadSubmenuItemsArgs,
309- ): Promise<ContextSubmenuItem[]> {
310- return [];
311- }
312-}
313-
314-// create an instance of your custom provider
315-const customProvider = new MyCustomProvider();
316-
317-// get Continue extension using vscode API
318-const continueExt = vscode.extensions.getExtension("Continue.continue");
319-
320-// get the API from the extension
321-const continueApi = continueExt?.exports;
322-
323-// register your custom provider
324-continueApi?.registerCustomContextProvider(customProvider);
325-```
326-
327-This will register `MyCustomProvider` with Continue!
328-
329-![alt text](./assets/image.png)
deleted docs/docs/customize/tutorials/custom-code-rag.mdx +0 −171
@@ -1,171 +0,0 @@
1-import Tabs from "@theme/Tabs";
2-import TabItem from "@theme/TabItem";
3-
4-# Custom code RAG
5-
6-While Continue comes with [@Codebase](../deep-dives/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.
7-
8-## Step 1: Choose an embeddings model
9-
10-If possible, we recommend using [`voyage-code-3`](https://docs.voyageai.com/docs/embeddings), which will give the most accurate answers of any existing embeddings model for code. You can obtain an API key [here](https://dash.voyageai.com/api-keys). Because their API is [OpenAI-compatible](https://docs.voyageai.com/reference/embeddings-api), you can use any OpenAI client by swapping out the URL.
11-
12-## Step 2: Choose a vector database
13-
14-There are a number of available vector databases, but because most vector databases will be able to performantly handle large codebases, we would recommend choosing one for ease of setup and experimentation.
15-
16-[LanceDB](https://lancedb.github.io/lancedb/basic/) is a good choice for this because it can run in-memory with libraries for both Python and Node.js. This means that in the beginning you can focus on writing code rather than setting up infrastructure. If you have already chosen a vector database, then using this instead of LanceDB is also a fine choice.
17-
18-## Step 3: Choose a "chunking" strategy
19-
20-Most embeddings models can only handle a limited amount of text at once. To get around this, we "chunk" our code into smaller pieces.
21-
22-If you use `voyage-code-3`, it has a maximum context length of 16,000 tokens, which is enough to fit most files. This means that in the beginning you can get away with a more naive strategy of truncating files that exceed the limit. In order of easiest to most comprehensive, 3 chunking strategies you can use are:
23-
24-1. Truncate the file when it goes over the context length: in this case you will always have 1 chunk per file.
25-2. Split the file into chunks of a fixed length: starting at the top of the file, add lines in your current chunk until it reaches the limit, then start a new chunk.
26-3. Use a recursive, abstract syntax tree (AST)-based strategy: this is the most exact, but most complex. In most cases you can achieve high quality results by using (1) or (2), but if you'd like to try this you can find a reference example in [our code chunker](https://github.com/continuedev/continue/blob/main/core/indexing/chunk/code.ts) or in [LlamaIndex](https://docs.llamaindex.ai/en/stable/api_reference/node_parsers/code/).
27-
28-As usual in this guide, we recommend starting with the strategy that gives 80% of the benefit with 20% of the effort.
29-
30-## Step 4: Put together an indexing script
31-
32-Indexing, in which we will insert your code into the vector database in a retrievable format, happens in three steps:
33-
34-1. Chunking
35-2. Generating embeddings
36-3. Inserting into the vector database
37-
38-With LanceDB, we can do steps 2 and 3 simultaneously, as demonstrated [in their docs](https://lancedb.github.io/lancedb/basic/#using-the-embedding-api). If you are using Voyage AI for example, it would be configured like this:
39-
40-```python
41-from lancedb.pydantic import LanceModel, Vector
42-from lancedb.embeddings import get_registry
43-
44-db = lancedb.connect("/tmp/db")
45-func = get_registry().get("openai").create(
46- name="voyage-code-3",
47- base_url="https://api.voyageai.com/v1/",
48- api_key=os.environ["VOYAGE_API_KEY"],
49-)
50-
51-class CodeChunks(LanceModel):
52- filename: str
53- text: str = func.SourceField()
54- # 1024 is the default dimension for `voyage-code-3`: https://docs.voyageai.com/docs/embeddings#model-choices
55- vector: Vector(1024) = func.VectorField()
56-
57-table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite")
58-table.add([
59- {"text": "print('hello world!')", filename: "hello.py"},
60- {"text": "print('goodbye world!')", filename: "goodbye.py"}
61-])
62-
63-query = "greetings"
64-actual = table.search(query).limit(1).to_pydantic(CodeChunks)[0]
65-print(actual.text)
66-```
67-
68-:::tip
69-
70-If you are indexing more than one repository, it is best to store these in separate "tables" (terminology used by LanceDB) or "collections" (terminology used by some other vector DBs). The alternative of adding a "repository" field and then filtering by this is less performant.
71-
72-:::
73-
74-Regardless of which database or model you have chosen, your script should iterate over all of the files that you wish to index, chunk them, generate embeddings for each chunk, and then insert all of the chunks into your vector database.
75-
76-## Step 5: Run your indexing script
77-
78-:::tip
79-
80-In a perfect production version, you would want to build "automatic, incremental indexing", so that you whenever a file changes, that file and nothing else is automatically re-indexed. This has the benefits of perfectly up-to-date embeddings and lower cost.
81-
82-That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap.
83-:::
84-
85-At this point, you've written your indexing script and tested that you can make queries from your vector database. Now, you'll want a plan for when to run the indexing script.
86-
87-In the beginning, you should probably run it by hand. Once you are confident that your custom RAG is providing value and is ready for the long-term, then you can set up a cron job to run it periodically. Because codebases are largely unchanged in short time frames, you won't want to re-index more than once a day. Once per week or month is probably even sufficient.
88-
89-## Step 6: Set up your server
90-
91-In order for the Continue extension to access your custom RAG system, you'll need to set up a server. This server is responsible for recieving a query from the extension, querying the vector database, and returning the results in the format expected by Continue.
92-
93-Here is a reference implementation using FastAPI that is capable of handling requests from Continue's "http" context provider.
94-
95-```python
96-"""
97-This is an example of a server that can be used with the "http" context provider.
98-"""
99-
100-from fastapi import FastAPI
101-from pydantic import BaseModel
102-
103-
104-class ContextProviderInput(BaseModel):
105- query: str
106- fullInput: str
107-
108-
109-app = FastAPI()
110-
111-
112-@app.post("/retrieve")
113-async def create_item(item: ContextProviderInput):
114- results = [] # TODO: Query your vector database here.
115-
116- # Construct the "context item" format expected by Continue
117- context_items = []
118- for result in results:
119- context_items.append({
120- "name": result.filename,
121- "description": result.filename,
122- "content": result.text,
123- })
124-
125- return context_items
126-```
127-
128-After you've set up your server, you can configure Continue to use it by adding the "http" context provider to your `contextProviders` array in your configuration:
129-
130-<Tabs groupId="config-example">
131-<TabItem value="yaml" label="YAML">
132- ```yaml title="config.yaml"
133- context:
134- - provider: http
135- params:
136- url: https://myserver.com/retrieve
137- name: http
138- description: Custom HTTP Context Provider
139- displayTitle: My Custom Context
140- ```
141- </TabItem>
142- <TabItem value="json" label="JSON">
143- ```json title="config.json"
144- {
145- "contextProviders": [
146- {
147- "name": "http",
148- "params": {
149- "url": "https://myserver.com/retrieve",
150- "title": "http",
151- "description": "Custom HTTP Context Provider",
152- "displayTitle": "My Custom Context"
153- }
154- }
155- ]
156- }
157- ```
158- </TabItem>
159-</Tabs>
160-
161-## Step 7 (Bonus): Set up reranking
162-
163-If you'd like to improve the quality of your results, a great first step is to add reranking. This involves retrieving a larger initial pool of results from the vector database, and then using a reranking model to order them from most to least relevant. This works because the reranking model can perform a slightly more expensive calculation on the small set of top results, and so can give a more accurate ordering than similarity search, which has to search over all entries in the database.
164-
165-If you wish to return 10 total results for each query for example, then you would:
166-
167-1. Retrieve ~50 results from the vector database using similarity search
168-2. Send all of these 50 results to the reranker API along with the query in order to get relevancy scores for each
169-3. Sort the results by relevancy score and return the top 10
170-
171-We recommend using the `rerank-2` model from Voyage AI, which has examples of usage [here](https://docs.voyageai.com/docs/reranker).
deleted docs/docs/customize/tutorials/how-to-self-host-a-model.mdx +0 −124
@@ -1,124 +0,0 @@
1----
2-title: How to self-host a model
3----
4-
5-import TabItem from "@theme/TabItem";
6-import Tabs from "@theme/Tabs";
7-
8-You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-code-llm#aws), [GCP](https://github.com/continuedev/deploy-os-code-llm#gcp), [Azure](https://github.com/continuedev/deploy-os-code-llm#azure), [Lambda](https://lambdalabs.com/), or [other clouds](https://github.com/continuedev/deploy-os-code-llm#others-2) using:
9-
10-- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi)
11-- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm)
12-- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot)
13-- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API)
14-- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda)
15-
16-## Self-hosting an open-source model
17-
18-For many cases, either Continue will have a built-in provider or the API you use will be OpenAI-compatible, in which case you can use the "openai" provider and change the "baseUrl" to point to the server.
19-
20-However, if neither of these are the case, you will need to wire up a new LLM object.
21-
22-## Authentication
23-
24-Basic authentication can be done with any provider using the `apiKey` field:
25-
26-<Tabs groupId="config-example">
27- <TabItem value="yaml" label="YAML">
28- ```yaml title="config.yaml"
29- models:
30- - name: Ollama
31- provider: ollama
32- model: llama2-7b
33- apiKey: <YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>
34- ```
35- </TabItem>
36- <TabItem value="json" label="JSON">
37- ```json title="config.json"
38- {
39- "models": [
40- {
41- "title": "Ollama",
42- "provider": "ollama",
43- "model": "llama2-7b",
44- "apiKey": "<YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>"
45- }
46- ]
47- }
48- ```
49- </TabItem>
50-</Tabs>
51-
52-This translates to the header `"Authorization": "Bearer xxx"`.
53-
54-If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama:
55-
56-<Tabs groupId="config-example">
57- <TabItem value="yaml" label="YAML">
58- ```yaml title="config.yaml"
59- models:
60- - name: Ollama
61- provider: ollama
62- model: llama2-7b
63- requestOptions:
64- headers:
65- X-Auth-Token: xxx
66- ```
67- </TabItem>
68- <TabItem value="json" label="JSON">
69- ```json title="config.json"
70- {
71- "models": [
72- {
73- "title": "Ollama",
74- "provider": "ollama",
75- "model": "llama2-7b",
76- "requestOptions": {
77- "headers": {
78- "X-Auth-Token": "xxx"
79- }
80- }
81- }
82- ]
83- }
84- ```
85- </TabItem>
86-</Tabs>
87-
88-Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below:
89-
90-<Tabs groupId="config-example">
91- <TabItem value="yaml" label="YAML">
92- ```yaml title="config.yaml"
93- models:
94- - name: Ollama
95- provider: ollama
96- model: llama2-7b
97- requestOptions:
98- clientCertificate:
99- cert: C:\tempollama.pem
100- key: C:\tempollama.key
101- passphrase: c0nt!nu3
102- ```
103- </TabItem>
104- <TabItem value="json" label="JSON">
105- ```json title="config.json"
106- {
107- "models": [
108- {
109- "title": "Ollama",
110- "provider": "ollama",
111- "model": "llama2-7b",
112- "requestOptions": {
113- "clientCertificate": {
114- "cert": "C:\\tempollama.pem",
115- "key": "C:\\tempollama.key",
116- "passphrase": "c0nt!nu3"
117- }
118- }
119- }
120- ]
121- }
122- ```
123- </TabItem>
124-</Tabs>
deleted docs/docs/customize/tutorials/llama3.1.mdx +0 −218
@@ -1,218 +0,0 @@
1----
2-title: Using Llama 3.1 with Continue
3-description: How to use Llama 3.1 with Continue
4-keywords: [llama, meta, togetherai, ollama, replicate]
5----
6-
7-import TabItem from "@theme/TabItem";
8-import Tabs from "@theme/Tabs";
9-
10-Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal.
11-
12-If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](../overview.md).
13-
14-Below we share some of the easiest ways to get up and running, depending on your use-case.
15-
16-## Ollama
17-
18-Ollama is the fastest way to get up and running with local language models. We recommend trying Llama 3.1 8b, which is impressive for its size and will perform well on most hardware.
19-
20-1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
21-2. Open a terminal and run `ollama run llama3.1:8b`
22-3. Change your Continue config file like this:
23-
24-<Tabs groupId="config-example">
25- <TabItem value="yaml" label="YAML">
26- ```yaml title="config.yaml"
27- models:
28- - name: Llama 3.1 8b
29- provider: ollama
30- model: llama3.1-8b
31- ```
32- </TabItem>
33- <TabItem value="json" label="JSON">
34- ```json title="config.json"
35- {
36- "models": [
37- {
38- "title": "Llama 3.1 8b",
39- "provider": "ollama",
40- "model": "llama3.1-8b"
41- }
42- ]
43- }
44- ```
45- </TabItem>
46-</Tabs>
47-
48-## Groq
49-
50-:::info
51-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.
52-:::
53-
54-Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
55-
56-1. Obtain an API key [here](https://console.groq.com/keys)
57-2. Update your Continue config file like this:
58-
59-<Tabs groupId="config-example">
60- <TabItem value="yaml" label="YAML">
61- ```yaml title="config.yaml"
62- models:
63- - name: Llama 3.3 70b Versatile
64- provider: groq
65- model: llama-3.3-70b-versatile
66- apiKey: <YOUR_GROQ_API_KEY>
67- ```
68- </TabItem>
69- <TabItem value="json" label="JSON">
70- ```json title="config.json"
71- {
72- "models": [
73- {
74- "title": "Llama 3.3 70b Versatile",
75- "provider": "groq",
76- "model": "llama-3.3-70b-versatile",
77- "apiKey": "<YOUR_GROQ_API_KEY>"
78- }
79- ]
80- }
81- ```
82- </TabItem>
83-</Tabs>
84-
85-## Together AI
86-
87-Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
88-
89-1. Create an account [here](https://api.together.xyz/signup)
90-2. Copy your API key that appears on the welcome screen
91-3. Update your Continue config file like this:
92-
93-<Tabs groupId="config-example">
94- <TabItem value="yaml" label="YAML">
95- ```yaml title="config.yaml"
96- models:
97- - name: Llama 3.1 405b
98- provider: together
99- model: llama3.1-405b
100- apiKey: <YOUR_TOGETHER_API_KEY>
101- ```
102- </TabItem>
103- <TabItem value="json" label="JSON">
104- ```json title="config.json"
105- {
106- "models": [
107- {
108- "title": "Llama 3.1 405b",
109- "provider": "together",
110- "model": "llama3.1-405b",
111- "apiKey": "<YOUR_TOGETHER_API_KEY>"
112- }
113- ]
114- }
115- ```
116- </TabItem>
117-</Tabs>
118-
119-## Replicate
120-
121-Replicate makes it easy to host and run open-source AI with an API.
122-
123-1. Get your Replicate API key [here](https://replicate.ai/)
124-2. Change your Continue config file like this:
125-
126-<Tabs groupId="config-example">
127- <TabItem value="yaml" label="YAML">
128- ```yaml title="config.yaml"
129- models:
130- - name: Llama 3.1 405b
131- provider: replicate
132- model: llama3.1-405b
133- apiKey: <YOUR_REPLICATE_API_KEY>
134- ```
135- </TabItem>
136- <TabItem value="json" label="JSON">
137- ```json title="config.json"
138- {
139- "models": [
140- {
141- "title": "Llama 3.1 405b",
142- "provider": "replicate",
143- "model": "llama3.1-405b",
144- "apiKey": "<YOUR_REPLICATE_API_KEY>"
145- }
146- ]
147- }
148- ```
149- </TabItem>
150-</Tabs>
151-
152-## SambaNova
153-
154-SambaNova Cloud provides world record Llama3.1 70B/405B serving.
155-
156-1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
157-2. Copy your API key
158-3. Update your Continue config file like this:
159-
160-<Tabs groupId="config-example">
161- <TabItem value="yaml" label="YAML">
162- ```yaml title="config.yaml"
163- models:
164- - name: SambaNova Llama 3.1 405B
165- provider: sambanova
166- model: llama3.1-405b
167- apiKey: <YOUR_SAMBA_API_KEY>
168- ```
169- </TabItem>
170- <TabItem value="json" label="JSON">
171- ```json title="config.json"
172- {
173- "models": [
174- {
175- "title": "SambaNova Llama 3.1 405B",
176- "provider": "sambanova",
177- "model": "llama3.1-405b",
178- "apiKey": "<YOUR_SAMBA_API_KEY>"
179- }
180- ]
181- }
182- ```
183- </TabItem>
184-</Tabs>
185-
186-## Cerebras Inference
187-
188-Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/70B.
189-
190-1. Create an account in the portal [here](https://cloud.cerebras.ai/).
191-2. Create and copy the API key for use in Continue.
192-3. Update your Continue config file:
193-
194-<Tabs groupId="config-example">
195- <TabItem value="yaml" label="YAML">
196- ```yaml title="config.yaml"
197- models:
198- - name: Cerebras Llama 3.1 70B
199- provider: cerebras
200- model: llama3.1-70b
201- apiKey: <YOUR_CEREBRAS_API_KEY>
202- ```
203- </TabItem>
204- <TabItem value="json" label="JSON">
205- ```json title="config.json"
206- {
207- "models": [
208- {
209- "title": "Cerebras Llama 3.1 70B",
210- "provider": "cerebras",
211- "model": "llama3.1-70b",
212- "apiKey": "<YOUR_CEREBRAS_API_KEY>"
213- }
214- ]
215- }
216- ```
217- </TabItem>
218-</Tabs>
deleted docs/docs/customize/tutorials/running-continue-without-internet.md +0 −12
@@ -1,12 +0,0 @@
1----
2-title: Running Continue without Internet
3-description: How to run Continue without Internet
4-keywords: [no internet, air-gapped, local model]
5----
6-
7-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.
8-
9-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](../deep-dives/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../../telemetry.md).
11-3. Also in `config.json`, set the default model to a local model. You can available options [here](../model-providers/).
12-4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
deleted docs/docs/customize/tutorials/set-up-codestral.mdx +0 −62
@@ -1,62 +0,0 @@
1----
2-title: How to set up Codestral
3-description: How to set up Codestral
4-keywords: [codestral, mistral, model setup]
5----
6-
7-import Tabs from "@theme/Tabs";
8-import TabItem from "@theme/TabItem";
9-
10-![mistral x continue](../../../static/img/mistral-x-continue.png)
11-
12-**Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:**
13-
14-1. Install the Continue VS Code or JetBrains extension following the instructions [here](../../getting-started/install.md)
15-
16-2. Click on the gear icon in the bottom right corner of the Continue window to open `~/.continue/config.json` (MacOS) / `%userprofile%\.continue\config.json` (Windows)
17-
18-3. Log in and create an API key on Mistral AI's La Plateforme [here](https://console.mistral.ai/codestral). Make sure you get an API key from the "Codestral" page.
19-
20-4. To use Codestral as your model for both `autocomplete` and `chat`, insert your Mistral API key below and add it to your configuration file:
21-
22-<Tabs groupId="config-example">
23- <TabItem value="yaml" label="YAML">
24- ```yaml title="config.yaml"
25- models:
26- - name: Codestral
27- provider: mistral
28- model: codestral-latest
29- apiKey: <YOUR_CODESTRAL_API_KEY>
30- apiBase: https://codestral.mistral.ai/v1
31- roles:
32- - chat
33- - autocomplete
34- ```
35- </TabItem>
36- <TabItem value="json" label="JSON">
37- ```json title="config.json"
38- {
39- "models": [
40- {
41- "title": "Codestral",
42- "provider": "mistral",
43- "model": "codestral-latest",
44- "apiKey": "<YOUR_CODESTRAL_API_KEY>",
45- "apiBase": "https://codestral.mistral.ai/v1"
46- }
47- ],
48- "tabAutocompleteModel": [
49- {
50- "title": "Codestral",
51- "provider": "mistral",
52- "model": "codestral-latest",
53- "apiKey": "<YOUR_CODESTRAL_API_KEY>",
54- "apiBase": "https://codestral.mistral.ai/v1"
55- }
56- ]
57- }
58- ```
59- </TabItem>
60-</Tabs>
61-
62-5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)
deleted docs/docs/edit/context-selection.md +0 −18
@@ -1,18 +0,0 @@
1----
2-title: Context selection
3-sidebar_position: 3
4-description: How to select context for Edit
5-keywords: [edit, cmd i, works]
6----
7-
8-## Input
9-
10-The input you provide is included in the prompt.
11-
12-## Code to Edit
13-
14-The **entire contents** of each file (the current file for Jetbrains inline Edit, the `Code to Edit` item for VS Code Edit mode) are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges.
15-
16-## Context Providers
17-
18-In VS Code Edit mode, you can use `@` to add context using [Context Providers](../customize/context-providers.mdx), similar to [Chat](../chat/context-selection.md). Some context providers may be disabled in Edit mode.
deleted docs/docs/edit/how-it-works.md +0 −14
@@ -1,14 +0,0 @@
1----
2-title: How Edit works
3-sidebar_position: 4
4-description: How it works
5-keywords: [edit, cmd l, works]
6----
7-
8-Using the highlighted code, the contents of the current file containing your highlight, and your input instructions, we prompt the model to edit the code according to your instructions. No other additional context is provided to the model.
9-
10-The model response is then streamed directly back to the highlighted range in your code, where we apply a diff formatting to show the proposed changes.
11-
12-If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes.
13-
14-If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](../troubleshooting.mdx#check-the-logs).
deleted docs/docs/edit/how-to-customize.mdx +0 −14
@@ -1,14 +0,0 @@
1----
2-title: How to customize
3-sidebar_position: 5
4-description: How to customize Edit
5-keywords: [edit, cmd i, works]
6----
7-
8-## Setting active Edit/Apply model
9-
10-You can configure particular models from your Assistant to be used for Edit and Apply requests (see [How it Works](./how-it-works.md)). 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 models to use for Edit and Apply.
11-
12-![Settings Active Models Section](/img/model-roles-edit.png)
13-
14-See [Edit role](../customize/model-roles/edit.mdx) and [Apply role](../customize/model-roles/apply.mdx) for more details.
deleted docs/docs/edit/how-to-use-it.md +0 −53
@@ -1,53 +0,0 @@
1----
2-title: Edit
3-sidebar_position: 1
4-sidebar_label: How to use it
5-description: How to use Edit
6-keywords: [edit, cmd l, use]
7----
8-
9-![edit](/img/edit.gif)
10-
11-## How to use it
12-
13-Edit is a convenient way to make quick changes to specific code and files. Select code, describe your code changes, and a diff will be streamed inline to your file which you can accept or reject.
14-
15-Edit is recommended for small, targeted changes, such as
16-
17-- Writing comments
18-- Generating unit tests
19-- Refactoring functions or methods
20-
21-## Highlight code and activate
22-
23-Highlight the block of code you would like to modify and press <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> to active Edit mode. You can also enter Edit mode by pressing <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> with no code highlighted, which will default to editing the current file.
24-
25-## Describe code changes
26-
27-Describe the changes you would like the model to make to your highlighted code. For edits, a good prompt should be relatively short and concise. For longer, more complex tasks, we recommend using [Chat](../chat/how-to-use-it.md).
28-
29-## Accept or reject changes
30-
31-Proposed changes appear as inline diffs within your highlighted text.
32-
33-You can navigate through each proposed change, accepting or rejecting them using <kbd>cmd/ctrl</kbd> + <kbd>opt</kbd> + <kbd>y</kbd> (to accept) or <kbd>cmd/ctrl</kbd> + <kbd>opt</kbd> + <kbd>n</kbd> (to reject).
34-
35-You can also accept or reject all changes at once using <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>enter</kbd> (to accept) or <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>delete/backspace</kbd> (to reject).
36-
37-If you want to request a new suggestion for the same highlighted code section, you can use <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> to re-prompt the model.
38-
39-## VS Code
40-
41-In VS Code, Edit is implemented in the extension sidebar with a similar interface to [Chat](../chat/how-it-works.md), and you can also enter Edit mode by using the Mode Selector below the main Chat input to select `Edit`.
42-
43-![edit mode selected](/img/select-edit-mode.png)
44-
45-You can also reject and accept diffs using the `Reject All` and `Accept All` buttons that show up in the Chat when diffs are present (see examples below).
46-
47-### Adding Code to Edit
48-
49-Along with adding highlighted code, you can also manually add files to edit using the `Add file` combobox or by clicking the dropdown and selecting `Add all open files` to add all files that are currently open in the editor.
50-
51-## Jetbrains
52-
53-In Jetbrains, Edit is implemented as an inline popup. See the header GIF example.
deleted docs/docs/edit/model-setup.md +0 −10
@@ -1,10 +0,0 @@
1----
2-title: Model setup
3-sidebar_position: 2
4-description: How to set up an Edit model
5-keywords: [edit, cmd l, model]
6----
7-
8-By default, Edit uses the [same model as Chat](../chat/model-setup.mdx), and we recommend [Claude 3.7 Sonnet](https://hub.continue.dev/anthropic/claude-3-7-sonnet) from Anthropic. Visit [the Hub](https://hub.continue.dev/explore/models?roles=edit) to explore other Edit models.
9-
10-For the best Edit experience, we also recommend setting up an Apply model, specially trained to apply diffs to files. We recommend [Morph v0 Fast Apply](https://hub.continue.dev/morphllm/morph-v0) or [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply). Explore other apply models on the [the Hub](https://hub.continue.dev/explore/models?roles=apply).
added docs/docs/features/00-overview.mdx +37 −0
@@ -0,0 +1,37 @@
1+---
2+title: Overview
3+description: Discover Continue's powerful AI-assisted development features
4+keywords: [features, chat, autocomplete, edit, agent, AI development]
5+---
6+
7+# Core Features
8+
9+Continue provides four powerful AI-assisted development features that work seamlessly within your IDE.
10+
11+## Chat
12+
13+Ask questions and get help from AI without leaving your editor. Perfect for understanding code, getting explanations, and brainstorming solutions.
14+
15+[Get started with Chat →](./chat/quick-start)
16+
17+## Autocomplete
18+
19+Receive intelligent code suggestions as you type. Continue's autocomplete understands your project context and coding patterns.
20+
21+[Get started with Autocomplete →](./autocomplete/quick-start)
22+
23+## Edit
24+
25+Modify code directly in your files with AI assistance. Make changes without switching contexts or copying code between windows.
26+
27+[Get started with Edit →](./edit/quick-start)
28+
29+## Agent
30+
31+Let AI handle complex coding tasks that require multiple steps, file navigation, and tool usage.
32+
33+[Get started with Agent →](./agent/quick-start)
34+
35+---
36+
37+Each feature is designed to enhance your development workflow while maintaining full control over your code.
added docs/docs/features/agent/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Agent",
3+ "position": 4
4+}
added docs/docs/features/agent/how-it-works.mdx +40 −0
@@ -0,0 +1,40 @@
1+---
2+title: How Agent Works
3+description: Understanding Continue's agent functionality and autonomous AI coding
4+keywords: [agent, AI, autonomous coding, tools, how it works]
5+---
6+
7+Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses.
8+
9+## The tool handshake
10+
11+Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
12+
13+The following handshake describes how Agent uses tools:
14+
15+1. In Agent mode, available tools are sent along with `user` chat requests
16+2. The model can choose to include a tool call in its response
17+3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
18+4. Continue calls the tool using built-in functionality or the MCP server that offers that particular tool
19+5. Continue sends the result back to the model
20+6. The model responds, potentially with another tool call and step 2 begins again
21+
22+:::info
23+In [Chat mode](../chat/quick-start), tools are **not** included in the request to the model.
24+:::
25+
26+## Built-in tools
27+
28+Continue includes several built-in tools which provide the model access to IDE functionality:
29+
30+- **Read file** (`read_file`): read the contents of a file within the project
31+- **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file
32+- **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model
33+- **Exact search** (`exact_search`): perform a `ripgrep` search within the project
34+- **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.
35+- **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
36+- **Search web** (`search_web`): Perform a web search to get top results
37+- **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)
39+- **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project
40+- **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
added docs/docs/features/agent/quick-start.mdx +47 −0
@@ -0,0 +1,47 @@
1+---
2+title: Quick Start
3+description: Get started with Continue's agent feature for autonomous coding tasks
4+keywords: [agent, quick start, autonomous, AI coding, tools]
5+---
6+
7+![agent mode](/img/agent.gif)
8+
9+## How to use it
10+
11+Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing the model to make decisions and save you the work of manually finding context and performing actions.
12+
13+### Use Agent
14+
15+You can switch to `Agent` in the mode selector below the chat input box.
16+
17+![How to select agent mode](/img/mode-select-agent.png)
18+
19+:::info
20+If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Blocks](../../customization/models.mdx) for more information.
21+:::
22+
23+### Chat with Agent
24+
25+Agent lives within the same interface as [Chat](../chat/how-it-works), so the same [input](../chat/quick-start#1-start-a-conversation) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/quick-start#3-use--for-additional-context) or adding [highlighted code from the editor](../chat/quick-start#2-include-code-context).
26+
27+#### Use natural language
28+
29+With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say
30+
31+> Set the @typescript-eslint/naming-convention rule to "off" for all eslint configurations in this project
32+
33+Agent will then decide which tools to use to get the job done.
34+
35+## Give Agent permission
36+
37+By default, Agent will ask permission when it wants to use a tool. Click `Continue` to allow Agent mode to proceed with the tool call or `Cancel` to reject it.
38+
39+![agent requesting permission](/img/agent-permission.png)
40+
41+You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](../../customization/mcp-tools.mdx) for more background.
42+
43+## View Tool Responses
44+
45+Any data returned from a tool call is automatically fed back into the model as a context item. Most errors are also caught and returned, so that Agent mode can decide how to proceed.
46+
47+![agent response](/img/agent-response.png)
added docs/docs/features/autocomplete/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Autocomplete",
3+ "position": 2
4+}
added docs/docs/features/autocomplete/how-it-works.mdx +30 −0
@@ -0,0 +1,30 @@
1+---
2+title: How Autocomplete Works
3+description: Understanding Continue's autocomplete functionality and AI-powered code completion
4+keywords: [autocomplete, AI, code completion, how it works]
5+---
6+
7+Autocomplete is a [compound AI system](https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/) that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts.
8+
9+## Timing
10+
11+In order to display suggestions quickly, without sending too many requests, we do the following:
12+
13+- Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
14+- Caching: If your cursor is in a position that we've already generated a completion for, this completion is reused. For example, if you backspace, we'll be able to immediately show the suggestion you saw before.
15+
16+## Context
17+
18+Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
19+
20+## Filtering
21+
22+Language models aren't perfect, but can be made much closer by adjusting their output. We do extensive post-processing on responses before displaying a suggestion, including:
23+
24+- filtering out special tokens
25+- stopping early when re-generating code
26+- fixing indentation
27+
28+We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
29+
30+You can learn more about how it works in the [Autocomplete deep dive](../../advanced/deep-dives/autocomplete.mdx).
added docs/docs/features/autocomplete/quick-start.mdx +27 −0
@@ -0,0 +1,27 @@
1+---
2+title: Quick Start
3+description: Get started with Continue's autocomplete feature
4+keywords: [autocomplete, quick start, getting started, code completion]
5+---
6+
7+![autocomplete](/img/autocomplete.gif)
8+
9+## How to use it
10+
11+Autocomplete provides inline code suggestions as you type. To enable it, simply click the "Continue" button in the status bar at the bottom right of your IDE or ensure the "Enable Tab Autocomplete" option is checked in your IDE settings.
12+
13+### Accepting a full suggestion
14+
15+Accept a full suggestion by pressing <kbd>Tab</kbd>
16+
17+### Rejecting a full suggestion
18+
19+Reject a full suggestion with <kbd>Esc</kbd>
20+
21+### Partially accepting a suggestion
22+
23+For more granular control, use <kbd>cmd/ctrl</kbd> + <kbd>→</kbd> to accept parts of the suggestion word-by-word.
24+
25+### Forcing a suggestion (VS Code)
26+
27+If you want to trigger a suggestion immediately without waiting, or if you've dismissed a suggestion and want a new one, you can force it by using the keyboard shortcut **<kbd>cmd/ctrl</kbd> + <kbd>alt</kbd> + <kbd>space</kbd>**.
added docs/docs/features/chat/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Chat",
3+ "position": 1
4+}
added docs/docs/features/chat/how-it-works.mdx +64 −0
@@ -0,0 +1,64 @@
1+---
2+title: How Chat Works
3+description: Understanding Continue's chat functionality and AI interaction
4+keywords: [chat, AI, conversation, context, how it works]
5+---
6+
7+# How Chat Works
8+
9+Continue's Chat feature provides a conversational interface with AI models directly in your IDE sidebar.
10+
11+## Core Functionality
12+
13+When you start a chat conversation, Continue:
14+
15+1. **Gathers Context**: Uses any selected code sections and @-mentioned context
16+2. **Constructs Prompt**: Combines your input with relevant context
17+3. **Sends to Model**: Prompts the configured AI model for a response
18+4. **Streams Response**: Returns the AI response in real-time to the sidebar
19+
20+## Context Management
21+
22+### Automatic Context
23+
24+- Selected code in your editor
25+- Current file context when relevant
26+- Previous conversation history in the session
27+
28+### Manual Context
29+
30+- `@Codebase` - Search and include relevant code from your project
31+- `@Docs` - Include documentation context
32+- `@Files` - Reference specific files
33+- Custom context providers
34+
35+## Response Handling
36+
37+Each code section in the AI response includes action buttons:
38+
39+- **Apply to current file** - Replace selected code
40+- **Insert at cursor** - Add code at cursor position
41+- **Copy** - Copy code to clipboard
42+
43+## Session Management
44+
45+- Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session
46+- Clears all previous context for a fresh start
47+- Helpful for switching between different tasks
48+
49+## Advanced Features
50+
51+### Prompt Inspection
52+
53+View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting) for debugging and optimization.
54+
55+### Context Providers
56+
57+Learn more about how context providers work:
58+
59+- [Codebase Context](../../advanced/context/codebase)
60+- [Documentation Context](../../advanced/context/documentation)
61+
62+---
63+
64+_Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used._
added docs/docs/features/chat/quick-start.mdx +100 −0
@@ -0,0 +1,100 @@
1+---
2+title: Quick Start
3+description: Get started with Continue's chat feature in minutes
4+keywords: [chat, quick start, getting started, tutorial]
5+---
6+
7+import Tabs from "@theme/Tabs";
8+import TabItem from "@theme/TabItem";
9+
10+# Chat Quick Start
11+
12+![chat](/img/chat.gif)
13+
14+Chat makes it easy to ask for help from an AI without leaving your IDE. Get explanations, generate code, and iterate on solutions conversationally.
15+
16+## Basic Usage
17+
18+### 1. Start a Conversation
19+
20+Type your question or request in the chat input and press Enter.
21+
22+**Examples:**
23+
24+- "Explain this function"
25+- "How do I handle errors in this code?"
26+- "Generate a test for this component"
27+
28+### 2. Include Code Context
29+
30+Select code in your editor, then use the keyboard shortcut to include it in your chat:
31+
32+<Tabs>
33+ <TabItem value="vscode" label="VS Code">
34+ Press `Cmd/Ctrl + L` to send selected code to chat
35+ </TabItem>
36+ <TabItem value="jetbrains" label="JetBrains">
37+ Press `Cmd/Ctrl + J` to send selected code to chat
38+ </TabItem>
39+</Tabs>
40+
41+### 3. Use @ for Additional Context
42+
43+Type `@` to include specific context:
44+
45+- `@Codebase` - Search your project for relevant code
46+- `@Docs` - Include documentation
47+- `@Files` - Reference specific files
48+- `@Terminal` - Include terminal output
49+
50+## Working with Responses
51+
52+When the AI provides code in its response, you'll see action buttons:
53+
54+- **Apply to current file** - Replace your selected code
55+- **Insert at cursor** - Add code at your cursor position
56+- **Copy** - Copy code to clipboard
57+
58+## Pro Tips
59+
60+### Start Fresh
61+
62+Press `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) in an empty chat to start a new session.
63+
64+### Be Specific
65+
66+Include details about:
67+
68+- What you're trying to accomplish
69+- Any constraints or requirements
70+- Your preferred coding style or patterns
71+
72+### Iterate
73+
74+If the first response isn't perfect:
75+
76+- Ask follow-up questions
77+- Request modifications
78+- Provide additional context
79+
80+## Common Use Cases
81+
82+### Code Explanation
83+
84+Select confusing code and ask "What does this code do?"
85+
86+### Bug Fixing
87+
88+Include error messages and ask "How do I fix this error?"
89+
90+### Code Generation
91+
92+Describe what you want: "Create a React component that displays a user profile"
93+
94+### Refactoring
95+
96+Select code and ask "How can I make this more efficient?"
97+
98+---
99+
100+_Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!_
added docs/docs/features/edit/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Edit",
3+ "position": 3
4+}
added docs/docs/features/edit/how-it-works.mdx +13 −0
@@ -0,0 +1,13 @@
1+---
2+title: How Edit Works
3+description: Understanding Continue's edit functionality and in-place code modification
4+keywords: [edit, AI, code modification, how it works, diff]
5+---
6+
7+Using the highlighted code, the contents of the current file containing your highlight, and your input instructions, we prompt the model to edit the code according to your instructions. No other additional context is provided to the model.
8+
9+The model response is then streamed directly back to the highlighted range in your code, where we apply a diff formatting to show the proposed changes.
10+
11+If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes.
12+
13+If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](/troubleshooting#check-the-logs).
added docs/docs/features/edit/quick-start.mdx +51 −0
@@ -0,0 +1,51 @@
1+---
2+title: Quick Start
3+description: Get started with Continue's edit feature for in-place code modifications
4+keywords: [edit, quick start, code modification, in-place editing]
5+---
6+
7+![edit](/img/edit.gif)
8+
9+## How to use it
10+
11+Edit is a convenient way to make quick changes to specific code and files. Select code, describe your code changes, and a diff will be streamed inline to your file which you can accept or reject.
12+
13+Edit is recommended for small, targeted changes, such as
14+
15+- Writing comments
16+- Generating unit tests
17+- Refactoring functions or methods
18+
19+## Highlight code and activate
20+
21+Highlight the block of code you would like to modify and press <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> to active Edit mode. You can also enter Edit mode by pressing <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> with no code highlighted, which will default to editing the current file.
22+
23+## Describe code changes
24+
25+Describe the changes you would like the model to make to your highlighted code. For edits, a good prompt should be relatively short and concise. For longer, more complex tasks, we recommend using [Chat](../chat/quick-start).
26+
27+## Accept or reject changes
28+
29+Proposed changes appear as inline diffs within your highlighted text.
30+
31+You can navigate through each proposed change, accepting or rejecting them using <kbd>cmd/ctrl</kbd> + <kbd>opt</kbd> + <kbd>y</kbd> (to accept) or <kbd>cmd/ctrl</kbd> + <kbd>opt</kbd> + <kbd>n</kbd> (to reject).
32+
33+You can also accept or reject all changes at once using <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>enter</kbd> (to accept) or <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>delete/backspace</kbd> (to reject).
34+
35+If you want to request a new suggestion for the same highlighted code section, you can use <kbd>cmd/ctrl</kbd> + <kbd>i</kbd> to re-prompt the model.
36+
37+## VS Code
38+
39+In VS Code, Edit is implemented in the extension sidebar with a similar interface to [Chat](../chat/how-it-works), and you can also enter Edit mode by using the Mode Selector below the main Chat input to select `Edit`.
40+
41+![edit mode selected](/img/select-edit-mode.png)
42+
43+You can also reject and accept diffs using the `Reject All` and `Accept All` buttons that show up in the Chat when diffs are present (see examples below).
44+
45+### Adding Code to Edit
46+
47+Along with adding highlighted code, you can also manually add files to edit using the `Add file` combobox or by clicking the dropdown and selecting `Add all open files` to add all files that are currently open in the editor.
48+
49+## Jetbrains
50+
51+In Jetbrains, Edit is implemented as an inline popup. See the header GIF example.
added docs/docs/getting-started/00-overview.mdx +63 −0
@@ -0,0 +1,63 @@
1+---
2+title: Overview
3+description: Getting started with Continue
4+keywords: [quickstart, start, overview, chat, autocomplete, edit, actions]
5+---
6+
7+import Admonition from "@theme/Admonition";
8+import TabItem from "@theme/TabItem";
9+import Tabs from "@theme/Tabs";
10+
11+To quickly understand what you can do with Continue, check out each tab below.
12+
13+<Tabs>
14+ <TabItem value="chat" label="Chat">
15+
16+ [Chat](../features/chat/quick-start) makes it easy to ask for help from an LLM without needing to leave the IDE
17+
18+ ![chat](/img/chat.gif)
19+
20+ <Admonition type="info" title="Learn more" icon="📚">
21+ Learn more about [Chat](../features/chat/quick-start)
22+ </Admonition>
23+
24+ </TabItem>
25+ <TabItem value="autocomplete" label="Autocomplete">
26+
27+ [Autocomplete](../features/autocomplete/quick-start) provides inline code suggestions as you type
28+
29+ ![autocomplete](/img/autocomplete.gif)
30+
31+ <Admonition type="info" title="Learn more" icon="📚">
32+ Learn more about [Autocomplete](../features/autocomplete/quick-start)
33+ </Admonition>
34+
35+ </TabItem>
36+
37+ <TabItem value="edit" label="Edit">
38+
39+[Edit](../features/edit/quick-start) is a convenient way to modify code without leaving your current file
40+
41+![edit](/img/edit.gif)
42+
43+{" "}
44+
45+<Admonition type="info" title="Learn more" icon="📚">
46+ Learn more about [Edit](../features/edit/quick-start)
47+</Admonition>
48+
49+ </TabItem>
50+
51+ <TabItem value="agent" label="Agent">
52+
53+ [Agent](../features/agent/quick-start) equips the Chat model with the tools needed to handle a wide range of coding tasks
54+
55+ ![agent](/img/agent.gif)
56+
57+ <Admonition type="info" title="Learn more" icon="📚">
58+ Learn more about [Agent](../features/agent/quick-start)
59+ </Admonition>
60+
61+ </TabItem>
62+
63+</Tabs>
added docs/docs/getting-started/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Getting Started",
3+ "position": 1
4+}
modified docs/docs/getting-started/install.md +18 −4
@@ -4,7 +4,15 @@
44 keywords: [install, installation, getting started, vs code, jetbrains]
55 ---
66
7-## VS Code
7+import Tabs from '@theme/Tabs';
8+import TabItem from '@theme/TabItem';
9+
10+Get Continue installed in your favorite IDE in just a few steps.
11+
12+<Tabs>
13+ <TabItem value="vscode" label="VS Code">
14+
15+## Install in VS Code
816
917 1. Click `Install` on the [Continue extension page in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
1018 2. This will open the Continue extension page in VS Code, where you will need to click `Install` again
@@ -14,10 +22,13 @@
1422 ![move-to-right-sidebar](/img/move-to-right-sidebar.gif)
1523
1624 :::info[Troubleshooting]
17-If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs)
25+If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs)
1826 :::
1927
20-## JetBrains
28+ </TabItem>
29+ <TabItem value="jetbrains" label="JetBrains">
30+
31+## Install in JetBrains
2132
2233 1. Open your JetBrains IDE and open **Settings** using <kbd>Ctrl</kbd> + <kbd>Alt</kbd> + <kbd>S</kbd>
2334 2. Select **Plugins** on the sidebar and search for "Continue" in the marketplace
@@ -27,9 +38,12 @@
2738 ![jetbrains-getting-started.png](/img/jetbrains-getting-started.png)
2839
2940 :::info[Troubleshooting]
30-If you have any problems, see the [troubleshooting guide](../troubleshooting.mdx) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
41+If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
3142 :::
3243
44+ </TabItem>
45+</Tabs>
46+
3347 ## Signing in
3448
3549 Click "Get started" to sign in to the hub and start using assistants.
deleted docs/docs/getting-started/overview.mdx +0 −62
@@ -1,62 +0,0 @@
1----
2-title: Overview
3-description: Getting started with Continue
4-keywords: [quickstart, start, overview, chat, autocomplete, edit, actions]
5----
6-
7-import Admonition from "@theme/Admonition";
8-import TabItem from "@theme/TabItem";
9-import Tabs from "@theme/Tabs";
10-
11-To quickly understand what you can do with Continue, check out each tab below.
12-
13-<Tabs>
14- <TabItem value="chat" label="Chat">
15-
16- [Chat](../chat/how-to-use-it.md#how-to-use-it) makes it easy to ask for help from an LLM without needing to leave the IDE
17-
18- ![chat](/img/chat.gif)
19-
20- <Admonition type="info" title="Learn more" icon="📚">
21- Learn more about [Chat](../chat/how-to-use-it.md#how-to-use-it)
22- </Admonition>
23-
24- </TabItem>
25- <TabItem value="autocomplete" label="Autocomplete">
26-
27- [Autocomplete](../autocomplete/how-to-use-it.md#how-to-use-it) provides inline code suggestions as you type
28-
29- ![autocomplete](/img/autocomplete.gif)
30-
31- <Admonition type="info" title="Learn more" icon="📚">
32- Learn more about [Autocomplete](../autocomplete/how-to-use-it.md#how-to-use-it)
33- </Admonition>
34-
35- </TabItem>
36-
37- <TabItem value="edit" label="Edit">
38-
39-[Edit](../edit/how-to-use-it.md#how-to-use-it) is a convenient way to modify code without leaving your current file
40-
41-![edit](/img/edit.gif)
42-
43-{" "}
44-<Admonition type="info" title="Learn more" icon="📚">
45- Learn more about [Edit](../edit/how-to-use-it.md#how-to-use-it)
46-</Admonition>
47-
48- </TabItem>
49-
50- <TabItem value="agent" label="Agent">
51-
52- [Agent](../agent/how-to-use-it.md#how-to-use-it) equips the Chat model with the tools needed to handle a wide range of coding tasks
53-
54- ![agent](/img/agent.gif)
55-
56- <Admonition type="info" title="Learn more" icon="📚">
57- Learn more about [Agent](../agent/how-to-use-it.md#how-to-use-it)
58- </Admonition>
59-
60- </TabItem>
61-
62-</Tabs>
added docs/docs/guides/00-overview.mdx +23 −0
@@ -0,0 +1,23 @@
1+---
2+title: Overview
3+description: Comprehensive guides and tutorials for using Continue effectively
4+---
5+
6+# Continue Guides
7+
8+## Model & Setup Guides
9+
10+- [Using Ollama with Continue](./ollama-guide) - Local AI development with Ollama
11+- [Setting up Codestral](./set-up-codestral) - Configure Mistral's Codestral model
12+- [How to Self-Host a Model](./how-to-self-host-a-model) - Self-hosting AI models
13+- [Running Continue Without Internet](./running-continue-without-internet) - Offline development setup
14+- [Llama 3.1 Setup](./llama3.1) - Getting started with Llama 3.1
15+
16+## Advanced Tutorials
17+
18+- [Build Your Own Context Provider](./build-your-own-context-provider) - Create custom context providers
19+- [Custom Code RAG](./custom-code-rag) - Implement custom retrieval-augmented generation
20+
21+## Contributing
22+
23+Have a guide idea or found an issue? We welcome contributions! Check our [GitHub repository](https://github.com/continuedev/continue) to get involved.
added docs/docs/guides/_category_.json +9 −0
@@ -0,0 +1,9 @@
1+{
2+ "label": "Guides",
3+ "position": 6,
4+ "link": {
5+ "type": "generated-index",
6+ "title": "Guides",
7+ "description": "Learn how to use Continue with comprehensive guides and tutorials"
8+ }
9+}
added docs/docs/guides/assets/image.png +0 −0

Binary content is not shown. View the file.

added docs/docs/guides/build-your-own-context-provider.mdx +329 −0
@@ -0,0 +1,329 @@
1+---
2+title: Build Your Own Context Provider
3+---
4+
5+import TabItem from "@theme/TabItem";
6+import Tabs from "@theme/Tabs";
7+
8+# Build Your Own Context Provider
9+
10+Continue offers several way to provide your custom context to the extension.
11+
12+## HTTP Context Provider
13+
14+Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this:
15+
16+<Tabs groupId="config-example">
17+ <TabItem value="yaml" label="YAML">
18+ ```yaml title="config.yaml"
19+ context:
20+ provider: http
21+ params:
22+ url: https://myserver.com/context-provider
23+ title: http
24+ displayTitle: My Custom Context
25+ description: Gets things from my private list
26+ options:
27+ maxItems: 20
28+ ```
29+ </TabItem>
30+ <TabItem value="json" label="JSON">
31+ ```json title="config.json"
32+ {
33+ "name": "http",
34+ "params": {
35+ "url": "https://myserver.com/context-provider",
36+ "title": "http",
37+ "description": "Custom HTTP Context Provider",
38+ "displayTitle": "My Custom Context",
39+ "options": {
40+ "maxItems": 20
41+ }
42+ }
43+ }
44+ ```
45+ </TabItem>
46+</Tabs>
47+
48+Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI.
49+
50+The `"options"` property can be used to send additional parameters to your endpoint. The full request body has the following shape:
51+
52+```typescript
53+{
54+ query: string;
55+ fullInput: string;
56+ options: Record<string, JsonValue>;
57+
58+ workspacePath?: string; // Only provided if the server is local.
59+}
60+```
61+
62+:::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.
64+:::
65+
66+## Using CustomContextProvider
67+
68+Custom context providers can be implemented in a `config.ts` placed in your Continue global directory (`~/.continue` for MacOS, `%USERPROFILE%/.continue` for Windows). You can implement the `CustomContextProvider` interface in your `config.ts`
69+
70+```typescript
71+interface CustomContextProvider {
72+ title: string;
73+ displayTitle?: string;
74+ description?: string;
75+ renderInlineAs?: string;
76+ type?: ContextProviderType;
77+ getContextItems(
78+ query: string,
79+ extras: ContextProviderExtras,
80+ ): Promise<ContextItem[]>;
81+ loadSubmenuItems?: (
82+ args: LoadSubmenuItemsArgs,
83+ ) => Promise<ContextSubmenuItem[]>;
84+}
85+```
86+
87+As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties:
88+
89+- `name`: The name of the context item, which will be displayed as a title
90+- `description`: A longer description of the context item
91+- `content`: The actual content of the context item, which will be fed to the LLM as context
92+
93+```typescript title="~/.continue/config.ts"
94+const RagContextProvider: CustomContextProvider = {
95+ title: "rag",
96+ displayTitle: "RAG",
97+ description:
98+ "Retrieve snippets from our vector database of internal documents",
99+
100+ getContextItems: async (
101+ query: string,
102+ extras: ContextProviderExtras,
103+ ): Promise<ContextItem[]> => {
104+ const response = await fetch("https://internal_rag_server.com/retrieve", {
105+ method: "POST",
106+ body: JSON.stringify({ query }),
107+ });
108+
109+ const results = await response.json();
110+
111+ return results.map((result) => ({
112+ name: result.title,
113+ description: result.title,
114+ content: result.contents,
115+ }));
116+ },
117+};
118+```
119+
120+It can then be added in `config.ts` like so:
121+
122+```typescript title="~/.continue/config.ts"
123+export function modifyConfig(config: Config): Config {
124+ if (!config.contextProviders) {
125+ config.contextProviders = [];
126+ }
127+ config.contextProviders.push(RagContextProvider);
128+ return config;
129+}
130+```
131+
132+This is automatically appended to your configuration.
133+
134+### Custom Context Providers with Submenu or Query
135+
136+There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far.
137+
138+The **"query"** type is used when you want to display a text box to the user, and then use the contents of that text box to generate the context items. Built-in examples include "search" and "google". This text is what gets passed to the "query" argument in `getContextItems`. To implement a "query" context provider, simply set `"type": "query"` in your custom context provider object.
139+
140+The **"submenu"** type is used when you want to display a list of searchable items in the dropdown. Built-in examples include "issue" and "folder". To implement a "submenu" context provider, set `"type": "submenu"` and implement the `loadSubmenuItems` and `getContextItems` functions. Here is an example that shows a list of all README files in the current workspace:
141+
142+```typescript title="~/.continue/config.ts"
143+const ReadMeContextProvider: CustomContextProvider = {
144+ title: "readme",
145+ displayTitle: "README",
146+ description: "Reference README.md files in your workspace",
147+ type: "submenu",
148+
149+ getContextItems: async (
150+ query: string,
151+ extras: ContextProviderExtras,
152+ ): Promise<ContextItem[]> => {
153+ // 'query' is the filepath of the README selected from the dropdown
154+ const content = await extras.ide.readFile(query);
155+ return [
156+ {
157+ name: getFolder(query),
158+ description: getFolderAndBasename(query),
159+ content,
160+ },
161+ ];
162+ },
163+
164+ loadSubmenuItems: async (
165+ args: LoadSubmenuItemsArgs,
166+ ): Promise<ContextSubmenuItem[]> => {
167+ const { ide } = args;
168+
169+ // Filter all workspace files for READMEs
170+ const workspaceDirs = await ide.getWorkspaceDirs();
171+
172+ const allFiles = await Promise.all(
173+ workspaceDirs.map((dir) =>
174+ ide.subprocess(`find ${dir} -name "README.md"`),
175+ ),
176+ );
177+
178+ // 'readmes' now contains an array of file paths for each README.md file found in the workspace,
179+ // excluding those in 'node_modules'
180+ const readmes = allFiles
181+ .flatMap((mds) => mds[0].split("\n"))
182+ .filter((file) => file.trim() !== "" && !file.includes("/node_modules/"));
183+
184+ // Return the items that will be shown in the dropdown
185+ return readmes.map((filepath) => {
186+ return {
187+ id: filepath,
188+ title: getFolder(filepath),
189+ description: getFolderAndBasename(filepath),
190+ };
191+ });
192+ },
193+};
194+
195+export function modifyConfig(config: Config): Config {
196+ if (!config.contextProviders) {
197+ config.contextProviders = [];
198+ }
199+ config.contextProviders.push(ReadMeContextProvider);
200+ return config;
201+}
202+
203+function getFolder(path: string): string {
204+ return path.split(/[\/\\]/g).slice(-2)[0];
205+}
206+
207+function getFolderAndBasename(path: string): string {
208+ return path
209+ .split(/[\/\\]/g)
210+ .slice(-2)
211+ .join("/");
212+}
213+```
214+
215+The flow of information in the above example is as follows:
216+
217+1. The user types `@readme` and selects it from the dropdown, now displaying the submenu where they can search for any item returned by `loadSubmenuItems`.
218+2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter.
219+3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README.
220+4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt.
221+
222+### Importing outside modules
223+
224+To include outside Node modules in your config.ts, run `npm install <module_name>` from the `~/.continue` directory, and then import them in config.ts.
225+
226+Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52).
227+
228+### `CustomContextProvider` Reference
229+
230+- `title`: An identifier for the context provider
231+- `displayTitle` (optional): The title displayed in the dropdown
232+- `description` (optional): The longer description displayed in the dropdown when hovered
233+- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal".
234+- `renderInlineAs` (optional): The string that will be rendered inline at the top of the prompt. If no value is provided, the `displayTitle` will be used. An empty string can be provided to prevent rendering the default `displayTitle`.
235+- `getContextItems`: A function that returns the documents to include in the prompt. It should return a list of `ContextItem`s, and is given access to the following arguments:
236+ - `extras.fullInput`: A string representing the user's full input to the text box. This can be used for example to generate an embedding to compare against a set of other embedded documents
237+ - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding
238+ - `extras.llm`: The current default LLM, which you can use to make completion requests
239+ - `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file.
240+ - `query`: (not currently used) A string representing the query
241+- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`.
242+ .
243+
244+## Extension API for VSCode
245+
246+Continue exposes an API for registering context providers from a 3rd party VSCode extension. This is useful if you have a VSCode extension that provides some additional context that you would like to use in Continue. To use this API, add the following to your `package.json`:
247+
248+```json title="package.json"
249+{
250+ "extensionDependencies": ["continue.continue"]
251+}
252+```
253+
254+Or install the Continue Core module from npm:
255+
256+```bash
257+npm i @continuedev/core
258+```
259+
260+You can add the Continue core module as a dev dependency in your `package.json`:
261+
262+```json title="package.json"
263+{
264+ "devDependencies": {
265+ "@continuedev/core": "^0.0.1"
266+ }
267+}
268+```
269+
270+Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface.
271+Here is an example:
272+
273+```typescript title="myCustomContextProvider.ts"
274+import * as vscode from "vscode";
275+import {
276+ IContextProvider,
277+ ContextProviderDescription,
278+ ContextProviderExtras,
279+ ContextItem,
280+ LoadSubmenuItemsArgs,
281+ ContextSubmenuItem,
282+} from "@continuedev/core";
283+
284+class MyCustomProvider implements IContextProvider {
285+ get description(): ContextProviderDescription {
286+ return {
287+ title: "Custom",
288+ displayTitle: "Custom",
289+ description: "my custom context provider",
290+ type: "normal",
291+ };
292+ }
293+
294+ async getContextItems(
295+ query: string,
296+ extras: ContextProviderExtras,
297+ ): Promise<ContextItem[]> {
298+ return [
299+ {
300+ name: "Custom",
301+ description: "Custom description",
302+ content: "Custom content",
303+ },
304+ ];
305+ }
306+
307+ async loadSubmenuItems(
308+ args: LoadSubmenuItemsArgs,
309+ ): Promise<ContextSubmenuItem[]> {
310+ return [];
311+ }
312+}
313+
314+// create an instance of your custom provider
315+const customProvider = new MyCustomProvider();
316+
317+// get Continue extension using vscode API
318+const continueExt = vscode.extensions.getExtension("Continue.continue");
319+
320+// get the API from the extension
321+const continueApi = continueExt?.exports;
322+
323+// register your custom provider
324+continueApi?.registerCustomContextProvider(customProvider);
325+```
326+
327+This will register `MyCustomProvider` with Continue!
328+
329+![alt text](./assets/image.png)
added docs/docs/guides/custom-code-rag.mdx +176 −0
@@ -0,0 +1,176 @@
1+---
2+title: Custom Code RAG
3+description: Build your own vector database and custom retrieval-augmented generation system
4+---
5+
6+import Tabs from "@theme/Tabs";
7+import TabItem from "@theme/TabItem";
8+
9+# Custom code RAG
10+
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.
12+
13+## Step 1: Choose an embeddings model
14+
15+If possible, we recommend using [`voyage-code-3`](https://docs.voyageai.com/docs/embeddings), which will give the most accurate answers of any existing embeddings model for code. You can obtain an API key [here](https://dash.voyageai.com/api-keys). Because their API is [OpenAI-compatible](https://docs.voyageai.com/reference/embeddings-api), you can use any OpenAI client by swapping out the URL.
16+
17+## Step 2: Choose a vector database
18+
19+There are a number of available vector databases, but because most vector databases will be able to performantly handle large codebases, we would recommend choosing one for ease of setup and experimentation.
20+
21+[LanceDB](https://lancedb.github.io/lancedb/basic/) is a good choice for this because it can run in-memory with libraries for both Python and Node.js. This means that in the beginning you can focus on writing code rather than setting up infrastructure. If you have already chosen a vector database, then using this instead of LanceDB is also a fine choice.
22+
23+## Step 3: Choose a "chunking" strategy
24+
25+Most embeddings models can only handle a limited amount of text at once. To get around this, we "chunk" our code into smaller pieces.
26+
27+If you use `voyage-code-3`, it has a maximum context length of 16,000 tokens, which is enough to fit most files. This means that in the beginning you can get away with a more naive strategy of truncating files that exceed the limit. In order of easiest to most comprehensive, 3 chunking strategies you can use are:
28+
29+1. Truncate the file when it goes over the context length: in this case you will always have 1 chunk per file.
30+2. Split the file into chunks of a fixed length: starting at the top of the file, add lines in your current chunk until it reaches the limit, then start a new chunk.
31+3. Use a recursive, abstract syntax tree (AST)-based strategy: this is the most exact, but most complex. In most cases you can achieve high quality results by using (1) or (2), but if you'd like to try this you can find a reference example in [our code chunker](https://github.com/continuedev/continue/blob/main/core/indexing/chunk/code.ts) or in [LlamaIndex](https://docs.llamaindex.ai/en/stable/api_reference/node_parsers/code/).
32+
33+As usual in this guide, we recommend starting with the strategy that gives 80% of the benefit with 20% of the effort.
34+
35+## Step 4: Put together an indexing script
36+
37+Indexing, in which we will insert your code into the vector database in a retrievable format, happens in three steps:
38+
39+1. Chunking
40+2. Generating embeddings
41+3. Inserting into the vector database
42+
43+With LanceDB, we can do steps 2 and 3 simultaneously, as demonstrated [in their docs](https://lancedb.github.io/lancedb/basic/#using-the-embedding-api). If you are using Voyage AI for example, it would be configured like this:
44+
45+```python
46+from lancedb.pydantic import LanceModel, Vector
47+from lancedb.embeddings import get_registry
48+
49+db = lancedb.connect("/tmp/db")
50+func = get_registry().get("openai").create(
51+ name="voyage-code-3",
52+ base_url="https://api.voyageai.com/v1/",
53+ api_key=os.environ["VOYAGE_API_KEY"],
54+)
55+
56+class CodeChunks(LanceModel):
57+ filename: str
58+ text: str = func.SourceField()
59+ # 1024 is the default dimension for `voyage-code-3`: https://docs.voyageai.com/docs/embeddings#model-choices
60+ vector: Vector(1024) = func.VectorField()
61+
62+table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite")
63+table.add([
64+ {"text": "print('hello world!')", filename: "hello.py"},
65+ {"text": "print('goodbye world!')", filename: "goodbye.py"}
66+])
67+
68+query = "greetings"
69+actual = table.search(query).limit(1).to_pydantic(CodeChunks)[0]
70+print(actual.text)
71+```
72+
73+:::tip
74+
75+If you are indexing more than one repository, it is best to store these in separate "tables" (terminology used by LanceDB) or "collections" (terminology used by some other vector DBs). The alternative of adding a "repository" field and then filtering by this is less performant.
76+
77+:::
78+
79+Regardless of which database or model you have chosen, your script should iterate over all of the files that you wish to index, chunk them, generate embeddings for each chunk, and then insert all of the chunks into your vector database.
80+
81+## Step 5: Run your indexing script
82+
83+:::tip
84+
85+In a perfect production version, you would want to build "automatic, incremental indexing", so that you whenever a file changes, that file and nothing else is automatically re-indexed. This has the benefits of perfectly up-to-date embeddings and lower cost.
86+
87+That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap.
88+:::
89+
90+At this point, you've written your indexing script and tested that you can make queries from your vector database. Now, you'll want a plan for when to run the indexing script.
91+
92+In the beginning, you should probably run it by hand. Once you are confident that your custom RAG is providing value and is ready for the long-term, then you can set up a cron job to run it periodically. Because codebases are largely unchanged in short time frames, you won't want to re-index more than once a day. Once per week or month is probably even sufficient.
93+
94+## Step 6: Set up your server
95+
96+In order for the Continue extension to access your custom RAG system, you'll need to set up a server. This server is responsible for recieving a query from the extension, querying the vector database, and returning the results in the format expected by Continue.
97+
98+Here is a reference implementation using FastAPI that is capable of handling requests from Continue's "http" context provider.
99+
100+```python
101+"""
102+This is an example of a server that can be used with the "http" context provider.
103+"""
104+
105+from fastapi import FastAPI
106+from pydantic import BaseModel
107+
108+
109+class ContextProviderInput(BaseModel):
110+ query: str
111+ fullInput: str
112+
113+
114+app = FastAPI()
115+
116+
117+@app.post("/retrieve")
118+async def create_item(item: ContextProviderInput):
119+ results = [] # TODO: Query your vector database here.
120+
121+ # Construct the "context item" format expected by Continue
122+ context_items = []
123+ for result in results:
124+ context_items.append({
125+ "name": result.filename,
126+ "description": result.filename,
127+ "content": result.text,
128+ })
129+
130+ return context_items
131+```
132+
133+After you've set up your server, you can configure Continue to use it by adding the "http" context provider to your `contextProviders` array in your configuration:
134+
135+<Tabs groupId="config-example">
136+<TabItem value="yaml" label="YAML">
137+ ```yaml title="config.yaml"
138+ context:
139+ - provider: http
140+ params:
141+ url: https://myserver.com/retrieve
142+ name: http
143+ description: Custom HTTP Context Provider
144+ displayTitle: My Custom Context
145+ ```
146+ </TabItem>
147+ <TabItem value="json" label="JSON">
148+ ```json title="config.json"
149+ {
150+ "contextProviders": [
151+ {
152+ "name": "http",
153+ "params": {
154+ "url": "https://myserver.com/retrieve",
155+ "title": "http",
156+ "description": "Custom HTTP Context Provider",
157+ "displayTitle": "My Custom Context"
158+ }
159+ }
160+ ]
161+ }
162+ ```
163+ </TabItem>
164+</Tabs>
165+
166+## Step 7 (Bonus): Set up reranking
167+
168+If you'd like to improve the quality of your results, a great first step is to add reranking. This involves retrieving a larger initial pool of results from the vector database, and then using a reranking model to order them from most to least relevant. This works because the reranking model can perform a slightly more expensive calculation on the small set of top results, and so can give a more accurate ordering than similarity search, which has to search over all entries in the database.
169+
170+If you wish to return 10 total results for each query for example, then you would:
171+
172+1. Retrieve ~50 results from the vector database using similarity search
173+2. Send all of these 50 results to the reranker API along with the query in order to get relevancy scores for each
174+3. Sort the results by relevancy score and return the top 10
175+
176+We recommend using the `rerank-2` model from Voyage AI, which has examples of usage [here](https://docs.voyageai.com/docs/reranker).
added docs/docs/guides/how-to-self-host-a-model.mdx +124 −0
@@ -0,0 +1,124 @@
1+---
2+title: How to Self-Host a Model
3+---
4+
5+import TabItem from "@theme/TabItem";
6+import Tabs from "@theme/Tabs";
7+
8+You can deploy a model in your [AWS](https://github.com/continuedev/deploy-os-code-llm#aws), [GCP](https://github.com/continuedev/deploy-os-code-llm#gcp), [Azure](https://github.com/continuedev/deploy-os-code-llm#azure), [Lambda](https://lambdalabs.com/), or [other clouds](https://github.com/continuedev/deploy-os-code-llm#others-2) using:
9+
10+- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi)
11+- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm)
12+- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot)
13+- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API)
14+- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda)
15+
16+## Self-hosting an open-source model
17+
18+For many cases, either Continue will have a built-in provider or the API you use will be OpenAI-compatible, in which case you can use the "openai" provider and change the "baseUrl" to point to the server.
19+
20+However, if neither of these are the case, you will need to wire up a new LLM object.
21+
22+## Authentication
23+
24+Basic authentication can be done with any provider using the `apiKey` field:
25+
26+<Tabs groupId="config-example">
27+ <TabItem value="yaml" label="YAML">
28+ ```yaml title="config.yaml"
29+ models:
30+ - name: Ollama
31+ provider: ollama
32+ model: llama2-7b
33+ apiKey: <YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>
34+ ```
35+ </TabItem>
36+ <TabItem value="json" label="JSON">
37+ ```json title="config.json"
38+ {
39+ "models": [
40+ {
41+ "title": "Ollama",
42+ "provider": "ollama",
43+ "model": "llama2-7b",
44+ "apiKey": "<YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>"
45+ }
46+ ]
47+ }
48+ ```
49+ </TabItem>
50+</Tabs>
51+
52+This translates to the header `"Authorization": "Bearer xxx"`.
53+
54+If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama:
55+
56+<Tabs groupId="config-example">
57+ <TabItem value="yaml" label="YAML">
58+ ```yaml title="config.yaml"
59+ models:
60+ - name: Ollama
61+ provider: ollama
62+ model: llama2-7b
63+ requestOptions:
64+ headers:
65+ X-Auth-Token: xxx
66+ ```
67+ </TabItem>
68+ <TabItem value="json" label="JSON">
69+ ```json title="config.json"
70+ {
71+ "models": [
72+ {
73+ "title": "Ollama",
74+ "provider": "ollama",
75+ "model": "llama2-7b",
76+ "requestOptions": {
77+ "headers": {
78+ "X-Auth-Token": "xxx"
79+ }
80+ }
81+ }
82+ ]
83+ }
84+ ```
85+ </TabItem>
86+</Tabs>
87+
88+Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below:
89+
90+<Tabs groupId="config-example">
91+ <TabItem value="yaml" label="YAML">
92+ ```yaml title="config.yaml"
93+ models:
94+ - name: Ollama
95+ provider: ollama
96+ model: llama2-7b
97+ requestOptions:
98+ clientCertificate:
99+ cert: C:\tempollama.pem
100+ key: C:\tempollama.key
101+ passphrase: c0nt!nu3
102+ ```
103+ </TabItem>
104+ <TabItem value="json" label="JSON">
105+ ```json title="config.json"
106+ {
107+ "models": [
108+ {
109+ "title": "Ollama",
110+ "provider": "ollama",
111+ "model": "llama2-7b",
112+ "requestOptions": {
113+ "clientCertificate": {
114+ "cert": "C:\\tempollama.pem",
115+ "key": "C:\\tempollama.key",
116+ "passphrase": "c0nt!nu3"
117+ }
118+ }
119+ }
120+ ]
121+ }
122+ ```
123+ </TabItem>
124+</Tabs>
added docs/docs/guides/integration/_category_.json +9 −0
@@ -0,0 +1,9 @@
1+{
2+ "label": "Integration Guides",
3+ "position": 4,
4+ "link": {
5+ "type": "generated-index",
6+ "title": "Integration Guides",
7+ "description": "Integrate Continue with your tools and workflows"
8+ }
9+}
added docs/docs/guides/languages/_category_.json +9 −0
@@ -0,0 +1,9 @@
1+{
2+ "label": "Language Guides",
3+ "position": 3,
4+ "link": {
5+ "type": "generated-index",
6+ "title": "Language-Specific Guides",
7+ "description": "Learn how to use Continue with different programming languages"
8+ }
9+}
added docs/docs/guides/llama3.1.mdx +218 −0
@@ -0,0 +1,218 @@
1+---
2+title: Using Llama 3.1 with Continue
3+description: How to use Llama 3.1 with Continue
4+keywords: [llama, meta, togetherai, ollama, replicate]
5+---
6+
7+import TabItem from "@theme/TabItem";
8+import Tabs from "@theme/Tabs";
9+
10+Continue makes it easy to code with the latest open-source models, including the entire Llama 3.1 family of models. Llama 3.2 models are also supported but not recommended for chat, because they are specifically designed to be small or multi-modal.
11+
12+If you haven't already installed Continue, you can do that [here for VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) or [here for JetBrains](https://plugins.jetbrains.com/plugin/22707-continue). For more general information on customizing Continue, read [our customization docs](../customization/00-overview.mdx).
13+
14+Below we share some of the easiest ways to get up and running, depending on your use-case.
15+
16+## Ollama
17+
18+Ollama is the fastest way to get up and running with local language models. We recommend trying Llama 3.1 8b, which is impressive for its size and will perform well on most hardware.
19+
20+1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
21+2. Open a terminal and run `ollama run llama3.1:8b`
22+3. Change your Continue config file like this:
23+
24+<Tabs groupId="config-example">
25+ <TabItem value="yaml" label="YAML">
26+ ```yaml title="config.yaml"
27+ models:
28+ - name: Llama 3.1 8b
29+ provider: ollama
30+ model: llama3.1-8b
31+ ```
32+ </TabItem>
33+ <TabItem value="json" label="JSON">
34+ ```json title="config.json"
35+ {
36+ "models": [
37+ {
38+ "title": "Llama 3.1 8b",
39+ "provider": "ollama",
40+ "model": "llama3.1-8b"
41+ }
42+ ]
43+ }
44+ ```
45+ </TabItem>
46+</Tabs>
47+
48+## Groq
49+
50+:::info
51+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.
52+:::
53+
54+Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
55+
56+1. Obtain an API key [here](https://console.groq.com/keys)
57+2. Update your Continue config file like this:
58+
59+<Tabs groupId="config-example">
60+ <TabItem value="yaml" label="YAML">
61+ ```yaml title="config.yaml"
62+ models:
63+ - name: Llama 3.3 70b Versatile
64+ provider: groq
65+ model: llama-3.3-70b-versatile
66+ apiKey: <YOUR_GROQ_API_KEY>
67+ ```
68+ </TabItem>
69+ <TabItem value="json" label="JSON">
70+ ```json title="config.json"
71+ {
72+ "models": [
73+ {
74+ "title": "Llama 3.3 70b Versatile",
75+ "provider": "groq",
76+ "model": "llama-3.3-70b-versatile",
77+ "apiKey": "<YOUR_GROQ_API_KEY>"
78+ }
79+ ]
80+ }
81+ ```
82+ </TabItem>
83+</Tabs>
84+
85+## Together AI
86+
87+Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
88+
89+1. Create an account [here](https://api.together.xyz/signup)
90+2. Copy your API key that appears on the welcome screen
91+3. Update your Continue config file like this:
92+
93+<Tabs groupId="config-example">
94+ <TabItem value="yaml" label="YAML">
95+ ```yaml title="config.yaml"
96+ models:
97+ - name: Llama 3.1 405b
98+ provider: together
99+ model: llama3.1-405b
100+ apiKey: <YOUR_TOGETHER_API_KEY>
101+ ```
102+ </TabItem>
103+ <TabItem value="json" label="JSON">
104+ ```json title="config.json"
105+ {
106+ "models": [
107+ {
108+ "title": "Llama 3.1 405b",
109+ "provider": "together",
110+ "model": "llama3.1-405b",
111+ "apiKey": "<YOUR_TOGETHER_API_KEY>"
112+ }
113+ ]
114+ }
115+ ```
116+ </TabItem>
117+</Tabs>
118+
119+## Replicate
120+
121+Replicate makes it easy to host and run open-source AI with an API.
122+
123+1. Get your Replicate API key [here](https://replicate.ai/)
124+2. Change your Continue config file like this:
125+
126+<Tabs groupId="config-example">
127+ <TabItem value="yaml" label="YAML">
128+ ```yaml title="config.yaml"
129+ models:
130+ - name: Llama 3.1 405b
131+ provider: replicate
132+ model: llama3.1-405b
133+ apiKey: <YOUR_REPLICATE_API_KEY>
134+ ```
135+ </TabItem>
136+ <TabItem value="json" label="JSON">
137+ ```json title="config.json"
138+ {
139+ "models": [
140+ {
141+ "title": "Llama 3.1 405b",
142+ "provider": "replicate",
143+ "model": "llama3.1-405b",
144+ "apiKey": "<YOUR_REPLICATE_API_KEY>"
145+ }
146+ ]
147+ }
148+ ```
149+ </TabItem>
150+</Tabs>
151+
152+## SambaNova
153+
154+SambaNova Cloud provides world record Llama3.1 70B/405B serving.
155+
156+1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
157+2. Copy your API key
158+3. Update your Continue config file like this:
159+
160+<Tabs groupId="config-example">
161+ <TabItem value="yaml" label="YAML">
162+ ```yaml title="config.yaml"
163+ models:
164+ - name: SambaNova Llama 3.1 405B
165+ provider: sambanova
166+ model: llama3.1-405b
167+ apiKey: <YOUR_SAMBA_API_KEY>
168+ ```
169+ </TabItem>
170+ <TabItem value="json" label="JSON">
171+ ```json title="config.json"
172+ {
173+ "models": [
174+ {
175+ "title": "SambaNova Llama 3.1 405B",
176+ "provider": "sambanova",
177+ "model": "llama3.1-405b",
178+ "apiKey": "<YOUR_SAMBA_API_KEY>"
179+ }
180+ ]
181+ }
182+ ```
183+ </TabItem>
184+</Tabs>
185+
186+## Cerebras Inference
187+
188+Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/70B.
189+
190+1. Create an account in the portal [here](https://cloud.cerebras.ai/).
191+2. Create and copy the API key for use in Continue.
192+3. Update your Continue config file:
193+
194+<Tabs groupId="config-example">
195+ <TabItem value="yaml" label="YAML">
196+ ```yaml title="config.yaml"
197+ models:
198+ - name: Cerebras Llama 3.1 70B
199+ provider: cerebras
200+ model: llama3.1-70b
201+ apiKey: <YOUR_CEREBRAS_API_KEY>
202+ ```
203+ </TabItem>
204+ <TabItem value="json" label="JSON">
205+ ```json title="config.json"
206+ {
207+ "models": [
208+ {
209+ "title": "Cerebras Llama 3.1 70B",
210+ "provider": "cerebras",
211+ "model": "llama3.1-70b",
212+ "apiKey": "<YOUR_CEREBRAS_API_KEY>"
213+ }
214+ ]
215+ }
216+ ```
217+ </TabItem>
218+</Tabs>
added docs/docs/guides/ollama-guide.mdx +147 −0
@@ -0,0 +1,147 @@
1+---
2+title: Using Ollama with Continue - A Developer's Guide
3+description: Complete guide to setting up and using Ollama with Continue for local AI development
4+---
5+
6+# Using Ollama with Continue: A Developer's Guide
7+
8+This comprehensive guide will walk you through setting up Ollama with Continue for powerful local AI development. Ollama allows you to run large language models locally on your machine, providing privacy, control, and offline capabilities for AI-assisted coding.
9+
10+## Prerequisites
11+
12+Before getting started, ensure your system meets these requirements:
13+
14+- Operating System: macOS, Linux, or Windows
15+- RAM: Minimum 8GB (16GB+ recommended)
16+- Storage: At least 10GB free space
17+- Continue extension installed
18+
19+## Installation Steps
20+
21+### Step 1: Install Ollama
22+
23+Choose the installation method for your operating system:
24+
25+```bash
26+# macOS
27+brew install ollama
28+
29+# Linux
30+curl -fsSL https://ollama.ai/install.sh | sh
31+
32+# Windows
33+# Download from ollama.ai
34+```
35+
36+### Step 2: Download Models
37+
38+After installing Ollama, download the models you want to use. Here are some popular options:
39+
40+```bash
41+# Popular models for development
42+ollama pull llama2
43+ollama pull codellama
44+ollama pull mistral
45+```
46+
47+## Configuration
48+
49+Configure Continue to work with your local Ollama instance:
50+
51+### Continue Configuration
52+
53+```json
54+{
55+ "models": [
56+ {
57+ "title": "Ollama",
58+ "provider": "ollama",
59+ "model": "llama2",
60+ "apiBase": "http://localhost:11434"
61+ }
62+ ]
63+}
64+```
65+
66+### Advanced Settings
67+
68+For optimal performance, consider these advanced configuration options:
69+
70+- Memory optimization
71+- GPU acceleration
72+- Custom model parameters
73+- Performance tuning
74+
75+## Best Practices
76+
77+### Model Selection
78+
79+Choose models based on your specific needs:
80+
81+1. **Code Generation**: Use CodeLlama or Mistral
82+2. **Chat**: Llama2 or Mistral
83+3. **Specialized Tasks**: Domain-specific models
84+
85+### Performance Optimization
86+
87+To get the best performance from Ollama:
88+
89+- Monitor system resources
90+- Adjust context window size
91+- Use appropriate model sizes
92+- Enable GPU acceleration when available
93+
94+## Troubleshooting
95+
96+### Common Issues
97+
98+Here are solutions to common problems you might encounter:
99+
100+#### Connection Problems
101+
102+- Check Ollama service status
103+- Verify port availability
104+- Review firewall settings
105+
106+#### Performance Issues
107+
108+- Insufficient RAM
109+- Model too large for system
110+- GPU compatibility
111+
112+### Solutions
113+
114+Try these solutions in order:
115+
116+1. Restart Ollama service
117+2. Clear model cache
118+3. Update to latest version
119+4. Check system requirements
120+
121+## Example Workflows
122+
123+### Code Generation
124+
125+```python
126+# Example: Generate a FastAPI endpoint
127+def create_user_endpoint():
128+ # Continue will help generate the implementation
129+ pass
130+```
131+
132+### Code Review
133+
134+Use Continue with Ollama to:
135+
136+- Analyze code quality
137+- Suggest improvements
138+- Identify potential bugs
139+- Generate documentation
140+
141+## Conclusion
142+
143+Ollama with Continue provides a powerful local development environment for AI-assisted coding. You now have complete control over your AI models, ensuring privacy and enabling offline development workflows.
144+
145+---
146+
147+_This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly._
added docs/docs/guides/running-continue-without-internet.mdx +12 −0
@@ -0,0 +1,12 @@
1+---
2+title: Running Continue without Internet
3+description: How to run Continue without Internet
4+keywords: [no internet, air-gapped, local model]
5+---
6+
7+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.
8+
9+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).
12+4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
added docs/docs/guides/set-up-codestral.mdx +62 −0
@@ -0,0 +1,62 @@
1+---
2+title: How to Set Up Codestral
3+description: How to set up Codestral
4+keywords: [codestral, mistral, model setup]
5+---
6+
7+import Tabs from "@theme/Tabs";
8+import TabItem from "@theme/TabItem";
9+
10+![mistral x continue](/img/mistral-x-continue.png)
11+
12+**Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:**
13+
14+1. Install the Continue VS Code or JetBrains extension following the instructions [here](../getting-started/install.md)
15+
16+2. Click on the gear icon in the bottom right corner of the Continue window to open `~/.continue/config.json` (MacOS) / `%userprofile%\.continue\config.json` (Windows)
17+
18+3. Log in and create an API key on Mistral AI's La Plateforme [here](https://console.mistral.ai/codestral). Make sure you get an API key from the "Codestral" page.
19+
20+4. To use Codestral as your model for both `autocomplete` and `chat`, insert your Mistral API key below and add it to your configuration file:
21+
22+<Tabs groupId="config-example">
23+ <TabItem value="yaml" label="YAML">
24+ ```yaml title="config.yaml"
25+ models:
26+ - name: Codestral
27+ provider: mistral
28+ model: codestral-latest
29+ apiKey: <YOUR_CODESTRAL_API_KEY>
30+ apiBase: https://codestral.mistral.ai/v1
31+ roles:
32+ - chat
33+ - autocomplete
34+ ```
35+ </TabItem>
36+ <TabItem value="json" label="JSON">
37+ ```json title="config.json"
38+ {
39+ "models": [
40+ {
41+ "title": "Codestral",
42+ "provider": "mistral",
43+ "model": "codestral-latest",
44+ "apiKey": "<YOUR_CODESTRAL_API_KEY>",
45+ "apiBase": "https://codestral.mistral.ai/v1"
46+ }
47+ ],
48+ "tabAutocompleteModel": [
49+ {
50+ "title": "Codestral",
51+ "provider": "mistral",
52+ "model": "codestral-latest",
53+ "apiKey": "<YOUR_CODESTRAL_API_KEY>",
54+ "apiBase": "https://codestral.mistral.ai/v1"
55+ }
56+ ]
57+ }
58+ ```
59+ </TabItem>
60+</Tabs>
61+
62+5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ)
added docs/docs/hub/00-introduction.mdx +15 −0
@@ -0,0 +1,15 @@
1+---
2+title: Introduction
3+description: Introduction to Continue Hub for creating and managing AI assistants
4+keywords: [continue, hub, introduction, assistants, blocks]
5+---
6+
7+# Introduction
8+
9+![Continue Hub](/img/hub/models-page.png)
10+
11+[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/00-intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/00-intro.md).
12+
13+Assistants can contain several types of blocks, including [models](./blocks/block-types.md#models), [rules](./blocks/block-types.md#rules), [context providers](./blocks/block-types.md#context), [prompts](./blocks/block-types.md#prompts), [docs](./blocks/block-types.md#docs), [data destinations](./blocks/block-types.md#data), and [MCP servers](./blocks/block-types.md#mcp-servers).
14+
15+Continue Hub also makes it easy for engineering leaders to centrally [configure](./secrets/secret-types.md) and [govern](./governance/org-permissions.md) blocks and assistants for their organization.
added docs/docs/hub/assistants/00-intro.md +14 −0
@@ -0,0 +1,14 @@
1+---
2+title: Assistants Introduction
3+sidebar_label: Introduction
4+description: Overview of assistants functionality.
5+keywords: [assistants, overview, customization]
6+---
7+
8+# Introduction to Assistants
9+
10+Custom AI code assistants are configurations of building blocks that enable a coding experience tailored to your specific use cases.
11+
12+`config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant.
13+
14+The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom assistant experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your assistants will automatically be synced with the IDE extensions.
added docs/docs/hub/assistants/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Assistants",
3+ "position": 2
4+}
modified docs/docs/hub/assistants/create-an-assistant.md +3 −3
@@ -1,6 +1,6 @@
11 ---
2-title: Create an assistant
3-sidebar_label: Create an assistant
2+title: Create an Assistant
3+sidebar_label: Create an Assistant
44 description: How to create a custom AI code assistant
55 keywords: [assistants, creation, guide]
66 ---
@@ -32,6 +32,6 @@
3232
3333 The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar.
3434
35-Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details.
35+Alternatively, you can edit the assistant YAML directly before clicking "Create assistant". Refer to examples of assistants on [hub.continue.dev](https://hub.continue.dev/explore/assistants) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details.
3636
3737 ![New assistant YAML](/img/hub/assistant-create-yaml.png)
deleted docs/docs/hub/assistants/intro.md +0 −14
@@ -1,14 +0,0 @@
1----
2-title: Assistants Introduction
3-sidebar_label: Introduction
4-description: Overview of assistants functionality.
5-keywords: [assistants, overview, customization]
6----
7-
8-# Introduction to Assistants
9-
10-Custom AI code assistants are configurations of building [blocks](../blocks/intro.md) that enable a coding experience tailored to your specific use cases.
11-
12-`config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant.
13-
14-The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom assistant experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your assistants will automatically be synced with the IDE extensions.
modified docs/docs/hub/assistants/use-an-assistant.md +2 −2
@@ -1,6 +1,6 @@
11 ---
2-title: Use an assistant
3-sidebar_label: Use an assistant
2+title: Use an Assistant
3+sidebar_label: Use an Assistant
44 description: Guide to using assistants in your Continue workflow.
55 keywords: [assistants, usage, use, guide]
66 ---
added docs/docs/hub/blocks/00-intro.md +12 −0
@@ -0,0 +1,12 @@
1+---
2+title: Introduction
3+sidebar_label: Introduction
4+description: Introduction to blocks
5+keywords: [blocks, introduction, basics]
6+---
7+
8+# Introduction
9+
10+Blocks are the components you use to build a custom AI code assistant. These include [models](./block-types.md#models), [rules](./block-types.md#rules), [context providers](./block-types.md#context), [prompts](./block-types.md#prompts), [docs](./block-types.md#docs), [data destinations](./block-types.md#data), and [MCP servers](./block-types.md#mcp-servers).
11+
12+Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
added docs/docs/hub/blocks/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Blocks",
3+ "position": 3
4+}
modified docs/docs/hub/blocks/block-types.md +8 −8
@@ -11,40 +11,40 @@
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](../../customize/model-providers), 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). View [`models`](../../reference.md#models) in the YAML Reference for more details.
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.
1515
1616 ## Context
1717
1818 Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and GitHub issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub.
1919
20-Learn more about context providers [here](../../reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../reference.md#context).
20+Learn more about context providers [here](/reference#context), and check out [this guide](../../guides/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](/reference#context).
2121
2222 ## Docs
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](../../customize/deep-dives/docs.mdx), and view [`docs`](../../reference.md#docs) in the YAML Reference for more details.
26+Learn more in the [@Docs deep dive](../../advanced/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](../../customize/deep-dives/mcp.mdx), and view [`mcpServers`](../../reference.md#mcpservers) in the YAML Reference for more details.
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.
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](../../customize/deep-dives/rules.mdx), and view [`rules`](../../reference.md#rules) in the YAML Reference for more details.
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.
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](../../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](../../reference.md#prompts).
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).
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](../../customize/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](../../advanced/deep-dives/development-data.md). Explore data block examples [here](https://hub.continue.dev/explore/data).
4949
50-Data destinations are configured in the [`data`](../../reference.md#data) section of `config.yaml`.
50+Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`.
modified docs/docs/hub/blocks/create-a-block.md +3 −3
@@ -1,6 +1,6 @@
11 ---
2-title: Create a block
3-sidebar_label: Create a block
2+title: Create a Block
3+sidebar_label: Create a Block
44 description: Guide to creating blocks
55 keywords: [blocks, creation, create, use]
66 ---
@@ -23,7 +23,7 @@
2323
2424 ![New block button](/img/hub/block-new-button.png)
2525
26-After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](../../reference.md). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](../../reference.md#complete-yaml-config-example) docs for more details.
26+After filling out information on the block, you will want to create a block following the `config.yaml` [reference documentation](/reference). Refer to examples of blocks on [hub.continue.dev](https://hub.continue.dev/explore/models) and visit the [YAML Reference](/reference#complete-yaml-config-example) docs for more details.
2727
2828 ![New block page](/img/hub/block-new-page.png)
2929
deleted docs/docs/hub/blocks/intro.md +0 −12
@@ -1,12 +0,0 @@
1----
2-title: Introduction
3-sidebar_label: Introduction
4-description: Introduction to blocks
5-keywords: [blocks, introduction, basics]
6----
7-
8-# Introduction
9-
10-Blocks are the components you use to build a custom AI code assistant. These include [models](./block-types.md#models), [rules](./block-types.md#rules), [context providers](./block-types.md#context), [prompts](./block-types.md#prompts), [docs](./block-types.md#docs), [data destinations](./block-types.md#data), and [MCP servers](./block-types.md#mcp-servers).
11-
12-Blocks follow the [`config.yaml`](../../reference.md) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
modified docs/docs/hub/blocks/use-a-block.md +1 −1
@@ -1,5 +1,5 @@
11 ---
2-title: Use a block
2+title: Use a Block
33 description: Guide to using blocks
44 keywords: [blocks, usage, use]
55 ---
added docs/docs/hub/governance/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Governance",
3+ "position": 4
4+}
deleted docs/docs/hub/introduction.md +0 −16
@@ -1,16 +0,0 @@
1----
2-title: Introduction
3-description: Introduction
4-keywords: [continue, hub, introduction]
5-sidebar_label: Introduction
6----
7-
8-# Introduction
9-
10-![Continue Hub](/img/hub/models-page.png)
11-
12-[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/intro.md).
13-
14-Assistants can contain several types of blocks, including [models](./blocks/block-types.md#models), [rules](./blocks/block-types.md#rules), [context providers](./blocks/block-types.md#context), [prompts](./blocks/block-types.md#prompts), [docs](./blocks/block-types.md#docs), [data destinations](./blocks/block-types.md#data), and [MCP servers](./blocks/block-types.md#mcp-servers).
15-
16-Continue Hub also makes it easy for engineering leaders to centrally [configure](./secrets/secret-types.md) and [govern](./governance/org-permissions.md) blocks and assistants for their organization.
added docs/docs/hub/secrets/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Secrets",
3+ "position": 5
4+}
added docs/docs/hub/sharing.md +38 −0
@@ -0,0 +1,38 @@
1+---
2+title: Sharing
3+description: Discover, share, and collaborate with the Continue community
4+keywords: [hub, sharing, community, assistants, collaboration]
5+sidebar_label: Sharing
6+---
7+
8+# Sharing
9+
10+Connect with the Continue community to discover, share, and collaborate on AI development tools.
11+
12+## Community
13+
14+Join thousands of developers using Continue. Share experiences, get help, and contribute to the ecosystem.
15+
16+[Join our Discord Community →](https://discord.gg/continue)
17+
18+## Publishing
19+
20+Share your custom assistants, blocks, and configurations with the Continue community.
21+
22+[Visit the Hub →](https://hub.continue.dev)
23+
24+## Browse Assistants
25+
26+Explore assistants created by the community for specific use cases and workflows.
27+
28+[Browse Assistants →](https://hub.continue.dev)
29+
30+## Using Assistants
31+
32+Learn how to discover, install, and use community-created assistants in your projects.
33+
34+[Learn About Assistants →](./assistants/00-intro.md)
35+
36+---
37+
38+The Continue Hub makes it easy to leverage community knowledge and share your innovations with fellow developers.
modified docs/docs/hub/source-control.md +1 −1
@@ -40,7 +40,7 @@
4040
4141 ### 4. Commit and push
4242
43-Add the [YAML for your assistants and blocks](../reference.md) to the appropriate directories:
43+Add the [YAML for your assistants and blocks](/reference) to the appropriate directories:
4444
4545 - `assistants/public` for public assistants
4646 - `assistants/private` for private (visible only within your organization) assistants
modified docs/docs/introduction.md +5 −5
@@ -15,11 +15,11 @@
1515 ]
1616 ---
1717
18-![Continue Logo](../static/img/intro.png)
18+![Continue Logo](/img/intro.png)
1919
2020 **Continue enables developers to create, share, and use custom AI code assistants with our open-source [VS Code](https://marketplace.visualstudio.com/items?itemName=Continue.continue) and [JetBrains](https://plugins.jetbrains.com/plugin/22707-continue-extension) extensions and [hub of models, rules, prompts, docs, and other building blocks](https://hub.continue.dev)**
2121
22-- [Chat](chat/how-to-use-it) to understand and iterate on code in the sidebar
23-- [Autocomplete](autocomplete/how-to-use-it) to receive inline code suggestions as you type
24-- [Edit](edit/how-to-use-it) to modify code without leaving your current file
25-- [Agent](agent/how-to-use-it) to make more substantial changes to your codebase
22+- [Chat](features/chat/quick-start) to understand and iterate on code in the sidebar
23+- [Autocomplete](features/autocomplete/quick-start) to receive inline code suggestions as you type
24+- [Edit](features/edit/quick-start) to modify code without leaving your current file
25+- [Agent](features/agent/quick-start) to make more substantial changes to your codebase
deleted docs/docs/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.md).
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](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md) and [VS Code actions](./customize/deep-dives/vscode-actions.md).
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](/customize/context-providers#model-context-protocol)
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/deep-dives/settings.md). 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/deep-dives/settings.md) for more information about each option.
deleted docs/docs/reference.md +0 −556
@@ -1,556 +0,0 @@
1----
2-title: Config YAML Reference
3-description: Reference for the Continue configuration YAML file
4-keywords: [config, yaml, configuration, customize, customization]
5----
6-
7-# config.yaml Reference
8-
9-## Introduction
10-
11-Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded
12-from [the Hub](https://hub.continue.dev/explore/assistants) or locally
13-
14-- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to
15- the extension
16-- Locally
17- - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`.
18- The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml`
19- - in your workspace in a `/.continue/assistants` folder, with the same naming convention
20-
21-:::info
22-Config YAML replaces [`config.json`](./json-reference.md), which is deprecated. View the **[Migration Guide](./yaml-migration.md)**.
23-:::
24-
25-An assistant is made up of:
26-
27-1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant
28-2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as
29- models, docs, and context providers.
30-
31-A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In
32-`config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`),
33-but only has **ONE** item under whichever block type it is.
34-
35-Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants).
36-
37-Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing
38-hub blocks.
39-
40-### Using Blocks
41-
42-Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner
43-can be a user or organization (For example, if you want to use
44-the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks
45-are pulled from [https://hub.continue.dev](https://hub.continue.dev).
46-
47-Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other
48-`uses` clauses or explicit blocks of that type.
49-
50-For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one.
51-
52-```yaml title="Assistant models section"
53-models:
54- - uses: anthropic/claude-3.5-sonnet # an imported model block
55- - model: deepseek-reasoner # an explicit model block
56- provider: ollama
57-```
58-
59-### Local Blocks
60-
61-It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of
62-your workspace (these will automatically be applied to all assistants when you are in that workspace) or in your home
63-directory at `~/.continue` (these will automatically be applied globally).
64-
65-Place your YAML files in the following folders:
66-
67-Assistants:
68-
69-- `.continue/assistants` - for assistants
70-
71-Blocks:
72-
73-- `.continue/rules` - for rules
74-- `.continue/models` - for models
75-- `.continue/prompts` - for prompts
76-- `.continue/context` - for context providers
77-- `.continue/docs` - for docs
78-- `.continue/data` - for data
79-- `.continue/mcpServers` - for MCP Servers
80-
81-You can find many examples of each of these block types on
82-the [Continue Explore Page](https://hub.continue.dev/explore/models)
83-
84-:::info
85-Local blocks utilizing mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) can read secret values:
86-
87-- globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`)
88-- per-workspace, from a `.env` file located at the root of the current workspace.
89- :::
90-
91-### Inputs
92-
93-Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use
94-mustache templating as follows:
95-
96-```yaml title="Block config.yaml"
97-name: myprofile/custom-model
98-models:
99- - name: My Favorite Model
100- provider: anthropic
101- apiKey: ${{ inputs.ANTHROPIC_API_KEY }}
102- defaultCompletionOptions:
103- temperature: ${{ inputs.TEMP }}
104-```
105-
106-Which can then be imported like
107-
108-```yaml title="Assistant config.yaml"
109-name: myprofile/custom-assistant
110-models:
111- - uses: myprofile/custom-model
112- with:
113- ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
114- TEMP: 0.9
115-```
116-
117-Note that hub secrets can be passed as inputs, using a similar mustache format: `secrets.SECRET_NAME`.
118-
119-### Overrides
120-
121-Block properties can be also be directly overriden using `override`. For example:
122-
123-```yaml title="Assistant config.yaml"
124-name: myprofile/custom-assistant
125-models:
126- - uses: myprofile/custom-model
127- with:
128- ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
129- TEMP: 0.9
130- override:
131- roles:
132- - chat
133-```
134-
135-## Properties
136-
137-Below are details for each property that can be set in `config.yaml`.
138-
139-**All properties at all levels are optional unless explicitly marked as required.**
140-
141-The top-level properties in the `config.yaml` configuration file are:
142-
143-- [`name`](#name) (**required**)
144-- [`version`](#version) (**required**)
145-- [`schema`](#schema) (**required**)
146-- [`models`](#models)
147-- [`context`](#context)
148-- [`rules`](#rules)
149-- [`prompts`](#prompts)
150-- [`docs`](#docs)
151-- [`mcpServers`](#mcpservers)
152-- [`data`](#data)
153-
154----
155-
156-### `name`
157-
158-The `name` property specifies the name of your project or configuration.
159-
160-```yaml title="config.yaml"
161-name: MyProject
162-```
163-
164----
165-
166-### `version`
167-
168-The `version` property specifies the version of your project or configuration.
169-
170-### `schema`
171-
172-The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1`
173-
174----
175-
176-### `models`
177-
178-The `models` section defines the language models used in your configuration. Models are used for functionalities such as
179-chat, editing, and summarizing.
180-
181-**Properties:**
182-
183-- `name` (**required**): A unique name to identify the model within your configuration.
184-- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`).
185-- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`).
186-- `apiBase`: Can be used to override the default API base that is specified per model
187-- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`,
188- `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is
189- not currently used.
190-- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on
191- provider and model. Supported capabilities include `tool_use` and `image_input`.
192-- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
193-- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are
194- `chat`, [`edit`](./customize/model-roles/edit.mdx#prompt-templating), [
195- `apply`](./customize/model-roles/apply.mdx#prompt-templating) and [
196- `autocomplete`](./customize/model-roles/autocomplete.md#prompt-templating). The `chat` property must be a
197- valid template name, such as `llama3` or `anthropic`.
198-- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode:
199- - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode.
200- <!-- - `baseAgentSystemMessage`: Can be used to override the default system prompt for **Agent** mode. <!-- This setting is experimental and hence is undocumented. -->
201-- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings:
202- - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
203- - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
204-- `defaultCompletionOptions`: Default completion options for model settings.
205- - `contextLength`: Maximum context length of the model, typically in tokens.
206- - `maxTokens`: Maximum number of tokens to generate in a completion.
207- - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random).
208- - `topP`: The cumulative probability for nucleus sampling.
209- - `topK`: Maximum number of tokens considered at each step.
210- - `stop`: An array of stop tokens that will terminate the completion.
211- - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models.
212- - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
213-- `requestOptions`: HTTP request options specific to the model.
214- - `timeout`: Timeout for each request to the language model.
215- - `verifySsl`: Whether to verify SSL certificates for requests.
216- - `caBundlePath`: Path to a custom CA bundle for HTTP requests.
217- - `proxy`: Proxy URL for HTTP requests.
218- - `headers`: Custom headers for HTTP requests.
219- - `extraBodyProperties`: Additional properties to merge with the HTTP request body.
220- - `noProxy`: List of hostnames that should bypass the specified proxy.
221- - `clientCertificate`: Client certificate for HTTP requests.
222- - `cert`: Path to the client certificate file.
223- - `key`: Path to the client certificate key file.
224- - `passphrase`: Optional passphrase for the client certificate key file.
225-
226-#### Example
227-
228-```yaml title="config.yaml"
229-models:
230- - name: GPT-4o
231- provider: openai
232- model: gpt-4o
233- roles:
234- - chat
235- - edit
236- - apply
237- defaultCompletionOptions:
238- temperature: 0.7
239- maxTokens: 1500
240-
241- - name: Codestral
242- provider: mistral
243- model: codestral-latest
244- roles:
245- - autocomplete
246-
247- - name: My Model - OpenAI-Compatible
248- provider: openai
249- apiBase: http://my-endpoint/v1
250- model: my-custom-model
251- capabilities:
252- - tool_use
253- - image_input
254- roles:
255- - chat
256- - edit
257-```
258-
259----
260-
261-### `context`
262-
263-The `context` section defines context providers, which supply additional information or context to the language models.
264-Each context provider can be configured with specific parameters.
265-
266-More information about usage/params for each context provider can be found [here](/customize/context-providers.mdx)
267-
268-**Properties:**
269-
270-- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`)
271-- `name`: Optional name for the provider
272-- `params`: Optional parameters to configure the context provider's behavior.
273-
274-**Example:**
275-
276-```yaml title="config.yaml"
277-context:
278- - provider: file
279- - provider: code
280- - provider: codebase
281- params:
282- nFinal: 10
283- - provider: docs
284- - provider: diff
285- - provider: http
286- name: Context Server 1
287- params:
288- url: "https://api.example.com/server1"
289- - provider: folder
290- - provider: terminal
291-```
292-
293----
294-
295-### `rules`
296-
297-List of rules that the LLM should follow. These are concatenated into the system message for
298-all [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Agent](./agent/how-to-use-it.md) requests.
299-See the [rules deep dive](./customize/deep-dives/rules.mdx) for details.
300-
301-Explicit rules can either be simple text or an object with the following properties:
302-
303-- `name` (**required**): A display name/title for the rule
304-- `rule` (**required**): The text content of the rule
305-- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This
306- can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g.,
307- `["src/**/*.ts", "tests/**/*.ts"]`).
308-
309-```yaml title="config.yaml"
310-rules:
311- - Always annotate Python functions with their parameter and return types
312-
313- - name: TypeScript best practices
314- rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly.
315- globs: "**/*.{ts,tsx}"
316-
317- - name: TypeScript test patterns
318- rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking.
319- globs:
320- - "src/**/*.test.ts"
321- - "tests/**/*.ts"
322-
323- - uses: myprofile/my-mood-setter
324- with:
325- TONE: concise
326-```
327-
328----
329-
330-### `prompts`
331-
332-A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual
333-prompt text.
334-
335-```yaml title="config.yaml"
336-prompts:
337- - name: check
338- description: Check for mistakes in my code
339- prompt: |
340- Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
341- - Syntax errors
342- - Logic errors
343- - Security vulnerabilities
344-```
345-
346----
347-
348-### `docs`
349-
350-List of documentation sites to index.
351-
352-**Properties:**
353-
354-- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc.
355-- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
356-
357-<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL -->
358-
359-- `maxDepth`: Maximum link depth for crawling. Default `4`
360-- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
361-- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
362-
363-Example
364-
365-```yaml title="config.yaml"
366-docs:
367- - name: Continue
368- startUrl: https://docs.continue.dev/intro
369- favicon: https://docs.continue.dev/favicon.ico
370-```
371-
372----
373-
374-### `mcpServers`
375-
376-<!-- TODO is this correct? -->
377-
378-The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify
379-prompts, context, and tool use. Continue supports any MCP server with the MCP context provider.
380-
381-**Properties:**
382-
383-- `name` (**required**): The name of the MCP server.
384-- `command` (**required**): The command used to start the server.
385-- `args`: An optional array of arguments for the command.
386-- `env`: An optional map of environment variables for the server process.
387-- `connectionTimeout`: An optional connection timeout number to the server in milliseconds.
388-
389-**Example:**
390-
391-```yaml title="config.yaml"
392-mcpServers:
393- - name: My MCP Server
394- command: uvx
395- args:
396- - mcp-server-sqlite
397- - --db-path
398- - /Users/NAME/test.db
399-```
400-
401-### `data`
402-
403-Destinations to which [development data](./customize/deep-dives/development-data.md) will be sent.
404-
405-**Properties:**
406-
407-- `name` (**required**): The display name of the data destination
408-- `destination` (**required**): The destination/endpoint that will receive the data. Can be:
409- - an HTTP endpoint that will receive a POST request with a JSON blob
410- - a file URL to a directory in which events will be dumpted to `.jsonl` files
411-- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0`
412-- `events`: an array of event names to include. Defaults to all events if not specified.
413-- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file
414- contents, prompts, and completions. Defaults to `all`
415-- `apiKey`: api key to be sent with request (Bearer header)
416-- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models).
417-
418- **Example:**
419-
420-```yaml title="config.yaml"
421-data:
422- - name: Local Data Bank
423- destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
424- schema: 0.2.0
425- level: all
426- - name: My Private Company
427- destination: https://mycompany.com/ingest
428- schema: 0.2.0
429- level: noCode
430- events:
431- - autocomplete
432- - chatInteraction
433-```
434-
435----
436-
437-## Complete YAML Config Example
438-
439-Putting it all together, here's a complete example of a `config.yaml` configuration file:
440-
441-```yaml title="config.yaml"
442-name: MyProject
443-version: 0.0.1
444-schema: v1
445-
446-models:
447- - uses: anthropic/claude-3.5-sonnet
448- with:
449- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
450- override:
451- defaultCompletionOptions:
452- temperature: 0.8
453- - name: GPT-4
454- provider: openai
455- model: gpt-4
456- roles:
457- - chat
458- - edit
459- defaultCompletionOptions:
460- temperature: 0.5
461- maxTokens: 2000
462- requestOptions:
463- headers:
464- Authorization: Bearer YOUR_OPENAI_API_KEY
465-
466- - name: Ollama Starcoder
467- provider: ollama
468- model: starcoder
469- roles:
470- - autocomplete
471- defaultCompletionOptions:
472- temperature: 0.3
473- stop:
474- - "\n"
475-
476-rules:
477- - Give concise responses
478- - Always assume TypeScript rather than JavaScript
479-
480-prompts:
481- - name: test
482- description: Unit test a function
483- prompt: |
484- Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case.
485- - uses: myprofile/my-favorite-prompt
486-
487-context:
488- - provider: diff
489- - provider: file
490- - provider: codebase
491- - provider: code
492- - provider: docs
493- params:
494- startUrl: https://docs.example.com/introduction
495- rootUrl: https://docs.example.com
496- maxDepth: 3
497-
498-mcpServers:
499- - name: DevServer
500- command: npm
501- args:
502- - run
503- - dev
504- env:
505- PORT: "3000"
506-
507-data:
508- - name: My Private Company
509- destination: https://mycompany.com/ingest
510- schema: 0.2.0
511- level: noCode
512- events:
513- - autocomplete
514- - chatInteraction
515-```
516-
517-## Using YAML anchors to avoid config duplication
518-
519-You can also use node anchors to avoid duplication of properties. To do so,
520-adding the YAML version header `%YAML 1.1` is needed, here's an example of
521-a `config.yaml` configuration file using anchors:
522-
523-```yaml title="config.yaml"
524-%YAML 1.1
525----
526-name: MyProject
527-version: 0.0.1
528-schema: v1
529-
530-model_defaults: &model_defaults
531- provider: openai
532- apiKey: my-api-key
533- apiBase: https://api.example.com/llm
534-
535-models:
536- - name: mistral
537- <<: *model_defaults
538- model: mistral-7b-instruct
539- roles:
540- - chat
541- - edit
542-
543- - name: qwen2.5-coder-7b-instruct
544- <<: *model_defaults
545- model: qwen2.5-coder-7b-instruct
546- roles:
547- - chat
548- - edit
549-
550- - name: qwen2.5-coder-7b
551- <<: *model_defaults
552- model: qwen2.5-coder-7b
553- useLegacyCompletionsEndpoint: false
554- roles:
555- - autocomplete
556-```
added docs/docs/reference.mdx +556 −0
@@ -0,0 +1,556 @@
1+---
2+title: "config.yaml Reference"
3+description: Reference for the Continue configuration YAML file
4+keywords: [config, yaml, configuration, customize, customization]
5+---
6+
7+# config.yaml Reference
8+
9+## Introduction
10+
11+Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded
12+from [the Hub](https://hub.continue.dev/explore/assistants) or locally
13+
14+- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to
15+ the extension
16+- Locally
17+ - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`.
18+ The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml`
19+ - in your workspace in a `/.continue/assistants` folder, with the same naming convention
20+
21+:::info
22+Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/advanced/yaml-migration)**.
23+:::
24+
25+An assistant is made up of:
26+
27+1. **Top level properties**, which specify the `name`, `version`, and `config.yaml` `schema` for the assistant
28+2. **Block lists**, which are composable arrays of coding assistant building blocks available to the assistant, such as
29+ models, docs, and context providers.
30+
31+A block is a single standalone building block of a coding assistants, e.g., one model or one documentation source. In
32+`config.yaml` syntax, a block consists of the same top-level properties as assistants (`name`, `version`, and `schema`),
33+but only has **ONE** item under whichever block type it is.
34+
35+Examples of blocks and assistants can be found on the [Continue hub](https://hub.continue.dev/explore/assistants).
36+
37+Assistants can either explicitly define blocks - see [Properties](#properties) below - or import and configure existing
38+hub blocks.
39+
40+### Using Blocks
41+
42+Hub blocks and assistants are identified with a slug in the format `owner-slug/block-or-assistant-slug`, where an owner
43+can be a user or organization (For example, if you want to use
44+the [OpenAI 4o Model block](https://hub.continue.dev/openai/gpt-4o), your slug would be `openai/gpt-4o`). These blocks
45+are pulled from [https://hub.continue.dev](https://hub.continue.dev).
46+
47+Blocks can be imported into an assistant by adding a `uses` clause under the block type. This can be alongside other
48+`uses` clauses or explicit blocks of that type.
49+
50+For example, the following assistant imports an Anthropic model and defines an Ollama DeepSeek one.
51+
52+```yaml title="Assistant models section"
53+models:
54+ - uses: anthropic/claude-3.5-sonnet # an imported model block
55+ - model: deepseek-reasoner # an explicit model block
56+ provider: ollama
57+```
58+
59+### Local Blocks
60+
61+It is also possible to define blocks locally in a `.continue` folder. This folder can be located at either the root of
62+your workspace (these will automatically be applied to all assistants when you are in that workspace) or in your home
63+directory at `~/.continue` (these will automatically be applied globally).
64+
65+Place your YAML files in the following folders:
66+
67+Assistants:
68+
69+- `.continue/assistants` - for assistants
70+
71+Blocks:
72+
73+- `.continue/rules` - for rules
74+- `.continue/models` - for models
75+- `.continue/prompts` - for prompts
76+- `.continue/context` - for context providers
77+- `.continue/docs` - for docs
78+- `.continue/data` - for data
79+- `.continue/mcpServers` - for MCP Servers
80+
81+You can find many examples of each of these block types on
82+the [Continue Explore Page](https://hub.continue.dev/explore/models)
83+
84+:::info
85+Local blocks utilizing mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) can read secret values:
86+
87+- globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`)
88+- per-workspace, from a `.env` file located at the root of the current workspace.
89+ :::
90+
91+### Inputs
92+
93+Blocks can be passed user inputs, including hub secrets and raw text values. To create a block that has an input, use
94+mustache templating as follows:
95+
96+```yaml title="Block config.yaml"
97+name: myprofile/custom-model
98+models:
99+ - name: My Favorite Model
100+ provider: anthropic
101+ apiKey: ${{ inputs.ANTHROPIC_API_KEY }}
102+ defaultCompletionOptions:
103+ temperature: ${{ inputs.TEMP }}
104+```
105+
106+Which can then be imported like
107+
108+```yaml title="Assistant config.yaml"
109+name: myprofile/custom-assistant
110+models:
111+ - uses: myprofile/custom-model
112+ with:
113+ ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
114+ TEMP: 0.9
115+```
116+
117+Note that hub secrets can be passed as inputs, using a similar mustache format: `secrets.SECRET_NAME`.
118+
119+### Overrides
120+
121+Block properties can be also be directly overriden using `override`. For example:
122+
123+```yaml title="Assistant config.yaml"
124+name: myprofile/custom-assistant
125+models:
126+ - uses: myprofile/custom-model
127+ with:
128+ ANTHROPIC_API_KEY: ${{ secrets.MY_ANTHROPIC_API_KEY }}
129+ TEMP: 0.9
130+ override:
131+ roles:
132+ - chat
133+```
134+
135+## Properties
136+
137+Below are details for each property that can be set in `config.yaml`.
138+
139+**All properties at all levels are optional unless explicitly marked as required.**
140+
141+The top-level properties in the `config.yaml` configuration file are:
142+
143+- [`name`](#name) (**required**)
144+- [`version`](#version) (**required**)
145+- [`schema`](#schema) (**required**)
146+- [`models`](#models)
147+- [`context`](#context)
148+- [`rules`](#rules)
149+- [`prompts`](#prompts)
150+- [`docs`](#docs)
151+- [`mcpServers`](#mcpservers)
152+- [`data`](#data)
153+
154+---
155+
156+### `name`
157+
158+The `name` property specifies the name of your project or configuration.
159+
160+```yaml title="config.yaml"
161+name: MyProject
162+```
163+
164+---
165+
166+### `version`
167+
168+The `version` property specifies the version of your project or configuration.
169+
170+### `schema`
171+
172+The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1`
173+
174+---
175+
176+### `models`
177+
178+The `models` section defines the language models used in your configuration. Models are used for functionalities such as
179+chat, editing, and summarizing.
180+
181+**Properties:**
182+
183+- `name` (**required**): A unique name to identify the model within your configuration.
184+- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`).
185+- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`).
186+- `apiBase`: Can be used to override the default API base that is specified per model
187+- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`,
188+ `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is
189+ not currently used.
190+- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on
191+ provider and model. Supported capabilities include `tool_use` and `image_input`.
192+- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
193+- `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
197+ valid template name, such as `llama3` or `anthropic`.
198+- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode:
199+ - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode.
200+ <!-- - `baseAgentSystemMessage`: Can be used to override the default system prompt for **Agent** mode. <!-- This setting is experimental and hence is undocumented. -->
201+- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings:
202+ - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens.
203+ - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk.
204+- `defaultCompletionOptions`: Default completion options for model settings.
205+ - `contextLength`: Maximum context length of the model, typically in tokens.
206+ - `maxTokens`: Maximum number of tokens to generate in a completion.
207+ - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random).
208+ - `topP`: The cumulative probability for nucleus sampling.
209+ - `topK`: Maximum number of tokens considered at each step.
210+ - `stop`: An array of stop tokens that will terminate the completion.
211+ - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models.
212+ - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models.
213+- `requestOptions`: HTTP request options specific to the model.
214+ - `timeout`: Timeout for each request to the language model.
215+ - `verifySsl`: Whether to verify SSL certificates for requests.
216+ - `caBundlePath`: Path to a custom CA bundle for HTTP requests.
217+ - `proxy`: Proxy URL for HTTP requests.
218+ - `headers`: Custom headers for HTTP requests.
219+ - `extraBodyProperties`: Additional properties to merge with the HTTP request body.
220+ - `noProxy`: List of hostnames that should bypass the specified proxy.
221+ - `clientCertificate`: Client certificate for HTTP requests.
222+ - `cert`: Path to the client certificate file.
223+ - `key`: Path to the client certificate key file.
224+ - `passphrase`: Optional passphrase for the client certificate key file.
225+
226+#### Example
227+
228+```yaml title="config.yaml"
229+models:
230+ - name: GPT-4o
231+ provider: openai
232+ model: gpt-4o
233+ roles:
234+ - chat
235+ - edit
236+ - apply
237+ defaultCompletionOptions:
238+ temperature: 0.7
239+ maxTokens: 1500
240+
241+ - name: Codestral
242+ provider: mistral
243+ model: codestral-latest
244+ roles:
245+ - autocomplete
246+
247+ - name: My Model - OpenAI-Compatible
248+ provider: openai
249+ apiBase: http://my-endpoint/v1
250+ model: my-custom-model
251+ capabilities:
252+ - tool_use
253+ - image_input
254+ roles:
255+ - chat
256+ - edit
257+```
258+
259+---
260+
261+### `context`
262+
263+The `context` section defines context providers, which supply additional information or context to the language models.
264+Each context provider can be configured with specific parameters.
265+
266+More information about usage/params for each context provider can be found [here](/advanced/custom-providers)
267+
268+**Properties:**
269+
270+- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`)
271+- `name`: Optional name for the provider
272+- `params`: Optional parameters to configure the context provider's behavior.
273+
274+**Example:**
275+
276+```yaml title="config.yaml"
277+context:
278+ - provider: file
279+ - provider: code
280+ - provider: codebase
281+ params:
282+ nFinal: 10
283+ - provider: docs
284+ - provider: diff
285+ - provider: http
286+ name: Context Server 1
287+ params:
288+ url: "https://api.example.com/server1"
289+ - provider: folder
290+ - provider: terminal
291+```
292+
293+---
294+
295+### `rules`
296+
297+List of rules that the LLM should follow. These are concatenated into the system message for
298+all [Chat](../features/chat/quick-start), [Edit](../features/edit/quick-start), and [Agent](../features/agent/quick-start) requests.
299+See the [rules deep dive](../customization/rules) for details.
300+
301+Explicit rules can either be simple text or an object with the following properties:
302+
303+- `name` (**required**): A display name/title for the rule
304+- `rule` (**required**): The text content of the rule
305+- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This
306+ can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g.,
307+ `["src/**/*.ts", "tests/**/*.ts"]`).
308+
309+```yaml title="config.yaml"
310+rules:
311+ - Always annotate Python functions with their parameter and return types
312+
313+ - name: TypeScript best practices
314+ rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly.
315+ globs: "**/*.{ts,tsx}"
316+
317+ - name: TypeScript test patterns
318+ rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking.
319+ globs:
320+ - "src/**/*.test.ts"
321+ - "tests/**/*.ts"
322+
323+ - uses: myprofile/my-mood-setter
324+ with:
325+ TONE: concise
326+```
327+
328+---
329+
330+### `prompts`
331+
332+A list of custom prompts that can be invoked from the chat window. Each prompt has a name, description, and the actual
333+prompt text.
334+
335+```yaml title="config.yaml"
336+prompts:
337+ - name: check
338+ description: Check for mistakes in my code
339+ prompt: |
340+ Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:
341+ - Syntax errors
342+ - Logic errors
343+ - Security vulnerabilities
344+```
345+
346+---
347+
348+### `docs`
349+
350+List of documentation sites to index.
351+
352+**Properties:**
353+
354+- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc.
355+- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs
356+
357+<!-- - `rootUrl`: Crawler will only index docs within this domain - pages that contain this URL -->
358+
359+- `maxDepth`: Maximum link depth for crawling. Default `4`
360+- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`).
361+- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler.
362+
363+Example
364+
365+```yaml title="config.yaml"
366+docs:
367+ - name: Continue
368+ startUrl: https://docs.continue.dev/intro
369+ favicon: https://docs.continue.dev/favicon.ico
370+```
371+
372+---
373+
374+### `mcpServers`
375+
376+<!-- TODO is this correct? -->
377+
378+The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a standard proposed by Anthropic to unify
379+prompts, context, and tool use. Continue supports any MCP server with the MCP context provider.
380+
381+**Properties:**
382+
383+- `name` (**required**): The name of the MCP server.
384+- `command` (**required**): The command used to start the server.
385+- `args`: An optional array of arguments for the command.
386+- `env`: An optional map of environment variables for the server process.
387+- `connectionTimeout`: An optional connection timeout number to the server in milliseconds.
388+
389+**Example:**
390+
391+```yaml title="config.yaml"
392+mcpServers:
393+ - name: My MCP Server
394+ command: uvx
395+ args:
396+ - mcp-server-sqlite
397+ - --db-path
398+ - /Users/NAME/test.db
399+```
400+
401+### `data`
402+
403+Destinations to which [development data](/advanced/deep-dives/development-data) will be sent.
404+
405+**Properties:**
406+
407+- `name` (**required**): The display name of the data destination
408+- `destination` (**required**): The destination/endpoint that will receive the data. Can be:
409+ - an HTTP endpoint that will receive a POST request with a JSON blob
410+ - a file URL to a directory in which events will be dumpted to `.jsonl` files
411+- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0`
412+- `events`: an array of event names to include. Defaults to all events if not specified.
413+- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file
414+ contents, prompts, and completions. Defaults to `all`
415+- `apiKey`: api key to be sent with request (Bearer header)
416+- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models).
417+
418+ **Example:**
419+
420+```yaml title="config.yaml"
421+data:
422+ - name: Local Data Bank
423+ destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
424+ schema: 0.2.0
425+ level: all
426+ - name: My Private Company
427+ destination: https://mycompany.com/ingest
428+ schema: 0.2.0
429+ level: noCode
430+ events:
431+ - autocomplete
432+ - chatInteraction
433+```
434+
435+---
436+
437+## Complete YAML Config Example
438+
439+Putting it all together, here's a complete example of a `config.yaml` configuration file:
440+
441+```yaml title="config.yaml"
442+name: MyProject
443+version: 0.0.1
444+schema: v1
445+
446+models:
447+ - uses: anthropic/claude-3.5-sonnet
448+ with:
449+ ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
450+ override:
451+ defaultCompletionOptions:
452+ temperature: 0.8
453+ - name: GPT-4
454+ provider: openai
455+ model: gpt-4
456+ roles:
457+ - chat
458+ - edit
459+ defaultCompletionOptions:
460+ temperature: 0.5
461+ maxTokens: 2000
462+ requestOptions:
463+ headers:
464+ Authorization: Bearer YOUR_OPENAI_API_KEY
465+
466+ - name: Ollama Starcoder
467+ provider: ollama
468+ model: starcoder
469+ roles:
470+ - autocomplete
471+ defaultCompletionOptions:
472+ temperature: 0.3
473+ stop:
474+ - "\n"
475+
476+rules:
477+ - Give concise responses
478+ - Always assume TypeScript rather than JavaScript
479+
480+prompts:
481+ - name: test
482+ description: Unit test a function
483+ prompt: |
484+ Please write a complete suite of unit tests for this function. You should use the Jest testing framework. The tests should cover all possible edge cases and should be as thorough as possible. You should also include a description of each test case.
485+ - uses: myprofile/my-favorite-prompt
486+
487+context:
488+ - provider: diff
489+ - provider: file
490+ - provider: codebase
491+ - provider: code
492+ - provider: docs
493+ params:
494+ startUrl: https://docs.example.com/introduction
495+ rootUrl: https://docs.example.com
496+ maxDepth: 3
497+
498+mcpServers:
499+ - name: DevServer
500+ command: npm
501+ args:
502+ - run
503+ - dev
504+ env:
505+ PORT: "3000"
506+
507+data:
508+ - name: My Private Company
509+ destination: https://mycompany.com/ingest
510+ schema: 0.2.0
511+ level: noCode
512+ events:
513+ - autocomplete
514+ - chatInteraction
515+```
516+
517+## Using YAML anchors to avoid config duplication
518+
519+You can also use node anchors to avoid duplication of properties. To do so,
520+adding the YAML version header `%YAML 1.1` is needed, here's an example of
521+a `config.yaml` configuration file using anchors:
522+
523+```yaml title="config.yaml"
524+%YAML 1.1
525+---
526+name: MyProject
527+version: 0.0.1
528+schema: v1
529+
530+model_defaults: &model_defaults
531+ provider: openai
532+ apiKey: my-api-key
533+ apiBase: https://api.example.com/llm
534+
535+models:
536+ - name: mistral
537+ <<: *model_defaults
538+ model: mistral-7b-instruct
539+ roles:
540+ - chat
541+ - edit
542+
543+ - name: qwen2.5-coder-7b-instruct
544+ <<: *model_defaults
545+ model: qwen2.5-coder-7b-instruct
546+ roles:
547+ - chat
548+ - edit
549+
550+ - name: qwen2.5-coder-7b
551+ <<: *model_defaults
552+ model: qwen2.5-coder-7b
553+ useLegacyCompletionsEndpoint: false
554+ roles:
555+ - autocomplete
556+```
deleted docs/docs/telemetry.md +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](./customize/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).
modified docs/docs/troubleshooting.mdx +5 −6
@@ -25,9 +25,8 @@
2525 In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose".
2626 :::
2727
28-1. <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> for MacOS or <kbd>ctrl</kbd> + <kbd>
29- shift
30- </kbd> + <kbd>P</kbd> for Windows
28+1. <kbd>cmd</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> for MacOS or <kbd>ctrl</kbd>
29+ + <kbd>shift</kbd> + <kbd>P</kbd> for Windows
3130 2. Search for and then select "Developer: Toggle Developer Tools"
3231 3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/)
3332 4. Select the `Console` tab
@@ -42,7 +41,7 @@
4241 3. Reload the window
4342 4. Open the Continue Console by using the command palette (<kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd>) and searching for "Continue: Focus on Continue Console View"
4443
45-![Continue Console](../static/img/continue-console.png)
44+![Continue Console](/img/continue-console.png)
4645
4746 ### JetBrains
4847
@@ -56,7 +55,7 @@
5655
5756 We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below.
5857
59-![Pre-Release](../static/img/prerelease.png)
58+![Pre-Release](/img/prerelease.png)
6059
6160 ### JetBrains
6261
@@ -166,7 +165,7 @@
166165
167166 Continue stores it's data in the `~/.continue` directory (%USERPROFILE%\.continue` on Windows).
168167
169-If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall.
168+If you'd like to perform a clean reset of the extension, including removing all configuration files, indices, etc, you can remove this directory, uninstall, and then reinstall.
170169
171170 ## Still having trouble?
172171
deleted docs/docs/yaml-migration.md +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](/json-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.md#models)
42-
43-Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with minor changes. See [YAML Continue Config Reference](./reference.md#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](./customize/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](./json-reference#fully-deprecated-settings) 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/docusaurus.config.js +126 −103
@@ -58,9 +58,12 @@
5858 theme: {
5959 customCss: require.resolve("./src/css/custom.css"),
6060 },
61- gtag: {
62- trackingID: "G-M3JWW8N2XQ",
63- },
61+ ...(process.env.NODE_ENV === "production" && {
62+ gtag: {
63+ trackingID: "G-M3JWW8N2XQ",
64+ anonymizeIP: true,
65+ },
66+ }),
6467 }),
6568 ],
6669 ],
@@ -96,29 +99,18 @@
9699 type: "docSidebar",
97100 sidebarId: "docsSidebar",
98101 position: "left",
99- label: "User Guide",
102+ label: "Documentation",
100103 href: "/",
101104 },
102105 {
103- type: "docSidebar",
104- sidebarId: "hubSidebar",
105- position: "left",
106- label: "Hub",
107- href: "/hub/introduction",
108- },
109- {
110- type: "docSidebar",
111- sidebarId: "customizingSidebar",
106+ to: "/guides/overview",
107+ label: "Guides",
112108 position: "left",
113- label: "Customize",
114- href: "/customize/overview",
115109 },
116110 {
117- type: "docSidebar",
118- sidebarId: "customizingSidebar",
111+ to: "https://hub.continue.dev",
112+ label: "Explore",
119113 position: "left",
120- label: "Reference",
121- href: "/reference",
122114 },
123115
124116 {
@@ -211,22 +203,27 @@
211203 enableInDevelopment: false,
212204 },
213205 ],
214- [
215- "docusaurus-plugin-llms-txt",
216- {
217- // Optional configuration
218- outputPath: "static/llms.txt",
219- includePatterns: ["docs/**"],
220- excludePatterns: ["**/node_modules/**"],
221- },
222- ],
206+ // Custom plugin for better structured llms.txt
207+ require.resolve("./plugins/custom-llms-txt.js"),
208+ // Keeping the original plugin commented out for now
209+ // [
210+ // "docusaurus-plugin-llms-txt",
211+ // {
212+ // title: "Continue Documentation",
213+ // description: "Documentation for Continue - the open-source AI code assistant for developers",
214+ // // Optional configuration
215+ // outputPath: "static/llms.txt",
216+ // includePatterns: ["docs/**"],
217+ // excludePatterns: ["**/node_modules/**"],
218+ // },
219+ // ],
223220 [
224221 "@docusaurus/plugin-client-redirects",
225222 {
226223 redirects: [
227224 {
228225 to: "/hub/introduction",
229- from: "/hub",
226+ from: ["/hub"],
230227 },
231228 {
232229 to: "/hub/governance/org-permissions",
@@ -245,11 +242,11 @@
245242 from: "/hub/blocks",
246243 },
247244 {
248- to: "/customize/overview",
245+ to: "/customization/overview",
249246 from: ["/customize", "/customization"],
250247 },
251248 {
252- to: "/customize/deep-dives/mcp",
249+ to: "/customization/mcp-tools",
253250 from: "/customize/tools",
254251 },
255252 {
@@ -257,27 +254,27 @@
257254 from: ["/install/vscode", "/install/jetbrains"],
258255 },
259256 {
260- to: "/customize/deep-dives/settings",
257+ to: "/advanced/deep-dives/settings",
261258 from: "/customize/settings",
262259 },
263260 {
264- to: "/customize/model-roles",
261+ to: "/advanced/model-roles/intro",
265262 from: ["/customize/model-types", "/setup/overview"],
266263 },
267264 {
268- to: "/customize/model-roles/embeddings",
265+ to: "/advanced/model-roles/embeddings",
269266 from: "/customize/model-types/embeddings",
270267 },
271268 {
272- to: "/customize/model-roles/autocomplete",
269+ to: "/advanced/model-roles/autocomplete",
273270 from: "/customize/model-types/autocomplete",
274271 },
275272 {
276- to: "/customize/model-roles/chat",
273+ to: "/advanced/model-roles/chat",
277274 from: "/customize/model-types/chat",
278275 },
279276 {
280- to: "/customize/model-roles/reranking",
277+ to: "/advanced/model-roles/reranking",
281278 from: "/customize/model-types/reranking",
282279 },
283280 {
@@ -291,30 +288,31 @@
291288 ],
292289 },
293290 {
294- to: "/customize/model-providers",
291+ to: "/advanced/model-providers/anthropic",
295292 from: ["/setup/select-provider", "/setup/model-providers"],
296293 },
297294 {
298- to: "/customize/deep-dives/codebase",
295+ to: "/advanced/context/codebase",
299296 from: [
300297 "/walkthroughs/codebase-embeddings",
301298 "/features/codebase-embeddings",
299+ "/advanced/deep-dives/codebase",
302300 ],
303301 },
304302 {
305- to: "/customize/deep-dives/autocomplete",
303+ to: "/advanced/deep-dives/autocomplete",
306304 from: [
307305 "/walkthroughs/tab-autocomplete",
308306 "/features/tab-autocomplete",
309307 ],
310308 },
311309 {
312- to: "/customize/deep-dives/prompts",
310+ to: "/advanced/deep-dives/prompts",
313311 from: ["/walkthroughs/prompt-files", "/features/prompt-files"],
314312 },
315313 // TODO - actions redirects
316314 {
317- to: "/customize/deep-dives/slash-commands",
315+ to: "/advanced/deep-dives/slash-commands",
318316 from: [
319317 "/actions/how-to-use-it",
320318 "/actions/how-to-customize",
@@ -328,11 +326,11 @@
328326 },
329327
330328 {
331- to: "/customize/deep-dives/vscode-actions",
329+ to: "/advanced/deep-dives/vscode-actions",
332330 from: ["/walkthroughs/quick-actions"],
333331 },
334332 {
335- to: "/customize/changelog",
333+ to: "/reference",
336334 from: "/changelog",
337335 },
338336 {
@@ -344,178 +342,203 @@
344342 ],
345343 },
346344 {
347- to: "/customize/context-providers",
348- from: ["/customization/context-providers"],
345+ to: "/advanced/custom-providers",
346+ from: [
347+ "/customization/context-providers",
348+ "/advanced/context-integration/custom-providers",
349+ "/advanced/context/custom-providers",
350+ ],
349351 },
350352 {
351- to: "/customize/deep-dives/development-data",
353+ to: "/advanced/deep-dives/development-data",
352354 from: ["/development-data", "/customize/development-data"],
353355 },
354356 {
355- to: "/customize/deep-dives/docs",
356- from: "/features/talk-to-your-docs",
357+ to: "/advanced/context/documentation",
358+ from: [
359+ "/features/talk-to-your-docs",
360+ "/advanced/context-integration/documentation",
361+ "/advanced/deep-dives/docs",
362+ ],
357363 },
358364 {
359- to: "/customize/model-providers/anthropic",
365+ to: "/advanced/model-providers/anthropic",
360366 from: "/reference/Model Providers/anthropicllm",
361367 },
362368 {
363- to: "/customize/model-providers/azure",
369+ to: "/advanced/model-providers/azure",
364370 from: "/reference/Model Providers/azure",
365371 },
366372 {
367- to: "/customize/model-providers/bedrock",
373+ to: "/advanced/model-providers/bedrock",
368374 from: "/reference/Model Providers/bedrock",
369375 },
370376 {
371- to: "/customize/model-providers/deepseek",
377+ to: "/advanced/model-providers/deepseek",
372378 from: "/reference/Model Providers/deepseek",
373379 },
374380 {
375- to: "/customize/model-providers",
381+ to: "/advanced/model-providers/anthropic",
376382 from: "/reference/Model Providers/freetrial",
377383 },
378384 {
379- to: "/customize/model-providers/gemini",
385+ to: "/advanced/model-providers/gemini",
380386 from: "/reference/Model Providers/geminiapi",
381387 },
382388 {
383- to: "/customize/model-providers/mistral",
389+ to: "/advanced/model-providers/mistral",
384390 from: "/reference/Model Providers/mistral",
385391 },
386392 {
387- to: "/customize/model-providers/ollama",
393+ to: "/advanced/model-providers/ollama",
388394 from: "/reference/Model Providers/ollama",
389395 },
390396 {
391- to: "/customize/model-providers/openai",
397+ to: "/advanced/model-providers/openai",
392398 from: "/reference/Model Providers/openai",
393399 },
394- {
395- to: "/customize/tutorials/custom-code-rag",
396- from: "/walkthroughs/custom-code-rag",
397- },
398- {
399- to: "/customize/tutorials/llama3.1",
400- from: "/walkthroughs/llama3.1",
401- },
402- {
403- to: "/customize/tutorials/running-continue-without-internet",
404- from: "/walkthroughs/running-continue-without-internet",
405- },
406- {
407- to: "/customize/tutorials/set-up-codestral",
408- from: "/walkthroughs/set-up-codestral",
409- },
410400 {
411401 to: "/",
412402 from: "/intro",
413403 },
414404 {
415- to: "/customize/model-providers/more/cloudflare",
405+ to: "/advanced/model-providers/more/cloudflare",
416406 from: "/reference/Model Providers/cloudflare",
417407 },
418408 {
419- to: "/customize/model-providers/more/cohere",
409+ to: "/advanced/model-providers/more/cohere",
420410 from: "/reference/Model Providers/cohere",
421411 },
422412 {
423- to: "/customize/model-providers/more/deepinfra",
413+ to: "/advanced/model-providers/more/deepinfra",
424414 from: "/reference/Model Providers/deepinfra",
425415 },
426416 {
427- to: "/customize/model-providers/more/flowise",
417+ to: "/advanced/model-providers/more/flowise",
428418 from: "/reference/Model Providers/flowise",
429419 },
430420 {
431- to: "/customize/model-providers/more/huggingfaceinferenceapi",
421+ to: "/advanced/model-providers/llamastack",
422+ from: "/advanced/model-providers/more/llamastack",
423+ },
424+ {
425+ to: "/advanced/model-providers/more/huggingfaceinferenceapi",
432426 from: "/reference/Model Providers/huggingfaceinferenceapi",
433427 },
434428 {
435- to: "/customize/model-providers/more/ipex_llm",
429+ to: "/advanced/model-providers/more/ipex_llm",
436430 from: "/reference/Model Providers/ipex_llm",
437431 },
438432 {
439- to: "/customize/model-providers/more/kindo",
433+ to: "/advanced/model-providers/more/kindo",
440434 from: "/reference/Model Providers/kindo",
441435 },
442436 {
443- to: "/customize/model-providers/more/llamacpp",
437+ to: "/advanced/model-providers/more/llamacpp",
444438 from: "/reference/Model Providers/llamacpp",
445439 },
446440 {
447- to: "/customize/model-providers/more/llamafile",
441+ to: "/advanced/model-providers/more/llamafile",
448442 from: "/reference/Model Providers/llamafile",
449443 },
450444 {
451- to: "/customize/model-providers/more/lmstudio",
445+ to: "/advanced/model-providers/more/lmstudio",
452446 from: "/reference/Model Providers/lmstudio",
453447 },
454448 {
455- to: "/customize/model-providers/more/msty",
449+ to: "/advanced/model-providers/more/msty",
456450 from: "/reference/Model Providers/msty",
457451 },
458452 {
459- to: "/customize/model-providers/more/openrouter",
453+ to: "/advanced/model-providers/more/openrouter",
460454 from: "/reference/Model Providers/openrouter",
461455 },
462456 {
463- to: "/customize/model-providers/more/replicatellm",
457+ to: "/advanced/model-providers/more/replicatellm",
464458 from: "/reference/Model Providers/replicatellm",
465459 },
466460 {
467- to: "/customize/model-providers/more/sagemaker",
461+ to: "/advanced/model-providers/more/sagemaker",
468462 from: "/reference/Model Providers/sagemaker",
469463 },
470464 {
471- to: "/customize/model-providers/more/textgenwebui",
465+ to: "/advanced/model-providers/more/textgenwebui",
472466 from: "/reference/Model Providers/textgenwebui",
473467 },
474468 {
475- to: "/customize/model-providers/more/together",
469+ to: "/advanced/model-providers/more/together",
476470 from: "/reference/Model Providers/together",
477471 },
478472 {
479- to: "/customize/model-providers/more/novita",
473+ to: "/advanced/model-providers/more/novita",
480474 from: "/reference/Model Providers/novita",
481475 },
482476 {
483- to: "/customize/model-providers/more/vllm",
477+ to: "/advanced/model-providers/more/vllm",
484478 from: "/reference/Model Providers/vllm",
485479 },
486480 {
487- to: "/customize/model-providers/more/watsonx",
481+ to: "/advanced/model-providers/more/watsonx",
488482 from: "/reference/Model Providers/watsonx",
489483 },
490484 {
491- to: "/customize/model-providers/more/nebius",
485+ to: "/advanced/model-providers/more/nebius",
492486 from: "/reference/Model Providers/nebius",
493487 },
494488 // Sidebar items that should route directly to a subpage
495489 {
496- to: "/chat/how-to-use-it",
497- from: "/chat",
490+ to: "/features/chat/quick-start",
491+ from: ["/chat", "/chat/how-to-use-it"],
498492 },
499493 {
500- to: "/agent/how-to-use-it",
501- from: "/agent",
494+ to: "/features/agent/quick-start",
495+ from: ["/agent", "/agent/how-to-use-it"],
502496 },
503497 {
504- to: "/edit/how-to-use-it",
505- from: "/edit",
498+ to: "/features/edit/quick-start",
499+ from: ["/edit", "/edit/how-to-use-it"],
506500 },
507501 {
508- to: "/autocomplete/how-to-use-it",
509- from: "/autocomplete",
502+ to: "/features/autocomplete/quick-start",
503+ from: ["/autocomplete", "/autocomplete/how-to-use-it"],
510504 },
511505 {
512506 to: "/getting-started/install",
513507 from: "/getting-started",
514508 },
515509 {
516- to: "/customize/deep-dives/prompts",
510+ to: "/advanced/deep-dives/prompts",
517511 from: "/customize/deep-dives/prompt-files",
518512 },
513+ // Migrated from netlify.toml
514+ {
515+ to: "/features/chat/how-it-works",
516+ from: "/chat/how-it-works",
517+ },
518+ {
519+ to: "/features/autocomplete/how-it-works",
520+ from: "/autocomplete/how-it-works",
521+ },
522+ {
523+ to: "/features/edit/how-it-works",
524+ from: "/edit/how-it-works",
525+ },
526+ {
527+ to: "/features/agent/how-it-works",
528+ from: "/agent/how-it-works",
529+ },
530+ {
531+ to: "/advanced/telemetry",
532+ from: "/telemetry",
533+ },
534+ {
535+ to: "/advanced/yaml-migration",
536+ from: "/yaml-migration",
537+ },
538+ {
539+ to: "/advanced/json-reference",
540+ from: "/json-reference",
541+ },
519542 ],
520543 },
521544 ],
modified docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/tutorials/set-up-codestral.md +1 −1
@@ -4,7 +4,7 @@
44 keywords: [codestral, mistral, 模型设置]
55 ---
66
7-![mistral x continue](../../../../../../static/img/mistral-x-continue.png)
7+![mistral x continue](/img/mistral-x-continue.png)
88
99 **这是一个分步指南,关于如何在 Continue 设置 Codestral ,使用 Mistral AI API :**
1010
modified docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/troubleshooting.md +1 −1
@@ -48,7 +48,7 @@
4848
4949 我们不断地修复和改进 Continue ,但是最新的修改停留在 "预览" 版大概一周,让我们可以测试它们的稳定性。如果你遇到问题,你可以尝试预览版,通过去 VS Code 的 Continue 扩展页面,并选择 "切换到预览版" ,像下面显示的这样。
5050
51-![Pre-Release](../../../../static/img/prerelease.png)
51+![Pre-Release](/img/prerelease.png)
5252
5353 ### JetBrains
5454
deleted docs/netlify.toml +0 −0
added docs/plugins/custom-llms-txt.js +130 −0
@@ -0,0 +1,130 @@
1+const fs = require("fs");
2+const path = require("path");
3+
4+function getAllHtmlFiles(dir, fileList = []) {
5+ const files = fs.readdirSync(dir);
6+
7+ files.forEach((file) => {
8+ const filePath = path.join(dir, file);
9+ const stat = fs.statSync(filePath);
10+
11+ if (stat.isDirectory()) {
12+ getAllHtmlFiles(filePath, fileList);
13+ } else if (file === "index.html") {
14+ fileList.push(filePath);
15+ }
16+ });
17+
18+ return fileList;
19+}
20+
21+module.exports = function customLLMsTxtPlugin(context, options) {
22+ return {
23+ name: "custom-llms-txt",
24+ async postBuild({ siteConfig, outDir }) {
25+ // Group docs by their sidebar category
26+ const sections = {
27+ "Getting Started": [],
28+ Features: [],
29+ Guides: [],
30+ Customization: [],
31+ Advanced: [],
32+ Hub: [],
33+ };
34+
35+ // Get all HTML files
36+ const htmlFiles = getAllHtmlFiles(outDir);
37+
38+ for (const htmlPath of htmlFiles) {
39+ try {
40+ const htmlContent = fs.readFileSync(htmlPath, "utf8");
41+
42+ // Extract title from HTML (handle both formats)
43+ const titleMatch = htmlContent.match(/<title[^>]*>([^<]+)<\/title>/);
44+ const title = titleMatch
45+ ? titleMatch[1].replace(" | Continue", "").trim()
46+ : "Untitled";
47+
48+ // Skip if title is just "Continue" (likely homepage)
49+ if (title === "Continue") continue;
50+
51+ // Extract description from meta tag
52+ const descMatch = htmlContent.match(
53+ /<meta\s+name="description"\s+content="([^"]+)"/,
54+ );
55+ const description = descMatch ? descMatch[1] : "";
56+
57+ // Get relative path from build directory
58+ const relativePath = path.relative(outDir, htmlPath);
59+ // Convert to URL path
60+ const cleanPath = relativePath
61+ .replace(/index\.html$/, "")
62+ .replace(/\/$/, "");
63+ const url = `https://docs.continue.dev/${cleanPath}`;
64+
65+ const docInfo = { title, url, description, path: cleanPath };
66+
67+ // Determine section based on path
68+ if (cleanPath.includes("getting-started")) {
69+ sections["Getting Started"].push(docInfo);
70+ } else if (cleanPath.includes("features")) {
71+ sections["Features"].push(docInfo);
72+ } else if (cleanPath.includes("guides")) {
73+ sections["Guides"].push(docInfo);
74+ } else if (cleanPath.includes("customization")) {
75+ sections["Customization"].push(docInfo);
76+ } else if (cleanPath.includes("advanced")) {
77+ sections["Advanced"].push(docInfo);
78+ } else if (cleanPath.includes("hub")) {
79+ sections["Hub"].push(docInfo);
80+ } else if (cleanPath === "" || cleanPath === "/") {
81+ // Root page
82+ sections["Getting Started"].unshift(docInfo);
83+ }
84+ } catch (error) {
85+ console.warn(`Failed to process ${htmlPath}:`, error.message);
86+ }
87+ }
88+
89+ // Generate the structured llms.txt content
90+ let content = "# Continue Documentation\n\n";
91+ content +=
92+ "Documentation for Continue - the open-source AI code assistant for developers\n\n";
93+
94+ // Add each section
95+ Object.entries(sections).forEach(([sectionName, docs]) => {
96+ if (docs.length > 0) {
97+ content += `## ${sectionName}\n\n`;
98+
99+ // Sort docs within each section
100+ docs.sort((a, b) => {
101+ // Sort by path depth first (shorter paths first)
102+ const depthA = (a.path.match(/\//g) || []).length;
103+ const depthB = (b.path.match(/\//g) || []).length;
104+ if (depthA !== depthB) return depthA - depthB;
105+
106+ // Then alphabetically
107+ return a.path.localeCompare(b.path);
108+ });
109+
110+ docs.forEach((doc) => {
111+ content += `- [${doc.title}](${doc.url})`;
112+ if (doc.description) {
113+ content += `: ${doc.description}`;
114+ }
115+ content += "\n";
116+ });
117+ content += "\n";
118+ }
119+ });
120+
121+ // Write to file
122+ const outputPath = path.join(outDir, "llms.txt");
123+ fs.writeFileSync(outputPath, content, "utf8");
124+
125+ console.log(
126+ `Generated structured llms.txt with ${Object.values(sections).flat().length} pages`,
127+ );
128+ },
129+ };
130+};
modified docs/sidebars.js +12 −131
@@ -6,7 +6,7 @@
66 "introduction",
77 {
88 type: "category",
9- label: "Getting started",
9+ label: "Getting Started",
1010 collapsed: false,
1111 items: [
1212 {
@@ -17,175 +17,56 @@
1717 },
1818 {
1919 type: "category",
20- label: "Chat",
20+ label: "Features",
2121 items: [
2222 {
2323 type: "autogenerated",
24- dirName: "chat",
24+ dirName: "features",
2525 },
2626 ],
2727 },
2828 {
2929 type: "category",
30- label: "Autocomplete",
30+ label: "Customization",
3131 items: [
3232 {
3333 type: "autogenerated",
34- dirName: "autocomplete",
34+ dirName: "customization",
3535 },
3636 ],
3737 },
3838 {
3939 type: "category",
40- label: "Edit",
41- items: [
42- {
43- type: "autogenerated",
44- dirName: "edit",
45- },
46- ],
47- },
48- {
49- type: "category",
50- label: "Agent",
51- items: [
52- {
53- type: "autogenerated",
54- dirName: "agent",
55- },
56- ],
57- },
58- {
59- type: "category",
60- label: "Blocks",
61- items: [
62- {
63- type: "autogenerated",
64- dirName: "blocks",
65- },
66- ],
67- },
68- "telemetry",
69- "troubleshooting",
70- {
71- type: "link",
7240 label: "Hub",
73- href: "/hub/introduction",
74- },
75- ],
76- customizingSidebar: [
77- "customize/overview",
78- {
79- type: "category",
80- label: "Model providers",
81- link: {
82- slug: "/customize/model-providers",
83- type: "generated-index",
84- },
85- items: [
86- {
87- type: "autogenerated",
88- dirName: "customize/model-providers/top-level",
89- },
90- {
91- type: "category",
92- label: "More",
93- link: {
94- slug: "/customize/model-providers/more",
95- type: "generated-index",
96- },
97- items: [
98- {
99- type: "autogenerated",
100- dirName: "customize/model-providers/more",
101- },
102- ],
103- },
104- ],
105- },
106- {
107- type: "category",
108- label: "Model roles",
109- link: {
110- slug: "/customize/model-roles",
111- type: "generated-index",
112- },
11341 items: [
11442 {
11543 type: "autogenerated",
116- dirName: "customize/model-roles",
44+ dirName: "hub",
11745 },
11846 ],
11947 },
12048 {
12149 type: "category",
122- label: "Deep dives",
50+ label: "Advanced",
12351 items: [
12452 {
12553 type: "autogenerated",
126- dirName: "customize/deep-dives",
54+ dirName: "advanced",
12755 },
12856 ],
12957 },
13058 {
13159 type: "category",
132- label: "Tutorials",
60+ label: "Guides",
13361 items: [
13462 {
13563 type: "autogenerated",
136- dirName: "customize/tutorials",
64+ dirName: "guides",
13765 },
13866 ],
13967 },
140- {
141- type: "link",
142- label: "Reference",
143- href: "/reference",
144- },
145- ],
146- hubSidebar: [
147- "hub/introduction",
148- {
149- type: "category",
150- label: "Assistants",
151- items: [
152- "hub/assistants/intro",
153- "hub/assistants/use-an-assistant",
154- "hub/assistants/create-an-assistant",
155- "hub/assistants/edit-an-assistant",
156- ],
157- },
158- {
159- type: "category",
160- label: "Blocks",
161- items: [
162- "hub/blocks/intro",
163- "hub/blocks/block-types",
164- "hub/blocks/use-a-block",
165- "hub/blocks/create-a-block",
166- "hub/blocks/bundles",
167- ],
168- },
169- {
170- type: "category",
171- label: "Secrets",
172- items: ["hub/secrets/secret-types", "hub/secrets/secret-resolution"],
173- },
174- {
175- type: "category",
176- label: "Governance",
177- items: [
178- "hub/governance/org-permissions",
179- "hub/governance/creating-an-org",
180- "hub/governance/pricing",
181- ],
182- },
183- "hub/source-control",
184- {
185- type: "link",
186- label: "Customize",
187- href: "/customize/overview",
188- },
68+ "troubleshooting",
69+ "reference",
18970 ],
19071 };
19172