Elffuss BraidHub

kikocis/continue public

s/docs2/docs
Changeset10a59ce026d20173c48c30853f6ca99b3d5e4b2a7b571abea6eec4f55073a7df
AuthorBrian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-07-10 13:34 -07:00
CommitterBrian 'bdougie' Douglas <brian@opensauced.pizza> · 2025-07-10 13:34 -07:00
Parentsc66805f650c8

Browse the files at this changeset

More than 300 files changed

deleted docs/.gitignore +0 −20
@@ -1,20 +0,0 @@
1-# Dependencies
2-/node_modules
3-
4-# Production
5-/build
6-
7-# Generated files
8-.docusaurus
9-.cache-loader
10-
11-# Misc
12-.DS_Store
13-.env.local
14-.env.development.local
15-.env.test.local
16-.env.production.local
17-
18-npm-debug.log*
19-yarn-debug.log*
20-yarn-error.log*
added docs/.prettierignore +2 −0
@@ -0,0 +1,2 @@
1+*.md
2+*.mdx
No newline at the end of the file
modified docs/README.md +31 −2
@@ -1,3 +1,32 @@
1-# Continue Docs
1+# Mintlify Starter Kit
22
3-Markdown content exists in the `docs/` folder, nested as it will be shown in the sidebar. `docusaurus.config.js` defines important footer, sidebar, and title content for the site.
3+Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including
4+
5+- Guide pages
6+- Navigation
7+- Customizations
8+- API Reference pages
9+- Use of popular components
10+
11+### Development
12+
13+Install the [Mintlify CLI](https://www.npmjs.com/package/mint) to preview the documentation changes locally. To install, use the following command
14+
15+```
16+npm i -g mint
17+```
18+
19+Run the following command at the root of your documentation (where docs.json is)
20+
21+```
22+mint dev
23+```
24+
25+### Publishing Changes
26+
27+Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard.
28+
29+#### Troubleshooting
30+
31+- If the dev environment isn't running - Run `mint update` to ensure you have the most recent version of the CLI.
32+- Page loads as a 404 - Make sure you are running in a folder with `docs.json`
added docs/autocomplete/how-to-use-it.mdx +29 −0
@@ -0,0 +1,29 @@
1+---
2+title: "Autocomplete"
3+sidebarTitle: "How To Use It"
4+icon: "circle-question"
5+---
6+
7+<Frame>
8+ <img src="/images/autocomplete-9d4e3f7658d3e65b8e8b20f2de939675.gif" />
9+</Frame>
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 `Tab`
18+
19+### Rejecting a full suggestion
20+
21+Reject a full suggestion with `Esc`
22+
23+### Partially accepting a suggestion
24+
25+For more granular control, use `cmd/ctrl` + `→` 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 **`cmd/ctrl` + `alt` + `space`**.
deleted docs/babel.config.js +0 −3
@@ -1,3 +0,0 @@
1-module.exports = {
2- presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
3-};
added docs/chat/how-to-use-it.mdx +39 −0
@@ -0,0 +1,39 @@
1+---
2+title: "Chat"
3+sidebarTitle: "How To Use It"
4+icon: "circle-question"
5+---
6+
7+<Frame>
8+ <img src="/images/chat-489b68d156be2aafe09ee7cedf233fba.gif" />
9+</Frame>
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 `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (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](/features/chat/quick-start#3-use--for-additional-context).
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 `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (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 `cmd/ctrl` + `’`
added docs/customization/mcp-tools.mdx +16 −0
@@ -0,0 +1,16 @@
1+---
2+title: "MCP Blocks"
3+description: "Model Context Protocol servers provide specialized functionality:"
4+---
5+
6+- **Enable integration** with external tools and systems
7+- **Create extensible interfaces** for custom capabilities
8+- **Support complex interactions** with your development environment
9+- **Allow partners** to contribute specialized functionality
10+- **Connect to databases** to understand schema and data models during development
11+
12+![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png)
13+
14+## Learn More[​](#learn-more "Direct link to Learn More")
15+
16+Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
added docs/customization/models.mdx +19 −0
@@ -0,0 +1,19 @@
1+---
2+title: "Model Blocks"
3+description: "These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:"
4+---
5+
6+- **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance
7+- **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks
8+- **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy
9+- **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type
10+- **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search
11+- **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning
12+
13+![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png)
14+
15+## Learn More[​](#learn-more "Direct link to Learn More")
16+
17+Continue supports [many model providers](/customization/models#openai), 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`.
18+
19+Read more about roles [here](/customize/model-roles) and view [`models`](/reference#models) in the YAML Reference.
added docs/customization/overview.mdx +21 −0
@@ -0,0 +1,21 @@
1+---
2+title: "Overview"
3+description: "Continue can be deeply customized. For example you might:"
4+---
5+
6+- **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](/customization/models#openai).
7+- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](/customize/model-roles).
8+- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](/customize/custom-providers).
9+- **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](/customization/overview#slash-commands).
10+- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](/features/agent/quick-start). Add custom tools using [MCP Servers](/customization/mcp-tools)
11+
12+Whatever you choose, you'll probably start by editing your Assistant.
13+
14+## Editing your assistant[​](#editing-your-assistant "Direct link to Editing your assistant")
15+
16+You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (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.
17+
18+![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
19+
20+- See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant
21+- See the [Config Deep Dive](/customization/overview#configuration) for more details on configuring local assistants.
added docs/customization/prompts.mdx +16 −0
@@ -0,0 +1,16 @@
1+---
2+title: "Prompt Blocks"
3+description: "These are the specialized instructions that shape how models respond:"
4+---
5+
6+- **Define interaction patterns** for specific tasks or frameworks
7+- **Encode domain expertise** for particular technologies
8+- **Ensure consistent guidance** aligned with organizational practices
9+- **Can be shared and reused** across multiple assistants
10+- **Act as automated code reviewers** that ensure consistency across teams
11+
12+![Prompt Blocks Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png)
13+
14+## Learn More[​](#learn-more "Direct link to Learn More")
15+
16+Prompt blocks have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
added docs/customization/rules.mdx +20 −0
@@ -0,0 +1,20 @@
1+---
2+title: "Rules Blocks"
3+description: "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."
4+---
5+
6+Think of these as the guardrails for your AI coding assistants:
7+
8+- **Enforce company-specific coding standards** and security practices
9+- **Implement quality checks** that match your engineering culture
10+- **Create paved paths** for developers to follow organizational best practices
11+
12+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.
13+
14+### How Rules Work[​](#how-rules-work "Direct link to How Rules Work")
15+
16+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.
17+
18+## Learn More[​](#learn-more "Direct link to Learn More")
19+
20+Learn more in the [rules deep dive](/customization/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
added docs/customize/context/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Context",
3+ "position": 2
4+}
added docs/customize/context/codebase.mdx +99 −0
@@ -0,0 +1,99 @@
1+---
2+title: "@Codebase"
3+description: Talk to your codebase
4+keywords: [talk, embeddings, reranker, codebase, experimental]
5+---
6+
7+# @Codebase
8+
9+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`.
10+
11+<Info>
12+ **Note:** `transformers.js` cannot be used in JetBrains IDEs. However, you can
13+ select a different embeddings model from [the list
14+ here](../model-roles/embeddings.mdx).
15+</Info>
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>
47+ <Tab title="YAML">
48+ ```yaml title="config.yaml"
49+ context:
50+ - provider: codebase
51+ params:
52+ nRetrieve: 25
53+ nFinal: 5
54+ useReranking: true
55+ ```
56+ </Tab>
57+ <Tab title="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+ </Tab>
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/customize/context/documentation.mdx +406 −0
@@ -0,0 +1,406 @@
1+---
2+title: "@Docs"
3+description: Learn how to access and search your project's documentation directly within Continue
4+keywords:
5+ [
6+ documentation,
7+ indexing,
8+ context provider,
9+ embeddings,
10+ docs,
11+ embedder,
12+ embeddings provider,
13+ documentation,
14+ ]
15+toc_max_heading_level: 5
16+---
17+
18+# @Docs
19+
20+The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
21+
22+## Enabling the `@Docs` context provider
23+
24+To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file.
25+
26+<Tabs>
27+ <Tab title="YAML">
28+ ```yaml title="config.yaml"
29+ context:
30+ - provider: docs
31+ ```
32+ </Tab>
33+ <Tab title="JSON">
34+ ```json title="config.json"
35+ {
36+ "contextProviders": [
37+ {
38+ "name": "docs"
39+ }
40+ ]
41+ }
42+ ```
43+ </Tab>
44+</Tabs>
45+
46+## How It Works
47+
48+The `@Docs` context provider works by
49+
50+1. Crawling specified documentation sites
51+2. Generating embeddings for the chunked content
52+3. Storing the embeddings locally on your machine
53+4. Embedding chat input to include similar documentation chunks as context
54+
55+## Indexing Your Own Documentation
56+
57+### Hub `docs` Blocks
58+
59+@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).
60+
61+### Through the `@Docs` Context Provider
62+
63+To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed
64+
65+- from the `@Docs` context provider - type `@Docs` in the chat, hit `Enter`, and search for `Add Docs`
66+- from the `More` page (three dots icon) in the `@docs indexes` section
67+ the `@Docs` context provider.
68+
69+In the **Add Documentation** Form, enter a `Title` and `Start URL` for the site.
70+
71+- `Title`: The name of the documentation site, used for identification in the UI.
72+- `Start URL`: The URL where the indexing process should begin.
73+
74+Indexing will begin upon submission. Progress can be viewed in the form or later in the `@docs indexes` section of the `More` page.
75+
76+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.
77+
78+- Packages with a valid documentation URL (with a `+` icon) can be clicked to immediately kick off indexing
79+- Packages with partial information (with a pen icon) can be clicked to fill the form with the available information
80+- Note that you can hover over the information icon to see where the package suggestion was found.
81+
82+![Add documentation form](/img/docs-form.png)
83+
84+### In a configuration file
85+
86+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:
87+
88+<Tabs>
89+ <Tab title="YAML">
90+ ```yaml title="config.yaml"
91+ docs:
92+ - title: Nest.js
93+ startUrl: https://docs.nestjs.com/
94+ faviconUrl: https://docs.nestjs.com/favicon.ico
95+ ```
96+ </Tab>
97+ <Tab title="JSON">
98+ ```json title="config.json"
99+ {
100+ "docs": [
101+ {
102+ "title": "Nest.js",
103+ "startUrl": "https://docs.nestjs.com/",
104+ "faviconUrl": "https://docs.nestjs.com/favicon.ico"
105+ }
106+ ]
107+ }
108+ ```
109+ </Tab>
110+</Tabs>
111+
112+See [the config reference](/reference) for all documentation site configuration options.
113+
114+Indexing will re-sync upon saving the configuration file.
115+
116+## Configuration
117+
118+### Using Your Embeddings Provider
119+
120+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.
121+
122+### Reranking
123+
124+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`.
125+
126+<Tabs>
127+ <Tab title="YAML">
128+ ```yaml title="config.yaml"
129+ context:
130+ - provider: docs
131+ params:
132+ nRetrieve: 25 # The number of docs to retrieve from the embeddings query
133+ nFinal: 5 # The number of docs chunks to return IF reranking
134+ useReranking: true # use reranking if a reranker is configured (defaults to true)
135+ ```
136+ </Tab>
137+ <Tab title="JSON">
138+ ```json title="config.json"
139+ {
140+ "contextProviders": [
141+ {
142+ "name": "docs",
143+ "params": {
144+ "nRetrieve": 25, // The number of docs to retrieve from the embeddings query
145+ "nFinal": 5, // The number of docs chunks to return IF reranking
146+ "useReranking": true // use reranking if a reranker is configured (defaults to true)
147+ }
148+ }
149+ ]
150+ }
151+ ```
152+ </Tab>
153+</Tabs>
154+
155+### GitHub
156+
157+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:
158+
159+<Tabs>
160+ <Tab title="YAML">
161+ ```yaml title="config.yaml"
162+ context:
163+ - provider: docs
164+ params:
165+ githubToken: <GITHUB_TOKEN>
166+ ```
167+ </Tab>
168+ <Tab title="JSON">
169+ ```json title="config.json"
170+ {
171+ "contextProviders": [
172+ {
173+ "name": "docs",
174+ "params": {
175+ "githubToken": "github_..."
176+ }
177+ }
178+ ]
179+ }
180+ ```
181+ </Tab>
182+</Tabs>
183+
184+### Local Crawling
185+
186+By default, Continue crawls documentation sites using a specialized crawling service that provides the best experience for most users and documentation sites.
187+
188+If your documentation is private, you can skip the default crawler and use a local crawler instead by setting `useLocalCrawling` to `true`.
189+
190+<Tabs>
191+ <Tab title="YAML">
192+ ```yaml title="config.yaml"
193+ docs:
194+ - title: My Private Docs
195+ startUrl: http://10.2.1.2/docs
196+ faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
197+ useLocalCrawling: true
198+ ```
199+ </Tab>
200+ <Tab title="JSON">
201+ ```json title="config.json"
202+ {
203+ "docs": [
204+ {
205+ "title": "My Private Docs",
206+ "startUrl": "http://10.2.1.2/docs",
207+ "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
208+ "useLocalCrawling": true
209+ }
210+ ]
211+ }
212+ ```
213+ </Tab>
214+</Tabs>
215+
216+<Info>
217+ Chromium crawling has been deprecated
218+ {/* 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. */}
219+</Info>
220+
221+Further notes:
222+
223+- 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.
224+- 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.
225+
226+## Managing your docs indexes
227+
228+You can view indexing statuses and manage your documentation sites from the `@docs indexes` section of the `More` page (three dots)
229+
230+- Continue does not automatically re-index your docs. Use `Click to re-index` to trigger a reindex for a specific source
231+- While a site is indexing, click `Cancel indexing` to cancel the process
232+- Failed indexing attempts will show an error status bar and icon
233+- Delete a documentation site from your configuration using the trash icon
234+
235+![More Page @docs indexes section](/img/docs-indexes.png)
236+
237+You can also view the overall status of currently indexing docs from a hideable progress bar at the bottom of the chat page
238+
239+![Documentation indexing peek](/img/docs-indexing-peek.png)
240+
241+You can also use the following IDE command to force a re-index of all docs: `Continue: Docs Force Re-Index`.
242+
243+## Examples
244+
245+### VS Code minimal setup
246+
247+The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking.
248+
249+<Tabs>
250+ <Tab title="YAML">
251+ ```yaml title="config.yaml"
252+ context:
253+ - provider: docs
254+
255+ docs:
256+ - title: Nest.js
257+ startUrl: https://docs.nestjs.com/
258+ ```
259+ </Tab>
260+ <Tab title="JSON">
261+ ```json title="config.json"
262+ {
263+ "contextProviders": [
264+ {
265+ "name": "docs",
266+ }
267+ ],
268+ "docs": [
269+ {
270+ "title": "Nest.js",
271+ "startUrl": "https://docs.nestjs.com/",
272+ },
273+ ]
274+ }
275+ ```
276+ </Tab>
277+</Tabs>
278+
279+### Jetbrains minimal setup
280+
281+Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx).
282+
283+<Tabs>
284+ <Tab title="YAML">
285+ ```yaml title="config.yaml"
286+ models:
287+ - name: LMStudio embedder
288+ provider: lmstudio
289+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
290+ roles:
291+ - embed
292+ context:
293+ - provider: docs
294+ docs:
295+ - title: Nest.js
296+ startUrl: https://docs.nestjs.com/
297+ ```
298+ </Tab>
299+ <Tab title="JSON">
300+ ```json title="config.json"
301+ {
302+ "contextProviders": [
303+ {
304+ "name": "docs",
305+ }
306+ ],
307+ "docs": [
308+ {
309+ "title": "Nest.js",
310+ "startUrl": "https://docs.nestjs.com/",
311+ },
312+ ],
313+ "embeddingsProvider": {
314+ "provider": "lmstudio",
315+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
316+ }
317+ }
318+ ```
319+ </Tab>
320+</Tabs>
321+
322+### Full-power setup (VS Code or Jetbrains)
323+
324+The following configuration example includes:
325+
326+- Examples of both public and private documentation sources
327+- A custom embeddings provider
328+- A reranker model available, with reranking parameters customized
329+- A GitHub token to enable GitHub crawling
330+
331+<Tabs>
332+ <Tab title="YAML">
333+ ```yaml title="config.yaml"
334+ models:
335+ - name: LMStudio Nomic Text
336+ provider: lmstudio
337+ model: nomic-ai/nomic-embed-text-v1.5-GGUF
338+ roles:
339+ - embed
340+ - name: Voyage Rerank-2
341+ provider: voyage
342+ apiKey: <VOYAGE_API_KEY>
343+ model: rerank-2
344+ roles:
345+ - rerank
346+ context:
347+ - provider: docs
348+ params:
349+ githubToken: <GITHUB_TOKEN>
350+ nRetrieve: 25
351+ nFinal: 5
352+ useReranking: true
353+ docs:
354+ - title: Nest.js
355+ startUrl: https://docs.nestjs.com/
356+ - title: My Private Docs
357+ startUrl: http://10.2.1.2/docs
358+ faviconUrl: http://10.2.1.2/docs/assets/favicon.ico
359+ maxDepth: 4
360+ useLocalCrawling: true
361+ ```
362+ </Tab>
363+ <Tab title="JSON">
364+ ```json title="config.json"
365+ {
366+ "contextProviders": [
367+ {
368+ "name": "docs",
369+ "params": {
370+ "githubToken": "github_...",
371+ "nRetrieve": 25,
372+ "nFinal": 5,
373+ "useReranking": true
374+ }
375+ }
376+ ],
377+ "docs": [
378+ {
379+ "title": "Nest.js",
380+ "startUrl": "https://docs.nestjs.com/"
381+ },
382+ {
383+ "title": "My Private Docs",
384+ "startUrl": "http://10.2.1.2/docs",
385+ "faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
386+ "maxDepth": 4,
387+ "useLocalCrawling": true
388+ }
389+ ],
390+ "reranker": {
391+ "name": "voyage",
392+ "params": {
393+ "model": "rerank-2",
394+ "apiKey": "<YOUR_VOYAGE_API_KEY>"
395+ }
396+ },
397+ "embeddingsProvider": {
398+ "provider": "lmstudio",
399+ "model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
400+ }
401+ }
402+ ```
403+ </Tab>
404+</Tabs>
405+
406+{/* This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../deep-dives/settings.md). */}
added docs/customize/custom-providers.mdx +816 −0
@@ -0,0 +1,816 @@
1+---
2+title: "Context Providers"
3+description: "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."
4+---
5+
6+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.
7+
8+![Context Items](/images/customize/images/context-provider-example-0c96ff77286fa970b23dddfdc1fa986a.png)
9+
10+## Context blocks[​](#context-blocks "Direct link to Context blocks")
11+
12+You can add context providers to assistants using [`context` blocks](/hub/blocks/block-types#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
13+
14+## Built-in Context Providers[​](#built-in-context-providers "Direct link to Built-in Context Providers")
15+
16+You can add any built-in context-providers in your config file as shown below:
17+
18+### `@File`[​](#file "Direct link to file")
19+
20+Reference any file in your current workspace.
21+
22+- YAML
23+- JSON
24+
25+config.yaml
26+
27+```
28+context: - provider: file
29+```
30+
31+config.json
32+
33+```json
34+{ "contextProviders": [{ "name": "file" }] }
35+```
36+
37+### `@Code`[​](#code "Direct link to code")
38+
39+Reference specific functions or classes from throughout your project.
40+
41+- YAML
42+- JSON
43+
44+config.yaml
45+
46+```
47+context: - provider: code
48+```
49+
50+config.json
51+
52+```json
53+{ "contextProviders": [{ "name": "code" }] }
54+```
55+
56+### `@Git Diff`[​](#git-diff "Direct link to git-diff")
57+
58+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.
59+
60+- YAML
61+- JSON
62+
63+config.yaml
64+
65+```
66+context: - provider: diff
67+```
68+
69+config.json
70+
71+```json
72+{ "contextProviders": [{ "name": "diff" }] }
73+```
74+
75+### `@Current File`[​](#current-file "Direct link to current-file")
76+
77+Reference the currently open file.
78+
79+- YAML
80+- JSON
81+
82+config.yaml
83+
84+```
85+context: - provider: currentFile
86+```
87+
88+config.json
89+
90+```json
91+{ "contextProviders": [{ "name": "currentFile" }] }
92+```
93+
94+### `@Terminal`[​](#terminal "Direct link to terminal")
95+
96+Reference the last command you ran in your IDE's terminal and its output.
97+
98+- YAML
99+- JSON
100+
101+config.yaml
102+
103+```
104+context: - provider: terminal
105+```
106+
107+config.json
108+
109+```json
110+{ "contextProviders": [{ "name": "terminal" }] }
111+```
112+
113+### `@Docs`[​](#docs "Direct link to docs")
114+
115+Reference the contents from any documentation site.
116+
117+- YAML
118+- JSON
119+
120+config.yaml
121+
122+```
123+context: - provider: docs
124+```
125+
126+config.json
127+
128+```json
129+{ "contextProviders": [{ "name": "docs" }] }
130+```
131+
132+Note that this will only enable the `@Docs` context provider.
133+
134+To use it, you need to add a documentation site to your config file. See the [docs](/customization/overview#documentation-context) page for more information.
135+
136+### `@Open`[​](#open "Direct link to open")
137+
138+Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
139+
140+- YAML
141+- JSON
142+
143+config.yaml
144+
145+```
146+context: - provider: open params: onlyPinned: true
147+```
148+
149+config.json
150+
151+```json
152+{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] }
153+```
154+
155+### `@Web`[​](#web "Direct link to web")
156+
157+Reference relevant pages from across the web, automatically determined from your input.
158+
159+Optionally, set `n` to limit the number of results returned (default 6).
160+
161+- YAML
162+- JSON
163+
164+config.yaml
165+
166+```
167+context: - provider: web params: n: 5
168+```
169+
170+config.json
171+
172+```json
173+{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
174+```
175+
176+### `@Codebase`[​](#codebase "Direct link to codebase")
177+
178+Reference the most relevant snippets from your codebase.
179+
180+- YAML
181+- JSON
182+
183+config.yaml
184+
185+```
186+context: - provider: codebase
187+```
188+
189+config.json
190+
191+```json
192+{ "contextProviders": [{ "name": "codebase" }] }
193+```
194+
195+Read more about indexing and retrieval [here](/customization/overview#codebase-context).
196+
197+### `@Folder`[​](#folder "Direct link to folder")
198+
199+Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
200+
201+- YAML
202+- JSON
203+
204+config.yaml
205+
206+```
207+context: - provider: folder
208+```
209+
210+config.json
211+
212+```json
213+{ "contextProviders": [{ "name": "folder" }] }
214+```
215+
216+### `@Search`[​](#search "Direct link to search")
217+
218+Reference the results of codebase search, just like the results you would get from VS Code search.
219+
220+- YAML
221+- JSON
222+
223+config.yaml
224+
225+```
226+context: - provider: search params: maxResults: 100 # optional, defaults to 200
227+```
228+
229+config.json
230+
231+```json
232+{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]}
233+```
234+
235+This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
236+
237+### `@Url`[​](#url "Direct link to url")
238+
239+Reference the markdown converted contents of a given URL.
240+
241+- YAML
242+- JSON
243+
244+config.yaml
245+
246+```
247+context: - provider: url
248+```
249+
250+config.json
251+
252+```json
253+{ "contextProviders": [{ "name": "url" }] }
254+```
255+
256+### `@Clipboard`[​](#clipboard "Direct link to clipboard")
257+
258+Reference recent clipboard items
259+
260+- YAML
261+- JSON
262+
263+config.yaml
264+
265+```
266+context: - provider: clipboard
267+```
268+
269+config.json
270+
271+```json
272+{ "contextProviders": [{ "name": "clipboard" }] }
273+```
274+
275+### `@Tree`[​](#tree "Direct link to tree")
276+
277+Reference the structure of your current workspace.
278+
279+- YAML
280+- JSON
281+
282+config.yaml
283+
284+```
285+context: - provider: tree
286+```
287+
288+config.json
289+
290+```json
291+{ "contextProviders": [{ "name": "tree" }] }
292+```
293+
294+### `@Problems`[​](#problems "Direct link to problems")
295+
296+Get Problems from the current file.
297+
298+- YAML
299+- JSON
300+
301+config.yaml
302+
303+```
304+context: - provider: problems
305+```
306+
307+config.json
308+
309+```json
310+{ "contextProviders": [{ "name": "problems" }] }
311+```
312+
313+### `@Debugger`[​](#debugger "Direct link to debugger")
314+
315+Reference the contents of the local variables in the debugger. Currently only available in VS Code.
316+
317+- YAML
318+- JSON
319+
320+config.yaml
321+
322+```
323+context: - provider: debugger params: stackDepth: 3
324+```
325+
326+config.json
327+
328+```json
329+{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] }
330+```
331+
332+Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
333+
334+### `@Repository Map`[​](#repository-map "Direct link to repository-map")
335+
336+Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
337+
338+`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.
339+
340+- YAML
341+- JSON
342+
343+config.yaml
344+
345+```
346+context: - provider: repo-map params: includeSignatures: false # default true
347+```
348+
349+config.json
350+
351+```json
352+{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]}
353+```
354+
355+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.
356+
357+In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
358+
359+This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
360+
361+### `@Operating System`[​](#operating-system "Direct link to operating-system")
362+
363+Reference the architecture and platform of your current operating system.
364+
365+- YAML
366+- JSON
367+
368+config.yaml
369+
370+```
371+context: - provider: os
372+```
373+
374+config.json
375+
376+```json
377+{ "contextProviders": [{ "name": "os" }] }
378+```
379+
380+### Model Context Protocol[​](#model-context-protocol "Direct link to Model Context Protocol")
381+
382+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:
383+
384+- YAML
385+- JSON
386+
387+config.yaml
388+
389+```
390+mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sqlite - --db-path - /Users/NAME/test.db
391+```
392+
393+config.json
394+
395+```json
396+{
397+ "experimental": {
398+ "modelContextProtocolServers": [
399+ {
400+ "transport": {
401+ "type": "stdio",
402+ "command": "uvx",
403+ "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"]
404+ }
405+ }
406+ ]
407+ }
408+}
409+```
410+
411+You'll then be able to type "@" and see "MCP" in the context providers dropdown.
412+
413+### `@Issue`[​](#issue "Direct link to issue")
414+
415+Reference the conversation in a GitHub issue.
416+
417+- YAML
418+- JSON
419+
420+config.yaml
421+
422+```
423+context: - provider: issue params: repos: - owner: continuedev repo: continue githubToken: ghp_xxx
424+```
425+
426+config.json
427+
428+```json
429+{
430+ "contextProviders": [
431+ {
432+ "name": "issue",
433+ "params": {
434+ "repos": [{ "owner": "continuedev", "repo": "continue" }],
435+ "githubToken": "ghp_xxx"
436+ }
437+ }
438+ ]
439+}
440+```
441+
442+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.
443+
444+### `@Database`[​](#database "Direct link to database")
445+
446+Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
447+
448+- YAML
449+- JSON
450+
451+config.yaml
452+
453+```
454+context: - provider: database params: connections: - name: examplePostgres connection_type: postgres connection: user: username host: localhost database: exampleDB password: yourPassword port: 5432 - name: exampleMssql connection_type: mssql connection: user: username server: localhost database: exampleDB password: yourPassword - name: exampleSqlite connection_type: sqlite connection: filename: /path/to/your/sqlite/database.db
455+```
456+
457+config.json
458+
459+```json
460+{
461+ "contextProviders": [
462+ {
463+ "name": "database",
464+ "params": {
465+ "connections": [
466+ {
467+ "name": "examplePostgres",
468+ "connection_type": "postgres",
469+ "connection": {
470+ "user": "username",
471+ "host": "localhost",
472+ "database": "exampleDB",
473+ "password": "yourPassword",
474+ "port": 5432
475+ }
476+ },
477+ {
478+ "name": "exampleMssql",
479+ "connection_type": "mssql",
480+ "connection": {
481+ "user": "username",
482+ "server": "localhost",
483+ "database": "exampleDB",
484+ "password": "yourPassword"
485+ }
486+ },
487+ {
488+ "name": "exampleSqlite",
489+ "connection_type": "sqlite",
490+ "connection": { "filename": "/path/to/your/sqlite/database.db" }
491+ }
492+ ]
493+ }
494+ }
495+ ]
496+}
497+```
498+
499+Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type.
500+
501+Available connection types:
502+
503+- `postgres`
504+- `mysql`
505+- `sqlite`
506+
507+### `@Postgres`[​](#postgres "Direct link to postgres")
508+
509+Reference the schema of a table, and some sample rows
510+
511+- YAML
512+- JSON
513+
514+config.yaml
515+
516+```
517+context: - provider: postgres params: host: localhost port: 5436 user: myuser password: catsarecool database: animals schema: public sampleRows: 3
518+```
519+
520+config.json
521+
522+```json
523+{
524+ "contextProviders": [
525+ {
526+ "name": "postgres",
527+ "params": {
528+ "host": "localhost",
529+ "port": 5436,
530+ "user": "myuser",
531+ "password": "catsarecool",
532+ "database": "animals",
533+ "schema": "public",
534+ "sampleRows": 3
535+ }
536+ }
537+ ]
538+}
539+```
540+
541+The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`.
542+
543+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.
544+
545+[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
546+
547+### `@Google`[​](#google "Direct link to google")
548+
549+Reference the results of a Google search.
550+
551+- YAML
552+- JSON
553+
554+config.yaml
555+
556+```
557+context: - provider: google params: serperApiKey: <YOUR_SERPER.DEV_API_KEY>
558+```
559+
560+config.json
561+
562+```json
563+{
564+ "contextProviders": [
565+ {
566+ "name": "google",
567+ "params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" }
568+ }
569+ ]
570+}
571+```
572+
573+For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
574+
575+Note: You can get an API key for free at [serper.dev](https://serper.dev).
576+
577+### `@Gitlab Merge Request`[​](#gitlab-merge-request "Direct link to gitlab-merge-request")
578+
579+Reference an open MR for this branch on GitLab.
580+
581+- YAML
582+- JSON
583+
584+config.yaml
585+
586+```
587+context: - provider: gitlab-mr params: token: "..."
588+```
589+
590+config.json
591+
592+```json
593+{ "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] }
594+```
595+
596+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.
597+
598+#### Using Self-Hosted GitLab[​](#using-self-hosted-gitlab "Direct link to Using Self-Hosted GitLab")
599+
600+You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
601+
602+- YAML
603+- JSON
604+
605+config.yaml
606+
607+```
608+context: - provider: gitlab-mr params: token: "..." domain: "gitlab.example.com"
609+```
610+
611+config.json
612+
613+```json
614+{
615+ "contextProviders": [
616+ {
617+ "name": "gitlab-mr",
618+ "params": { "token": "...", "domain": "gitlab.example.com" }
619+ }
620+ ]
621+}
622+```
623+
624+#### Filtering Comments[​](#filtering-comments "Direct link to Filtering Comments")
625+
626+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`.
627+
628+### `@Jira`[​](#jira "Direct link to jira")
629+
630+Reference the conversation in a Jira issue.
631+
632+- YAML
633+- JSON
634+
635+config.yaml
636+
637+```
638+context: - provider: jira params: domain: company.atlassian.net token: ATATT...
639+```
640+
641+config.json
642+
643+```json
644+{
645+ "contextProviders": [
646+ {
647+ "name": "jira",
648+ "params": { "domain": "company.atlassian.net", "token": "ATATT..." }
649+ }
650+ ]
651+}
652+```
653+
654+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.
655+
656+#### Jira Datacenter Support[​](#jira-datacenter-support "Direct link to Jira Datacenter Support")
657+
658+This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property.
659+
660+- YAML
661+- JSON
662+
663+config.yaml
664+
665+```
666+context: - provider: jira params: apiVersion: "2"
667+```
668+
669+config.json
670+
671+```json
672+{ "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] }
673+```
674+
675+#### Issue Query[​](#issue-query "Direct link to Issue Query")
676+
677+By default, the following query will be used to find issues:
678+
679+```
680+assignee = currentUser() AND resolution = Unresolved order by updated DESC
681+```
682+
683+You can override this query by setting the `issueQuery` parameter.
684+
685+#### Max results[​](#max-results "Direct link to Max results")
686+
687+You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
688+
689+### `@Discord`[​](#discord "Direct link to discord")
690+
691+Reference the messages in a Discord channel.
692+
693+- YAML
694+- JSON
695+
696+config.yaml
697+
698+```
699+context: - provider: discord params: discordKey: "bot token" guildId: "1234567890" channels: - id: "123456" name: "example-channel" - id: "678901" name: "example-channel-2"
700+```
701+
702+config.json
703+
704+```json
705+{
706+ "contextProviders": [
707+ {
708+ "name": "discord",
709+ "params": {
710+ "discordKey": "bot token",
711+ "guildId": "1234567890",
712+ "channels": [
713+ { "id": "123456", "name": "example-channel" },
714+ { "id": "678901", "name": "example-channel-2" }
715+ ]
716+ }
717+ }
718+ ]
719+}
720+```
721+
722+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.
723+
724+### `@HTTP`[​](#http "Direct link to http")
725+
726+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.
727+
728+- YAML
729+- JSON
730+
731+config.yaml
732+
733+```
734+context: - provider: http params: url: "https://api.example.com/v1/users"
735+```
736+
737+config.json
738+
739+```json
740+{
741+ "contextProviders": [
742+ { "name": "http", "params": { "url": "https://api.example.com/v1/users" } }
743+ ]
744+}
745+```
746+
747+The receiving URL should expect to receive the following parameters:
748+
749+POST parameters
750+
751+```json
752+{ query: string, fullInput: string}
753+```
754+
755+The response 200 OK should be a JSON object with the following structure:
756+
757+Response
758+
759+```
760+[ { "name": "", "description": "", "content": "" }]// OR{ "name": "", "description": "", "content": ""}
761+```
762+
763+### `@Commits`[​](#commits "Direct link to commits")
764+
765+Reference specific git commit metadata and diff or all of the recent commits.
766+
767+- YAML
768+- JSON
769+
770+config.yaml
771+
772+```
773+context: - provider: commit params: Depth: 50 LastXCommitsDepth: 10
774+```
775+
776+config.json
777+
778+```json
779+{
780+ "contextProviders": [
781+ { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } }
782+ ]
783+}
784+```
785+
786+The depth is how many commits will be loaded into the submenu, defaults to 50. The LastXCommitsDepth is how many recent commits will be included, defaults to 10.
787+
788+### `@Greptile`[​](#greptile "Direct link to greptile")
789+
790+Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
791+
792+- YAML
793+- JSON
794+
795+config.yaml
796+
797+```
798+context: - provider: greptile params: greptileToken: "..." githubToken: "..."
799+```
800+
801+config.json
802+
803+```json
804+{
805+ "contextProviders": [
806+ {
807+ "name": "greptile",
808+ "params": { "GreptileToken": "...", "GithubToken": "..." }
809+ }
810+ ]
811+}
812+```
813+
814+### Requesting Context Providers[​](#requesting-context-providers "Direct link to Requesting Context Providers")
815+
816+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/customize/deep-dives/_apply.mdx +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/customize/deep-dives/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Deep Dives",
3+ "position": 3
4+}
added docs/customize/deep-dives/autocomplete.mdx +164 −0
@@ -0,0 +1,164 @@
1+---
2+title: "Autocomplete"
3+description: "Deep dive into Continue's autocomplete functionality and configuration"
4+keywords: [autocomplete]
5+---
6+
7+### Setting up with Codestral (recommended)
8+
9+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:
10+
11+<Tabs>
12+ <Tab title="Hub">
13+ [Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
14+ </Tab>
15+ <Tab title="YAML">
16+ ```yaml title="config.yaml"
17+ models:
18+ - name: Codestral
19+ provider: mistral
20+ model: codestral-latest
21+ apiKey: <YOUR_CODESTRAL_API_KEY>
22+ roles:
23+ - autocomplete
24+ ```
25+ </Tab>
26+ <Tab title="JSON">
27+ ```json title="config.json"
28+ {
29+ "tabAutocompleteModel": {
30+ "title": "Codestral",
31+ "provider": "mistral",
32+ "model": "codestral-latest",
33+ "apiKey": "<YOUR_CODESTRAL_API_KEY>"
34+ }
35+ }
36+ ```
37+ </Tab>
38+</Tabs>
39+
40+<Tip>
41+ **Codestral API Key**: The API keys for Codestral and the general Mistral APIs
42+ are different. If you are using Codestral, you probably want a Codestral API
43+ key, but if you are sharing the key as a team or otherwise want to use
44+ `api.mistral.ai`, then make sure to set `"apiBase":
45+ "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
46+</Tip>
47+
48+### Setting up with Ollama (default)
49+
50+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:
51+
52+```bash
53+ollama run qwen2.5-coder:1.5b
54+```
55+
56+Then, add the model to your configuration:
57+
58+<Tabs>
59+ <Tab title="Hub">
60+ [Ollama Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)
61+ </Tab>
62+ <Tab title="YAML">
63+ ```yaml title="config.yaml"
64+ models:
65+ - name: Qwen 1.5b Autocomplete Model
66+ provider: ollama
67+ model: qwen2.5-coder:1.5b
68+ roles:
69+ - autocomplete
70+ ```
71+ </Tab>
72+ <Tab title="JSON">
73+ ```json title="config.json"
74+ {
75+ "tabAutocompleteModel": {
76+ "title": "Qwen 1.5b Autocomplete Model",
77+ "provider": "ollama",
78+ "model": "qwen2.5-coder:1.5b",
79+ }
80+ }
81+ ```
82+ </Tab>
83+</Tabs>
84+
85+Once the model has been downloaded, you should begin to see completions in VS Code.
86+
87+## Configuration Options
88+
89+### Hub Autocomplete models
90+
91+Explore autocomplete model configurations on [the hub](https://hub.continue.dev/explore/models?roles=autocomplete)
92+
93+### Autocomplete User Settings
94+
95+{/* - `Use autocomplete cache`: If on, caches completions */}
96+The following settings can be configured for autocompletion in the IDE extension [User Settings Page](../settings.md):
97+
98+- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
99+- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt"
100+
101+### `config.json` Configuration
102+
103+The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](/reference) for more details.
104+
105+## FAQs
106+
107+### I want better completions, should I use GPT-4?
108+
109+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.
110+
111+### I'm not seeing any completions
112+
113+Follow these steps to ensure that everything is set up correctly:
114+
115+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).
116+2. Make sure you have downloaded Ollama.
117+3. Run `ollama run qwen2.5-coder:1.5b` to verify that the model is downloaded.
118+4. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere.
119+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.
120+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)
121+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.
122+
123+### Completions are only ever single-line
124+
125+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.
126+
127+### Can I configure a "trigger key" for autocomplete?
128+
129+Yes, in VS Code, if you don't want to be shown suggestions automatically you can:
130+
131+1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions
132+2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger`
133+3. Click the "+" icon to add a new keybinding
134+4. Press the key combination you want to use to trigger suggestions (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>)
135+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
136+
137+### Is there a shortcut to accept one line at a time?
138+
139+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:
140+
141+1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
142+2. Search for `editor.action.inlineSuggest.acceptNextLine`.
143+3. Set the key binding to `Tab`.
144+4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
145+ 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`.
146+ If you need to apply all the code, just press `Tab` multiple times.
147+
148+### How to turn off autocomplete
149+
150+#### VS Code
151+
152+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.
153+
154+Alternatively, open VS Code settings, search for "Continue" and uncheck the box for "Enable Tab Autocomplete".
155+
156+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.
157+
158+#### JetBrains
159+
160+Open Settings -> Tools -> Continue and uncheck the box for "Enable Tab Autocomplete".
161+
162+#### Feedback
163+
164+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/customize/deep-dives/configuration.mdx +85 −0
@@ -0,0 +1,85 @@
1+---
2+title: "Configuration"
3+description: Configuration
4+keywords: [config, settings, customize]
5+---
6+
7+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.
8+
9+![configure an assistant](/images/configure-continue.png)
10+
11+## Hub Assistants
12+
13+Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
14+
15+## YAML Config
16+
17+Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
18+
19+- `~/.continue/config.yaml` (MacOS / Linux)
20+- `%USERPROFILE%\.continue\config.yaml` (Windows)
21+
22+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`.
23+
24+![local-config-open-steps](/images/local-config-open-steps.png)
25+
26+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.
27+
28+See the full reference for `config.yaml` [here](/reference).
29+
30+## Deprecated configuration methods
31+
32+<Info>
33+ View the `config.json` migration guide [here](../yaml-migration.mdx)
34+</Info>
35+
36+- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`
37+- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
38+- [`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:
39+ - `~/.continue/config.ts` (MacOS / Linux)
40+ - `%USERPROFILE%\.continue\config.ts` (Windows)
41+
42+### `.continuerc.json`
43+
44+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`.
45+
46+Example
47+
48+```json title=".continuerc.json"
49+{
50+ "tabAutocompleteOptions": {
51+ "disable": true
52+ },
53+ "mergeBehavior": "overwrite"
54+}
55+```
56+
57+### `config.ts`
58+
59+`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).
60+
61+`config.ts` must export a `modifyConfig` function, like:
62+
63+```ts title="config.ts"
64+export function modifyConfig(config: Config): Config {
65+ config.slashCommands?.push({
66+ name: "commit",
67+ description: "Write a commit message",
68+ run: async function* (sdk) {
69+ // The getDiff function takes a boolean parameter that indicates whether
70+ // to include unstaged changes in the diff or not.
71+ const diff = await sdk.ide.getDiff(false); // Pass false to exclude unstaged changes
72+ for await (const message of sdk.llm.streamComplete(
73+ `${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'):`,
74+ new AbortController().signal,
75+ {
76+ maxTokens: 20,
77+ },
78+ )) {
79+ yield message;
80+ }
81+ },
82+ });
83+ return config;
84+}
85+```
added docs/customize/deep-dives/development-data.mdx +19 −0
@@ -0,0 +1,19 @@
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+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.
8+
9+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)
10+
11+## Custom Data Destinations
12+
13+You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories.
14+
15+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).
16+
17+See more details about adding `data` blocks to your configuration files in the [YAML specification](/reference#data)
18+
19+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/customize/deep-dives/mcp.mdx +216 −0
@@ -0,0 +1,216 @@
1+---
2+title: MCP
3+description: MCP use and customization
4+keywords: [tool, use, function calling, claude, automatic]
5+---
6+
7+# MCP
8+
9+As AI systems get better, they're still held back by their training data and
10+can't access real-time information or specialized tools. The [Model Context
11+Protocol](https://modelcontextprotocol.io/introduction) (MCP) fixes this by
12+letting AI models connect with outside data sources, tools, and environments.
13+This allows smooth sharing of information and abilities between AI systems and
14+the wider digital world. This standard, created by Anthropic to bring together
15+prompts, context, and tool use, is key for building truly useful AI experiences
16+that can be set up with custom tools.
17+
18+## How it works
19+
20+Currently custom tools can be configured using the Model Context
21+Protocol standard to unify prompts, context, and tool use.
22+
23+MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can
24+explore available MCP server blocks
25+[here](https://hub.continue.dev/explore/mcp).
26+
27+<Info>MCP can only be used in the **agent** mode.</Info>
28+
29+## Quick Start
30+
31+Below is a quick example of setting up a new MCP server for use in your assistant:
32+
33+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
34+2. Add a file called `playwright-mcp.yaml` to this folder.
35+3. Write the following contents to `playwright-mcp.yaml` and save.
36+
37+```yaml title=".continue/mcpServers/playwright-mcp.yaml"
38+name: Playwright mcpServer
39+version: 0.0.1
40+schema: v1
41+mcpServers:
42+ - name: Browser search
43+ command: npx
44+ args:
45+ - "@playwright/mcp@latest"
46+```
47+
48+Now test your MCP server by prompting the following command:
49+
50+```
51+Open the browser and navigate Hacker News. Save the top 10 headlines in a hn.txt file.
52+```
53+
54+The result will be a generated file called `hn.txt` in the current working directory.
55+
56+![playwright mcp](/images/mcp-playwright.png)
57+
58+## Continue Documentation Search
59+
60+You can set up an MCP server to search the Continue documentation directly from your agent. This is particularly useful for getting help with Continue configuration and features.
61+
62+1. Create a folder called `.continue/mcpServers` at the top level of your workspace
63+2. Add a file called `continue-docs-mcp.yaml` to this folder
64+3. Write the following contents and save:
65+
66+```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
67+name: Continue Documentation MCP
68+version: 0.0.1
69+schema: v1
70+mcpServers:
71+ - name: Continue Docs Search
72+ type: stdio
73+ command: npx
74+ args:
75+ - mint-mcp
76+ - add
77+ - continue-docs
78+```
79+
80+Now you can search the Continue documentation by asking questions like:
81+
82+```
83+Search for model setup instructions in the Continue docs
84+```
85+
86+```
87+Find documentation about context providers
88+```
89+
90+```
91+How do I configure autocomplete in Continue?
92+```
93+
94+The MCP server will search the Continue documentation and provide relevant information to help with your questions.
95+
96+For detailed setup instructions and troubleshooting, see the [Continue MCP Reference](/reference/continue-mcp).
97+
98+## Using MCP Servers
99+
100+To set up your own MCP server, read the [MCP
101+quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
102+`mcpServers`
103+block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a local MCP
104+server block to your [config file](./configuration.md):
105+
106+<Tabs>
107+ <Tab title="YAML">
108+ ```yaml title="config.yaml"
109+ mcpServers:
110+ - name: SQLite MCP
111+ command: npx
112+ args:
113+ - "-y"
114+ - "mcp-sqlite"
115+ - "/path/to/your/database.db"
116+
117+````
118+</Tab>
119+<Tab title="JSON">
120+```json title="config.json"
121+{
122+ "experimental": {
123+ "modelContextProtocolServers": [
124+ {
125+ "transport": {
126+ "type": "stdio",
127+ "command": "uvx",
128+ "args": ["mcp-server-sqlite", "--db-path", "/path/to/your/database.db"]
129+ }
130+ }
131+ ]
132+ }
133+}
134+````
135+
136+ </Tab>
137+</Tabs>
138+
139+### Syntax
140+
141+MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
142+
143+- `name` (**required**): A display name for the MCP server.
144+- `command` (**required**): The command to run to start the MCP server.
145+- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
146+- `args` (optional): Arguments to pass to the command.
147+- `env` (optional): Secrets to be injected into the command as environment variables.
148+
149+### Transport Types
150+
151+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.
152+
153+#### Server-Sent Events (SSE) Transport
154+
155+For real-time streaming communication, use the SSE transport:
156+
157+```yaml
158+mcpServers:
159+ - name: Name
160+ type: sse
161+ url: https://....
162+```
163+
164+#### Standard Input/Output (stdio)
165+
166+For local MCP servers that communicate via standard input and output:
167+
168+```yaml
169+mcpServers:
170+ - name: Name
171+ type: stdio
172+ command: npx
173+ args:
174+ - "@modelcontextprotocol/server-sqlite"
175+ - "/path/to/your/database.db"
176+```
177+
178+#### Streamable HTTP Transport
179+
180+For standard HTTP-based communication with streaming capabilities:
181+
182+```yaml
183+mcpServers:
184+ - name: Name
185+ type: streamable-http
186+ url: https://....
187+```
188+
189+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.
190+
191+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).
192+
193+### Working with Secrets
194+
195+With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets
196+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`.
197+
198+```yaml
199+mcpServers:
200+ - name: Supabase MCP
201+ command: npx
202+ args:
203+ - -y
204+ - "@supabase/mcp-server-supabase@latest"
205+ - --access-token
206+ - ${{ secrets.SUPABASE_TOKEN }}
207+ env:
208+ SUPABASE_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
209+ - name: GitHub
210+ command: npx
211+ args:
212+ - "-y"
213+ - "@modelcontextprotocol/server-github"
214+ env:
215+ GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
216+```
added docs/customize/deep-dives/prompts.mdx +61 −0
@@ -0,0 +1,61 @@
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
9+ consistency we now recommend using the same Markdown format as
10+ [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so
11+ that they are manually triggered.
12+</Info>
13+
14+### Quick Start
15+
16+Below is a quick example of setting up a prompt file:
17+
18+1. Create a folder called `.continue/rules` at the top level of your workspace
19+2. Add a file called `review-prompt.md` to this folder.
20+3. Write the following contents to `review-prompt.md` and save.
21+
22+```md title="review-prompt.md"
23+---
24+name: Redux best practices review
25+alwaysApply: false
26+---
27+
28+Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/.
29+```
30+
31+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.
32+
33+## Further Examples
34+
35+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).
36+
37+### Security review
38+
39+```md title="security-review.md"
40+---
41+name: Security best practices review
42+alwaysApply: false
43+---
44+
45+Review the changes in the current git diff for these security best practices:
46+
47+- Does the architecture follow security-by-design principles?
48+- Are there potential security vulnerabilities in the system design?
49+- Is sensitive data handled appropriately throughout the lifecycle?
50+```
51+
52+### Pull in commonly used files for tasks
53+
54+```md title="typeorm-entity-generator.md"
55+---
56+name: Generate a new TypeORM entity
57+alwaysApply: false
58+---
59+
60+Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements:
61+```
added docs/customize/deep-dives/rules.mdx +167 −0
@@ -0,0 +1,167 @@
1+---
2+title: "Rules"
3+description: "Rules are used to provide instructions to the model for Chat, Edit, and Agent requests."
4+keywords: [rules, .continuerules, system, prompt, message]
5+---
6+
7+Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
8+
9+<Info>
10+ Rules are not included in [autocomplete](./autocomplete.mdx) or
11+ [apply](../model-roles/apply.mdx).
12+</Info>
13+
14+## How it works
15+
16+You can view the current rules by clicking the pen icon above the main toolbar:
17+
18+![rules input toolbar section](/images/notch-rules.png)
19+
20+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)).
21+
22+## Quick Start
23+
24+Below is a quick example of setting up a new rule file:
25+
26+1. Create a folder called `.continue/rules` at the top level of your workspace
27+2. Add a file called `pirates-rule.md` to this folder.
28+3. Write the following contents to `pirates-rule.md` and save.
29+
30+```md title=".continue/rules/pirates-rule.md"
31+---
32+name: Pirate rule
33+---
34+
35+- Talk like a pirate.
36+```
37+
38+Now test your rules by asking a question about a file in chat.
39+
40+![pirate rule test](/images/pirate-rule-test.png)
41+
42+## Creating rules blocks
43+
44+Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
45+
46+![add local rules button](/images/add-local-rules.png)
47+
48+<Info>
49+**Automatically create local rule blocks**: When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled.
50+
51+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.
52+
53+</Info>
54+
55+Rules can also be added to an Assistant on the Continue Hub.
56+
57+Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
58+
59+### Syntax
60+
61+<Info>
62+ Rules were originally defined in YAML format (demonstrated below), but we
63+ introduced Markdown for easier editing. While both are still supported, we
64+ recommend Markdown.
65+</Info>
66+
67+Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
68+
69+- `name` (**required** for YAML): A display name/title for the rule
70+- `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"]`).
71+- `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 '.*';$"]`).
72+- `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.
73+- `alwaysApply`: Determines whether the rule is always included. Behavior is described below:
74+ - `true`: Always included, regardless of file context
75+ - `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on its description
76+ - `undefined` (default behavior): Included if no globs exist OR globs exist and match
77+
78+<Tabs>
79+<Tab title="Markdown">
80+```md title="doc-standards.md"
81+---
82+name: Documentation Standards
83+globs: docs/**/*.{md,mdx}
84+alwaysApply: false
85+description: Standards for writing and maintaining Continue Docs
86+---
87+
88+# Continue Docs Standards
89+
90+- Follow Docusaurus documentation standards
91+- Include YAML frontmatter with title, description, and keywords
92+- Use consistent heading hierarchy starting with h2 (##)
93+- Include relevant Admonition components for tips, warnings, and info
94+- Use descriptive alt text for images
95+- Include cross-references to related documentation
96+- Reference other docs with relative paths
97+- Keep paragraphs concise and scannable
98+- Use code blocks with appropriate language tags
99+
100+````
101+</Tab>
102+
103+<Tab title="YAML">
104+```yaml title="doc-standards.yaml"
105+name: Documentation Standards
106+version: 1.0.0
107+schema: v1
108+
109+rules:
110+ - name: Documentation Standards
111+ globs: docs/**/*.{md,mdx}
112+ alwaysApply: false
113+ rule: >
114+ - Follow Docusaurus documentation standards
115+ - Include YAML frontmatter with title, description, and keywords
116+ - Use consistent heading hierarchy starting with h2 (##)
117+ - Include relevant Admonition components for tips, warnings, and info
118+ - Use descriptive alt text for images
119+ - Include cross-references to related documentation
120+ - Reference other docs with relative paths
121+ - Keep paragraphs concise and scannable
122+ - Use code blocks with appropriate language tags
123+````
124+
125+</Tab>
126+</Tabs>
127+
128+### `.continue/rules` folder
129+
130+You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files.
131+
132+Rules files are loaded in lexicographical order, so you can prefix them with numbers to control the order in which they are applied. For example: `01-general.md`, `02-frontend.md`, `03-backend.md`.
133+
134+### Example: TypeScript Rules
135+
136+```md title=".continue/rules/typescript.md"
137+---
138+name: TypeScript Best Practices
139+globs: ["**/*.ts", "**/*.tsx"]
140+---
141+
142+# TypeScript Rules
143+
144+- Always use TypeScript interfaces for object shapes
145+- Use type aliases sparingly, prefer interfaces
146+- Include proper JSDoc comments for public APIs
147+- Use strict null checks
148+- Prefer readonly arrays and properties where possible
149+- modularize components into smaller, reusable pieces
150+```
151+
152+### Chat System Message
153+
154+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.
155+
156+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).
157+
158+Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
159+
160+### `.continuerules`
161+
162+<Warning>
163+ `.continuerules` will be deprecated in a future release. Please use the
164+ `.continue/rules` folder instead.
165+</Warning>
166+
167+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/customize/deep-dives/rules.mdx.backup +181 −0
@@ -0,0 +1,181 @@
1+---
2+title: "Rules"
3+description: Rules are used to provide instructions to the model for Chat, Edit, and Agent requests.
4+keywords: [rules, .continuerules, system, prompt, message]
5+---
6+
7+Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
8+
9+<Info> Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
10+</Info>
11+
12+## How it works
13+
14+You can view the current rules by clicking the pen icon above the main toolbar:
15+
16+![rules input toolbar section](/images/notch-rules.png)
17+
18+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)).
19+
20+## Quick Start
21+
22+Below is a quick example of setting up a new rule file:
23+
24+1. Create a folder called `.continue/rules` at the top level of your workspace
25+2. Add a file called `pirates-rule.md` to this folder.
26+3. Write the following contents to `pirates-rule.md` and save.
27+
28+```md title=".continue/rules/pirates-rule.md"
29+---
30+name: Pirate rule
31+---
32+
33+- Talk like a pirate.
34+```
35+
36+Now test your rules by asking a question about a file in chat.
37+
38+![pirate rule test](/images/pirate-rule-test.png)
39+
40+## Creating `rules` blocks
41+
42+Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
43+
44+![add local rules button](/images/add-local-rules.png)
45+
46+<Info>
47+Automatically create local rule blocks: When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled.
48+
49+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.
50+</Info>
51+
52+Rules can also be added to an Assistant on the Continue Hub.
53+
54+Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
55+
56+### Syntax
57+
58+<Info>
59+
60+Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown.
61+
62+</Info>
63+
64+Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
65+
66+- `name` (**required** for YAML): A display name/title for the rule
67+- `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"]`).
68+- `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 '.*';$"]`).
69+- `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.
70+- `alwaysApply`: Determines whether the rule is always included. Behavior is described below:
71+ - `true`: Always included, regardless of file context
72+ - `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description
73+ - `undefined` (default behavior): Included if no globs exist OR globs exist and match
74+
75+<Tabs>
76+ <Tab title="Markdown">
77+ ```md title="doc-standards.md"
78+ ---
79+ name: Documentation Standards
80+ globs: docs/**/*.{md,mdx}
81+ alwaysApply: false
82+ description: Standards for writing and maintaining Continue Docs
83+ ---
84+
85+ # Continue Docs Standards
86+
87+ - Follow Docusaurus documentation standards
88+ - Include YAML frontmatter with title, description, and keywords
89+ - Use consistent heading hierarchy starting with h2 (##)
90+ - Include relevant Admonition components for tips, warnings, and info
91+ - Use descriptive alt text for images
92+ - Include cross-references to related documentation
93+ - Reference other docs with relative paths
94+ - Keep paragraphs concise and scannable
95+ - Use code blocks with appropriate language tags
96+ ```
97+ </Tab>
98+ <Tab title="YAML">
99+
100+ ```yaml title="doc-standards.yaml"
101+ name: Documentation Standards
102+ version: 1.0.0
103+ schema: v1
104+
105+ rules:
106+ - name: Documentation Standards
107+ globs: docs/**/*.{md,mdx}
108+ alwaysApply: false
109+ rule: >
110+ - Follow Docusaurus documentation standards
111+ - Include YAML frontmatter with title, description, and keywords
112+ - Use consistent heading hierarchy starting with h2 (##)
113+ - Include relevant Admonition components for tips, warnings, and info
114+ - Use descriptive alt text for images
115+ - Include cross-references to related documentation
116+ - Reference other docs with relative paths
117+ - Keep paragraphs concise and scannable
118+ - Use code blocks with appropriate language tags
119+ ```
120+ </Tab>
121+
122+ </Tabs>
123+
124+### `.continue/rules` folder
125+
126+You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files.
127+
128+```md title=".continue/rules/new-rule.md"
129+---
130+name: New rule
131+---
132+
133+Always give concise responses
134+```
135+
136+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`.
137+
138+### Examples
139+
140+If you want concise answers:
141+
142+```md title=".continue/rules/concise-rule.md"
143+---
144+name: Always give concise answers
145+---
146+
147+Please provide concise answers. Don't explain obvious concepts.
148+You can assume that I am knowledgable about most programming topics.
149+```
150+
151+If you want to ensure certain practices are followed, for example in React:
152+
153+```md title=".continue/rules/functional-rule.md"
154+---
155+name: Always use functional components
156+---
157+
158+Whenever you are writing React code, make sure to
159+
160+- use functional components instead of class components
161+- use hooks for state management
162+- define an interface for your component props
163+- use Tailwind CSS for styling
164+- modularize components into smaller, reusable pieces
165+```
166+
167+### Chat System Message
168+
169+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.
170+
171+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).
172+
173+Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
174+
175+### `.continuerules`
176+
177+<Warning>
178+`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
179+</Warning>
180+
181+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/customize/deep-dives/slash-commands.mdx +30 −0
@@ -0,0 +1,30 @@
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+![actions](/images/actions.gif)
8+
9+## Slash commands
10+
11+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.
12+![slash-commands](/images/slash-commands.png)
13+
14+Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code.
15+
16+## Prompts
17+
18+### Assistant prompt blocks
19+
20+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).
21+
22+### Prompt files
23+
24+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.
25+
26+Learn more about prompt files [here](./prompts.md)
27+
28+### MCP Server prompts
29+
30+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/customize/deep-dives/vscode-actions.mdx +46 −0
@@ -0,0 +1,46 @@
1+---
2+title: VS Code Actions
3+keywords: [vscode, quick actions, quick, actions]
4+---
5+
6+### Other triggers for Actions (VS Code)
7+
8+<Info>Currently all of these are only available in VS Code</Info>
9+
10+To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
11+
12+## Quick actions
13+
14+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.
15+
16+![quick-actions](/images/quick-actions.png)
17+
18+By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
19+
20+## Right click actions
21+
22+Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
23+
24+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.
25+
26+Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx).
27+
28+![context-menu](/images/context-menu.png)
29+
30+## Debug action
31+
32+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.
33+
34+```
35+I got the following error, can you please help explain how to fix it?
36+
37+[ERROR_MESSAGE]
38+```
39+
40+## Quick fixes
41+
42+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.
43+
44+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]”.
45+
46+![ask-continue](/images/ask-continue.png)
added docs/customize/model-providers/_category_.json +4 −0
@@ -0,0 +1,4 @@
1+{
2+ "label": "Model Providers",
3+ "position": 4
4+}
added docs/customize/model-providers/assets/watsonx2.gif +0 −0

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

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

Binary content is not shown. View the file.

deleted docs/docs/guides/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](../customization/mcp-tools.mdx), and [Prompts](../customize/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/guides/custom-code-rag.mdx +0 −176
@@ -1,176 +0,0 @@
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](../customize/context/codebase.mdx) out of the box, you might wish to set up your own vector database and build a custom retrieval-augmented generation (RAG) system. This can allow you to access code that is not available locally, to index code a single time across all users, or to include custom logic. In this guide, we'll walk you through the steps it takes to build this.
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).
deleted docs/docs/guides/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/guides/integration/_category_.json +0 −9
@@ -1,9 +0,0 @@
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-}
deleted docs/docs/guides/languages/_category_.json +0 −9
@@ -1,9 +0,0 @@
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-}
deleted docs/docs/guides/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](../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>
deleted docs/docs/guides/ollama-guide.mdx +0 −147
@@ -1,147 +0,0 @@
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._
deleted docs/docs/guides/running-continue-without-internet.mdx +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](../customize/settings.md) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](../customize/telemetry.mdx).
11-3. Also in `config.json`, set the default model to a local model. You can available options [here](../customize/model-providers/top-level/openai.mdx).
12-4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
deleted docs/docs/guides/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](/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/hub/00-introduction.mdx +0 −15
@@ -1,15 +0,0 @@
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.
deleted docs/docs/hub/assistants/00-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 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.
deleted docs/docs/hub/assistants/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Assistants",
3- "position": 2
4-}
deleted docs/docs/hub/assistants/create-an-assistant.md +0 −37
@@ -1,37 +0,0 @@
1----
2-title: Create an Assistant
3-sidebar_label: Create an Assistant
4-description: How to create a custom AI code assistant
5-keywords: [assistants, creation, guide]
6----
7-
8-# Create an assistant
9-
10-## Remix an assistant
11-
12-You should remix an assistant if you want to use it after some modifications.
13-
14-By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
15-
16-![Remix Assistant Button](/img/hub/assistant-remix-button.png)
17-
18-Once here, you’ll be able to
19-
20-1. add or remove blocks in YAML configuration
21-2. change the name, description, icon, etc.
22-
23-Clicking “Create assistant” will make this assistant available for use.
24-
25-## Create an assistant from scratch
26-
27-To create an assistant from scratch, select “New assistant” in the top bar.
28-
29-![New assistant button](/img/hub/assistant-new-button.png)
30-
31-Choose a name, slug, description, and icon for your assistant.
32-
33-The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar.
34-
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.
36-
37-![New assistant YAML](/img/hub/assistant-create-yaml.png)
deleted docs/docs/hub/assistants/edit-an-assistant.md +0 −26
@@ -1,26 +0,0 @@
1----
2-title: Edit an Assistant
3-sidebar_label: Edit an Assistant
4-description: How to edit a custom AI coding assistant.
5-keywords: [assistants, creation, guide]
6----
7-
8-# Edit an Assistant
9-
10-New versions of an assistant can be created and published using the sidebar.
11-
12-![Remix Assistant Button](/img/hub/assistant-create-sidebar.png)
13-
14-First, select an assistant from the dropdown at the top.
15-
16-While editing an assistant, you can explore the hub and click "Add Block" from a block page to add it to your assistant.
17-
18-For blocks that require secret values like API keys, you will see a small notification on the block's tile in the sidebar that will indicate if action is needed.
19-
20-To delete a block, click the trash icon.
21-
22-If a block you want to use does not exist yet, you can [create a new block](../blocks/create-a-block.md).
23-
24-When you are done editing, click "Publish" to publish a new version of the assistant.
25-
26-Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant.
deleted docs/docs/hub/assistants/use-an-assistant.md +0 −20
@@ -1,20 +0,0 @@
1----
2-title: Use an Assistant
3-sidebar_label: Use an Assistant
4-description: Guide to using assistants in your Continue workflow.
5-keywords: [assistants, usage, use, guide]
6----
7-
8-# Use an assistant
9-
10-To use an existing assistant, you can explore other assistants [here](https://hub.continue.dev/explore/assistants).
11-
12-Once you've found the assistant you want to use
13-
14-1. Click “Add Assistant” on its page
15-2. Add any required inputs (e.g. secrets like API keys)
16-3. Select “Save changes” in assistant sidebar on the right hand side
17-
18-After this, you can then go to your IDE extension and begin using the assistant by selecting it from the assistant dropdown.
19-
20-[Extension Assistant Selector](/img/hub/assistant-extension-select.png)
deleted docs/docs/hub/blocks/00-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) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant.
deleted docs/docs/hub/blocks/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Blocks",
3- "position": 3
4-}
deleted docs/docs/hub/blocks/block-types.md +0 −50
@@ -1,50 +0,0 @@
1----
2-title: Block Types
3-description: Overview of different block types
4-keywords: [blocks, types, overview]
5-sidebar_label: Types
6----
7-
8-# Block Types
9-
10-## Models
11-
12-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).
13-
14-Continue supports [many model providers](../../customize/model-providers/top-level/openai.mdx), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles/00-intro.mdx). View [`models`](/reference#models) in the YAML Reference for more details.
15-
16-## Context
17-
18-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.
19-
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).
21-
22-## Docs
23-
24-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.
25-
26-Learn more in the [@Docs deep dive](../../customize/context/documentation.mdx), and view [`docs`](/reference#docs) in the YAML Reference for more details.
27-
28-## MCP Servers
29-
30-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.
31-
32-Learn more in the [MCP deep dive](../../customize/deep-dives/mcp.mdx), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
33-
34-## Rules
35-
36-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.
37-
38-Learn more in the [rules deep dive](../../customize/deep-dives/rules.mdx), and view [`rules`](/reference#rules) in the YAML Reference for more details.
39-
40-## Prompts
41-
42-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.
43-
44-Prompt blocks have the same syntax as [prompt files](../../customize/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
45-
46-## Data
47-
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).
49-
50-Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`.
deleted docs/docs/hub/blocks/bundles.md +0 −39
@@ -1,39 +0,0 @@
1----
2-title: Bundles
3-sidebar_label: Bundles
4-description: Introduction to bundles
5-keywords: [blocks, bundles]
6----
7-
8-# Bundles
9-
10-Bundles are collections of blocks that are commonly used together. You can use them to add multiple building blocks to your custom AI code assistants at once. They are only a concept on [hub.continue.dev](https://hub.continue.dev), so they are not represented in `config.yaml`.
11-
12-## Use a bundle
13-
14-Once you know which bundle you want to use, you’ll need to
15-
16-1. Make sure the correct assistant is in the sidebar
17-2. Click “Add all blocks". This adds the individual blocks to your assistant.
18-3. Add any required inputs (e.g. secrets) for each block.
19-4. Select “Save changes” in assistant sidebar on the right hand side
20-
21-After this, you can then go to your IDE extension using the "Open VS Code" or "Open Jetbrains" buttons and begin using the new blocks.
22-
23-## Create a bundle
24-
25-To create a bundle, click “New bundle” in the header.
26-
27-![New bundle button](/img/hub/bundle-new-button.png)
28-
29-Choose a name, slug, description, and visibility for your bundle.
30-
31-Then, search blocks using the "Search blocks" input and add them to your bundle.
32-
33-![Create bundle page](/img/hub/bundle-create-page.png)
34-
35-Once you have added all the blocks you want in your bundle, click "Create Bundle" to save it and make it available for use.
36-
37-## Remix a bundle
38-
39-It is not currently possible to remix a bundle.
deleted docs/docs/hub/blocks/create-a-block.md +0 −32
@@ -1,32 +0,0 @@
1----
2-title: Create a Block
3-sidebar_label: Create a Block
4-description: Guide to creating blocks
5-keywords: [blocks, creation, create, use]
6----
7-
8-# Create a block
9-
10-## Remix a block
11-
12-You should remix a block if you want to use it after some modifications.
13-
14-By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
15-
16-![Remix block button](/img/hub/block-remix-button.png)
17-
18-Once here, you’ll be able to 1) edit YAML configuration for the block and 2) change name, description, icon, etc. Clicking “Create block” will make this block available for use in an assistant.
19-
20-## Create a block from scratch
21-
22-To create a block from scratch, you will need to click “New block” in the top bar.
23-
24-![New block button](/img/hub/block-new-button.png)
25-
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.
27-
28-![New block page](/img/hub/block-new-page.png)
29-
30-### Block inputs
31-
32-Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their assistant.
deleted docs/docs/hub/blocks/use-a-block.md +0 −16
@@ -1,16 +0,0 @@
1----
2-title: Use a Block
3-description: Guide to using blocks
4-keywords: [blocks, usage, use]
5----
6-
7-# Use a block
8-
9-Blocks can be used by adding them to assistants:
10-
11-- [Create an assistant](../assistants/create-an-assistant.md)
12-- [Edit an assistant](../assistants/edit-an-assistant.md)
13-
14-Some blocks require inputs. If you are missing an input for a block, a notification icon will show up in the sidebar next to the block. Click the notification to select which secret to use for the block input:
15-
16-![Block inputs](/img/hub/block-inputs.png)
deleted docs/docs/hub/governance/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Governance",
3- "position": 4
4-}
deleted docs/docs/hub/governance/creating-an-org.md +0 −20
@@ -1,20 +0,0 @@
1----
2-title: Creating an Organization
3-description: Creating an Organization
4-keywords: [governance, organization, org, create]
5----
6-
7-To Create an Organization, click the organization selector in the top right and select `Create Organization`
8-
9-![create an org selector](/img/hub/org-selector.png)
10-
11-1. Choose a name, which will be used as the display name for your organization throughout the hub
12-2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and assistant slugs
13-3. Select an icon for your organization using the image uploader
14-4. Finally, add a Biography, which will be displayed on your org Home Page
15-
16-![Creating an org](/img/hub/create-org-form.png)
17-
18-You will then be signed in to your org and taken to the org home page
19-
20-![Org home page](/img/hub/org-home-page.png)
deleted docs/docs/hub/governance/org-permissions.md +0 −18
@@ -1,18 +0,0 @@
1----
2-title: Org Permissions
3-description: Org Permissions
4-keywords: [governance, organization, org, permissions]
5----
6-
7-# Organization Permissions
8-
9-**Users can have the following roles within an organization:**
10-
11-1. Admins are users who can manage members, secrets, blocks, assistants, etc.
12-2. Members are users who can use assistants, blocks, secrets, etc.
13-
14-**User permissions for each role depend on the pricing plan:**
15-
16-- [Solo](./pricing.md#solo)
17-- [Teams](./pricing.md#teams)
18-- [Enterprise](./pricing.md#enterprise)
deleted docs/docs/hub/governance/pricing.md +0 −35
@@ -1,35 +0,0 @@
1----
2-title: Pricing
3-description: Solo, Teams, Enterprise, and Models Add-On pricing
4-keywords: [solo, teams, enterprise, models add-on]
5----
6-
7-# Pricing
8-
9-## Solo
10-
11-**Solo** is best suited for individuals and small teams with "single-player" problems.
12-
13-You can read more about what **Solo** includes [here](https://hub.continue.dev/pricing).
14-
15-## Teams
16-
17-**Teams** is best suited for growing teams with "multiplayer" problems.
18-
19-You can read more about what **Teams** includes [here](https://hub.continue.dev/pricing).
20-
21-## Enterprise
22-
23-**Enterprise** is best suited for large teams with enterprise-grade requirements.
24-
25-You can read more about what **Enterprise** includes [here](https://hub.continue.dev/pricing).
26-
27-## Models Add-On
28-
29-The **Models Add-On** allows you to use a variety of frontier models for a flat monthly fee. It’s designed to cover the usage of most developers.
30-
31-You can read more about usage limits and what models are included [here](https://hub.continue.dev/pricing).
32-
33-### Free Trial
34-
35-To try out Continue, we offer a free trial of the **Models Add-On** that allows you to use 50 Chat requests and 2,000 autocomplete requests.
deleted docs/docs/hub/secrets/_category_.json +0 −4
@@ -1,4 +0,0 @@
1-{
2- "label": "Secrets",
3- "position": 5
4-}
deleted docs/docs/hub/secrets/secret-resolution.md +0 −22
@@ -1,22 +0,0 @@
1----
2-title: Secret Resolution
3-description: Intro to Secret Resolution
4-keywords: [secrets, resolution]
5-sidebar_label: Resolution
6----
7-
8-# Secret Resolution
9-
10-[User or Org secrets](./secret-types.md) should be used depending on how users want them to be shared within their organization and assistants.
11-
12-For individual users and [Solo](../governance/pricing.md#solo) organizations, secret resolution is performed in the following order:
13-
14-1. User [models add-on](../governance/pricing.md#models-add-on) (if subscribed)
15-2. [User secrets](../secrets/secret-types.md#user-secrets) (if set)
16-3. [Free trial](../governance/pricing.md#free-trial) (if below limit)
17-
18-For [Teams](../governance/pricing.md#teams) and [Enterprise](../governance/pricing.md#enterprise) organizations, secret resolution is performed in the following order:
19-
20-1. Org [models add-on](../governance/pricing.md#models-add-on) (if subscribed)
21-2. [Org secrets](../secrets/secret-types.md#org-secrets) (if set)
22-3. [User secrets](../secrets/secret-types.md#user-secrets) (if set)
deleted docs/docs/hub/secrets/secret-types.md +0 −22
@@ -1,22 +0,0 @@
1----
2-title: Secret Types
3-description: Intro to Secret Types
4-keywords: [secrets, types]
5-sidebar_label: Types
6----
7-
8-# Secret Types
9-
10-The Continue Hub comes with secrets management built-in. Secrets are values such as API keys or endpoints that can be shared across assistants and within organizations.
11-
12-## User secrets
13-
14-User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the assistant `config.yaml`.
15-
16-This allows API requests to be made directly from the IDE extensions. You can use user secrets with [Solo](../governance/pricing.md#solo), [Teams](../governance/pricing.md#teams), and [Enterprise](../governance/pricing.md#enterprise). User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in the hub.
17-
18-## Org secrets
19-
20-Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys).
21-
22-This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](../governance/pricing.md#teams) and [Enterprise](../governance/pricing.md#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page.
deleted docs/docs/hub/sharing.md +0 −38
@@ -1,38 +0,0 @@
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.
deleted docs/docs/hub/source-control.md +0 −50
@@ -1,50 +0,0 @@
1----
2-title: Source Control
3-description: Source Control
4-keywords: [source, control, github, workflow, action, version, yaml]
5-sidebar_label: Source Control
6----
7-
8-# Source Control
9-
10-When managing your custom assistants within an organization, you might want to take advantage of your usual source control workflows. Continue makes this easy with a [GitHub Action](https://github.com/continuedev/continue-publish-action) that automatically syncs your YAML files with hub.continue.dev. We are also planning on adding automations for GitLab, BitBucket, Gitee, and others. If you are interested, please reach out to us on [Discord](https://discord.gg/vapESyrFmJ).
11-
12-## Quickstart
13-
14-This quickstart uses a template repository, but you can also follow these steps 2-4 from an existing repository.
15-
16-### 1. Create a new repository from the template
17-
18-As shown in the image below, start by creating a new repository from [the template](https://github.com/continuedev/continue-hub-template). Click "Use Template" and then "Create a new repository".
19-
20-![Use the template repository](/img/hub/template-repo.png)
21-
22-### 2. Obtain a deploy key
23-
24-Deploy keys allow the GitHub Action to authenticate with hub.continue.dev. [Obtain your deploy key here](https://hub.continue.dev/settings/api-keys) and then [create a secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) named `CONTINUE_API_KEY` in your GitHub repository.
25-
26-### 3. Configure the GitHub Action
27-
28-:::tip
29-This step assumes you have already created an organization on hub.continue.dev. If not, learn more [here](./governance/creating-an-org.md).
30-:::
31-
32-In the repository you created, navigate to `.github/workflows/main.yaml` and update the lines below to match your organization:
33-
34-```yaml
35-env:
36- OWNER_SLUG: my-org-slug # <-- TODO
37-```
38-
39-This is the only configuration necessary, but you can view the full list of options [here](https://github.com/continuedev/continue-publish-action/blob/main/README.md).
40-
41-### 4. Commit and push
42-
43-Add the [YAML for your assistants and blocks](/reference) to the appropriate directories:
44-
45-- `assistants/public` for public assistants
46-- `assistants/private` for private (visible only within your organization) assistants
47-- `blocks/public` for public blocks
48-- `blocks/private` for private blocks
49-
50-Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the assistants within your organization on hub.continue.dev.
deleted docs/docs/introduction.md +0 −25
@@ -1,25 +0,0 @@
1----
2-title: Introduction
3-description: Create, share, and use custom AI code assistants
4-slug: /
5-keywords:
6- [
7- continue,
8- AI,
9- code assistant,
10- autocomplete,
11- chat,
12- VS Code,
13- JetBrains,
14- introduction,
15- ]
16----
17-
18-![Continue Logo](/img/intro.png)
19-
20-**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)**
21-
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/reference.mdx +0 −560
@@ -1,560 +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`, which is deprecated. View the **[Migration Guide](/customize/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`](/customize/model-roles/edit#prompt-templating), [
195- `apply`](/customize/model-roles/apply#prompt-templating) and [
196- `autocomplete`](/customize/model-roles/autocomplete#prompt-templating). The `chat` property must be a
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/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-- `cwd`: An optional working directory to run the command in. Can be absolute or relative path.
388-- `connectionTimeout`: An optional connection timeout number to the server in milliseconds.
389-
390-**Example:**
391-
392-```yaml title="config.yaml"
393-mcpServers:
394- - name: My MCP Server
395- command: uvx
396- args:
397- - mcp-server-sqlite
398- - --db-path
399- - ./test.db
400- cwd: /Users/NAME/project
401- env:
402- NODE_ENV: production
403-```
404-
405-### `data`
406-
407-Destinations to which [development data](/customize/deep-dives/development-data) will be sent.
408-
409-**Properties:**
410-
411-- `name` (**required**): The display name of the data destination
412-- `destination` (**required**): The destination/endpoint that will receive the data. Can be:
413- - an HTTP endpoint that will receive a POST request with a JSON blob
414- - a file URL to a directory in which events will be dumpted to `.jsonl` files
415-- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0`
416-- `events`: an array of event names to include. Defaults to all events if not specified.
417-- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file
418- contents, prompts, and completions. Defaults to `all`
419-- `apiKey`: api key to be sent with request (Bearer header)
420-- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models).
421-
422- **Example:**
423-
424-```yaml title="config.yaml"
425-data:
426- - name: Local Data Bank
427- destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data
428- schema: 0.2.0
429- level: all
430- - name: My Private Company
431- destination: https://mycompany.com/ingest
432- schema: 0.2.0
433- level: noCode
434- events:
435- - autocomplete
436- - chatInteraction
437-```
438-
439----
440-
441-## Complete YAML Config Example
442-
443-Putting it all together, here's a complete example of a `config.yaml` configuration file:
444-
445-```yaml title="config.yaml"
446-name: MyProject
447-version: 0.0.1
448-schema: v1
449-
450-models:
451- - uses: anthropic/claude-3.5-sonnet
452- with:
453- ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
454- override:
455- defaultCompletionOptions:
456- temperature: 0.8
457- - name: GPT-4
458- provider: openai
459- model: gpt-4
460- roles:
461- - chat
462- - edit
463- defaultCompletionOptions:
464- temperature: 0.5
465- maxTokens: 2000
466- requestOptions:
467- headers:
468- Authorization: Bearer YOUR_OPENAI_API_KEY
469-
470- - name: Ollama Starcoder
471- provider: ollama
472- model: starcoder
473- roles:
474- - autocomplete
475- defaultCompletionOptions:
476- temperature: 0.3
477- stop:
478- - "\n"
479-
480-rules:
481- - Give concise responses
482- - Always assume TypeScript rather than JavaScript
483-
484-prompts:
485- - name: test
486- description: Unit test a function
487- prompt: |
488- 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.
489- - uses: myprofile/my-favorite-prompt
490-
491-context:
492- - provider: diff
493- - provider: file
494- - provider: codebase
495- - provider: code
496- - provider: docs
497- params:
498- startUrl: https://docs.example.com/introduction
499- rootUrl: https://docs.example.com
500- maxDepth: 3
501-
502-mcpServers:
503- - name: DevServer
504- command: npm
505- args:
506- - run
507- - dev
508- env:
509- PORT: "3000"
510-
511-data:
512- - name: My Private Company
513- destination: https://mycompany.com/ingest
514- schema: 0.2.0
515- level: noCode
516- events:
517- - autocomplete
518- - chatInteraction
519-```
520-
521-## Using YAML anchors to avoid config duplication
522-
523-You can also use node anchors to avoid duplication of properties. To do so,
524-adding the YAML version header `%YAML 1.1` is needed, here's an example of
525-a `config.yaml` configuration file using anchors:
526-
527-```yaml title="config.yaml"
528-%YAML 1.1
529----
530-name: MyProject
531-version: 0.0.1
532-schema: v1
533-
534-model_defaults: &model_defaults
535- provider: openai
536- apiKey: my-api-key
537- apiBase: https://api.example.com/llm
538-
539-models:
540- - name: mistral
541- <<: *model_defaults
542- model: mistral-7b-instruct
543- roles:
544- - chat
545- - edit
546-
547- - name: qwen2.5-coder-7b-instruct
548- <<: *model_defaults
549- model: qwen2.5-coder-7b-instruct
550- roles:
551- - chat
552- - edit
553-
554- - name: qwen2.5-coder-7b
555- <<: *model_defaults
556- model: qwen2.5-coder-7b
557- useLegacyCompletionsEndpoint: false
558- roles:
559- - autocomplete
560-```
deleted docs/docs/reference/continue-mcp.mdx +0 −154
@@ -1,154 +0,0 @@
1----
2-title: Continue Documentation MCP Server
3-description: Set up an MCP server to search Continue documentation
4-keywords: [mcp, documentation, search, mintlify, reference]
5----
6-
7-# Continue Documentation MCP Server
8-
9-The Continue Documentation MCP Server allows you to search and retrieve information from the Continue documentation directly within your agent conversations. This is powered by Mintlify's MCP server generation.
10-
11-## Installation
12-
13-### Step 1: Install the MCP Server
14-
15-Run the following command to install the Continue documentation MCP server:
16-
17-```bash
18-npx mint-mcp add continue-docs
19-```
20-
21-This will:
22-
23-- Download and install the MCP server locally
24-- Set up the search tool for Continue documentation
25-- Create the necessary configuration files
26-
27-### Step 2: Configure Continue
28-
29-1. Create a folder called `.continue/mcpServers` at the top level of your workspace
30-2. Add a file called `continue-docs-mcp.yaml` to this folder
31-3. Write the following contents and save:
32-
33-```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
34-name: Continue Documentation MCP
35-version: 0.0.1
36-schema: v1
37-mcpServers:
38- - name: Continue Docs Search
39- type: stdio
40- command: npx
41- args:
42- - mint-mcp
43- - add
44- - continue-docs
45-```
46-
47-### Step 3: Enable Agent Mode
48-
49-MCP servers only work in agent mode. Make sure to switch to agent mode in Continue before testing.
50-
51-## Usage Examples
52-
53-Once configured, you can use the MCP server to search Continue documentation:
54-
55-### Model Configuration Help
56-
57-```
58-Search for model setup instructions in the Continue docs
59-```
60-
61-### Context Providers
62-
63-```
64-Find documentation about context providers and how to configure them
65-```
66-
67-### Autocomplete Setup
68-
69-```
70-How do I configure autocomplete in Continue?
71-```
72-
73-### Slash Commands
74-
75-```
76-Search for information about custom slash commands
77-```
78-
79-### Troubleshooting
80-
81-```
82-Find troubleshooting information for Continue extension issues
83-```
84-
85-## Test Plan
86-
87-Use this test plan to verify your MCP server is working correctly:
88-
89-### Prerequisites
90-
91-- Continue extension is installed and running
92-- Agent mode is enabled
93-- MCP server configuration file exists in `.continue/mcpServers/`
94-
95-### Test Cases
96-
97-#### 1. Basic Documentation Search
98-
99-- **Query**: "Search the Continue docs for information about model setup"
100-- **Expected**: Returns structured information about configuring models
101-- **Pass/Fail**: ☐
102-
103-#### 2. Context Provider Documentation
104-
105-- **Query**: "Find documentation about context providers in Continue"
106-- **Expected**: Returns information about available context providers
107-- **Pass/Fail**: ☐
108-
109-#### 3. Feature-Specific Search
110-
111-- **Query**: "How do I configure autocomplete in Continue?"
112-- **Expected**: Returns autocomplete setup instructions
113-- **Pass/Fail**: ☐
114-
115-#### 4. MCP Documentation Search
116-
117-- **Query**: "Search for MCP server setup instructions"
118-- **Expected**: Returns MCP configuration information
119-- **Pass/Fail**: ☐
120-
121-## Troubleshooting
122-
123-### MCP Server Not Loading
124-
125-1. **Check configuration**: Ensure your YAML configuration uses the npx command approach
126-2. **Verify installation**: Run `npx mint-mcp add continue-docs` to confirm the server can be accessed
127-3. **Check agent mode**: MCP servers only work in agent mode
128-4. **Restart Continue**: Try restarting the Continue extension
129-
130-### No Search Results
131-
132-1. **Verify connection**: The MCP server needs internet access to search the documentation
133-2. **Check query format**: Try rephrasing your search query
134-3. **Test with known topics**: Search for well-documented features like "model configuration"
135-
136-### Permission Issues
137-
138-If you encounter permission errors, ensure npx has proper permissions:
139-
140-```bash
141-npm config get prefix
142-```
143-
144-## Advanced Configuration
145-
146-### Using Environment Variables
147-
148-You can configure the MCP server with environment variables:
149-
150-## Related Documentation
151-
152-- [MCP Overview](/customize/deep-dives/mcp)
153-- [Agent Mode](/features/agent/quick-start)
154-- [Configuration](/customize/overview)
deleted docs/docs/troubleshooting.mdx +0 −172
@@ -1,172 +0,0 @@
1----
2-title: Troubleshooting
3-description: Troubleshooting while waiting for help during beta / alpha testing
4-keywords: [reload, delete, manually, logs, server, console]
5----
6-
7-import TabItem from "@theme/TabItem";
8-import Tabs from "@theme/Tabs";
9-
10-1. [Check the logs](#check-the-logs)
11-2. [Try the latest pre-release](#download-the-latest-pre-release)
12-3. [Download an older version](#download-an-older-version)
13-4. [Resolve keyboard shortcut issues](#keyboard-shortcuts-not-resolving)
14-5. [Check FAQs for common issues](#faqs)
15-
16-## Check the logs
17-
18-To solve many problems, the first step is reading the logs to find the relevant error message. To do this, follow these steps:
19-
20-### VS Code
21-
22-#### Console logs
23-
24-:::info
25-In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose".
26-:::
27-
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
30-2. Search for and then select "Developer: Toggle Developer Tools"
31-3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/)
32-4. Select the `Console` tab
33-5. Read the console logs
34-
35-#### Prompt Logs (Continue Console)
36-
37-To view prompt logs/analytics, you can enable the Continue Console.
38-
39-1. Open VS Code settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>)
40-2. Search for the setting "Continue: Enable Console" and enable it
41-3. Reload the window
42-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"
43-
44-![Continue Console](/img/continue-console.png)
45-
46-### JetBrains
47-
48-Open `~/.continue/logs/core.log` to view the logs for the Continue plugin. The most recent logs are found at the bottom of the file.
49-
50-Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in Explorer/Finder".
51-
52-## Download the latest pre-release
53-
54-### VS Code
55-
56-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.
57-
58-![Pre-Release](/img/prerelease.png)
59-
60-### JetBrains
61-
62-On JetBrains, the "pre-release" happens through their Early Access Program (EAP) channel. To download the latest EAP version, enable the EAP channel:
63-
64-1. Open JetBrains settings (<kbd>cmd/ctrl</kbd> + <kbd>,</kbd>) and go to "Plugins"
65-2. Click the gear icon at the top
66-3. Select "Manage Plugin Repositories..."
67-4. Add "[https://plugins.jetbrains.com/plugins/eap/list](https://plugins.jetbrains.com/plugins/eap/list)" to the list
68-5. You'll now always be able to download the latest EAP version from the marketplace
69-
70-## Download an Older Version
71-
72-If you've tried everything, reported an error, know that a previous version was working for you, and are waiting to hear back, you can try downloading an older version of the extension.
73-
74-For VS Code, All versions are hosted on the Open VSX Registry [here](https://open-vsx.org/extension/Continue/continue). Once you've downloaded the extension, which will be a .vsix file, you can install it manually by following the instructions [here](https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix).
75-
76-You can find older versions of the JetBrains extension on their [marketplace](https://plugins.jetbrains.com/plugin/22707-continue), which will walk you through installing from disk.
77-
78-## Keyboard shortcuts not resolving
79-
80-If your keyboard shortcuts are not resolving, you may have other commands that are taking precedence over the Continue shortcuts. You can see if this is the case, and change your shortcut mappings, in the configuration of your IDE.
81-
82-- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings)
83-- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html)
84-
85-## FAQs
86-
87-### Networking Issues
88-
89-#### Configure Certificates
90-
91-If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in your config file. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this:
92-
93-<Tabs groupId="config-example">
94- <TabItem value="yaml" label="YAML">
95- ```yaml title="config.yaml"
96- models:
97- - name: My Model
98- ...
99- requestOptions:
100- caBundlePath: /path/to/cert.pem
101- ```
102- </TabItem>
103- <TabItem value="json" label="JSON">
104- ```json title="config.json"
105- {
106- "models": [
107- {
108- "title": "My Model",
109- ...
110- "requestOptions": {
111- "caBundlePath": "/path/to/cert.pem"
112- }
113- }
114- ],
115- }
116- ```
117- </TabItem>
118-</Tabs>
119-
120-You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates.
121-
122-**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue.
123-
124-#### VS Code Proxy Settings
125-
126-If you are using VS Code and require requests to be made through a proxy, you are likely already set up through VS Code's [Proxy Server Support](https://code.visualstudio.com/docs/setup/network#_proxy-server-support). To double-check that this is enabled, use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> to open settings and search for "Proxy Support". Unless it is set to "off", then VS Code is responsible for making the request to the proxy.
127-
128-#### code-server
129-
130-Continue can be used in [code-server](https://coder.com/), but if you are running across an error in the logs that includes "This is likely because the editor is not running in a secure context", please see [their documentation on securely exposing code-server](https://coder.com/docs/code-server/latest/guide#expose-code-server).
131-
132-### I installed Continue, but don't see the sidebar window
133-
134-By default the Continue window is on the left side of VS Code, but it can be dragged to right side as well, which we recommend in our tutorial. In the situation where you have previously installed Continue and moved it to the right side, it may still be there. You can reveal Continue either by using cmd/ctrl+L or by clicking the button in the top right of VS Code to open the right sidebar.
135-
136-### I'm getting a 404 error from OpenAI
137-
138-If you have entered a valid API key and model, but are still getting a 404 error from OpenAI, this may be because you need to add credits to your billing account. You can do so from the [billing console](https://platform.openai.com/settings/organization/billing/overview). If you just want to check that this is in fact the cause of the error, you can try adding $1 to your account and checking whether the error persists.
139-
140-### I'm getting a 404 error from OpenRouter
141-
142-If you have entered a valid API key and model, but are still getting a 404 error from OpenRouter, this may be because models that do not support function calling will return an error to Continue when a request is sent.
143-Example error:
144-`HTTP 404 Not Found from https://openrouter.ai/api/v1/chat/completions`
145-
146-### Indexing issues
147-
148-If you are having persistent errors with indexing, our recommendation is to rebuild your index from scratch. Note that for large codebases this may take some time.
149-
150-This can be accomplished using the following command: `Continue: Rebuild codebase index`.
151-
152-### Android Studio - "Nothing to show" in Chat
153-
154-This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details.
155-
156-### I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification
157-
158-We use LanceDB as our vector database for codebase search features. On x64 Linux systems, LanceDB requires specific CPU features (FMA and AVX2) which may not be available on older processors.
159-
160-Most Continue features will work normally, including autocomplete and chat. However, commands that rely on codebase indexing, such as `@codebase`, `@files`, and `@folder`, will be disabled.
161-
162-For more details about this requirement, see the [LanceDB issue #2195](https://github.com/lancedb/lance/issues/2195).
163-
164-### How do I reset the state of the extension?
165-
166-Continue stores it's data in the `~/.continue` directory (%USERPROFILE%\.continue` on Windows).
167-
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.
169-
170-## Still having trouble?
171-
172-You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), providing details of your problem, and we'll be able to help you out more quickly.
deleted docs/docusaurus.config.js +0 −714
@@ -1,714 +0,0 @@
1-// @ts-check
2-// Note: type annotations allow type checking and IDEs autocompletion
3-
4-const { themes } = require("prism-react-renderer");
5-const lightCodeTheme = themes.github;
6-const darkCodeTheme = themes.dracula;
7-
8-/** @type {import("@docusaurus/types").Config} */
9-const config = {
10- // Docusaurus V3.6 experimental faster compile features
11- // https://docusaurus.io/blog/releases/3.6#adoption-strategy
12- future: {
13- experimental_faster: true,
14- },
15-
16- title: "Continue",
17- tagline:
18- "the open-source library for accelerating software development with language models",
19- favicon: "img/favicon.ico",
20-
21- // Set the production url of your site here
22- url: "https://docs.continue.dev",
23- // Set the /<baseUrl>/ pathname under which your site is served
24- // For GitHub pages deployment, it is often '/<projectName>/'
25- baseUrl: "/",
26-
27- // GitHub pages deployment config.
28- // If you aren't using GitHub pages, you don't need these.
29- organizationName: "continuedev", // Usually your GitHub org/user name.
30- projectName: "continue", // Usually your repo name.
31-
32- onBrokenLinks: "throw",
33- onBrokenMarkdownLinks: "warn",
34-
35- // Even if you don't use internalization, you can use this field to set useful
36- // metadata like html lang. For example, if your site is Chinese, you may want
37- // to replace "en" with "zh-Hans".
38- i18n: {
39- defaultLocale: "en",
40- locales: [
41- "en",
42- // "zh-CN"
43- ],
44- },
45-
46- themes: [],
47-
48- presets: [
49- [
50- "classic",
51- /** @type {import("@docusaurus/preset-classic").Options} */
52- ({
53- docs: {
54- routeBasePath: "/",
55- sidebarPath: require.resolve("./sidebars.js"),
56- editUrl: "https://github.com/continuedev/continue/tree/main/docs",
57- },
58- theme: {
59- customCss: require.resolve("./src/css/custom.css"),
60- },
61- ...(process.env.NODE_ENV === "production" && {
62- gtag: {
63- trackingID: "G-M3JWW8N2XQ",
64- anonymizeIP: true,
65- },
66- }),
67- }),
68- ],
69- ],
70-
71- scripts: [
72- {
73- src: "/scripts/custom-reo.js", // it references from static folder
74- },
75- ],
76-
77- themeConfig:
78- /** @type {import("@docusaurus/preset-classic").ThemeConfig} */
79- ({
80- metadata: [
81- {
82- name: "keywords",
83- content:
84- "open source, ai, vscode, intellij, jetbrains, developer tools, chatgpt, copilot, llm",
85- },
86- ],
87- // Replace with your project's social card
88- image: "https://docs.continue.dev/img/continue-social-card.png",
89- navbar: {
90- title: "Continue",
91- logo: {
92- alt: "Continue Logo",
93- src: "img/logo.png",
94- href: "https://continue.dev",
95- target: "_blank",
96- },
97- items: [
98- {
99- type: "docSidebar",
100- sidebarId: "docsSidebar",
101- position: "left",
102- label: "Documentation",
103- href: "/",
104- },
105- {
106- to: "/guides/overview",
107- label: "Guides",
108- position: "left",
109- },
110- {
111- to: "https://hub.continue.dev",
112- label: "Explore",
113- position: "left",
114- },
115-
116- {
117- to: "https://github.com/continuedev/continue",
118- label: "GitHub",
119- position: "right",
120- className: "github-navbar",
121- },
122- {
123- to: "https://discord.gg/vapESyrFmJ",
124- label: "Discord",
125- position: "right",
126- className: "discord-navbar",
127- },
128- {
129- type: "localeDropdown",
130- position: "right",
131- },
132- ],
133- },
134- footer: {
135- style: "dark",
136- links: [
137- {
138- title: "Extensions",
139- items: [
140- {
141- label: "VS Code",
142- to: "https://marketplace.visualstudio.com/items?itemName=Continue.continue",
143- },
144- {
145- label: "JetBrains",
146- to: "https://plugins.jetbrains.com/plugin/22707-continue-extension",
147- },
148- ],
149- },
150- {
151- title: "Community",
152- items: [
153- {
154- label: "Discord",
155- to: "https://discord.gg/vapESyrFmJ",
156- },
157- {
158- label: "GitHub",
159- to: "https://github.com/continuedev/continue",
160- },
161- ],
162- },
163- {
164- title: "Follow Us",
165- items: [
166- {
167- label: "Twitter",
168- to: "https://twitter.com/continuedev",
169- },
170- {
171- label: "LinkedIn",
172- to: "https://linkedin.com/company/continuedev",
173- },
174- ],
175- },
176- ],
177- copyright: `Copyright © ${new Date().getFullYear()} Continue Dev, Inc.`,
178- },
179- prism: {
180- theme: lightCodeTheme,
181- darkTheme: darkCodeTheme,
182- additionalLanguages: ["json"],
183- },
184- algolia: {
185- // The application ID provided by Algolia
186- appId: "0OMUMCQZVV",
187-
188- // Public API key: it is safe to commit it
189- apiKey: "6795de0f612eebe17018f8061a9ef18e",
190-
191- indexName: "continue",
192-
193- // Optional: see doc section below
194- contextualSearch: true,
195- },
196- }),
197- plugins: [
198- [
199- "posthog-docusaurus",
200- {
201- apiKey: process.env.POSTHOG_API_KEY || "DEV",
202- appUrl: "https://us.i.posthog.com",
203- enableInDevelopment: false,
204- },
205- ],
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- // ],
220- [
221- "@docusaurus/plugin-client-redirects",
222- {
223- redirects: [
224- {
225- to: "/hub/introduction",
226- from: ["/hub"],
227- },
228- {
229- to: "/hub/governance/org-permissions",
230- from: "/hub/governance",
231- },
232- {
233- to: "/hub/secrets/secret-types",
234- from: "/hub/secrets",
235- },
236- {
237- to: "/hub/assistants/intro",
238- from: "/hub/assistants",
239- },
240- {
241- to: "/hub/blocks/intro",
242- from: "/hub/blocks",
243- },
244- {
245- to: "/customization/overview",
246- from: ["/customize", "/customization"],
247- },
248- {
249- to: "/customization/mcp-tools",
250- from: "/customize/tools",
251- },
252- {
253- to: "/getting-started/install",
254- from: ["/install/vscode", "/install/jetbrains"],
255- },
256- {
257- to: "/customize/settings",
258- from: [
259- "/advanced/deep-dives/settings",
260- "/customize/deep-dives/settings",
261- ],
262- },
263- {
264- to: "/customize/model-roles/intro",
265- from: [
266- "/customize/model-types",
267- "/setup/overview",
268- "/advanced/model-roles/intro",
269- ],
270- },
271- {
272- to: "/customize/model-roles/embeddings",
273- from: [
274- "/customize/model-types/embeddings",
275- "/advanced/model-roles/embeddings",
276- ],
277- },
278- {
279- to: "/customize/model-roles/autocomplete",
280- from: [
281- "/customize/model-types/autocomplete",
282- "/advanced/model-roles/autocomplete",
283- ],
284- },
285- {
286- to: "/customize/model-roles/chat",
287- from: ["/customize/model-types/chat", "/advanced/model-roles/chat"],
288- },
289- {
290- to: "/customize/model-roles/reranking",
291- from: [
292- "/customize/model-types/reranking",
293- "/advanced/model-roles/reranking",
294- ],
295- },
296- {
297- to: "/getting-started/overview",
298- from: [
299- "/model-setup/overview",
300- "/model-setup/select-model",
301- "/model-setup/configuration",
302- "/quickstart",
303- "/how-to-use-continue",
304- ],
305- },
306- {
307- to: "/customize/model-providers/anthropic",
308- from: [
309- "/setup/select-provider",
310- "/setup/model-providers",
311- "/advanced/model-providers/anthropic",
312- ],
313- },
314- {
315- to: "/customize/context/codebase",
316- from: [
317- "/walkthroughs/codebase-embeddings",
318- "/features/codebase-embeddings",
319- "/advanced/deep-dives/codebase",
320- "/advanced/context/codebase",
321- ],
322- },
323- {
324- to: "/customize/deep-dives/autocomplete",
325- from: [
326- "/walkthroughs/tab-autocomplete",
327- "/features/tab-autocomplete",
328- "/advanced/deep-dives/autocomplete",
329- ],
330- },
331- {
332- to: "/customize/deep-dives/prompts",
333- from: [
334- "/walkthroughs/prompt-files",
335- "/features/prompt-files",
336- "/advanced/deep-dives/prompts",
337- ],
338- },
339- // TODO - actions redirects
340- {
341- to: "/customize/deep-dives/slash-commands",
342- from: [
343- "/actions/how-to-use-it",
344- "/actions/how-to-customize",
345- "/actions",
346- "/actions/model-setup",
347- "/actions/context-selection",
348- "/actions/how-it-works",
349- "/customize/slash-commands",
350- "/customization/slash-commands",
351- "/advanced/deep-dives/slash-commands",
352- ],
353- },
354-
355- {
356- to: "/customize/deep-dives/vscode-actions",
357- from: [
358- "/walkthroughs/quick-actions",
359- "/advanced/deep-dives/vscode-actions",
360- ],
361- },
362- {
363- to: "/reference",
364- from: "/changelog",
365- },
366- {
367- to: "/reference",
368- from: [
369- "/customization/code-config",
370- "/reference/config",
371- "/yaml-reference",
372- ],
373- },
374- {
375- to: "/customize/custom-providers",
376- from: [
377- "/customization/context-providers",
378- "/advanced/context-integration/custom-providers",
379- "/advanced/context/custom-providers",
380- "/advanced/custom-providers",
381- ],
382- },
383- {
384- to: "/customize/deep-dives/development-data",
385- from: [
386- "/development-data",
387- "/customize/development-data",
388- "/advanced/deep-dives/development-data",
389- ],
390- },
391- {
392- to: "/customize/context/documentation",
393- from: [
394- "/features/talk-to-your-docs",
395- "/advanced/context-integration/documentation",
396- "/advanced/deep-dives/docs",
397- "/advanced/context/documentation",
398- ],
399- },
400- {
401- to: "/customize/model-providers/anthropic",
402- from: ["/reference/Model Providers/anthropicllm"],
403- },
404- {
405- to: "/customize/model-providers/azure",
406- from: [
407- "/reference/Model Providers/azure",
408- "/advanced/model-providers/azure",
409- ],
410- },
411- {
412- to: "/customize/model-providers/bedrock",
413- from: [
414- "/reference/Model Providers/bedrock",
415- "/advanced/model-providers/bedrock",
416- ],
417- },
418- {
419- to: "/customize/model-providers/deepseek",
420- from: [
421- "/reference/Model Providers/deepseek",
422- "/advanced/model-providers/deepseek",
423- ],
424- },
425- {
426- to: "/customize/model-providers/anthropic",
427- from: "/reference/Model Providers/freetrial",
428- },
429- {
430- to: "/customize/model-providers/gemini",
431- from: [
432- "/reference/Model Providers/geminiapi",
433- "/advanced/model-providers/gemini",
434- ],
435- },
436- {
437- to: "/customize/model-providers/mistral",
438- from: [
439- "/reference/Model Providers/mistral",
440- "/advanced/model-providers/mistral",
441- ],
442- },
443- {
444- to: "/customize/model-providers/ollama",
445- from: [
446- "/reference/Model Providers/ollama",
447- "/advanced/model-providers/ollama",
448- ],
449- },
450- {
451- to: "/customize/model-providers/openai",
452- from: [
453- "/reference/Model Providers/openai",
454- "/advanced/model-providers/openai",
455- ],
456- },
457- {
458- to: "/",
459- from: "/intro",
460- },
461- {
462- to: "/customize/model-providers/more/cloudflare",
463- from: [
464- "/reference/Model Providers/cloudflare",
465- "/advanced/model-providers/more/cloudflare",
466- ],
467- },
468- {
469- to: "/customize/model-providers/more/cohere",
470- from: [
471- "/reference/Model Providers/cohere",
472- "/advanced/model-providers/more/cohere",
473- ],
474- },
475- {
476- to: "/customize/model-providers/more/deepinfra",
477- from: [
478- "/reference/Model Providers/deepinfra",
479- "/advanced/model-providers/more/deepinfra",
480- ],
481- },
482- {
483- to: "/customize/model-providers/more/flowise",
484- from: [
485- "/reference/Model Providers/flowise",
486- "/advanced/model-providers/more/flowise",
487- ],
488- },
489- {
490- to: "/customize/model-providers/llamastack",
491- from: "/advanced/model-providers/more/llamastack",
492- },
493- {
494- to: "/customize/model-providers/more/huggingfaceinferenceapi",
495- from: [
496- "/reference/Model Providers/huggingfaceinferenceapi",
497- "/advanced/model-providers/more/huggingfaceinferenceapi",
498- ],
499- },
500- {
501- to: "/customize/model-providers/more/ipex_llm",
502- from: [
503- "/reference/Model Providers/ipex_llm",
504- "/advanced/model-providers/more/ipex_llm",
505- ],
506- },
507- {
508- to: "/customize/model-providers/more/kindo",
509- from: [
510- "/reference/Model Providers/kindo",
511- "/advanced/model-providers/more/kindo",
512- ],
513- },
514- {
515- to: "/customize/model-providers/more/llamacpp",
516- from: [
517- "/reference/Model Providers/llamacpp",
518- "/advanced/model-providers/more/llamacpp",
519- ],
520- },
521- {
522- to: "/customize/model-providers/more/llamafile",
523- from: [
524- "/reference/Model Providers/llamafile",
525- "/advanced/model-providers/more/llamafile",
526- ],
527- },
528- {
529- to: "/customize/model-providers/more/lmstudio",
530- from: [
531- "/reference/Model Providers/lmstudio",
532- "/advanced/model-providers/more/lmstudio",
533- ],
534- },
535- {
536- to: "/customize/model-providers/more/msty",
537- from: [
538- "/reference/Model Providers/msty",
539- "/advanced/model-providers/more/msty",
540- ],
541- },
542- {
543- to: "/customize/model-providers/more/openrouter",
544- from: [
545- "/reference/Model Providers/openrouter",
546- "/advanced/model-providers/more/openrouter",
547- ],
548- },
549- {
550- to: "/customize/model-providers/more/replicatellm",
551- from: [
552- "/reference/Model Providers/replicatellm",
553- "/advanced/model-providers/more/replicatellm",
554- ],
555- },
556- {
557- to: "/customize/model-providers/more/sagemaker",
558- from: [
559- "/reference/Model Providers/sagemaker",
560- "/advanced/model-providers/more/sagemaker",
561- ],
562- },
563- {
564- to: "/customize/model-providers/more/textgenwebui",
565- from: [
566- "/reference/Model Providers/textgenwebui",
567- "/advanced/model-providers/more/textgenwebui",
568- ],
569- },
570- {
571- to: "/customize/model-providers/more/together",
572- from: [
573- "/reference/Model Providers/together",
574- "/advanced/model-providers/more/together",
575- ],
576- },
577- {
578- to: "/customize/model-providers/more/novita",
579- from: [
580- "/reference/Model Providers/novita",
581- "/advanced/model-providers/more/novita",
582- ],
583- },
584- {
585- to: "/customize/model-providers/more/vllm",
586- from: [
587- "/reference/Model Providers/vllm",
588- "/advanced/model-providers/more/vllm",
589- ],
590- },
591- {
592- to: "/customize/model-providers/more/watsonx",
593- from: [
594- "/reference/Model Providers/watsonx",
595- "/advanced/model-providers/more/watsonx",
596- ],
597- },
598- {
599- to: "/customize/model-providers/more/nebius",
600- from: [
601- "/reference/Model Providers/nebius",
602- "/advanced/model-providers/more/nebius",
603- ],
604- },
605- // Sidebar items that should route directly to a subpage
606- {
607- to: "/features/chat/quick-start",
608- from: ["/chat", "/chat/how-to-use-it"],
609- },
610- {
611- to: "/features/agent/quick-start",
612- from: ["/agent", "/agent/how-to-use-it"],
613- },
614- {
615- to: "/features/edit/quick-start",
616- from: ["/edit", "/edit/how-to-use-it"],
617- },
618- {
619- to: "/features/autocomplete/quick-start",
620- from: ["/autocomplete", "/autocomplete/how-to-use-it"],
621- },
622- {
623- to: "/getting-started/install",
624- from: "/getting-started",
625- },
626- {
627- to: "/customize/deep-dives/prompts",
628- from: "/customize/deep-dives/prompt-files",
629- },
630- // Migrated from netlify.toml
631- {
632- to: "/features/chat/how-it-works",
633- from: "/chat/how-it-works",
634- },
635- {
636- to: "/features/autocomplete/how-it-works",
637- from: "/autocomplete/how-it-works",
638- },
639- {
640- to: "/features/autocomplete/model-setup",
641- from: "/autocomplete/model-setup",
642- },
643- {
644- to: "/features/autocomplete/how-to-customize",
645- from: "/autocomplete/how-to-customize",
646- },
647- {
648- to: "/features/autocomplete/context-selection",
649- from: "/autocomplete/context-selection",
650- },
651- {
652- to: "/features/edit/how-it-works",
653- from: "/edit/how-it-works",
654- },
655- {
656- to: "/features/agent/how-it-works",
657- from: "/agent/how-it-works",
658- },
659- {
660- to: "/customize/telemetry",
661- from: ["/telemetry", "/advanced/telemetry"],
662- },
663- {
664- to: "/customize/yaml-migration",
665- from: ["/yaml-migration", "/advanced/yaml-migration"],
666- },
667- {
668- to: "/customize/json-reference",
669- from: ["/json-reference", "/advanced/json-reference"],
670- },
671- // New feature page redirects
672- {
673- to: "/features/chat/model-setup",
674- from: "/chat/model-setup",
675- },
676- {
677- to: "/features/chat/how-to-customize",
678- from: "/chat/how-to-customize",
679- },
680- {
681- to: "/features/chat/context-selection",
682- from: "/chat/context-selection",
683- },
684- {
685- to: "/features/edit/model-setup",
686- from: "/edit/model-setup",
687- },
688- {
689- to: "/features/edit/how-to-customize",
690- from: "/edit/how-to-customize",
691- },
692- {
693- to: "/features/edit/context-selection",
694- from: "/edit/context-selection",
695- },
696- {
697- to: "/features/agent/model-setup",
698- from: "/agent/model-setup",
699- },
700- {
701- to: "/features/agent/how-to-customize",
702- from: "/agent/how-to-customize",
703- },
704- {
705- to: "/features/agent/context-selection",
706- from: "/agent/context-selection",
707- },
708- ],
709- },
710- ],
711- ],
712-};
713-
714-module.exports = config;
added docs/favicon.png +0 −0

Binary content is not shown. View the file.

added docs/features/agent/context-selection.mdx +3 −0
@@ -0,0 +1,3 @@
1+You can use the same methods to manually add context as [Chat](/features/chat/context-selection).
2+
3+Tool call responses are automatically included as context items. This enables Agent mode to see the result of the previous action and decide what to do next.
added docs/features/agent/how-it-works.mdx +38 −0
@@ -0,0 +1,38 @@
1+---
2+title: "How Agent Works"
3+description: "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."
4+---
5+
6+## The tool handshake[​](#the-tool-handshake "Direct link to The tool handshake")
7+
8+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.
9+
10+The following handshake describes how Agent uses tools:
11+
12+1. In Agent mode, available tools are sent along with `user` chat requests
13+2. The model can choose to include a tool call in its response
14+3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
15+4. Continue calls the tool using built-in functionality or the MCP server that offers that particular tool
16+5. Continue sends the result back to the model
17+6. The model responds, potentially with another tool call and step 2 begins again
18+
19+<Info>
20+ In [Chat mode](/features/chat/quick-start), tools are **not** included in the
21+ request to the model.
22+</Info>
23+
24+## Built-in tools[​](#built-in-tools "Direct link to Built-in tools")
25+
26+Continue includes several built-in tools which provide the model access to IDE functionality:
27+
28+- **Read file** (`read_file`): read the contents of a file within the project
29+- **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file
30+- **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model
31+- **Exact search** (`exact_search`): perform a `ripgrep` search within the project
32+- **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.
33+- **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root
34+- **Search web** (`search_web`): Perform a web search to get top results
35+- **View diff** (`view_diff`): View the current working git diff
36+- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](/customize/custom-providers#repository-map)
37+- **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project
38+- **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
added docs/features/agent/how-to-customize.mdx +27 −0
@@ -0,0 +1,27 @@
1+## Add Rules Blocks
2+
3+Adding Rules can be done in your assistant locally or in the Hub. You can explore Rules on the Continue Hub and refer to the [Rules deep dive](/customize/deep-dives/rules) for more details.
4+
5+## Add MCP Tools
6+
7+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) and consult the [MCP guide](/customize/deep-dives/mcp) for more details.
8+
9+## Tool Policies
10+
11+You can adjust the Agent's tool usage behavior to three options:
12+
13+- **Ask First (default)**: Request user permission with "Cancel" and "Continue" buttons
14+- **Automatic**: Automatically call the tool without requesting permission
15+- **Excluded**: Do not send the tool to the model
16+
17+:::warning
18+Be careful setting tools to "automatic" if their behavior is not read-only.
19+:::
20+
21+To manage tool policies:
22+
23+1. Click the tools icon in the input toolbar
24+2. View and change policies by clicking on the policy text
25+3. You can also toggle groups of tools on/off
26+
27+Tool policies are stored locally per user.
added docs/features/agent/model-setup.mdx +14 −0
@@ -0,0 +1,14 @@
1+We recommend **Claude 3.5 Sonnet** from Anthropic for the best Agent experience.
2+
3+- [Add Claude 3.5 Sonnet to your assistant from the hub](https://hub.continue.dev/anthropic/claude-3-5-sonnet-20241022)
4+- Get your API key from the [Anthropic console](https://console.anthropic.com/)
5+
6+## Other recommended models
7+
8+- [Claude Sonnet 4 from Anthropic](https://hub.continue.dev/anthropic)
9+- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
10+- [Gemini 2.0 Pro from Google](https://hub.continue.dev/google/gemini-2.0-pro)
11+
12+Agent can be used with models that support tool use through Continue. The best chat models generally support tool use.
13+
14+For more information on models, check out [our recommended chat models](/features/chat/model-setup).
added docs/features/agent/quick-start.mdx +45 −0
@@ -0,0 +1,45 @@
1+---
2+title: "Quick Start"
3+---
4+
5+## How to use it[​](#how-to-use-it "Direct link to How to use it")
6+
7+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.
8+
9+### Use Agent[​](#use-agent "Direct link to Use Agent")
10+
11+You can switch to `Agent` in the mode selector below the chat input box.
12+
13+![How to select agent mode](/images/mode-select-agent.png)
14+
15+<Info>
16+ If Agent is disabled with a `Not Supported` message, the selected model or
17+ provider doesn't support tools, or Continue doesn't yet support tools with it.
18+ See [Model Blocks](/customization/models) for more information.
19+</Info>
20+
21+### Chat with Agent[​](#chat-with-agent "Direct link to Chat with Agent")
22+
23+Agent lives within the same interface as [Chat](/features/chat/how-it-works), so the same [input](/features/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](/features/chat/quick-start#3-use--for-additional-context) or adding [highlighted code from the editor](/features/chat/quick-start#2-include-code-context).
24+
25+#### Use natural language[​](#use-natural-language "Direct link to Use natural language")
26+
27+With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say
28+
29+> Set the @typescript-eslint/naming-convention rule to "off" for all eslint configurations in this project
30+
31+Agent will then decide which tools to use to get the job done.
32+
33+## Give Agent permission[​](#give-agent-permission "Direct link to Give Agent permission")
34+
35+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.
36+
37+![agent requesting permission](/images/features/agent/images/agent-permission-c150919a5c43eb4f55d9d4a46ef8b2d6.png)
38+
39+You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](/customization/mcp-tools) for more background.
40+
41+## View Tool Responses[​](#view-tool-responses "Direct link to View Tool Responses")
42+
43+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.
44+
45+![agent response](/images/features/agent/images/agent-response-c7287c82aac93fb4376f9d85b352b2d7.png)
added docs/features/autocomplete/context-selection.mdx +17 −0
@@ -0,0 +1,17 @@
1+Autocomplete will automatically determine context based on the current cursor position. We use the following techniques to determine what to include in the prompt:
2+
3+## File prefix/suffix
4+
5+We will always include the code from your file prior to and after the cursor position.
6+
7+## Definitions from the Language Server Protocol
8+
9+Similar to how you can use cmd/ctrl + 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.
10+
11+## Imported files
12+
13+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.
14+
15+## Recent files
16+
17+We automatically consider recently opened or edited files and include snippets that are relevant to the current completion.
added docs/features/autocomplete/how-it-works.mdx +27 −0
@@ -0,0 +1,27 @@
1+---
2+title: "How Autocomplete Works"
3+description: "Autocomplete is a that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts."
4+---
5+
6+## Timing[​](#timing "Direct link to Timing")
7+
8+In order to display suggestions quickly, without sending too many requests, we do the following:
9+
10+- Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
11+- 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.
12+
13+## Context[​](#context "Direct link to Context")
14+
15+Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
16+
17+## Filtering[​](#filtering "Direct link to Filtering")
18+
19+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:
20+
21+- filtering out special tokens
22+- stopping early when re-generating code
23+- fixing indentation
24+
25+We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
26+
27+You can learn more about how it works in the [Autocomplete deep dive](/customization/models#autocomplete).
added docs/features/autocomplete/how-to-customize.mdx +3 −0
@@ -0,0 +1,3 @@
1+Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](/customize/deep-dives/settings/) to manage these settings.
2+
3+For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](/customize/deep-dives/autocomplete).
added docs/features/autocomplete/model-setup.mdx +27 −0
@@ -0,0 +1,27 @@
1+Setting up the right model for autocomplete is crucial for a smooth coding experience. Here are our top recommendations:
2+
3+## Recommended Models
4+
5+### Hosted-Based (Best Performance)
6+
7+For the highest quality autocomplete suggestions, we recommend **[Codestral](https://hub.continue.dev/mistral/codestral)** from Mistral. This model is specifically designed for code completion and offers excellent performance across multiple programming languages.
8+
9+**Quick Setup:**
10+
11+1. [Add Codestral from the hub](https://hub.continue.dev/mistral/codestral)
12+2. Get your API key from the [Mistral Platform](https://console.mistral.ai/codestral)
13+3. Configure it in your Continue settings
14+
15+### Local/Offline (Privacy First)
16+
17+For a fully local autocomplete experience that doesn't send your code to external servers, we recommend **[Qwen 2.5 Coder 1.5B](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)** running on Ollama. This model provides good suggestions while keeping your code completely private.
18+
19+**Quick Setup:**
20+
21+1. Install [Ollama](https://ollama.ai/)
22+2. [Add Qwen 2.5 Coder from the hub](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)
23+3. Configure it in your Continue settings
24+
25+## Need Help?
26+
27+If you're not seeing any completions or need more detailed configuration options, check out our comprehensive [autocomplete deep dive guide](/customize/deep-dives/autocomplete).
added docs/features/autocomplete/quick-start.mdx +23 −0
@@ -0,0 +1,23 @@
1+---
2+title: "Quick Start"
3+---
4+
5+## How to use it[​](#how-to-use-it "Direct link to How to use it")
6+
7+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.
8+
9+### Accepting a full suggestion[​](#accepting-a-full-suggestion "Direct link to Accepting a full suggestion")
10+
11+Accept a full suggestion by pressing `Tab`
12+
13+### Rejecting a full suggestion[​](#rejecting-a-full-suggestion "Direct link to Rejecting a full suggestion")
14+
15+Reject a full suggestion with `Esc`
16+
17+### Partially accepting a suggestion[​](#partially-accepting-a-suggestion "Direct link to Partially accepting a suggestion")
18+
19+For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggestion word-by-word.
20+
21+### Forcing a suggestion (VS Code)[​](#forcing-a-suggestion-vs-code "Direct link to Forcing a suggestion (VS Code)")
22+
23+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 **`cmd/ctrl` + `alt` + `space`**.
added docs/features/chat/context-selection.mdx +39 −0
@@ -0,0 +1,39 @@
1+## Input
2+
3+Typing a question or instructions into the input box is the only required context.
4+
5+## Highlighted Code
6+
7+The highlighted code you've selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt.
8+
9+## Active File
10+
11+You can include the currently open file as context by pressing opt/alt + enter when you send your request.
12+
13+## Specific File
14+
15+You can include a specific file in your current workspace by typing '@Files' and selecting the file.
16+
17+## Specific Folder
18+
19+You can include a folder in your current workspace by typing '@Folder' and selecting the directory.
20+
21+## Codebase Search
22+
23+You can automatically include relevant files from your codebase by typing '@Codebase'.
24+
25+## Documentation Site
26+
27+You can include a documentation site as context by typing '@Docs' and selecting the site.
28+
29+## Terminal Contents
30+
31+You can include the contents of the terminal in your IDE by typing '@Terminal'.
32+
33+## Git Diff
34+
35+You can include all of the changes you've made to your current branch by typing '@Git Diff'.
36+
37+## Other Context
38+
39+You can see a full list of built-in context providers [here](/customize/custom-providers) and learn about how to create your own context provider [here](/guides/build-your-own-context-provider).
added docs/features/chat/how-it-works.mdx +59 −0
@@ -0,0 +1,59 @@
1+---
2+title: "How Chat Works"
3+description: "Continue's Chat feature provides a conversational interface with AI models directly in your IDE sidebar."
4+---
5+
6+## Core Functionality[​](#core-functionality "Direct link to Core Functionality")
7+
8+When you start a chat conversation, Continue:
9+
10+1. **Gathers Context**: Uses any selected code sections and @-mentioned context
11+2. **Constructs Prompt**: Combines your input with relevant context
12+3. **Sends to Model**: Prompts the configured AI model for a response
13+4. **Streams Response**: Returns the AI response in real-time to the sidebar
14+
15+## Context Management[​](#context-management "Direct link to Context Management")
16+
17+### Automatic Context[​](#automatic-context "Direct link to Automatic Context")
18+
19+- Selected code in your editor
20+- Current file context when relevant
21+- Previous conversation history in the session
22+
23+### Manual Context[​](#manual-context "Direct link to Manual Context")
24+
25+- `@Codebase` - Search and include relevant code from your project
26+- `@Docs` - Include documentation context
27+- `@Files` - Reference specific files
28+- Custom context providers
29+
30+## Response Handling[​](#response-handling "Direct link to Response Handling")
31+
32+Each code section in the AI response includes action buttons:
33+
34+- **Apply to current file** - Replace selected code
35+- **Insert at cursor** - Add code at cursor position
36+- **Copy** - Copy code to clipboard
37+
38+## Session Management[​](#session-management "Direct link to Session Management")
39+
40+- Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session
41+- Clears all previous context for a fresh start
42+- Helpful for switching between different tasks
43+
44+## Advanced Features[​](#advanced-features "Direct link to Advanced Features")
45+
46+### Prompt Inspection[​](#prompt-inspection "Direct link to Prompt Inspection")
47+
48+View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting) for debugging and optimization.
49+
50+### Context Providers[​](#context-providers "Direct link to Context Providers")
51+
52+Learn more about how context providers work:
53+
54+- [Codebase Context](/customization/overview#codebase-context)
55+- [Documentation Context](/customization/overview#documentation-context)
56+
57+---
58+
59+_Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used._
added docs/features/chat/how-to-customize.mdx +7 −0
@@ -0,0 +1,7 @@
1+There are a number of different ways to customize Chat:
2+
3+- Add a `rules` block to give the model persistent instructions through the system prompt
4+- Configure `@Codebase`
5+- Configure `@Docs`
6+- [Build your own context provider](/guides/build-your-own-context-provider)
7+- [Create a custom code RAG](/guides/custom-code-rag)
added docs/features/chat/model-setup.mdx +19 −0
@@ -0,0 +1,19 @@
1+We recommend setting up a model for the best experience.
2+
3+## Recommended Models
4+
5+Here's our primary model recommendation:
6+
7+**Claude 3.5 Sonnet** from Anthropic
8+
9+- [Add Claude 3.5 Sonnet to your assistant from the hub](https://hub.continue.dev/anthropic/claude-3-5-sonnet-20241022)
10+- Get your API key from the [Anthropic console](https://console.anthropic.com/)
11+
12+Other top models to consider:
13+
14+- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
15+- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2)
16+- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash)
17+- [Llama 3.1 8b from Meta (local)](https://hub.continue.dev/ollama/llama3.1)
18+
19+For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model).
added docs/features/chat/quick-start.mdx +89 −0
@@ -0,0 +1,89 @@
1+---
2+title: "Quick Start"
3+---
4+
5+Chat makes it easy to ask for help from an AI without leaving your IDE. Get explanations, generate code, and iterate on solutions conversationally.
6+
7+## Basic Usage[​](#basic-usage "Direct link to Basic Usage")
8+
9+### 1. Start a Conversation[​](#1-start-a-conversation "Direct link to 1. Start a Conversation")
10+
11+Type your question or request in the chat input and press Enter.
12+
13+**Examples:**
14+
15+- "Explain this function"
16+- "How do I handle errors in this code?"
17+- "Generate a test for this component"
18+
19+### 2. Include Code Context[​](#2-include-code-context "Direct link to 2. Include Code Context")
20+
21+Select code in your editor, then use the keyboard shortcut to include it in your chat:
22+
23+- VS Code
24+- JetBrains
25+
26+Press `Cmd/Ctrl + L` to send selected code to chat
27+
28+Press `Cmd/Ctrl + J` to send selected code to chat
29+
30+### 3. Use @ for Additional Context[​](#3-use--for-additional-context "Direct link to 3. Use @ for Additional Context")
31+
32+Type `@` to include specific context:
33+
34+- `@Codebase` - Search your project for relevant code
35+- `@Docs` - Include documentation
36+- `@Files` - Reference specific files
37+- `@Terminal` - Include terminal output
38+
39+## Working with Responses[​](#working-with-responses "Direct link to Working with Responses")
40+
41+When the AI provides code in its response, you'll see action buttons:
42+
43+- **Apply to current file** - Replace your selected code
44+- **Insert at cursor** - Add code at your cursor position
45+- **Copy** - Copy code to clipboard
46+
47+## Pro Tips[​](#pro-tips "Direct link to Pro Tips")
48+
49+### Start Fresh[​](#start-fresh "Direct link to Start Fresh")
50+
51+Press `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) in an empty chat to start a new session.
52+
53+### Be Specific[​](#be-specific "Direct link to Be Specific")
54+
55+Include details about:
56+
57+- What you're trying to accomplish
58+- Any constraints or requirements
59+- Your preferred coding style or patterns
60+
61+### Iterate[​](#iterate "Direct link to Iterate")
62+
63+If the first response isn't perfect:
64+
65+- Ask follow-up questions
66+- Request modifications
67+- Provide additional context
68+
69+## Common Use Cases[​](#common-use-cases "Direct link to Common Use Cases")
70+
71+### Code Explanation[​](#code-explanation "Direct link to Code Explanation")
72+
73+Select confusing code and ask "What does this code do?"
74+
75+### Bug Fixing[​](#bug-fixing "Direct link to Bug Fixing")
76+
77+Include error messages and ask "How do I fix this error?"
78+
79+### Code Generation[​](#code-generation "Direct link to Code Generation")
80+
81+Describe what you want: "Create a React component that displays a user profile"
82+
83+### Refactoring[​](#refactoring "Direct link to Refactoring")
84+
85+Select code and ask "How can I make this more efficient?"
86+
87+---
88+
89+_Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!_
added docs/features/edit/context-selection.mdx +11 −0
@@ -0,0 +1,11 @@
1+## Input
2+
3+The input you provide is included in the prompt.
4+
5+## Code to Edit
6+
7+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.
8+
9+## Context Providers
10+
11+In VS Code Edit mode, you can use `@` to add context using [Context Providers](/customize/custom-providers), similar to [Chat](/features/chat/context-selection). Some context providers may be disabled in Edit mode.
added docs/features/edit/how-it-works.mdx +10 −0
@@ -0,0 +1,10 @@
1+---
2+title: "How Edit Works"
3+description: "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."
4+---
5+
6+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.
7+
8+If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes.
9+
10+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/features/edit/how-to-customize.mdx +9 −0
@@ -0,0 +1,9 @@
1+## Setting active Edit/Apply model
2+
3+You can configure particular models from your Assistant to be used for Edit and Apply requests.
4+
5+1. Click the 3 dots above the main input
6+2. Click the cube icon to expand the "Models" section
7+3. Use the dropdowns to select models for Edit and Apply
8+
9+Learn more about the [Edit role](/customize/model-roles/edit) and [Apply role](/customize/model-roles/apply).
added docs/features/edit/model-setup.mdx +14 −0
@@ -0,0 +1,14 @@
1+By default, Edit uses the same model as Chat. We recommend **Claude 3.5 Sonnet** from Anthropic.
2+
3+[Explore other Edit models on the Continue Hub →](https://hub.continue.dev)
4+
5+## Apply Model
6+
7+We also recommend setting up an Apply model for the best Edit experience.
8+
9+**Recommended Apply models:**
10+
11+- [Morph v0 Fast Apply](https://hub.continue.dev)
12+- [Relace Instant Apply](https://hub.continue.dev)
13+
14+[Explore other Apply models on the Continue Hub →](https://hub.continue.dev)
added docs/features/edit/quick-start.mdx +47 −0
@@ -0,0 +1,47 @@
1+---
2+title: "Quick Start"
3+---
4+
5+## How to use it[​](#how-to-use-it "Direct link to How to use it")
6+
7+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.
8+
9+Edit is recommended for small, targeted changes, such as
10+
11+- Writing comments
12+- Generating unit tests
13+- Refactoring functions or methods
14+
15+## Highlight code and activate[​](#highlight-code-and-activate "Direct link to Highlight code and activate")
16+
17+Highlight the block of code you would like to modify and press `cmd/ctrl` + `i` to active Edit mode. You can also enter Edit mode by pressing `cmd/ctrl` + `i` with no code highlighted, which will default to editing the current file.
18+
19+## Describe code changes[​](#describe-code-changes "Direct link to Describe code changes")
20+
21+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](/features/chat/quick-start).
22+
23+## Accept or reject changes[​](#accept-or-reject-changes "Direct link to Accept or reject changes")
24+
25+Proposed changes appear as inline diffs within your highlighted text.
26+
27+You can navigate through each proposed change, accepting or rejecting them using `cmd/ctrl` + `opt` + `y` (to accept) or `cmd/ctrl` + `opt` + `n` (to reject).
28+
29+You can also accept or reject all changes at once using `cmd/ctrl` + `shift` + `enter` (to accept) or `cmd/ctrl` + `shift` + `delete/backspace` (to reject).
30+
31+If you want to request a new suggestion for the same highlighted code section, you can use `cmd/ctrl` + `i` to re-prompt the model.
32+
33+## VS Code[​](#vs-code "Direct link to VS Code")
34+
35+In VS Code, Edit is implemented in the extension sidebar with a similar interface to [Chat](/features/chat/how-it-works), and you can also enter Edit mode by using the Mode Selector below the main Chat input to select `Edit`.
36+
37+![edit mode selected](/images/features/edit/images/select-edit-mode-75c8f01861ebe03177986a5b7f21f746.png)
38+
39+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).
40+
41+### Adding Code to Edit[​](#adding-code-to-edit "Direct link to Adding Code to Edit")
42+
43+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.
44+
45+## Jetbrains[​](#jetbrains "Direct link to Jetbrains")
46+
47+In Jetbrains, Edit is implemented as an inline popup. See the header GIF example.
added docs/getting-started/install.mdx +73 −0
@@ -0,0 +1,73 @@
1+---
2+title: "Install"
3+description: "Get Continue installed in your favorite IDE in just a few steps."
4+---
5+
6+<Tabs>
7+<Tab title="VS Code">
8+
9+<Steps>
10+<Step title="Install from Marketplace">
11+Click `Install` on the [Continue extension page in the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=Continue.continue)
12+</Step>
13+
14+<Step title="Install in VS Code">
15+ This will open the Continue extension page in VS Code, where you will need to
16+ click `Install` again
17+</Step>
18+
19+<Step title="Move to Right Sidebar">
20+The Continue logo will appear on the left sidebar. For a better experience, move Continue to the right sidebar
21+
22+![move-to-right-sidebar](/images/move-to-right-sidebar-b2d315296198e41046fc174d8178f30a.gif)
23+
24+</Step>
25+
26+<Step title="Sign In">
27+[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant
28+</Step>
29+</Steps>
30+
31+<Info>
32+ If you have any problems, see the [troubleshooting guide](/troubleshooting) or
33+ ask for help in [our Discord](https://discord.gg/NWtdYexhMs)
34+</Info>
35+
36+</Tab>
37+
38+<Tab title="JetBrains">
39+
40+<Steps>
41+<Step title="Open Settings">
42+Open your JetBrains IDE and open **Settings** using `Ctrl` + `Alt` + `S`
43+</Step>
44+
45+<Step title="Find Continue Plugin">
46+ Select **Plugins** on the sidebar and search for "Continue" in the marketplace
47+</Step>
48+
49+<Step title="Install Plugin">
50+Click `Install`, which will cause the Continue logo to show up on the right toolbar
51+
52+![jetbrains-getting-started.png](/images/getting-started/images/jetbrains-getting-started-d62b7edee1cdd58508c5075faf285955.png)
53+
54+</Step>
55+
56+<Step title="Sign In">
57+[Sign in to the hub](https://auth.continue.dev/) to get started with your first assistant
58+</Step>
59+</Steps>
60+
61+<Info>
62+ If you have any problems, see the [troubleshooting guide](/troubleshooting) or
63+ ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ)
64+</Info>
65+
66+</Tab>
67+</Tabs>
68+
69+## Signing in
70+
71+Click "Get started" to sign in to the hub and start using assistants.
72+
73+![Hub Onboarding in the Extension](/images/getting-started/images/hub-onboarding-card-81abd457b6d131c4b0aa89a5a6d647d3.png)
added docs/getting-started/overview.mdx +46 −0
@@ -0,0 +1,46 @@
1+---
2+title: "Overview"
3+description: "To quickly understand what you can do with Continue, check out each tab below."
4+---
5+
6+<Tabs>
7+<Tab title="Chat">
8+[Chat](/features/chat/quick-start) makes it easy to ask for help from an LLM without needing to leave the IDE
9+
10+![chat](/images/chat-489b68d156be2aafe09ee7cedf233fba.gif)
11+
12+<Info>
13+ Learn more about [Chat](/features/chat/quick-start)
14+</Info>
15+</Tab>
16+
17+<Tab title="Autocomplete">
18+[Autocomplete](/features/autocomplete/quick-start) provides inline code suggestions as you type
19+
20+![autocomplete](/images/autocomplete-9d4e3f7658d3e65b8e8b20f2de939675.gif)
21+
22+<Info>
23+ Learn more about [Autocomplete](/features/autocomplete/quick-start)
24+</Info>
25+</Tab>
26+
27+<Tab title="Edit">
28+[Edit](/features/edit/quick-start) is a convenient way to modify code without leaving your current file
29+
30+![edit](/images/edit-d522442f88e715924b4c9f4c83900e3a.gif)
31+
32+<Info>
33+ Learn more about [Edit](/features/edit/quick-start)
34+</Info>
35+</Tab>
36+
37+<Tab title="Agent">
38+[Agent](/features/agent/quick-start) equips the Chat model with the tools needed to handle a wide range of coding tasks
39+
40+![agent](/images/agent-9ef792cfc196a3b5faa984fb072c4400.gif)
41+
42+<Info>
43+ Learn more about [Agent](/features/agent/quick-start)
44+</Info>
45+</Tab>
46+</Tabs>
added docs/guides/build-your-own-context-provider.mdx +161 −0
@@ -0,0 +1,161 @@
1+---
2+title: "Build Your Own Context Provider"
3+description: "Continue offers several way to provide your custom context to the extension."
4+---
5+
6+## HTTP Context Provider[​](#http-context-provider "Direct link to HTTP Context Provider")
7+
8+Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this:
9+
10+- YAML
11+- JSON
12+
13+config.yaml
14+
15+```
16+context: provider: http params: url: https://myserver.com/context-provider title: http displayTitle: My Custom Context description: Gets things from my private list options: maxItems: 20
17+```
18+
19+config.json
20+
21+```json
22+{
23+ "name": "http",
24+ "params": {
25+ "url": "https://myserver.com/context-provider",
26+ "title": "http",
27+ "description": "Custom HTTP Context Provider",
28+ "displayTitle": "My Custom Context",
29+ "options": { "maxItems": 20 }
30+ }
31+}
32+```
33+
34+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.
35+
36+The `"options"` property can be used to send additional parameters to your endpoint. The full request body has the following shape:
37+
38+```json
39+{ query: string; fullInput: string; options: Record<string, JsonValue>; workspacePath?: string; // Only provided if the server is local.}
40+```
41+
42+<Info>
43+ The following methods for creating custom context providers are deprecated. We
44+ recommend using HTTP context providers, [MCP
45+ Servers](/customization/mcp-tools), and [Prompts](/customization/prompts)
46+ where possible.
47+</Info>
48+
49+## Using CustomContextProvider[​](#using-customcontextprovider "Direct link to Using CustomContextProvider")
50+
51+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`
52+
53+```
54+interface CustomContextProvider { title: string; displayTitle?: string; description?: string; renderInlineAs?: string; type?: ContextProviderType; getContextItems( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]>; loadSubmenuItems?: ( args: LoadSubmenuItemsArgs, ) => Promise<ContextSubmenuItem[]>;}
55+```
56+
57+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:
58+
59+- `name`: The name of the context item, which will be displayed as a title
60+- `description`: A longer description of the context item
61+- `content`: The actual content of the context item, which will be fed to the LLM as context
62+
63+\~/.continue/config.ts
64+
65+```
66+const RagContextProvider: CustomContextProvider = { title: "rag", displayTitle: "RAG", description: "Retrieve snippets from our vector database of internal documents", getContextItems: async ( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> => { const response = await fetch("https://internal_rag_server.com/retrieve", { method: "POST", body: JSON.stringify({ query }), }); const results = await response.json(); return results.map((result) => ({ name: result.title, description: result.title, content: result.contents, })); },};
67+```
68+
69+It can then be added in `config.ts` like so:
70+
71+\~/.continue/config.ts
72+
73+```
74+export function modifyConfig(config: Config): Config { if (!config.contextProviders) { config.contextProviders = []; } config.contextProviders.push(RagContextProvider); return config;}
75+```
76+
77+This is automatically appended to your configuration.
78+
79+### Custom Context Providers with Submenu or Query[​](#custom-context-providers-with-submenu-or-query "Direct link to Custom Context Providers with Submenu or Query")
80+
81+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.
82+
83+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.
84+
85+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:
86+
87+\~/.continue/config.ts
88+
89+```
90+const ReadMeContextProvider: CustomContextProvider = { title: "readme", displayTitle: "README", description: "Reference README.md files in your workspace", type: "submenu", getContextItems: async ( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> => { // 'query' is the filepath of the README selected from the dropdown const content = await extras.ide.readFile(query); return [ { name: getFolder(query), description: getFolderAndBasename(query), content, }, ]; }, loadSubmenuItems: async ( args: LoadSubmenuItemsArgs, ): Promise<ContextSubmenuItem[]> => { const { ide } = args; // Filter all workspace files for READMEs const workspaceDirs = await ide.getWorkspaceDirs(); const allFiles = await Promise.all( workspaceDirs.map((dir) => ide.subprocess(`find ${dir} -name "README.md"`), ), ); // 'readmes' now contains an array of file paths for each README.md file found in the workspace, // excluding those in 'node_modules' const readmes = allFiles .flatMap((mds) => mds[0].split("\n")) .filter((file) => file.trim() !== "" && !file.includes("/node_modules/")); // Return the items that will be shown in the dropdown return readmes.map((filepath) => { return { id: filepath, title: getFolder(filepath), description: getFolderAndBasename(filepath), }; }); },};export function modifyConfig(config: Config): Config { if (!config.contextProviders) { config.contextProviders = []; } config.contextProviders.push(ReadMeContextProvider); return config;}function getFolder(path: string): string { return path.split(/[\/\\]/g).slice(-2)[0];}function getFolderAndBasename(path: string): string { return path .split(/[\/\\]/g) .slice(-2) .join("/");}
91+```
92+
93+The flow of information in the above example is as follows:
94+
95+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`.
96+2. The user selects one of the READMEs in the submenu, enters the rest of their input, and presses enter.
97+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.
98+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.
99+
100+### Importing outside modules[​](#importing-outside-modules "Direct link to Importing outside modules")
101+
102+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.
103+
104+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).
105+
106+### `CustomContextProvider` Reference[​](#customcontextprovider-reference "Direct link to customcontextprovider-reference")
107+
108+- `title`: An identifier for the context provider
109+
110+- `displayTitle` (optional): The title displayed in the dropdown
111+
112+- `description` (optional): The longer description displayed in the dropdown when hovered
113+
114+- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal".
115+
116+- `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`.
117+
118+- `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:
119+ - `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
120+ - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding
121+ - `extras.llm`: The current default LLM, which you can use to make completion requests
122+ - `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.
123+ - `query`: (not currently used) A string representing the query
124+
125+- `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`. .
126+
127+## Extension API for VSCode[​](#extension-api-for-vscode "Direct link to Extension API for VSCode")
128+
129+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`:
130+
131+package.json
132+
133+```json
134+{ "extensionDependencies": ["continue.continue"] }
135+```
136+
137+Or install the Continue Core module from npm:
138+
139+```
140+npm i @continuedev/core
141+```
142+
143+You can add the Continue core module as a dev dependency in your `package.json`:
144+
145+package.json
146+
147+```json
148+{ "devDependencies": { "@continuedev/core": "^0.0.1" } }
149+```
150+
151+Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface. Here is an example:
152+
153+myCustomContextProvider.ts
154+
155+```
156+import * as vscode from "vscode";import { IContextProvider, ContextProviderDescription, ContextProviderExtras, ContextItem, LoadSubmenuItemsArgs, ContextSubmenuItem,} from "@continuedev/core";class MyCustomProvider implements IContextProvider { get description(): ContextProviderDescription { return { title: "Custom", displayTitle: "Custom", description: "my custom context provider", type: "normal", }; } async getContextItems( query: string, extras: ContextProviderExtras, ): Promise<ContextItem[]> { return [ { name: "Custom", description: "Custom description", content: "Custom content", }, ]; } async loadSubmenuItems( args: LoadSubmenuItemsArgs, ): Promise<ContextSubmenuItem[]> { return []; }}// create an instance of your custom providerconst customProvider = new MyCustomProvider();// get Continue extension using vscode APIconst continueExt = vscode.extensions.getExtension("Continue.continue");// get the API from the extensionconst continueApi = continueExt?.exports;// register your custom providercontinueApi?.registerCustomContextProvider(customProvider);
157+```
158+
159+This will register `MyCustomProvider` with Continue!
160+
161+![alt text](/images/guides/images/image-8befb5162b7779402f70ff42bb589edb.png)
added docs/guides/custom-code-rag.mdx +113 −0
@@ -0,0 +1,113 @@
1+---
2+title: "Custom code RAG"
3+description: "While Continue comes with 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."
4+---
5+
6+## Step 1: Choose an embeddings model[​](#step-1-choose-an-embeddings-model "Direct link to Step 1: Choose an embeddings model")
7+
8+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.
9+
10+## Step 2: Choose a vector database[​](#step-2-choose-a-vector-database "Direct link to Step 2: Choose a vector database")
11+
12+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.
13+
14+[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.
15+
16+## Step 3: Choose a "chunking" strategy[​](#step-3-choose-a-chunking-strategy 'Direct link to Step 3: Choose a "chunking" strategy')
17+
18+Most embeddings models can only handle a limited amount of text at once. To get around this, we "chunk" our code into smaller pieces.
19+
20+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:
21+
22+1. Truncate the file when it goes over the context length: in this case you will always have 1 chunk per file.
23+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.
24+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/).
25+
26+As usual in this guide, we recommend starting with the strategy that gives 80% of the benefit with 20% of the effort.
27+
28+## Step 4: Put together an indexing script[​](#step-4-put-together-an-indexing-script "Direct link to Step 4: Put together an indexing script")
29+
30+Indexing, in which we will insert your code into the vector database in a retrievable format, happens in three steps:
31+
32+1. Chunking
33+2. Generating embeddings
34+3. Inserting into the vector database
35+
36+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:
37+
38+```
39+from lancedb.pydantic import LanceModel, Vectorfrom lancedb.embeddings import get_registrydb = lancedb.connect("/tmp/db")func = get_registry().get("openai").create( name="voyage-code-3", base_url="https://api.voyageai.com/v1/", api_key=os.environ["VOYAGE_API_KEY"],)class CodeChunks(LanceModel): filename: str text: str = func.SourceField() # 1024 is the default dimension for `voyage-code-3`: https://docs.voyageai.com/docs/embeddings#model-choices vector: Vector(1024) = func.VectorField()table = db.create_table("code_chunks", schema=CodeChunks, mode="overwrite")table.add([ {"text": "print('hello world!')", filename: "hello.py"}, {"text": "print('goodbye world!')", filename: "goodbye.py"}])query = "greetings"actual = table.search(query).limit(1).to_pydantic(CodeChunks)[0]print(actual.text)
40+```
41+
42+<Check>
43+ If you are indexing more than one repository, it is best to store these in
44+ separate "tables" (terminology used by LanceDB) or "collections" (terminology
45+ used by some other vector DBs). The alternative of adding a "repository" field
46+ and then filtering by this is less performant.
47+</Check>
48+
49+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.
50+
51+## Step 5: Run your indexing script[​](#step-5-run-your-indexing-script "Direct link to Step 5: Run your indexing script")
52+
53+<Check>
54+ 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.
55+
56+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.
57+
58+</Check>
59+
60+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.
61+
62+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.
63+
64+## Step 6: Set up your server[​](#step-6-set-up-your-server "Direct link to Step 6: Set up your server")
65+
66+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.
67+
68+Here is a reference implementation using FastAPI that is capable of handling requests from Continue's "http" context provider.
69+
70+```
71+"""This is an example of a server that can be used with the "http" context provider."""from fastapi import FastAPIfrom pydantic import BaseModelclass ContextProviderInput(BaseModel): query: str fullInput: strapp = FastAPI()@app.post("/retrieve")async def create_item(item: ContextProviderInput): results = [] # TODO: Query your vector database here. # Construct the "context item" format expected by Continue context_items = [] for result in results: context_items.append({ "name": result.filename, "description": result.filename, "content": result.text, }) return context_items
72+```
73+
74+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:
75+
76+- YAML
77+- JSON
78+
79+config.yaml
80+
81+```
82+context: - provider: http params: url: https://myserver.com/retrieve name: http description: Custom HTTP Context Provider displayTitle: My Custom Context
83+```
84+
85+config.json
86+
87+```json
88+{
89+ "contextProviders": [
90+ {
91+ "name": "http",
92+ "params": {
93+ "url": "https://myserver.com/retrieve",
94+ "title": "http",
95+ "description": "Custom HTTP Context Provider",
96+ "displayTitle": "My Custom Context"
97+ }
98+ }
99+ ]
100+}
101+```
102+
103+## Step 7 (Bonus): Set up reranking[​](#step-7-bonus-set-up-reranking "Direct link to Step 7 (Bonus): Set up reranking")
104+
105+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.
106+
107+If you wish to return 10 total results for each query for example, then you would:
108+
109+1. Retrieve \~50 results from the vector database using similarity search
110+2. Send all of these 50 results to the reranker API along with the query in order to get relevancy scores for each
111+3. Sort the results by relevancy score and return the top 10
112+
113+We recommend using the `rerank-2` model from Voyage AI, which has examples of usage [here](https://docs.voyageai.com/docs/reranker).
added docs/guides/how-to-self-host-a-model.mdx +104 −0
@@ -0,0 +1,104 @@
1+---
2+title: "How to Self-Host a Model"
3+description: "You can deploy a model in your , , , , or using:"
4+---
5+
6+- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi)
7+- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm)
8+- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot)
9+- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API)
10+- [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda)
11+
12+## Self-hosting an open-source model[​](#self-hosting-an-open-source-model "Direct link to Self-hosting an open-source model")
13+
14+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.
15+
16+However, if neither of these are the case, you will need to wire up a new LLM object.
17+
18+## Authentication[​](#authentication "Direct link to Authentication")
19+
20+Basic authentication can be done with any provider using the `apiKey` field:
21+
22+- YAML
23+- JSON
24+
25+config.yaml
26+
27+```
28+models: - name: Ollama provider: ollama model: llama2-7b apiKey: <YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>
29+```
30+
31+config.json
32+
33+```json
34+{
35+ "models": [
36+ {
37+ "title": "Ollama",
38+ "provider": "ollama",
39+ "model": "llama2-7b",
40+ "apiKey": "<YOUR_CUSTOM_OLLAMA_SERVER_API_KEY>"
41+ }
42+ ]
43+}
44+```
45+
46+This translates to the header `"Authorization": "Bearer xxx"`.
47+
48+If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama:
49+
50+- YAML
51+- JSON
52+
53+config.yaml
54+
55+```
56+models: - name: Ollama provider: ollama model: llama2-7b requestOptions: headers: X-Auth-Token: xxx
57+```
58+
59+config.json
60+
61+```json
62+{
63+ "models": [
64+ {
65+ "title": "Ollama",
66+ "provider": "ollama",
67+ "model": "llama2-7b",
68+ "requestOptions": { "headers": { "X-Auth-Token": "xxx" } }
69+ }
70+ ]
71+}
72+```
73+
74+Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below:
75+
76+- YAML
77+- JSON
78+
79+config.yaml
80+
81+```
82+models: - name: Ollama provider: ollama model: llama2-7b requestOptions: clientCertificate: cert: C:\tempollama.pem key: C:\tempollama.key passphrase: c0nt!nu3
83+```
84+
85+config.json
86+
87+```json
88+{
89+ "models": [
90+ {
91+ "title": "Ollama",
92+ "provider": "ollama",
93+ "model": "llama2-7b",
94+ "requestOptions": {
95+ "clientCertificate": {
96+ "cert": "C:\\tempollama.pem",
97+ "key": "C:\\tempollama.key",
98+ "passphrase": "c0nt!nu3"
99+ }
100+ }
101+ }
102+ ]
103+}
104+```
added docs/guides/llama3.1.mdx +199 −0
@@ -0,0 +1,199 @@
1+---
2+title: "Using Llama 3.1 with Continue"
3+description: "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."
4+---
5+
6+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/overview).
7+
8+Below we share some of the easiest ways to get up and running, depending on your use-case.
9+
10+## Ollama[​](#ollama "Direct link to Ollama")
11+
12+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.
13+
14+1. Download Ollama [here](https://ollama.ai/) (it should walk you through the rest of these steps)
15+2. Open a terminal and run `ollama run llama3.1:8b`
16+3. Change your Continue config file like this:
17+
18+- YAML
19+- JSON
20+
21+config.yaml
22+
23+```
24+models: - name: Llama 3.1 8b provider: ollama model: llama3.1-8b
25+```
26+
27+config.json
28+
29+```json
30+{
31+ "models": [
32+ { "title": "Llama 3.1 8b", "provider": "ollama", "model": "llama3.1-8b" }
33+ ]
34+}
35+```
36+
37+## Groq[​](#groq "Direct link to Groq")
38+
39+<Info>
40+ Check if your chosen model is still supported by referring to the [model
41+ documentation](https://console.groq.com/docs/models). If a model has been
42+ deprecated, you may encounter a 404 error when attempting to use it.
43+</Info>
44+
45+Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
46+
47+1. Obtain an API key [here](https://console.groq.com/keys)
48+2. Update your Continue config file like this:
49+
50+- YAML
51+- JSON
52+
53+config.yaml
54+
55+```
56+models: - name: Llama 3.3 70b Versatile provider: groq model: llama-3.3-70b-versatile apiKey: <YOUR_GROQ_API_KEY>
57+```
58+
59+config.json
60+
61+```json
62+{
63+ "models": [
64+ {
65+ "title": "Llama 3.3 70b Versatile",
66+ "provider": "groq",
67+ "model": "llama-3.3-70b-versatile",
68+ "apiKey": "<YOUR_GROQ_API_KEY>"
69+ }
70+ ]
71+}
72+```
73+
74+## Together AI[​](#together-ai "Direct link to Together AI")
75+
76+Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed.
77+
78+1. Create an account [here](https://api.together.xyz/signup)
79+2. Copy your API key that appears on the welcome screen
80+3. Update your Continue config file like this:
81+
82+- YAML
83+- JSON
84+
85+config.yaml
86+
87+```
88+models: - name: Llama 3.1 405b provider: together model: llama3.1-405b apiKey: <YOUR_TOGETHER_API_KEY>
89+```
90+
91+config.json
92+
93+```json
94+{
95+ "models": [
96+ {
97+ "title": "Llama 3.1 405b",
98+ "provider": "together",
99+ "model": "llama3.1-405b",
100+ "apiKey": "<YOUR_TOGETHER_API_KEY>"
101+ }
102+ ]
103+}
104+```
105+
106+## Replicate[​](#replicate "Direct link to Replicate")
107+
108+Replicate makes it easy to host and run open-source AI with an API.
109+
110+1. Get your Replicate API key [here](https://replicate.ai/)
111+2. Change your Continue config file like this:
112+
113+- YAML
114+- JSON
115+
116+config.yaml
117+
118+```
119+models: - name: Llama 3.1 405b provider: replicate model: llama3.1-405b apiKey: <YOUR_REPLICATE_API_KEY>
120+```
121+
122+config.json
123+
124+```json
125+{
126+ "models": [
127+ {
128+ "title": "Llama 3.1 405b",
129+ "provider": "replicate",
130+ "model": "llama3.1-405b",
131+ "apiKey": "<YOUR_REPLICATE_API_KEY>"
132+ }
133+ ]
134+}
135+```
136+
137+## SambaNova[​](#sambanova "Direct link to SambaNova")
138+
139+SambaNova Cloud provides world record Llama3.1 70B/405B serving.
140+
141+1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup)
142+2. Copy your API key
143+3. Update your Continue config file like this:
144+
145+- YAML
146+- JSON
147+
148+config.yaml
149+
150+```
151+models: - name: SambaNova Llama 3.1 405B provider: sambanova model: llama3.1-405b apiKey: <YOUR_SAMBA_API_KEY>
152+```
153+
154+config.json
155+
156+```json
157+{
158+ "models": [
159+ {
160+ "title": "SambaNova Llama 3.1 405B",
161+ "provider": "sambanova",
162+ "model": "llama3.1-405b",
163+ "apiKey": "<YOUR_SAMBA_API_KEY>"
164+ }
165+ ]
166+}
167+```
168+
169+## Cerebras Inference[​](#cerebras-inference "Direct link to Cerebras Inference")
170+
171+Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/70B.
172+
173+1. Create an account in the portal [here](https://cloud.cerebras.ai/).
174+2. Create and copy the API key for use in Continue.
175+3. Update your Continue config file:
176+
177+- YAML
178+- JSON
179+
180+config.yaml
181+
182+```
183+models: - name: Cerebras Llama 3.1 70B provider: cerebras model: llama3.1-70b apiKey: <YOUR_CEREBRAS_API_KEY>
184+```
185+
186+config.json
187+
188+```json
189+{
190+ "models": [
191+ {
192+ "title": "Cerebras Llama 3.1 70B",
193+ "provider": "cerebras",
194+ "model": "llama3.1-70b",
195+ "apiKey": "<YOUR_CEREBRAS_API_KEY>"
196+ }
197+ ]
198+}
199+```
added docs/guides/ollama-guide.mdx +130 −0
@@ -0,0 +1,130 @@
1+---
2+title: "Using Ollama with Continue: A Developer's Guide"
3+description: "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."
4+---
5+
6+## Prerequisites[​](#prerequisites "Direct link to Prerequisites")
7+
8+Before getting started, ensure your system meets these requirements:
9+
10+- Operating System: macOS, Linux, or Windows
11+- RAM: Minimum 8GB (16GB+ recommended)
12+- Storage: At least 10GB free space
13+- Continue extension installed
14+
15+## Installation Steps[​](#installation-steps "Direct link to Installation Steps")
16+
17+### Step 1: Install Ollama[​](#step-1-install-ollama "Direct link to Step 1: Install Ollama")
18+
19+Choose the installation method for your operating system:
20+
21+```
22+# macOSbrew install ollama# Linuxcurl -fsSL https://ollama.ai/install.sh | sh# Windows# Download from ollama.ai
23+```
24+
25+### Step 2: Download Models[​](#step-2-download-models "Direct link to Step 2: Download Models")
26+
27+After installing Ollama, download the models you want to use. Here are some popular options:
28+
29+```
30+# Popular models for developmentollama pull llama2ollama pull codellamaollama pull mistral
31+```
32+
33+## Configuration[​](#configuration "Direct link to Configuration")
34+
35+Configure Continue to work with your local Ollama instance:
36+
37+### Continue Configuration[​](#continue-configuration "Direct link to Continue Configuration")
38+
39+```json
40+{
41+ "models": [
42+ {
43+ "title": "Ollama",
44+ "provider": "ollama",
45+ "model": "llama2",
46+ "apiBase": "http://localhost:11434"
47+ }
48+ ]
49+}
50+```
51+
52+### Advanced Settings[​](#advanced-settings "Direct link to Advanced Settings")
53+
54+For optimal performance, consider these advanced configuration options:
55+
56+- Memory optimization
57+- GPU acceleration
58+- Custom model parameters
59+- Performance tuning
60+
61+## Best Practices[​](#best-practices "Direct link to Best Practices")
62+
63+### Model Selection[​](#model-selection "Direct link to Model Selection")
64+
65+Choose models based on your specific needs:
66+
67+1. **Code Generation**: Use CodeLlama or Mistral
68+2. **Chat**: Llama2 or Mistral
69+3. **Specialized Tasks**: Domain-specific models
70+
71+### Performance Optimization[​](#performance-optimization "Direct link to Performance Optimization")
72+
73+To get the best performance from Ollama:
74+
75+- Monitor system resources
76+- Adjust context window size
77+- Use appropriate model sizes
78+- Enable GPU acceleration when available
79+
80+## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting")
81+
82+### Common Issues[​](#common-issues "Direct link to Common Issues")
83+
84+Here are solutions to common problems you might encounter:
85+
86+#### Connection Problems[​](#connection-problems "Direct link to Connection Problems")
87+
88+- Check Ollama service status
89+- Verify port availability
90+- Review firewall settings
91+
92+#### Performance Issues[​](#performance-issues "Direct link to Performance Issues")
93+
94+- Insufficient RAM
95+- Model too large for system
96+- GPU compatibility
97+
98+### Solutions[​](#solutions "Direct link to Solutions")
99+
100+Try these solutions in order:
101+
102+1. Restart Ollama service
103+2. Clear model cache
104+3. Update to latest version
105+4. Check system requirements
106+
107+## Example Workflows[​](#example-workflows "Direct link to Example Workflows")
108+
109+### Code Generation[​](#code-generation "Direct link to Code Generation")
110+
111+```
112+# Example: Generate a FastAPI endpointdef create_user_endpoint(): # Continue will help generate the implementation pass
113+```
114+
115+### Code Review[​](#code-review "Direct link to Code Review")
116+
117+Use Continue with Ollama to:
118+
119+- Analyze code quality
120+- Suggest improvements
121+- Identify potential bugs
122+- Generate documentation
123+
124+## Conclusion[​](#conclusion "Direct link to Conclusion")
125+
126+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.
127+
128+---
129+
130+_This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly._
added docs/guides/overview.mdx +20 −0
@@ -0,0 +1,20 @@
1+---
2+title: "Overview"
3+---
4+
5+## Model & Setup Guides[​](#model--setup-guides "Direct link to Model & Setup Guides")
6+
7+- [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama
8+- [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model
9+- [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models
10+- [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup
11+- [Llama 3.1 Setup](/guides/llama3.1) - Getting started with Llama 3.1
12+
13+## Advanced Tutorials[​](#advanced-tutorials "Direct link to Advanced Tutorials")
14+
15+- [Build Your Own Context Provider](/guides/build-your-own-context-provider) - Create custom context providers
16+- [Custom Code RAG](/guides/custom-code-rag) - Implement custom retrieval-augmented generation
17+
18+## Contributing[​](#contributing "Direct link to Contributing")
19+
20+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/guides/running-continue-without-internet.mdx +9 −0
@@ -0,0 +1,9 @@
1+---
2+title: "Running Continue without Internet"
3+description: "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."
4+---
5+
6+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).
7+2. Open the [User Settings Page](/customize/settings) and turn off "Allow Anonymous Telemetry". This will stop Continue from attempting requests to PostHog for [anonymous telemetry](/customize/telemetry).
8+3. Also in `config.json`, set the default model to a local model. You can available options [here](/customization/models#openai).
9+4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect.
added docs/guides/set-up-codestral.mdx +49 −0
@@ -0,0 +1,49 @@
1+---
2+title: "How to Set Up Codestral"
3+---
4+
5+**Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:**
6+
7+1. Install the Continue VS Code or JetBrains extension following the instructions [here](/getting-started/install)
8+
9+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)
10+
11+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.
12+
13+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:
14+
15+- YAML
16+- JSON
17+
18+config.yaml
19+
20+```
21+models: - name: Codestral provider: mistral model: codestral-latest apiKey: <YOUR_CODESTRAL_API_KEY> apiBase: https://codestral.mistral.ai/v1 roles: - chat - autocomplete
22+```
23+
24+config.json
25+
26+```json
27+{
28+ "models": [
29+ {
30+ "title": "Codestral",
31+ "provider": "mistral",
32+ "model": "codestral-latest",
33+ "apiKey": "<YOUR_CODESTRAL_API_KEY>",
34+ "apiBase": "https://codestral.mistral.ai/v1"
35+ }
36+ ],
37+ "tabAutocompleteModel": [
38+ {
39+ "title": "Codestral",
40+ "provider": "mistral",
41+ "model": "codestral-latest",
42+ "apiKey": "<YOUR_CODESTRAL_API_KEY>",
43+ "apiBase": "https://codestral.mistral.ai/v1"
44+ }
45+ ]
46+}
47+```
48+
49+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/home.mdx +10 −0
@@ -0,0 +1,10 @@
1+---
2+title: "Introduction"
3+---
4+
5+**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)**
6+
7+- [Chat](/features/chat/quick-start) to understand and iterate on code in the sidebar
8+- [Autocomplete](/features/autocomplete/quick-start) to receive inline code suggestions as you type
9+- [Edit](/features/edit/quick-start) to modify code without leaving your current file
10+- [Agent](/features/agent/quick-start) to make more substantial changes to your codebase
added docs/hub/assistants/create-an-assistant.mdx +32 −0
@@ -0,0 +1,32 @@
1+---
2+title: "Create an assistant"
3+---
4+
5+## Remix an assistant[​](#remix-an-assistant "Direct link to Remix an assistant")
6+
7+You should remix an assistant if you want to use it after some modifications.
8+
9+By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
10+
11+![Remix Assistant Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png)
12+
13+Once here, you’ll be able to
14+
15+1. add or remove blocks in YAML configuration
16+2. change the name, description, icon, etc.
17+
18+Clicking “Create assistant” will make this assistant available for use.
19+
20+## Create an assistant from scratch[​](#create-an-assistant-from-scratch "Direct link to Create an assistant from scratch")
21+
22+To create an assistant from scratch, select “New assistant” in the top bar.
23+
24+![New assistant button](/images/hub/assistants/images/assistant-new-button-16070e2cff9ce25ec9ebfeecb0e2f2b5.png)
25+
26+Choose a name, slug, description, and icon for your assistant.
27+
28+The easiest way to create an assistant is to click "Create assistant" with the default configuration and then add / remove blocks using the sidebar.
29+
30+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.
31+
32+![New assistant YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png)
added docs/hub/assistants/edit-an-assistant.mdx +20 −0
@@ -0,0 +1,20 @@
1+---
2+title: "Edit an Assistant"
3+description: "New versions of an assistant can be created and published using the sidebar."
4+---
5+
6+![Remix Assistant Button](/images/hub/assistants/images/assistant-create-sidebar-608be49973f2a7723212adeb52dbcafb.png)
7+
8+First, select an assistant from the dropdown at the top.
9+
10+While editing an assistant, you can explore the hub and click "Add Block" from a block page to add it to your assistant.
11+
12+For blocks that require secret values like API keys, you will see a small notification on the block's tile in the sidebar that will indicate if action is needed.
13+
14+To delete a block, click the trash icon.
15+
16+If a block you want to use does not exist yet, you can [create a new block](/hub/blocks/create-a-block).
17+
18+When you are done editing, click "Publish" to publish a new version of the assistant.
19+
20+Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant.
added docs/hub/assistants/intro.mdx +8 −0
@@ -0,0 +1,8 @@
1+---
2+title: "Introduction to Assistants"
3+description: "Custom AI code assistants are configurations of building blocks that enable a coding experience tailored to your specific use cases."
4+---
5+
6+`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.
7+
8+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/hub/assistants/use-an-assistant.mdx +14 −0
@@ -0,0 +1,14 @@
1+---
2+title: "Use an assistant"
3+description: "To use an existing assistant, you can explore other assistants ."
4+---
5+
6+Once you've found the assistant you want to use
7+
8+1. Click “Add Assistant” on its page
9+2. Add any required inputs (e.g. secrets like API keys)
10+3. Select “Save changes” in assistant sidebar on the right hand side
11+
12+After this, you can then go to your IDE extension and begin using the assistant by selecting it from the assistant dropdown.
13+
14+[Extension Assistant Selector](/images/assistant-extension-select-319492a06d6249e5389747687341dfdb.png)
added docs/hub/blocks/block-types.mdx +45 −0
@@ -0,0 +1,45 @@
1+---
2+title: "Block Types"
3+---
4+
5+## Models[​](#models "Direct link to Models")
6+
7+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).
8+
9+Continue supports [many model providers](/customization/models#openai), 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#models) in the YAML Reference for more details.
10+
11+## Context[​](#context "Direct link to Context")
12+
13+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.
14+
15+Learn more about context providers [here](/reference#context), and check out [this guide](/guides/build-your-own-context-provider) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](/reference#context).
16+
17+## Docs[​](#docs "Direct link to Docs")
18+
19+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.
20+
21+Learn more in the [@Docs deep dive](/customization/overview#documentation-context), and view [`docs`](/reference#docs) in the YAML Reference for more details.
22+
23+## MCP Servers[​](#mcp-servers "Direct link to MCP Servers")
24+
25+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.
26+
27+Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details.
28+
29+## Rules[​](#rules "Direct link to Rules")
30+
31+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.
32+
33+Learn more in the [rules deep dive](/customization/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details.
34+
35+## Prompts[​](#prompts "Direct link to Prompts")
36+
37+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.
38+
39+Prompt blocks have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts).
40+
41+## Data[​](#data "Direct link to Data")
42+
43+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/overview#development-data). Explore data block examples [here](https://hub.continue.dev/explore/data).
44+
45+Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`.
added docs/hub/blocks/bundles.mdx +33 −0
@@ -0,0 +1,33 @@
1+---
2+title: "Bundles"
3+description: "Bundles are collections of blocks that are commonly used together. You can use them to add multiple building blocks to your custom AI code assistants at once. They are only a concept on , so they are not represented in ."
4+---
5+
6+## Use a bundle[​](#use-a-bundle "Direct link to Use a bundle")
7+
8+Once you know which bundle you want to use, you’ll need to
9+
10+1. Make sure the correct assistant is in the sidebar
11+2. Click “Add all blocks". This adds the individual blocks to your assistant.
12+3. Add any required inputs (e.g. secrets) for each block.
13+4. Select “Save changes” in assistant sidebar on the right hand side
14+
15+After this, you can then go to your IDE extension using the "Open VS Code" or "Open Jetbrains" buttons and begin using the new blocks.
16+
17+## Create a bundle[​](#create-a-bundle "Direct link to Create a bundle")
18+
19+To create a bundle, click “New bundle” in the header.
20+
21+![New bundle button](/images/hub/blocks/images/bundle-new-button-4e6ae842500100fffeff8b39f74728f0.png)
22+
23+Choose a name, slug, description, and visibility for your bundle.
24+
25+Then, search blocks using the "Search blocks" input and add them to your bundle.
26+
27+![Create bundle page](/images/hub/blocks/images/bundle-create-page-51dc9d72652c6675edb2e2a085db16a1.png)
28+
29+Once you have added all the blocks you want in your bundle, click "Create Bundle" to save it and make it available for use.
30+
31+## Remix a bundle[​](#remix-a-bundle "Direct link to Remix a bundle")
32+
33+It is not currently possible to remix a bundle.
added docs/hub/blocks/create-a-block.mdx +27 −0
@@ -0,0 +1,27 @@
1+---
2+title: "Create a block"
3+---
4+
5+## Remix a block[​](#remix-a-block "Direct link to Remix a block")
6+
7+You should remix a block if you want to use it after some modifications.
8+
9+By clicking the “remix” button, you’ll be taken to the “Create a remix” page.
10+
11+![Remix block button](/images/hub/blocks/images/block-remix-button-913beb80672662855acc7013561c78d0.png)
12+
13+Once here, you’ll be able to 1) edit YAML configuration for the block and 2) change name, description, icon, etc. Clicking “Create block” will make this block available for use in an assistant.
14+
15+## Create a block from scratch[​](#create-a-block-from-scratch "Direct link to Create a block from scratch")
16+
17+To create a block from scratch, you will need to click “New block” in the top bar.
18+
19+![New block button](/images/hub/blocks/images/block-new-button-03d90f6cc9be774c52bdfc4baa5d634e.png)
20+
21+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.
22+
23+![New block page](/images/hub/blocks/images/block-new-page-2d7faf71739d0f062d555b5d7257fb56.png)
24+
25+### Block inputs[​](#block-inputs "Direct link to Block inputs")
26+
27+Blocks can receive values, including secrets, as inputs through templating. For values that the user of the block needs to set, you can use template variables (e.g. `${{ inputs.API_KEY}}`). Then, the user can set `API_KEY: ${{ secrets.MY_API_KEY }}` in the `with` clause of their assistant.
added docs/hub/blocks/intro.mdx +6 −0
@@ -0,0 +1,6 @@
1+---
2+title: "Introduction"
3+description: "Blocks are the components you use to build a custom AI code assistant. These include , , , , , , and ."
4+---
5+
6+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/hub/blocks/use-a-block.mdx +11 −0
@@ -0,0 +1,11 @@
1+---
2+title: "Use a block"
3+description: "Blocks can be used by adding them to assistants:"
4+---
5+
6+- [Create an assistant](/hub/assistants/create-an-assistant)
7+- [Edit an assistant](/hub/assistants/edit-an-assistant)
8+
9+Some blocks require inputs. If you are missing an input for a block, a notification icon will show up in the sidebar next to the block. Click the notification to select which secret to use for the block input:
10+
11+![Block inputs](/images/hub/blocks/images/block-inputs-b26686c49eea145a875dfe46862c85e0.png)
added docs/hub/governance/creating-an-org.mdx +17 −0
@@ -0,0 +1,17 @@
1+---
2+title: "Creating an Organization"
3+description: "To Create an Organization, click the organization selector in the top right and select"
4+---
5+
6+![create an org selector](/images/hub/governance/images/org-selector-4ea627afc7c0765633780920a0fbe16e.png)
7+
8+1. Choose a name, which will be used as the display name for your organization throughout the hub
9+2. Add a slug, which will be used for your org URL and as the prefix to all organization blocks and assistant slugs
10+3. Select an icon for your organization using the image uploader
11+4. Finally, add a Biography, which will be displayed on your org Home Page
12+
13+![Creating an org](/images/hub/governance/images/create-org-form-1c7655050d8f423b0ecdfbd1cc85e0af.png)
14+
15+You will then be signed in to your org and taken to the org home page
16+
17+![Org home page](/images/hub/governance/images/org-home-page-4509e2ff8c4e1d6325c8f0afae3b16dd.png)
added docs/hub/governance/org-permissions.mdx +13 −0
@@ -0,0 +1,13 @@
1+---
2+title: "Organization Permissions"
3+description: "Users can have the following roles within an organization:"
4+---
5+
6+1. Admins are users who can manage members, secrets, blocks, assistants, etc.
7+2. Members are users who can use assistants, blocks, secrets, etc.
8+
9+**User permissions for each role depend on the pricing plan:**
10+
11+- [Solo](/hub/governance/pricing#solo)
12+- [Teams](/hub/governance/pricing#teams)
13+- [Enterprise](/hub/governance/pricing#enterprise)
added docs/hub/governance/pricing.mdx +31 −0
@@ -0,0 +1,31 @@
1+---
2+title: "Pricing"
3+---
4+
5+## Solo[​](#solo "Direct link to Solo")
6+
7+**Solo** is best suited for individuals and small teams with "single-player" problems.
8+
9+You can read more about what **Solo** includes [here](https://hub.continue.dev/pricing).
10+
11+## Teams[​](#teams "Direct link to Teams")
12+
13+**Teams** is best suited for growing teams with "multiplayer" problems.
14+
15+You can read more about what **Teams** includes [here](https://hub.continue.dev/pricing).
16+
17+## Enterprise[​](#enterprise "Direct link to Enterprise")
18+
19+**Enterprise** is best suited for large teams with enterprise-grade requirements.
20+
21+You can read more about what **Enterprise** includes [here](https://hub.continue.dev/pricing).
22+
23+## Models Add-On[​](#models-add-on "Direct link to Models Add-On")
24+
25+The **Models Add-On** allows you to use a variety of frontier models for a flat monthly fee. It’s designed to cover the usage of most developers.
26+
27+You can read more about usage limits and what models are included [here](https://hub.continue.dev/pricing).
28+
29+### Free Trial[​](#free-trial "Direct link to Free Trial")
30+
31+To try out Continue, we offer a free trial of the **Models Add-On** that allows you to use 50 Chat requests and 2,000 autocomplete requests.
added docs/hub/introduction.mdx +9 −0
@@ -0,0 +1,9 @@
1+---
2+title: "Introduction"
3+---
4+
5+[Continue Hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](/hub/assistants/intro), providing a registry for defining, managing, and sharing assistant [building blocks](/hub/blocks/intro).
6+
7+Assistants can contain several types of blocks, including [models](/hub/blocks/block-types#models), [rules](/hub/blocks/block-types#rules), [context providers](/hub/blocks/block-types#context), [prompts](/hub/blocks/block-types#prompts), [docs](/hub/blocks/block-types#docs), [data destinations](/hub/blocks/block-types#data), and [MCP servers](/hub/blocks/block-types#mcp-servers).
8+
9+Continue Hub also makes it easy for engineering leaders to centrally [configure](/hub/secrets/secret-types) and [govern](/hub/governance/org-permissions) blocks and assistants for their organization.
added docs/hub/secrets/secret-resolution.mdx +16 −0
@@ -0,0 +1,16 @@
1+---
2+title: "Secret Resolution"
3+description: "User or Org secrets should be used depending on how users want them to be shared within their organization and assistants."
4+---
5+
6+For individual users and [Solo](/hub/governance/pricing#solo) organizations, secret resolution is performed in the following order:
7+
8+1. User [models add-on](/hub/governance/pricing#models-add-on) (if subscribed)
9+2. [User secrets](/hub/secrets/secret-types#user-secrets) (if set)
10+3. [Free trial](/hub/governance/pricing#free-trial) (if below limit)
11+
12+For [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise) organizations, secret resolution is performed in the following order:
13+
14+1. Org [models add-on](/hub/governance/pricing#models-add-on) (if subscribed)
15+2. [Org secrets](/hub/secrets/secret-types#org-secrets) (if set)
16+3. [User secrets](/hub/secrets/secret-types#user-secrets) (if set)
added docs/hub/secrets/secret-types.mdx +16 −0
@@ -0,0 +1,16 @@
1+---
2+title: "Secret Types"
3+description: "The Continue Hub comes with secrets management built-in. Secrets are values such as API keys or endpoints that can be shared across assistants and within organizations."
4+---
5+
6+## User secrets[​](#user-secrets "Direct link to User secrets")
7+
8+User secrets are defined by the user for themselves. This means that user secrets are available only to the user that created them. User secrets are assumed to be safe for the user to know, so they will be sent to the IDE extensions alongside the assistant `config.yaml`.
9+
10+This allows API requests to be made directly from the IDE extensions. You can use user secrets with [Solo](/hub/governance/pricing#solo), [Teams](/hub/governance/pricing#teams), and [Enterprise](/hub/governance/pricing#enterprise). User secrets can be managed [here](https://hub.continue.dev/settings/secrets) in the hub.
11+
12+## Org secrets[​](#org-secrets "Direct link to Org secrets")
13+
14+Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys).
15+
16+This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page.
added docs/hub/sharing.mdx +32 −0
@@ -0,0 +1,32 @@
1+---
2+title: "Sharing"
3+description: "Connect with the Continue community to discover, share, and collaborate on AI development tools."
4+---
5+
6+## Community[​](#community "Direct link to Community")
7+
8+Join thousands of developers using Continue. Share experiences, get help, and contribute to the ecosystem.
9+
10+[Join our Discord Community →](https://discord.gg/continue)
11+
12+## Publishing[​](#publishing "Direct link to Publishing")
13+
14+Share your custom assistants, blocks, and configurations with the Continue community.
15+
16+[Visit the Hub →](https://hub.continue.dev)
17+
18+## Browse Assistants[​](#browse-assistants "Direct link to Browse Assistants")
19+
20+Explore assistants created by the community for specific use cases and workflows.
21+
22+[Browse Assistants →](https://hub.continue.dev)
23+
24+## Using Assistants[​](#using-assistants "Direct link to Using Assistants")
25+
26+Learn how to discover, install, and use community-created assistants in your projects.
27+
28+[Learn About Assistants →](/hub/assistants/intro)
29+
30+---
31+
32+The Continue Hub makes it easy to leverage community knowledge and share your innovations with fellow developers.
added docs/hub/source-control.mdx +44 −0
@@ -0,0 +1,44 @@
1+---
2+title: "Source Control"
3+description: "When managing your custom assistants within an organization, you might want to take advantage of your usual source control workflows. Continue makes this easy with a that automatically syncs your YAML files with hub.continue.dev. We are also planning on adding automations for GitLab, BitBucket, Gitee, and others. If you are interested, please reach out to us on ."
4+---
5+
6+## Quickstart[​](#quickstart "Direct link to Quickstart")
7+
8+This quickstart uses a template repository, but you can also follow these steps 2-4 from an existing repository.
9+
10+### 1. Create a new repository from the template[​](#1-create-a-new-repository-from-the-template "Direct link to 1. Create a new repository from the template")
11+
12+As shown in the image below, start by creating a new repository from [the template](https://github.com/continuedev/continue-hub-template). Click "Use Template" and then "Create a new repository".
13+
14+![Use the template repository](/images/hub/images/template-repo-65ccd7537b6fba3bbb202ee3e83e1953.png)
15+
16+### 2. Obtain a deploy key[​](#2-obtain-a-deploy-key "Direct link to 2. Obtain a deploy key")
17+
18+Deploy keys allow the GitHub Action to authenticate with hub.continue.dev. [Obtain your deploy key here](https://hub.continue.dev/settings/api-keys) and then [create a secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository) named `CONTINUE_API_KEY` in your GitHub repository.
19+
20+### 3. Configure the GitHub Action[​](#3-configure-the-github-action "Direct link to 3. Configure the GitHub Action")
21+
22+<Check>
23+ This step assumes you have already created an organization on
24+ hub.continue.dev. If not, learn more [here](/hub/governance/creating-an-org).
25+</Check>
26+
27+In the repository you created, navigate to `.github/workflows/main.yaml` and update the lines below to match your organization:
28+
29+```
30+env: OWNER_SLUG: my-org-slug # <-- TODO
31+```
32+
33+This is the only configuration necessary, but you can view the full list of options [here](https://github.com/continuedev/continue-publish-action/blob/main/README.md).
34+
35+### 4. Commit and push[​](#4-commit-and-push "Direct link to 4. Commit and push")
36+
37+Add the [YAML for your assistants and blocks](/reference) to the appropriate directories:
38+
39+- `assistants/public` for public assistants
40+- `assistants/private` for private (visible only within your organization) assistants
41+- `blocks/public` for public blocks
42+- `blocks/private` for private blocks
43+
44+Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the assistants within your organization on hub.continue.dev.
deleted docs/i18n/zh-CN/code.json +0 −440
@@ -1,440 +0,0 @@
1-{
2- "theme.ErrorPageContent.title": {
3- "message": "页面已崩溃。",
4- "description": "The title of the fallback page when the page crashed"
5- },
6- "theme.BackToTopButton.buttonAriaLabel": {
7- "message": "回到顶部",
8- "description": "The ARIA label for the back to top button"
9- },
10- "theme.blog.archive.title": {
11- "message": "历史博文",
12- "description": "The page & hero title of the blog archive page"
13- },
14- "theme.blog.archive.description": {
15- "message": "历史博文",
16- "description": "The page & hero description of the blog archive page"
17- },
18- "theme.blog.paginator.navAriaLabel": {
19- "message": "博文列表分页导航",
20- "description": "The ARIA label for the blog pagination"
21- },
22- "theme.blog.paginator.newerEntries": {
23- "message": "较新的博文",
24- "description": "The label used to navigate to the newer blog posts page (previous page)"
25- },
26- "theme.blog.paginator.olderEntries": {
27- "message": "较旧的博文",
28- "description": "The label used to navigate to the older blog posts page (next page)"
29- },
30- "theme.blog.post.paginator.navAriaLabel": {
31- "message": "博文分页导航",
32- "description": "The ARIA label for the blog posts pagination"
33- },
34- "theme.blog.post.paginator.newerPost": {
35- "message": "较新一篇",
36- "description": "The blog post button label to navigate to the newer/previous post"
37- },
38- "theme.blog.post.paginator.olderPost": {
39- "message": "较旧一篇",
40- "description": "The blog post button label to navigate to the older/next post"
41- },
42- "theme.tags.tagsPageLink": {
43- "message": "查看所有标签",
44- "description": "The label of the link targeting the tag list page"
45- },
46- "theme.colorToggle.ariaLabel": {
47- "message": "切换浅色/暗黑模式(当前为{mode})",
48- "description": "The ARIA label for the navbar color mode toggle"
49- },
50- "theme.colorToggle.ariaLabel.mode.dark": {
51- "message": "暗黑模式",
52- "description": "The name for the dark color mode"
53- },
54- "theme.colorToggle.ariaLabel.mode.light": {
55- "message": "浅色模式",
56- "description": "The name for the light color mode"
57- },
58- "theme.docs.breadcrumbs.navAriaLabel": {
59- "message": "页面路径",
60- "description": "The ARIA label for the breadcrumbs"
61- },
62- "theme.docs.DocCard.categoryDescription.plurals": {
63- "message": "{count} 个项目",
64- "description": "The default description for a category card in the generated index about how many items this category includes"
65- },
66- "theme.docs.paginator.navAriaLabel": {
67- "message": "文件选项卡",
68- "description": "The ARIA label for the docs pagination"
69- },
70- "theme.docs.paginator.previous": {
71- "message": "上一页",
72- "description": "The label used to navigate to the previous doc"
73- },
74- "theme.docs.paginator.next": {
75- "message": "下一页",
76- "description": "The label used to navigate to the next doc"
77- },
78- "theme.docs.tagDocListPageTitle.nDocsTagged": {
79- "message": "{count} 篇文档带有标签",
80- "description": "Pluralized label for \"{count} docs tagged\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
81- },
82- "theme.docs.tagDocListPageTitle": {
83- "message": "{nDocsTagged}「{tagName}」",
84- "description": "The title of the page for a docs tag"
85- },
86- "theme.docs.versionBadge.label": {
87- "message": "版本:{versionLabel}"
88- },
89- "theme.docs.versions.unreleasedVersionLabel": {
90- "message": "此为 {siteTitle} {versionLabel} 版尚未发行的文档。",
91- "description": "The label used to tell the user that he's browsing an unreleased doc version"
92- },
93- "theme.docs.versions.unmaintainedVersionLabel": {
94- "message": "此为 {siteTitle} {versionLabel} 版的文档,现已不再积极维护。",
95- "description": "The label used to tell the user that he's browsing an unmaintained doc version"
96- },
97- "theme.docs.versions.latestVersionSuggestionLabel": {
98- "message": "最新的文档请参阅 {latestVersionLink} ({versionLabel})。",
99- "description": "The label used to tell the user to check the latest version"
100- },
101- "theme.docs.versions.latestVersionLinkLabel": {
102- "message": "最新版本",
103- "description": "The label used for the latest version suggestion link label"
104- },
105- "theme.common.editThisPage": {
106- "message": "编辑此页",
107- "description": "The link label to edit the current page"
108- },
109- "theme.common.headingLinkTitle": {
110- "message": "{heading}的直接链接",
111- "description": "Title for link to heading"
112- },
113- "theme.lastUpdated.atDate": {
114- "message": "于 {date} ",
115- "description": "The words used to describe on which date a page has been last updated"
116- },
117- "theme.lastUpdated.byUser": {
118- "message": "由 {user} ",
119- "description": "The words used to describe by who the page has been last updated"
120- },
121- "theme.lastUpdated.lastUpdatedAtBy": {
122- "message": "最后{byUser}{atDate}更新",
123- "description": "The sentence used to display when a page has been last updated, and by who"
124- },
125- "theme.navbar.mobileVersionsDropdown.label": {
126- "message": "选择版本",
127- "description": "The label for the navbar versions dropdown on mobile view"
128- },
129- "theme.NotFound.title": {
130- "message": "找不到页面",
131- "description": "The title of the 404 page"
132- },
133- "theme.tags.tagsListLabel": {
134- "message": "标签:",
135- "description": "The label alongside a tag list"
136- },
137- "theme.AnnouncementBar.closeButtonAriaLabel": {
138- "message": "关闭",
139- "description": "The ARIA label for close button of announcement bar"
140- },
141- "theme.admonition.caution": {
142- "message": "警告",
143- "description": "The default label used for the Caution admonition (:::caution)"
144- },
145- "theme.admonition.danger": {
146- "message": "危险",
147- "description": "The default label used for the Danger admonition (:::danger)"
148- },
149- "theme.admonition.info": {
150- "message": "信息",
151- "description": "The default label used for the Info admonition (:::info)"
152- },
153- "theme.admonition.note": {
154- "message": "备注",
155- "description": "The default label used for the Note admonition (:::note)"
156- },
157- "theme.admonition.tip": {
158- "message": "提示",
159- "description": "The default label used for the Tip admonition (:::tip)"
160- },
161- "theme.admonition.warning": {
162- "message": "注意",
163- "description": "The default label used for the Warning admonition (:::warning)"
164- },
165- "theme.blog.sidebar.navAriaLabel": {
166- "message": "最近博文导航",
167- "description": "The ARIA label for recent posts in the blog sidebar"
168- },
169- "theme.CodeBlock.copied": {
170- "message": "复制成功",
171- "description": "The copied button label on code blocks"
172- },
173- "theme.CodeBlock.copyButtonAriaLabel": {
174- "message": "复制代码到剪贴板",
175- "description": "The ARIA label for copy code blocks button"
176- },
177- "theme.CodeBlock.copy": {
178- "message": "复制",
179- "description": "The copy button label on code blocks"
180- },
181- "theme.CodeBlock.wordWrapToggle": {
182- "message": "切换自动换行",
183- "description": "The title attribute for toggle word wrapping button of code block lines"
184- },
185- "theme.DocSidebarItem.expandCategoryAriaLabel": {
186- "message": "展开侧边栏分类 '{label}'",
187- "description": "The ARIA label to expand the sidebar category"
188- },
189- "theme.DocSidebarItem.collapseCategoryAriaLabel": {
190- "message": "折叠侧边栏分类 '{label}'",
191- "description": "The ARIA label to collapse the sidebar category"
192- },
193- "theme.NavBar.navAriaLabel": {
194- "message": "主导航",
195- "description": "The ARIA label for the main navigation"
196- },
197- "theme.navbar.mobileLanguageDropdown.label": {
198- "message": "选择语言",
199- "description": "The label for the mobile language switcher dropdown"
200- },
201- "theme.NotFound.p1": {
202- "message": "我们找不到您要找的页面。",
203- "description": "The first paragraph of the 404 page"
204- },
205- "theme.NotFound.p2": {
206- "message": "请联系原始链接来源网站的所有者,并告知他们链接已损坏。",
207- "description": "The 2nd paragraph of the 404 page"
208- },
209- "theme.TOCCollapsible.toggleButtonLabel": {
210- "message": "本页总览",
211- "description": "The label used by the button on the collapsible TOC component"
212- },
213- "theme.blog.post.readingTime.plurals": {
214- "message": "阅读需 {readingTime} 分钟",
215- "description": "Pluralized label for \"{readingTime} min read\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
216- },
217- "theme.blog.post.readMore": {
218- "message": "阅读更多",
219- "description": "The label used in blog post item excerpts to link to full blog posts"
220- },
221- "theme.blog.post.readMoreLabel": {
222- "message": "阅读 {title} 的全文",
223- "description": "The ARIA label for the link to full blog posts from excerpts"
224- },
225- "theme.docs.sidebar.collapseButtonTitle": {
226- "message": "收起侧边栏",
227- "description": "The title attribute for collapse button of doc sidebar"
228- },
229- "theme.docs.sidebar.collapseButtonAriaLabel": {
230- "message": "收起侧边栏",
231- "description": "The title attribute for collapse button of doc sidebar"
232- },
233- "theme.docs.breadcrumbs.home": {
234- "message": "主页面",
235- "description": "The ARIA label for the home page in the breadcrumbs"
236- },
237- "theme.docs.sidebar.navAriaLabel": {
238- "message": "文档侧边栏",
239- "description": "The ARIA label for the sidebar navigation"
240- },
241- "theme.docs.sidebar.closeSidebarButtonAriaLabel": {
242- "message": "关闭导航栏",
243- "description": "The ARIA label for close button of mobile sidebar"
244- },
245- "theme.navbar.mobileSidebarSecondaryMenu.backButtonLabel": {
246- "message": "← 回到主菜单",
247- "description": "The label of the back button to return to main menu, inside the mobile navbar sidebar secondary menu (notably used to display the docs sidebar)"
248- },
249- "theme.docs.sidebar.toggleSidebarButtonAriaLabel": {
250- "message": "切换导航栏",
251- "description": "The ARIA label for hamburger menu button of mobile navigation"
252- },
253- "theme.docs.sidebar.expandButtonTitle": {
254- "message": "展开侧边栏",
255- "description": "The ARIA label and title attribute for expand button of doc sidebar"
256- },
257- "theme.docs.sidebar.expandButtonAriaLabel": {
258- "message": "展开侧边栏",
259- "description": "The ARIA label and title attribute for expand button of doc sidebar"
260- },
261- "theme.SearchBar.seeAll": {
262- "message": "查看全部 {count} 个结果"
263- },
264- "theme.SearchPage.documentsFound.plurals": {
265- "message": "找到 {count} 份文件",
266- "description": "Pluralized label for \"{count} documents found\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
267- },
268- "theme.SearchPage.existingResultsTitle": {
269- "message": "「{query}」的搜索结果",
270- "description": "The search page title for non-empty query"
271- },
272- "theme.SearchPage.emptyResultsTitle": {
273- "message": "在文档中搜索",
274- "description": "The search page title for empty query"
275- },
276- "theme.SearchPage.inputPlaceholder": {
277- "message": "在此输入搜索字词",
278- "description": "The placeholder for search page input"
279- },
280- "theme.SearchPage.inputLabel": {
281- "message": "搜索",
282- "description": "The ARIA label for search page input"
283- },
284- "theme.SearchPage.algoliaLabel": {
285- "message": "通过 Algolia 搜索",
286- "description": "The ARIA label for Algolia mention"
287- },
288- "theme.SearchPage.noResultsText": {
289- "message": "未找到任何结果",
290- "description": "The paragraph for empty search result"
291- },
292- "theme.SearchPage.fetchingNewResults": {
293- "message": "正在获取新的搜索结果...",
294- "description": "The paragraph for fetching new search results"
295- },
296- "theme.SearchBar.label": {
297- "message": "搜索",
298- "description": "The ARIA label and placeholder for search button"
299- },
300- "theme.SearchModal.searchBox.resetButtonTitle": {
301- "message": "清除查询",
302- "description": "The label and ARIA label for search box reset button"
303- },
304- "theme.SearchModal.searchBox.cancelButtonText": {
305- "message": "取消",
306- "description": "The label and ARIA label for search box cancel button"
307- },
308- "theme.SearchModal.startScreen.recentSearchesTitle": {
309- "message": "最近搜索",
310- "description": "The title for recent searches"
311- },
312- "theme.SearchModal.startScreen.noRecentSearchesText": {
313- "message": "没有最近搜索",
314- "description": "The text when no recent searches"
315- },
316- "theme.SearchModal.startScreen.saveRecentSearchButtonTitle": {
317- "message": "保存这个搜索",
318- "description": "The label for save recent search button"
319- },
320- "theme.SearchModal.startScreen.removeRecentSearchButtonTitle": {
321- "message": "从历史记录中删除这个搜索",
322- "description": "The label for remove recent search button"
323- },
324- "theme.SearchModal.startScreen.favoriteSearchesTitle": {
325- "message": "收藏",
326- "description": "The title for favorite searches"
327- },
328- "theme.SearchModal.startScreen.removeFavoriteSearchButtonTitle": {
329- "message": "从收藏列表中删除这个搜索",
330- "description": "The label for remove favorite search button"
331- },
332- "theme.SearchModal.errorScreen.titleText": {
333- "message": "无法获取结果",
334- "description": "The title for error screen of search modal"
335- },
336- "theme.SearchModal.errorScreen.helpText": {
337- "message": "你可能需要检查网络连接。",
338- "description": "The help text for error screen of search modal"
339- },
340- "theme.SearchModal.footer.selectText": {
341- "message": "选中",
342- "description": "The explanatory text of the action for the enter key"
343- },
344- "theme.SearchModal.footer.selectKeyAriaLabel": {
345- "message": "Enter 键",
346- "description": "The ARIA label for the Enter key button that makes the selection"
347- },
348- "theme.SearchModal.footer.navigateText": {
349- "message": "导航",
350- "description": "The explanatory text of the action for the Arrow up and Arrow down key"
351- },
352- "theme.SearchModal.footer.navigateUpKeyAriaLabel": {
353- "message": "向上键",
354- "description": "The ARIA label for the Arrow up key button that makes the navigation"
355- },
356- "theme.SearchModal.footer.navigateDownKeyAriaLabel": {
357- "message": "向下键",
358- "description": "The ARIA label for the Arrow down key button that makes the navigation"
359- },
360- "theme.SearchModal.footer.closeText": {
361- "message": "关闭",
362- "description": "The explanatory text of the action for Escape key"
363- },
364- "theme.SearchModal.footer.closeKeyAriaLabel": {
365- "message": "Esc 键",
366- "description": "The ARIA label for the Escape key button that close the modal"
367- },
368- "theme.SearchModal.footer.searchByText": {
369- "message": "搜索提供",
370- "description": "The text explain that the search is making by Algolia"
371- },
372- "theme.SearchModal.noResultsScreen.noResultsText": {
373- "message": "没有结果:",
374- "description": "The text explains that there are no results for the following search"
375- },
376- "theme.SearchModal.noResultsScreen.suggestedQueryText": {
377- "message": "试试搜索",
378- "description": "The text for the suggested query when no results are found for the following search"
379- },
380- "theme.SearchModal.noResultsScreen.reportMissingResultsText": {
381- "message": "认为这个查询应该有结果?",
382- "description": "The text for the question where the user thinks there are missing results"
383- },
384- "theme.SearchModal.noResultsScreen.reportMissingResultsLinkText": {
385- "message": "请告知我们。",
386- "description": "The text for the link to report missing results"
387- },
388- "theme.SearchModal.placeholder": {
389- "message": "搜索文档",
390- "description": "The placeholder of the input of the DocSearch pop-up modal"
391- },
392- "theme.blog.post.plurals": {
393- "message": "{count} 篇博文",
394- "description": "Pluralized label for \"{count} posts\". Use as much plural forms (separated by \"|\") as your language support (see https://www.unicode.org/cldr/cldr-aux/charts/34/supplemental/language_plural_rules.html)"
395- },
396- "theme.blog.tagTitle": {
397- "message": "{nPosts} 含有标签「{tagName}」",
398- "description": "The title of the page for a blog tag"
399- },
400- "theme.blog.author.pageTitle": {
401- "message": "{authorName} - {nPosts}",
402- "description": "The title of the page for a blog author"
403- },
404- "theme.blog.authorsList.pageTitle": {
405- "message": "Authors",
406- "description": "The title of the authors page"
407- },
408- "theme.blog.authorsList.viewAll": {
409- "message": "View All Authors",
410- "description": "The label of the link targeting the blog authors page"
411- },
412- "theme.contentVisibility.unlistedBanner.title": {
413- "message": "未列出页",
414- "description": "The unlisted content banner title"
415- },
416- "theme.contentVisibility.unlistedBanner.message": {
417- "message": "此页面未列出。搜索引擎不会对其索引,只有拥有直接链接的用户才能访问。",
418- "description": "The unlisted content banner message"
419- },
420- "theme.contentVisibility.draftBanner.title": {
421- "message": "Draft page",
422- "description": "The draft content banner title"
423- },
424- "theme.contentVisibility.draftBanner.message": {
425- "message": "This page is a draft. It will only be visible in dev and be excluded from the production build.",
426- "description": "The draft content banner message"
427- },
428- "theme.ErrorPageContent.tryAgain": {
429- "message": "重试",
430- "description": "The label of the button to try again rendering when the React error boundary captures an error"
431- },
432- "theme.common.skipToMainContent": {
433- "message": "跳到主要内容",
434- "description": "The skip to content label used for accessibility, allowing to rapidly navigate to main content with keyboard tab/enter navigation"
435- },
436- "theme.tags.tagsPageTitle": {
437- "message": "标签",
438- "description": "The title of the tag list page"
439- }
440-}
deleted docs/i18n/zh-CN/docusaurus-plugin-content-blog/options.json +0 −14
@@ -1,14 +0,0 @@
1-{
2- "title": {
3- "message": "Blog",
4- "description": "The title for the blog used in SEO"
5- },
6- "description": {
7- "message": "Blog",
8- "description": "The description for the blog used in SEO"
9- },
10- "sidebar.title": {
11- "message": "Recent posts",
12- "description": "The label for the left sidebar"
13- }
14-}
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current.json +0 −50
@@ -1,50 +0,0 @@
1-{
2- "version.label": {
3- "message": "Next",
4- "description": "The label for version current"
5- },
6- "sidebar.docsSidebar.category.Getting started": {
7- "message": "开始",
8- "description": "The label for category Getting started in sidebar docsSidebar"
9- },
10- "sidebar.docsSidebar.category.Chat": {
11- "message": "聊天",
12- "description": "The label for category Chat in sidebar docsSidebar"
13- },
14- "sidebar.docsSidebar.category.Autocomplete": {
15- "message": "自动补全",
16- "description": "The label for category Autocomplete in sidebar docsSidebar"
17- },
18- "sidebar.docsSidebar.category.Edit": {
19- "message": "编辑",
20- "description": "The label for category Edit in sidebar docsSidebar"
21- },
22- "sidebar.docsSidebar.category.Actions": {
23- "message": "Actions",
24- "description": "The label for category Actions in sidebar docsSidebar"
25- },
26- "sidebar.docsSidebar.link.Customize": {
27- "message": "定制",
28- "description": "The label for link Customize in sidebar docsSidebar, linking to /customize/overview"
29- },
30- "sidebar.customizingSidebar.category.Model providers": {
31- "message": "模型提供者",
32- "description": "The label for category Model providers in sidebar customizingSidebar"
33- },
34- "sidebar.customizingSidebar.category.More": {
35- "message": "更多",
36- "description": "The label for category More in sidebar customizingSidebar"
37- },
38- "sidebar.customizingSidebar.category.Model types": {
39- "message": "模型类型",
40- "description": "The label for category Model types in sidebar customizingSidebar"
41- },
42- "sidebar.customizingSidebar.category.Deep dives": {
43- "message": "深入理解",
44- "description": "The label for category Deep dives in sidebar customizingSidebar"
45- },
46- "sidebar.customizingSidebar.category.Tutorials": {
47- "message": "教程",
48- "description": "The label for category Tutorials in sidebar customizingSidebar"
49- }
50-}
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/actions/context-selection.md +0 −36
@@ -1,36 +0,0 @@
1----
2-title: 上下文选择
3-description: Actions \-上下文选择
4-keywords: [上下文, 斜杠, 调试, 快速修复, 右击]
5-sidebar_position: 3
6----
7-
8-## 斜杠命令
9-
10-斜杠命令可以与更多的指令结合,包括 [上下文提供者](chat/context-selection.md) 或 [高亮代码](chat/context-selection.md) 。
11-
12-例如,使用 "/edit" 斜杠命令,你应该描述你想要 LLM 执行的编辑。
13-
14-一些斜杠命令不会理会你的输入,例如, "/share" 斜杠命令只是创建一个当前交谈的 markdown 副本,忽略任何你请求它做的。
15-
16-## 快速 action
17-
18-快速 action 总是显示在一个类和函数上,将会编辑那个类或函数,但是不会对外面的东西有影响。
19-
20-## 右击 action
21-
22-你选择的高亮代码将会包含在你的提示词中,和一些基于选择的 action 提前写好的指令一起。这是模型想要尝试的仅有的代码块。
23-
24-## 调试 action
25-
26-调试 action 选择最近运行的终端命令以及它的输出,然后插入以下提示词到聊天窗口中。没有更多的,不可见的信息发送给语言模型。
27-
28-```
29-I got the following error, can you please help explain how to fix it?
30-
31-[ERROR_MESSAGE]
32-```
33-
34-## 快速修复
35-
36-类似于调试 action ,快速 action 透明地添加提示词到聊天窗口中。当你选择 "Ask Continue" ,错误的上下 3 行会发送给聊天,跟上问题 "How do I fix the following problem in the above code?: [ERROR_MESSAGE]" 。
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/actions/how-it-works.md +0 −12
@@ -1,12 +0,0 @@
1----
2-title: 它是如何工作的
3-description: actions 是如何工作的
4-keywords: [如何, 斜杠, 命令, 提示词, 右击, 快速修复, 调试, action]
5-sidebar_position: 4
6----
7-
8-很多 action 基于模板提示词,可以使用 .prompt 文件配置,在底层有一些执行更复杂的代码。
9-
10-action 生成行内 diff ,比如 "/edit", "/comment" 或右击 action ,使用与 [编辑](edit/how-it-works.md) 相同的提示词和响应处理逻辑。
11-
12-要了解其他斜杠命令如何工作的, [在这里](../customize/slash-commands.md) 查看完整参考。
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/actions/how-to-customize.md +0 −61
@@ -1,61 +0,0 @@
1----
2-title: 如何定制
3-description: 如何定制 actions
4-keywords: [定制, actions]
5-sidebar_position: 5
6----
7-
8-## 内置的斜杠命令
9-
10-Continue 有一个大的内置斜杠命令库,但是当你首次安装时,我们只显示最常用的一些,比如 "/edit", "/comment" 和 "/share" 。为了添加更多的 action ,你可以打开 [config.json](../reference.md) 并添加它们到 `slashCommands` 列表中。
11-
12-## 定制斜杠命令
13-
14-有两种方法添加定制斜杠命令:
15-
16-1. 使用 `.prompt` 文件 - 这是大多数情况下推荐的。[在这里](../customize/deep-dives/prompts.md) 查看完整参考。
17-2. 使用 `config.ts` - 这给你对于 LLM, IDE 和其他重要的入口可编程的访问,通过编写 JavaScript/TypeScript 函数
18-
19-### 使用 `config.ts` 定制斜杠命令
20-
21-<!-- TODO: We need a config.ts reference -->
22-<!-- :::tip[config.ts]
23-Before adding a custom slash command, we recommend reading the [introduction to `config.ts`](../customize/config.mdx).
24-::: -->
25-
26-如果你想比使用自然语言编写定制命令更进一步,你可以编写一个定制函数返回响应。这需要使用 `config.ts` 替代 `config.json` 。
27-
28-要做这个,放一个新的 `SlashCommand` 对象到 `slashCommands` 列表中。这个对象包含 "name" ,你输入用来触发斜杠命令的名字, "description", 在下拉菜单中看到的描述,以及 "run" 。 `run` 函数是任何异步生成器,应该生成你希望流式地返回到 UI 的字符串。作为这个函数的一个参数,你可以访问 `ContinueSDK` 对象实用工具,例如访问 IDE 中确定的信息/action ,当前的语言模型,以及一些其他的实用工具。例如,这是一个生成 commit 说明的斜杠命令:
29-
30-```typescript title="config.ts"
31-export function modifyConfig(config: Config): Config {
32- config.slashCommands?.push({
33- name: "commit",
34- description: "Write a commit message",
35- run: async function* (sdk) {
36- // getDiff 函数接受一个布尔参数,该参数指示是否
37- // 在 diff 中包含未暂存的更改。
38- const diff = await sdk.ide.getDiff(false); // 传递 false 以排除未暂存的更改
39- for await (const message of sdk.llm.streamComplete(
40- `${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'):`,
41- new AbortController().signal,
42- {
43- maxTokens: 20,
44- },
45- )) {
46- yield message;
47- }
48- },
49- });
50- return config;
51-}
52-```
53-
54-<!-- TODO: We need a config.ts reference -->
55-<!-- For full `config.ts` reference, see [here](reference/config-ts.md). -->
56-
57-## 其他定制 action
58-
59-目前,其他 action 触发器没有开放配置,但是我们计划在未来通过 .prompt 文件来允许。
60-
61-<!-- For any actions defined in a .prompt file, you can [configure a specific model](TODO). -->
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/actions/how-to-use-it.md +0 −85
@@ -1,85 +0,0 @@
1----
2-title: Actions
3-description: 如何使用 Actions
4-sidebar_label: 如何使用它
5-keywords: [如何, 斜杠, 命令, 提示词, 右击, 快速修复, 调试, 操作]
6-sidebar_position: 1
7----
8-
9-![actions](/img/actions.gif)
10-
11-## 如何使用它
12-
13-Actions 是常见用例的快捷方式。例如,你可能想要审查代码,编写测试,或添加一个文档字符串。
14-
15-### 斜杠命令
16-
17-最常见的调用 action 的方法是使用斜杠命令。通过输入 '/' 并在下拉框中选择,这里有快捷方式会被激活。例如,内置的 '/edit' 斜杠命令,让你可以直接在你的编辑器中流式地编辑。
18-
19-![slash-commands](/img/slash-commands.png)
20-
21-一些最常用的斜杠命令默认是可用的,比如 "/edit", "/comment" 和 "/share" ,但是 Continue 有大量内置的其他选择的库。要启用它们,[在这里](../customize/slash-commands.md) 了解更多。
22-
23-### prompt 文件
24-
25-通过定义一个 ".prompt 文件" ,也可以编写你自己的斜杠命令。 prompt 文件可以是个简单的文本文件,但是也包含模板,所以你可以引用文件, URL ,高亮代码以及更多。
26-
27-完整的 .prompt 文件可以参考 [这里](../customize/deep-dives/prompt.md) 。
28-
29-:::tip[Prompt 库]
30-为了帮助你开始,[我们精心编写了一个小的 `.prompt` 文件库](https://github.com/continuedev/prompt-file-examples) 。我们鼓励社区贡献到这个仓库,所以请考虑为你的 prompt 创建一个拉取请求!
31-:::
32-
33-以下是一个快速示例,设置一个使用 Jest 编写单元测试的 prompt 文件。
34-
35-1. 在你的工作区的最高层级,创建一个名为 `.prompts/` 的目录。
36-2. 在这个目录中,添加一个名为 `test.prompt` 的文件。这个文件的名称将是你用来生成提示词的斜杠命令的名称。
37-3. 写入以下内容到 `test.prompt` 并保存。
38-
39-```
40-{{{ input }}}
41-
42-Write unit tests for the above selected code, following each of these instructions:
43-- Use `jest`
44-- Properly set up and tear down
45-- Include important edge cases
46-- The tests should be complete and sophisticated
47-- Give the tests just as chat output, don't edit any file
48-- Don't explain how to set up `jest`
49-```
50-
51-现在要使用这个提示词,你可以高亮代码,并使用 `cmd/ctrl+L` 来选择它到 Continue 侧边栏中。
52-
53-然后,输入 "/" 来查看斜杠命令列表,选择名为 "test" 的那个。按下回车, LLM 会响应你的 prompt 文件中给出的指令。
54-
55-### action 的其他触发器 (VS Code)
56-
57-:::info
58-目前,所有这些只在 VS Code 中有效
59-:::
60-
61-为了让常见用例更可用,我们提供了一些其他方法来触发 action 。
62-
63-#### 快速 action
64-
65-快速 action 在你源码中的顶级类和函数上显示为按钮,让你可以一键触发 action 。它们也可以使用 .prompt 文件定制,来执行定制的 action 。
66-
67-![quick-actions](/img/quick-actions.png)
68-
69-默认情况下,快速 action 是禁用的,但是可以在 VS Code 的设置中通过 "Continue: Enable Quick Actions" 启用。
70-
71-#### 右击 action
72-
73-右击 action 让你高亮期望的代码区域,右击,然后在下拉菜单中选择一个 action 。
74-
75-![context-menu](/img/context-menu.png)
76-
77-#### 调试 action
78-
79-调试 action 是 VS Code 扩展中一个特殊的内置键盘快捷方式。使用 `cmd/ctrl+shift+R` 来快速复制当前终端的内容到聊天侧边栏,并获得调试建议。
80-
81-#### 快速修复
82-
83-无论何时在你的代码中看到红色/黄色下划线表示错误,你可以把光标放到附近, VS Code 会显示一个灯泡图标。无论点击灯泡,或使用 `cmd/ctrl+.` 快捷键,将会显示一个快速修复的下拉菜单。其中之一是 "Ask Continue" action 。无论单击或再次使用 `cmd/ctrl+.` , Continue 将尝试帮助解决问题。
84-
85-![ask-continue](/img/ask-continue.png)
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/actions/model-setup.md +0 −8
@@ -1,8 +0,0 @@
1----
2-title: 模型设置
3-description: Actions 模型设置
4-keywords: [模型]
5-sidebar_position: 2
6----
7-
8-默认情况下, action 使用与 [聊天](chat/model-setup.mdx) 相同的模型,所以,对于执行的复杂指令,我们推荐相同的 400B+ 参数模型或者领先的模型之一。
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/context-selection.md +0 −24
@@ -1,24 +0,0 @@
1----
2-title: 上下文选择
3-description: 自动补全上下文选择
4-keywords: [上下文, 自动补全, lsp, 最近的]
5-sidebar_position: 3
6----
7-
8-自动补全会基于当前的光标位置自动地确定上下文。我们使用以下的技术来确定什么包含在提示词中:
9-
10-### 文件前缀/后缀
11-
12-我们总是包含你的文件中光标前后的代码。
13-
14-### 来自语言服务协议的定义
15-
16-类似于你如何在编辑器中使用 `cmd/ctrl + click` ,我们使用相同的工具 (LSP) 来增强 "转到定义" 。例如,如果你输入一个函数调用,我们将包含函数定义。或者,如果你在一个方法中写代码,我们将包含类型定义中的任何参数或返回类型。
17-
18-### 导入文件
19-
20-因为通常有很多导入,我们不能包含它们所有。相反,我们查找你的光标附近的标识,使用它所匹配的导入作为上下文。
21-
22-### 最近的文件
23-
24-我们自动考虑最近打开的或编辑的文件,并包含与当前补全相关的片段。
deleted docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/how-it-works.md +0 −33
@@ -1,33 +0,0 @@
1----
2-title: 它是如何工作的
3-description: 自动补全是如何工作的
4-keywords: [如何, 自动补全, 上下分]
5-sidebar_position: 4
6----
7-
8-自动补全是一个 [复合人工智能系统](https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/),使用检索方法和响应处理技术的结合。系统可以大致理解为三个部分。
9-
10-## 时机
11-
12-为了快速地显示建议,并且不需要发送太多请求,我们做了下面这些:
13-
14-- 去抖动: 如果你快速输入,我们不会为每个按键创建一个请求。相反,我们等待直到你完成输入。
15-- 缓存: 如果你的光标在一个我们已经生成补全的位置,这个补全将会被使用。例如,如果你回退,我们将可以直接显示你之前看到的建议。
16-
17-## 上下文
18-
19-就像 [上下文选择](context-selection.md) 页面解释的那样, Continue 使用了大量的检索方法,来查找你的代码库中相关的片断,包含在提示词中。
20-
21-## 过滤
22-
23-语言模型不是完美的,但是可以通过调整它们的输出接近完美。在显示建议之前,我们对响应做了大量的后处理,包括:
24-
25-- 过滤出指定的 token
26-- 当重新生成代码时,提前停止
27-- 修复缩进
28-
29-如果响应是坏的,我们也会偶尔过滤掉整个响应。这通常是因为过度的重复。
30-
31-You can learn more about how it works in the [Autocomplete deep dive](../customize/deep-dives/autocomplete.md).
32-
33-你可以在 [深入理解自动补全](../customize/deep-dives/autocomplete.md) 中了解它是如何工作的。

Next files