diff --git a/.continue/rules/documentation-description-rule.md b/.continue/rules/documentation-description-rule.md new file mode 100644 index 000000000..17f62d2d0 --- /dev/null +++ b/.continue/rules/documentation-description-rule.md @@ -0,0 +1,8 @@ +--- +globs: docs/**/*.{md,mdx} +description: This rule applies to all documentation files to ensure consistent + SEO optimization and improve discoverability. It helps users and search + engines understand the content of each page before reading it. +--- + +Every file in the docs folder must include a 'description' field in its frontmatter that accurately summarizes the content of the page in 100-160 characters. The description should be concise, keyword-rich, and explain what users will learn or accomplish from the page. diff --git a/docs/README.md b/docs/README.md index ac4767e1e..b86adaf52 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,4 +1,4 @@ -# Mintlify Starter Kit +## Mintlify Starter Kit Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including diff --git a/docs/autocomplete/how-to-use-it.mdx b/docs/autocomplete/how-to-use-it.mdx index 2f6eee23d..36a54ff6d 100644 --- a/docs/autocomplete/how-to-use-it.mdx +++ b/docs/autocomplete/how-to-use-it.mdx @@ -1,14 +1,15 @@ --- title: "Autocomplete" -sidebarTitle: "How To Use It" +sidebarTitle: "How To Use AI Autocomplete" icon: "circle-question" +description: "Learn how to use Continue's AI-powered code autocomplete feature with keyboard shortcuts for accepting, rejecting, or partially accepting inline suggestions as you type" --- -## How to use it +## How to Use AI Code Autocomplete in Continue 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. diff --git a/docs/chat/how-to-use-it.mdx b/docs/chat/how-to-use-it.mdx index 670edf6fb..3acf5f1b5 100644 --- a/docs/chat/how-to-use-it.mdx +++ b/docs/chat/how-to-use-it.mdx @@ -1,39 +1,40 @@ --- title: "Chat" -sidebarTitle: "How To Use It" +sidebarTitle: "How To Use AI Chat" icon: "circle-question" +description: "Learn how to use Continue's AI chat assistant to solve coding problems without leaving your IDE, including code context sharing, applying generated solutions, and switching between models" --- -## How to use it +## How to Use AI Chat in Continue for Coding Help 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. Chat is best used to understand and iterate on code or as a replacement for search engine queries. -## Type a request and press enter +## Send a Coding Question or Task to AI Chat -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. +To send a question, add it to the input box in the extention and press enter. 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. -## Highlight a code section to include as context +## Add Code Context to AI Chat by Highlighting Code 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. -## Reference context with the @ symbol +## Use @ to Include Project Context in AI Chat Responses -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). +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#how-to-use-%40-for-additional-context). -## Apply generated code to your file +## Insert AI-Generated Code Changes Directly into Your File 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. -## Start a fresh session for a new task +## How to Begin a New AI Chat Session for a Different Coding Task 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. -## Switch between different models +## Change AI Models in Continue Chat for Different Coding Needs If you have configured multiple models, you can switch between models using the dropdown or by pressing `cmd/ctrl` + `’` diff --git a/docs/customization/mcp-tools.mdx b/docs/customization/mcp-tools.mdx index a23f7f840..8494b1384 100644 --- a/docs/customization/mcp-tools.mdx +++ b/docs/customization/mcp-tools.mdx @@ -1,8 +1,12 @@ --- title: "MCP Blocks" -description: "Model Context Protocol servers provide specialized functionality:" +description: "Learn how to use Model Context Protocol (MCP) blocks in Continue to integrate external tools, connect databases, and extend your development environment." --- +Model Context Protocol (MCP) blocks let Continue connect to external tools, systems, and databases by running MCP servers. + +These blocks make it possible to: + - **Enable integration** with external tools and systems - **Create extensible interfaces** for custom capabilities - **Support complex interactions** with your development environment @@ -11,6 +15,6 @@ description: "Model Context Protocol servers provide specialized functionality:" ![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png) -## Learn More +## Learn More About MCP Blocks Learn more in the [MCP deep dive](/customize/deep-dives/mcp), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. diff --git a/docs/customization/models.mdx b/docs/customization/models.mdx index 0c1e2cba3..9e9e2ffe0 100644 --- a/docs/customization/models.mdx +++ b/docs/customization/models.mdx @@ -12,8 +12,8 @@ description: "These blocks form the foundation of the entire assistant experienc ![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png) -## Learn More +## Learn More About Model Blocks -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`. +Continue supports [many model providers](/customize/model-providers/top-level/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`. Read more about roles [here](/customize/model-roles) and view [`models`](/reference#models) in the YAML Reference. diff --git a/docs/customization/overview.mdx b/docs/customization/overview.mdx index ad86194af..c96ece782 100644 --- a/docs/customization/overview.mdx +++ b/docs/customization/overview.mdx @@ -1,21 +1,39 @@ --- -title: "Overview" -description: "Continue can be deeply customized. For example you might:" +title: "Customization Overview" +description: "Learn how to customize Continue with model providers, context providers, slash commands, and tools to create your perfect AI coding assistant" --- -- **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). -- **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). -- **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). -- **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). -- **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) +Continue can be deeply customized to fit your specific development workflow and preferences. This guide covers the main ways you can customize Continue to enhance your coding experience. + +## 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). + +## 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). + +## 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). + +## 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). + +## 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) Whatever you choose, you'll probably start by editing your Assistant. -## Editing your assistant +## Edit Your Assistant 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. ![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png) +## Manage Your Assistant + - See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant - See the [Config Deep Dive](/reference) for more details on configuring local assistants. diff --git a/docs/customization/rules.mdx b/docs/customization/rules.mdx index e0b405dd4..c3c153fb6 100644 --- a/docs/customization/rules.mdx +++ b/docs/customization/rules.mdx @@ -11,7 +11,7 @@ Think of these as the guardrails for your AI coding assistants: 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. -### How Rules Work +## How Rules Work 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. diff --git a/docs/customize/context/codebase.mdx b/docs/customize/context/codebase.mdx index 5cad74c59..13b147dd0 100644 --- a/docs/customize/context/codebase.mdx +++ b/docs/customize/context/codebase.mdx @@ -1,7 +1,8 @@ --- -title: "@Codebase" -description: Talk to your codebase +title: "How to Set Up @Codebase Context Provider in Continue" +description: Retrieve relevant context and answers from your codebase using embeddings and keyword search. keywords: [talk, embeddings, reranker, codebase, experimental] +sidebarTitle: "@Codebase" --- 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`. @@ -9,35 +10,41 @@ Continue indexes your codebase so that it can later automatically pull in the mo **Note:** `transformers.js` cannot be used in JetBrains IDEs. However, you can select a different embeddings model from [the list - here](../model-roles/embeddings.mdx). + here](../model-roles/embeddings). +## How to Use @Codebase and @Folder Context Providers + 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. +### When @Codebase Context Provider Is Useful + Here are some common use cases where it can be useful: -- Asking high-level questions about your codebase +- **Asking high-level questions about your codebase** - "How do I add a new endpoint to the server?" - "Do we use VS Code's CodeLens feature anywhere?" - "Is there any code written already to convert HTML to markdown?" -- Generate code using existing samples as reference +- **Generate code using existing samples as reference** - "Generate a new React component with a date picker, using the same patterns as existing components" - "Write a draft of a CLI application for this project using Python's argparse" - "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`. -- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results +- **Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results** - "What is the main purpose of this folder?" - "How do we use VS Code's CodeLens API?" - Or any of the above examples, but with `@Folder` instead of `@Codebase` +### When @Codebase Context Provider Is Not Useful + Here are use cases where it is not useful: -- When you need the LLM to see _literally every_ file in your codebase +- **When you need the LLM to see _literally every_ file in your codebase** - "Find everywhere where the `foo` function is called" - "Review our codebase and find any spelling mistakes" -- Refactoring +- **Refactoring tasks** - "Add a new parameter to the `bar` function and update usages" -## Configuration +## How to Configure @Codebase Context Provider Settings 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: @@ -82,7 +89,7 @@ Final number of results to use after re-ranking (default: 5) 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) -## Ignore files during indexing +## How to Ignore Files During Indexing 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`. @@ -92,6 +99,6 @@ If you want to see exactly what files Continue has indexed, the metadata is stor If you need to force a refresh of the index, reload the VS Code window with cmd/ctrl + shift + p + "Reload Window". -## Repository map +## How Repository Map Enhances Codebase Understanding -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#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. +Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](/customize/context/codebase#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. diff --git a/docs/customize/context/documentation.mdx b/docs/customize/context/documentation.mdx index 76f0218c3..70bd47e02 100644 --- a/docs/customize/context/documentation.mdx +++ b/docs/customize/context/documentation.mdx @@ -1,5 +1,5 @@ --- -title: "@Docs" +title: "How to Set Up @Docs Context Provider in Continue" description: Learn how to access and search your project's documentation directly within Continue keywords: [ @@ -13,11 +13,12 @@ keywords: documentation, ] toc_max_heading_level: 5 +sidebarTitle: "@Docs" --- -The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue. +The `@Docs` context provider allows you to efficiently reference documentation directly within Continue. -## Enabling the `@Docs` context provider +## How to Enable the @Docs Context Provider To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file. @@ -41,7 +42,7 @@ To enable the `@Docs` context provider, add it to the list of context providers -## How It Works +## How the @Docs Context Provider Works The `@Docs` context provider works by @@ -50,13 +51,13 @@ The `@Docs` context provider works by 3. Storing the embeddings locally on your machine 4. Embedding chat input to include similar documentation chunks as context -## Indexing Your Own Documentation +## How to Index Your Own Documentation -### Hub `docs` Blocks +### Using Hub `docs` Blocks @Docs uses [`docs` blocks](../../hub/blocks/block-types#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). -### Through the `@Docs` Context Provider +### How to Add Documentation Through the @Docs Context Provider To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed @@ -79,7 +80,7 @@ Documentation sources may be suggested based on package files in your repo. This ![Add documentation form](/images/docs-form.png) -### In a configuration file +### How to Add Documentation in Configuration Files 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: @@ -111,13 +112,13 @@ See [the config reference](/reference) for all documentation site configuration Indexing will re-sync upon saving the configuration file. -## Configuration +## How to Configure @Docs Advanced Settings -### Using Your Embeddings Provider +### How to Use Your Custom Embeddings Provider 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. -### Reranking +### How to Configure Reranking for Better Results 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`. @@ -150,7 +151,7 @@ As with [@Codebase context provider configuration](./codebase#configuration), yo -### GitHub +### How to Set Up GitHub Token for GitHub Documentation 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: @@ -179,7 +180,7 @@ The GitHub API rate limits public requests to 60 per hour. If you want to reliab -### Local Crawling +### How to Enable Local Crawling for Private Documentation By default, Continue crawls documentation sites using a specialized crawling service that provides the best experience for most users and documentation sites. @@ -212,9 +213,12 @@ If your documentation is private, you can skip the default crawler and use a loc - 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](../settings) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. - - **Note:** Chromium crawling support is being deprecated and may be removed in future versions. + 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](../settings) This will download and install Chromium + to `~/.continue/.utils`, and use it as the local crawler. **Note:** Chromium + crawling support is being deprecated and may be removed in future versions. Further notes: @@ -222,7 +226,7 @@ Further notes: - 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. - 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. -## Managing your docs indexes +## How to Manage Your Documentation Indexes You can view indexing statuses and manage your documentation sites from the `@docs indexes` section of the `More` page (three dots) @@ -239,9 +243,9 @@ You can also view the overall status of currently indexing docs from a hideable You can also use the following IDE command to force a re-index of all docs: `Continue: Docs Force Re-Index`. -## Examples +## Configuration Examples for Different Setups -### VS Code minimal setup +### How to Set Up @Docs in VS Code (Minimal Configuration) The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking. @@ -275,7 +279,7 @@ The following configuration example works out of the box for VS Code. This uses -### Jetbrains minimal setup +### How to Set Up @Docs in JetBrains IDEs (Minimal Configuration) Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx). @@ -318,7 +322,7 @@ Here is the equivalent minimal example for Jetbrains, which requires setting up -### Full-power setup (VS Code or Jetbrains) +### How to Set Up @Docs with Advanced Features (VS Code or JetBrains) The following configuration example includes: diff --git a/docs/customize/custom-providers.mdx b/docs/customize/custom-providers.mdx index 263f596b1..8e19b4359 100644 --- a/docs/customize/custom-providers.mdx +++ b/docs/customize/custom-providers.mdx @@ -7,7 +7,7 @@ As an example, say you are working on solving a new GitHub Issue. You type '@Iss ![Context Items](/images/customize/images/context-provider-example-0c96ff77286fa970b23dddfdc1fa986a.png) -## Context blocks +## How Do Context Blocks Work? 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). @@ -15,7 +15,7 @@ You can add context providers to assistants using [`context` blocks](/hub/blocks You can add any built-in context-providers in your config file as shown below: -### `@File` +### @File Context Provider – Reference Files in Your Workspace Reference any file in your current workspace. @@ -34,7 +34,7 @@ config.json { "contextProviders": [{ "name": "file" }] } ``` -### `@Code` +### @Code Context Provider – Reference Functions and Classes Reference specific functions or classes from throughout your project. @@ -53,7 +53,7 @@ config.json { "contextProviders": [{ "name": "code" }] } ``` -### `@Git Diff` +### @Git Diff Context Provider – Reference Branch Changes 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. @@ -72,7 +72,7 @@ config.json { "contextProviders": [{ "name": "diff" }] } ``` -### `@Current File` +### @Current File Context Provider – Reference the Active File Reference the currently open file. @@ -91,7 +91,7 @@ config.json { "contextProviders": [{ "name": "currentFile" }] } ``` -### `@Terminal` +### @Terminal Context Provider – Reference Last Terminal Command and Output Reference the last command you ran in your IDE's terminal and its output. @@ -110,7 +110,7 @@ config.json { "contextProviders": [{ "name": "terminal" }] } ``` -### `@Docs` +### @Docs Context Provider – Reference Documentation Site Content Reference the contents from any documentation site. @@ -131,9 +131,9 @@ config.json Note that this will only enable the `@Docs` context provider. -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. +To use it, you need to add a documentation site to your config file. See the [docs](/customize/overview#documentation-context) page for more information. -### `@Open` +### @Open Context Provider – Reference All Open Files or Pinned Files Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. @@ -155,7 +155,7 @@ config.json { "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] } ``` -### `@Web` +### @Web Context Provider – Reference Relevant Web Pages Reference relevant pages from across the web, automatically determined from your input. @@ -179,7 +179,7 @@ config.json { "contextProviders": [{ "name": "web", "params": { "n": 5 } }] } ``` -### `@Codebase` +### @Codebase Context Provider – Reference Relevant Codebase Snippets Reference the most relevant snippets from your codebase. @@ -199,9 +199,9 @@ config.json { "contextProviders": [{ "name": "codebase" }] } ``` -Read more about indexing and retrieval [here](/customization/overview#codebase-context). +Read more about indexing and retrieval [here](/customize/overview#codebase-context). -### `@Folder` +### @Folder Context Provider – Reference Code from a Specific Folder Uses the same retrieval mechanism as `@Codebase`, but only on a single folder. @@ -220,7 +220,7 @@ config.json { "contextProviders": [{ "name": "folder" }] } ``` -### `@Search` +### @Search Context Provider – Reference Code Search Results Reference the results of codebase search, just like the results you would get from VS Code search. @@ -244,7 +244,7 @@ config.json This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep). -### `@Url` +### @Url Context Provider – Reference Content from a URL Reference the markdown converted contents of a given URL. @@ -264,7 +264,7 @@ config.json { "contextProviders": [{ "name": "url" }] } ``` -### `@Clipboard` +### @Clipboard Context Provider – Reference Clipboard Items Reference recent clipboard items @@ -284,7 +284,7 @@ config.json { "contextProviders": [{ "name": "clipboard" }] } ``` -### `@Tree` +### @Tree Context Provider – Reference Workspace File Structure Reference the structure of your current workspace. @@ -304,7 +304,7 @@ config.json { "contextProviders": [{ "name": "tree" }] } ``` -### `@Problems` +### @Problems Context Provider – Reference Problems in the Current File Get Problems from the current file. @@ -324,7 +324,7 @@ config.json { "contextProviders": [{ "name": "problems" }] } ``` -### `@Debugger` +### @Debugger Context Provider – Reference Debugger Local Variables Reference the contents of the local variables in the debugger. Currently only available in VS Code. @@ -348,7 +348,7 @@ config.json Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. -### `@Repository Map` +### @Repository Map Context Provider – Reference Codebase Outline and Signatures Reference the outline of your codebase. By default, signatures are included along with file in the repo map. @@ -374,11 +374,11 @@ config.json 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. -In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from. +In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repository map from. -This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). +This context provider is inspired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html). -### `@Operating System` +### @Operating System Context Provider – Reference System Architecture and Platform Reference the architecture and platform of your current operating system. @@ -398,7 +398,7 @@ config.json { "contextProviders": [{ "name": "os" }] } ``` -### Model Context Protocol +### Using the Model Context Protocol (MCP) in Continue 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: @@ -437,7 +437,7 @@ config.json You'll then be able to type "@" and see "MCP" in the context providers dropdown. -### `@Issue` +### @Issue Context Provider – Reference GitHub Issue Conversations Reference the conversation in a GitHub issue. @@ -474,7 +474,7 @@ config.json 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. -### `@Database` +### @Database Context Provider – Reference Database Table Schemas Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases. @@ -559,7 +559,7 @@ Available connection types: - `mysql` - `sqlite` -### `@Google` +### @Google Context Provider – Reference Google Search Results Reference the results of a Google search. @@ -592,7 +592,7 @@ For example, type "@Google python tutorial" if you want to search and discuss wa Note: You can get an API key for free at [serper.dev](https://serper.dev). -### `@Gitlab Merge Request` +### @Gitlab Merge Request Context Provider – Reference GitLab Merge Requests Reference an open MR for this branch on GitLab. @@ -616,7 +616,7 @@ config.json 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. -#### Using Self-Hosted GitLab +#### How to Use Self-Hosted GitLab You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`. @@ -646,11 +646,11 @@ config.json } ``` -#### Filtering Comments +#### How to Provide Context by Filtering Comments 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`. -### `@Jira` +### @Jira Context Provider – Reference Jira Issues Reference the conversation in a Jira issue. @@ -718,7 +718,7 @@ You can override this query by setting the `issueQuery` parameter. You can set the `maxResults` parameter to limit the number of results returned. The default is `50`. -### `@Discord` +### @Discord Context Provider – Reference Messages in Discord Channels Reference the messages in a Discord channel. @@ -762,7 +762,7 @@ config.json 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. -### `@HTTP` +### @HTTP Context Provider – Reference Data from an HTTP Request 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. @@ -804,7 +804,7 @@ Response [ { "name": "", "description": "", "content": "" }]// OR{ "name": "", "description": "", "content": ""} ``` -### `@Commits` +### @Commits Context Provider – Reference Git Commit Metadata and Diffs Reference specific git commit metadata and diff or all of the recent commits. @@ -833,7 +833,7 @@ config.json 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. -### `@Greptile` +### @Greptile Context Provider – Query Greptile Index of Repo/Branch Query a [Greptile](https://www.greptile.com/) index of the current repo/branch. @@ -863,6 +863,6 @@ config.json } ``` -### Requesting Context Providers +### How to Request a New Context Provider in Continue 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. diff --git a/docs/customize/deep-dives/autocomplete.mdx b/docs/customize/deep-dives/autocomplete.mdx index 818261ac5..893712dae 100644 --- a/docs/customize/deep-dives/autocomplete.mdx +++ b/docs/customize/deep-dives/autocomplete.mdx @@ -1,10 +1,11 @@ --- -title: "Autocomplete" -description: "Deep dive into Continue's autocomplete functionality and configuration" +title: "Continue Autocomplete Setup and Configuration Guide" +description: "Step-by-step guide to setting up and configuring autocomplete in Continue, including Codestral, Ollama, and IDE settings." keywords: [autocomplete] +sidebarTitle: Autocomplete --- -### Setting up with Codestral (recommended) +## How to Set Up Autocomplete in Continue with Codestral (Recommended) 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: @@ -45,7 +46,7 @@ If you want to have the best autocomplete experience, we recommend using Codestr "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`. -### Setting up with Ollama (default) +## How to Set Up Autocomplete in Continue with Ollama (Local Model) 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: @@ -84,37 +85,42 @@ Then, add the model to your configuration: Once the model has been downloaded, you should begin to see completions in VS Code. -NOTE: Typically, thinking-type models are not recommended as they generate more slowly and are not suitable for scenarios that require speed. + + Typically, thinking-type models are not recommended as they generate more + slowly and are not suitable for scenarios that require speed. + However, if you use any thinking-switchable models, you can configure these models for autocomplete functions by turning off the thinking mode. For example: - + + ```yaml title="config.yaml" - models: - - name: Qwen3 without Thinking for Autocomplete - provider: ollama - model: qwen3:4b # qwen3 is a thinking-switchable model - roles: - - autocomplete - requestOptions: - extraBodyProperties: - think: false # turning off the thinking - ``` - +models: + - name: Qwen3 without Thinking for Autocomplete + provider: ollama + model: qwen3:4b # qwen3 is a thinking-switchable model + roles: + - autocomplete + requestOptions: + extraBodyProperties: + think: false # turning off the thinking +``` + + Then, in the continue panel, select this model as the default model for autocomplete. -## Configuration Options +## Autocomplete Configuration Options in Continue -### Hub Autocomplete models +### Autocomplete Models Available on the Continue Hub Explore autocomplete model configurations on [the hub](https://hub.continue.dev/explore/models?roles=autocomplete) -### Autocomplete User Settings +### Customize Autocomplete User Settings in the Continue Extension {/* - `Use autocomplete cache`: If on, caches completions */} The following settings can be configured for autocompletion in the IDE extension [User Settings Page](../settings.md): @@ -122,7 +128,7 @@ The following settings can be configured for autocompletion in the IDE extension - `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto` - `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt" -### Autocomplete Configuration +### How to Configure Autocomplete with `config.json` (Deprecated Format) #### YAML Configuration @@ -149,13 +155,13 @@ models: The `config.json` configuration format offers configuration options through `tabAutocompleteOptions`. See the [JSON Reference](/reference/json-reference#tabautocomplete-options) for more details. -## FAQs +## Autocomplete FAQs and Troubleshooting in Continue ### I want better completions, should I use GPT-4? 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. -### I'm not seeing any completions +### Autocomplete Not Working – How to Fix It Follow these steps to ensure that everything is set up correctly: @@ -167,13 +173,13 @@ Follow these steps to ensure that everything is set up correctly: 6. Check VS Code settings to make sure that `"editor.inlineSuggest.enabled"` is set to `true` (use cmd/ctrl + , then search for this and check the box) 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. -### Completions are only ever single-line +### Why Are My Completions Only Single-Line? 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. -### Can I configure a "trigger key" for autocomplete? +### How to Set a Trigger Key for Autocomplete Suggestions -Yes, in VS Code, if you don't want to be shown suggestions automatically you can: +In VS Code, if you don't want to be shown suggestions automatically you can: 1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions 2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger` @@ -181,7 +187,7 @@ Yes, in VS Code, if you don't want to be shown suggestions automatically you can 4. Press the key combination you want to use to trigger suggestions (e.g. cmd/ctrl + space) 5. Now whenever you want to see a suggestion, you can press your key binding (e.g. cmd/ctrl + space) to trigger suggestions manually -### Is there a shortcut to accept one line at a time? +### Shortcut for Accepting One Line at a Time in Autocomplete 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: @@ -192,7 +198,7 @@ This is a built-in feature of VS Code, but it's just a bit hidden. Follow these 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. If you need to apply all the code, just press Tab multiple times. -### How to turn off autocomplete +### How to Turn Off Autocomplete in Continue (VS Code and JetBrains) #### VS Code diff --git a/docs/customize/deep-dives/configuration.mdx b/docs/customize/deep-dives/configuration.mdx index 666d3f27b..4291dfbd8 100644 --- a/docs/customize/deep-dives/configuration.mdx +++ b/docs/customize/deep-dives/configuration.mdx @@ -1,18 +1,19 @@ --- -title: "Configuration" +title: "How to Configure Continue Assistants" description: Learn how to access and manage Continue assistant configurations through Hub or local YAML files keywords: [config, settings, customize] +sidebarTitle: "Assistant Configuration" --- 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. ![configure an assistant](/images/configure-continue.png) -## Hub Assistants +## How to Manage Hub Assistants Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md) -## YAML Config +## How to Configure Local Assistants with YAML Local user-level configuration is stored and can be edited in your home directory in `config.yaml`: @@ -27,19 +28,19 @@ When editing this file, you can see the available options suggested as you type, See the full reference for `config.yaml` [here](/reference). -## Deprecated configuration methods +## Legacy Configuration Methods (Deprecated) - View the `config.json` migration guide [here](../yaml-migration.mdx) + View the `config.json` migration guide [here](../yaml-migration) - [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml` -- [`.continuerc.json`](#continuercjson) - Workspace-level configuration -- [`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: +- [`.continuerc.json`](#how-to-use-continuercjson-for-workspace-configuration) - Workspace-level configuration +- [`config.ts`](#how-to-use-configts-for-advanced-configuration) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema: - `~/.continue/config.ts` (MacOS / Linux) - `%USERPROFILE%\.continue\config.ts` (Windows) -### `.continuerc.json` +### How to Use `.continuerc.json` for Workspace Configuration 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`. @@ -54,7 +55,7 @@ Example } ``` -### `config.ts` +### How to Use `config.ts` for Advanced Configuration `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). diff --git a/docs/customize/deep-dives/development-data.mdx b/docs/customize/deep-dives/development-data.mdx index 9adaaa9c0..93e69e482 100644 --- a/docs/customize/deep-dives/development-data.mdx +++ b/docs/customize/deep-dives/development-data.mdx @@ -1,14 +1,15 @@ --- -title: Development Data +title: "How to Collect and Manage Development Data in Continue" description: Collecting data on how you build software keywords: [development data, dev data, LLM-aided development] +sidebarTitle: "Development Data" --- 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. 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) -## Custom Data Destinations +## How to Configure Custom Data Destinations You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories. diff --git a/docs/customize/deep-dives/mcp.mdx b/docs/customize/deep-dives/mcp.mdx index 6156b1f63..7b6230923 100644 --- a/docs/customize/deep-dives/mcp.mdx +++ b/docs/customize/deep-dives/mcp.mdx @@ -1,7 +1,8 @@ --- -title: MCP +title: "How to Set Up Model Context Protocol (MCP) in Continue" description: MCP use and customization keywords: [tool, use, function calling, claude, automatic] +sidebarTitle: "Model Context Protocol (MCP)" --- As AI systems get better, they're still held back by their training data and @@ -13,7 +14,7 @@ the wider digital world. This standard, created by Anthropic to bring together prompts, context, and tool use, is key for building truly useful AI experiences that can be set up with custom tools. -## How it works +## How MCP Works in Continue Currently custom tools can be configured using the Model Context Protocol standard to unify prompts, context, and tool use. @@ -24,7 +25,7 @@ explore available MCP server blocks MCP can only be used in the **agent** mode. -## Quick Start +## Quick Start: How to Set Up Your First MCP Server Below is a quick example of setting up a new MCP server for use in your assistant: @@ -53,13 +54,13 @@ The result will be a generated file called `hn.txt` in the current working direc ![playwright mcp](/images/mcp-playwright.png) -## Continue Documentation Search +## How to Set Up Continue Documentation Search with MCP 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. For complete setup instructions, troubleshooting, and usage examples, see the [Continue MCP Reference](/reference/continue-mcp). -## Using MCP Servers +## How to Configure MCP Servers To set up your own MCP server, read the [MCP quickstart](https://modelcontextprotocol.io/quickstart) and then [create an @@ -100,7 +101,7 @@ server block to your [config file](./configuration.md): -### Syntax +### How to Configure MCP Server Properties MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers. @@ -110,11 +111,11 @@ MCP blocks follow the established syntax for blocks, with a few additional prope - `args`: Arguments to pass to the command. - `env`: Secrets to be injected into the command as environment variables. -### Transport Types +### How to Choose MCP Transport Types 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. -#### Server-Sent Events Transport (`sse`) +#### How to Use Server-Sent Events Transport (`sse`) For real-time streaming communication, use the SSE transport: @@ -125,7 +126,7 @@ mcpServers: url: https://.... ``` -#### Standard Input/Output (`stdio`) +#### How to Use Standard Input/Output (`stdio`) For local MCP servers that communicate via standard input and output: @@ -139,7 +140,7 @@ mcpServers: - "/path/to/your/database.db" ``` -#### Streamable HTTP Transport (`streamable-http`) +#### How to Use Streamable HTTP Transport For standard HTTP-based communication with streaming capabilities: @@ -154,7 +155,7 @@ These remote transport options allow you to connect to MCP servers hosted on rem 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). -### Working with Secrets +### How to Work with Secrets in MCP Servers With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets 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`. diff --git a/docs/customize/deep-dives/model-capabilities.mdx b/docs/customize/deep-dives/model-capabilities.mdx index df1daefc5..3e8a998eb 100644 --- a/docs/customize/deep-dives/model-capabilities.mdx +++ b/docs/customize/deep-dives/model-capabilities.mdx @@ -1,12 +1,13 @@ --- -title: Model Capabilities +title: "How to Configure Model Capabilities in Continue" description: Understanding and configuring model capabilities for tools and image support keywords: [capabilities, tools, function calling, image input, config] +sidebarTitle: "Model Capabilities" --- Continue needs to know what features your models support to provide the best experience. This guide explains how model capabilities work and how to configure them. -## What are Model Capabilities? +## What Are Model Capabilities? Model capabilities tell Continue what features a model supports: @@ -19,11 +20,11 @@ Without proper capability configuration, you may encounter issues like: - Tools not working at all - Image uploads being disabled -## How Continue Detects Capabilities +## How Continue Detects Model Capabilities Continue uses a two-tier system for determining model capabilities: -### 1. Automatic Detection (Default) +### How Automatic Detection Works (Default) Continue automatically detects capabilities based on your provider and model name. For example: @@ -39,12 +40,14 @@ For implementation details, see: - [toolSupport.ts](https://github.com/continuedev/continue/blob/main/core/llm/toolSupport.ts) - Tool capability detection logic - [@continuedev/llm-info](https://www.npmjs.com/package/@continuedev/llm-info) - Image support detection -### 2. Manual Configuration +### How to Configure Capabilities Manually You can add capabilities to models that Continue doesn't automatically detect in your `config.yaml`. -You cannot override autodetection - you can only add capabilities. Continue will always use its built-in knowledge about your model in addition to any capabilities you specify. + You cannot override autodetection - you can only add capabilities. Continue + will always use its built-in knowledge about your model in addition to any + capabilities you specify. ```yaml @@ -58,7 +61,7 @@ models: - image_input ``` -## When to Add Capabilities +## When to Add Capabilities Manually Add capabilities when: @@ -67,9 +70,9 @@ Add capabilities when: 3. **Experiencing issues** - Autodetection isn't working correctly for your setup 4. **Using proxy services** - Some proxy services modify model capabilities -## Configuration Examples +## How to Configure Model Capabilities (Examples) -### Basic Configuration +### How to Add Basic Tool Support Add tool support for a model that Continue doesn't recognize: @@ -88,13 +91,13 @@ models: - **Experimental**: System message tools are available as an experimental feature - for models without native tool support. These are not automatically used as a - fallback and must be explicitly configured. Most models are trained for native - tools, so system message tools may not work as well. + **Experimental**: System message tools are available as an experimental + feature for models without native tool support. These are not automatically + used as a fallback and must be explicitly configured. Most models are trained + for native tools, so system message tools may not work as well. -### Disable Capabilities +### How to Handle Models with Limited Capabilities Explicitly set no capabilities (autodetection will still apply): @@ -113,7 +116,7 @@ models: features. -### Multiple Capabilities +### How to Enable Multiple Capabilities Enable both tools and image support: @@ -127,7 +130,7 @@ models: - image_input ``` -## Common Scenarios +## Common Configuration Scenarios Some providers and custom deployments may require explicit capability configuration: @@ -148,11 +151,11 @@ models: - image_input # If supports vision ``` -## Troubleshooting +## How to Troubleshoot Capability Issues -For troubleshooting capability-related issues like Agent mode being unavailable or tools not working, see the [Troubleshooting guide](/troubleshooting#agent-mode-is-unavailable-or-tools-arent-working). +For troubleshooting capability-related issues like Agent mode being unavailable or tools not working, see the [Troubleshooting guide](/troubleshooting#agent-mode-is-unavailable-or-tools-aren’t-working). -## Best Practices +## Best Practices for Model Capabilities 1. **Start with autodetection** - Only override if you experience issues 2. **Test after changes** - Verify tools and images work as expected diff --git a/docs/customize/deep-dives/prompts.mdx b/docs/customize/deep-dives/prompts.mdx index ec541cc01..d80466da7 100644 --- a/docs/customize/deep-dives/prompts.mdx +++ b/docs/customize/deep-dives/prompts.mdx @@ -1,5 +1,6 @@ --- -title: Prompts +title: "Creating Custom Prompts in Continue" +description: "Learn how to create reusable prompt files in Continue to streamline repetitive tasks, including examples for code reviews, security checks, and entity generation" --- 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. @@ -7,11 +8,11 @@ Prompts are reusable instructions that can be referenced at any time during chat 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 + [rules](./rules) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered. -### Quick Start +## Quick Start: How to Create Your First Prompt File Below is a quick example of setting up a prompt file: @@ -30,11 +31,11 @@ Review the currently open file for adherence to Redux best practices, as explain Now to use this prompt, you can open Chat, type /, select the prompt, and type out any additional instructions you'd like to add. -## Further Examples +## Example Prompt Templates for Common Use Cases 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). -### Security review +### How to Create a Security Review Prompt ```md title="security-review.md" --- @@ -49,7 +50,7 @@ Review the changes in the current git diff for these security best practices: - Is sensitive data handled appropriately throughout the lifecycle? ``` -### Pull in commonly used files for tasks +### How to Create a Prompt That References Existing Files ```md title="typeorm-entity-generator.md" --- diff --git a/docs/customize/deep-dives/rules.mdx b/docs/customize/deep-dives/rules.mdx index f313ad9cf..2f9411bc9 100644 --- a/docs/customize/deep-dives/rules.mdx +++ b/docs/customize/deep-dives/rules.mdx @@ -1,25 +1,26 @@ --- -title: "Rules" +title: "How to Create and Manage Rules in Continue" description: "Rules are used to provide instructions to the model for Agent, Chat, and Edit requests." keywords: [rules, .continuerules, system, prompt, message] +sidebarTitle: "Rules" --- Rules provide instructions to the model for [Agent](../../features/agent/quick-start), [Chat](../../features/chat/quick-start), and [Edit](../../features/edit/quick-start) requests. - Rules are not included in [autocomplete](./autocomplete.mdx) or - [apply](../model-roles/apply.mdx). + Rules are not included in [autocomplete](./autocomplete) or + [apply](../model-roles/apply). -## How it works +## How Rules Work in Continue You can view the current rules by clicking the pen icon above the main toolbar: ![rules input toolbar section](/images/notch-rules.png) -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)). +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](#how-to-customize-chat-system-message)). -## Quick Start +## Quick Start: How to Create Your First Rule File Below is a quick example of setting up a new rule file: @@ -39,7 +40,7 @@ Now test your rules by asking a question about a file in chat. ![pirate rule test](/images/pirate-rule-test.png) -## Creating rules blocks +## How to Create Rules Blocks Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules. @@ -56,7 +57,7 @@ Rules can also be added to an Assistant on the Continue Hub. Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub. -### Syntax +### How to Configure Rule Properties and Syntax Rules were originally defined in YAML format (demonstrated below), but we @@ -125,13 +126,13 @@ rules: -### `.continue/rules` folder +### How to Set Up Project-Specific Rules You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files. 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`. -### Example: TypeScript Rules +### Example: How to Create TypeScript-Specific Rules ```md title=".continue/rules/typescript.md" --- @@ -149,7 +150,7 @@ globs: ["**/*.ts", "**/*.tsx"] - modularize components into smaller, reusable pieces ``` -### Chat System Message +### How to Customize Chat System Message Continue includes a simple default system message for [Agent](../../features/agent/quick-start) and [Chat](../../features/chat/quick-start) requests, to help the model provide reliable codeblock formats in its output. @@ -157,7 +158,7 @@ This can be viewed in the rules section of the toolbar (see above), or in the so Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models). -### `.continuerules` +### Legacy: .continuerules File (Deprecated) `.continuerules` will be deprecated in a future release. Please use the diff --git a/docs/customize/deep-dives/slash-commands.mdx b/docs/customize/deep-dives/slash-commands.mdx index f62725f54..4059ef25e 100644 --- a/docs/customize/deep-dives/slash-commands.mdx +++ b/docs/customize/deep-dives/slash-commands.mdx @@ -1,7 +1,8 @@ --- -title: Slash commands -description: Shortcuts that can be activated by prefacing your input with '/' +title: "Using Slash Commands in Continue" +description: "Learn how to use and create Slash Commands in Continue to run custom prompts, access context providers, and speed up coding tasks." keywords: [slash command, custom commands, step] +sidebarTitle: "Slash Commands" --- ![actions](/images/actions.gif) @@ -18,18 +19,18 @@ Slash commands can be combined with additional instructions, including [context commands. -## Prompts +## Ways to Create Slash Commands in Continue -### Assistant prompt blocks +### Assistant Prompt Blocks -The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works.mdx). +The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types#prompts) to your assistant, which show up as slash commands in [Chat](../../features/chat/how-it-works). -### Prompt files +### Prompt Files 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. Learn more about prompt files [here](./prompts). -### MCP Server prompts +### MCP Server Prompts -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. +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) for more details. diff --git a/docs/customize/deep-dives/vscode-actions.mdx b/docs/customize/deep-dives/vscode-actions.mdx index 433255135..91ca32d59 100644 --- a/docs/customize/deep-dives/vscode-actions.mdx +++ b/docs/customize/deep-dives/vscode-actions.mdx @@ -1,15 +1,15 @@ --- -title: VS Code Actions +title: "How to Use Continue's VS Code Actions and Quick Features" keywords: [vscode, quick actions, quick, actions] +description: "Learn about Continue's VS Code-specific actions including quick actions buttons, right-click context menu options, debug shortcuts, and quick fixes for errors in your code" +sidebarTitle: "VS Code Actions" --- -### Other triggers for Actions (VS Code) - Currently all of these are only available in VS Code To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code. -## Quick actions +## How to Use Quick Actions 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. @@ -17,17 +17,17 @@ Quick Actions are displayed as buttons above top-level classes and functions in By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings. -## Right click actions +## How to Use Right Click Actions Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu. 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. -Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx). +Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works). ![context-menu](/images/context-menu.png) -## Debug action +## How to Use the Debug Action Shortcut The debug action is a special built-in keyboard shortcut in the VS Code extension. Use cmd/ctrl + shift + R 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. @@ -37,10 +37,8 @@ I got the following error, can you please help explain how to fix it? [ERROR_MESSAGE] ``` -## Quick fixes +## How to Use Quick Fixes for Code Errors 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 cmd/ctrl + . will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use cmd/ctrl + . again and Continue will attempt to help solve the problem. 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]”. - -![ask-continue](/images/ask-continue.png) diff --git a/docs/customize/model-providers/_category_.json b/docs/customize/model-providers/_category_.json index c710357e6..31562c78a 100644 --- a/docs/customize/model-providers/_category_.json +++ b/docs/customize/model-providers/_category_.json @@ -1,4 +1,8 @@ { "label": "Model Providers", - "position": 4 + "position": 1, + "link": { + "type": "doc", + "id": "customize/model-providers/overview" + } } diff --git a/docs/customize/model-providers/more/SambaNova.mdx b/docs/customize/model-providers/more/SambaNova.mdx index 072ac2429..acd83a682 100644 --- a/docs/customize/model-providers/more/SambaNova.mdx +++ b/docs/customize/model-providers/more/SambaNova.mdx @@ -1,5 +1,6 @@ --- title: "SambaNova" +description: "Configure SambaNova Cloud with Continue to access their high-performance platform for running large AI models, including Llama 4 Scout with world record open source model performance" --- 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. diff --git a/docs/customize/model-providers/more/asksage.mdx b/docs/customize/model-providers/more/asksage.mdx index abb0cbc98..03ad0e3ca 100644 --- a/docs/customize/model-providers/more/asksage.mdx +++ b/docs/customize/model-providers/more/asksage.mdx @@ -1,5 +1,6 @@ --- title: "AskSage" +description: "Configure AskSage with Continue to access a wide range of models including government-compliant versions of GPT and Claude models, supporting chat and edit functionalities" --- diff --git a/docs/customize/model-providers/more/cerebras.mdx b/docs/customize/model-providers/more/cerebras.mdx index e2f2fabf5..c8d28888d 100644 --- a/docs/customize/model-providers/more/cerebras.mdx +++ b/docs/customize/model-providers/more/cerebras.mdx @@ -1,5 +1,6 @@ --- title: "Cerebras" +description: "Configure Cerebras Inference with Continue for fast model inference using specialized silicon, including setup instructions for Llama 3.1 70B model" --- Cerebras Inference uses specialized silicon to provides fast inference. diff --git a/docs/customize/model-providers/more/cloudflare.mdx b/docs/customize/model-providers/more/cloudflare.mdx index 0964bba8e..1373b637f 100644 --- a/docs/customize/model-providers/more/cloudflare.mdx +++ b/docs/customize/model-providers/more/cloudflare.mdx @@ -1,5 +1,6 @@ --- title: "Cloudflare" +description: "Configure Cloudflare Workers AI with Continue to access various models for chat and autocomplete, including Llama 3 8B and DeepSeek Coder through Cloudflare's serverless AI platform" --- Cloudflare Workers AI can be used for both chat and tab autocompletion in Continue. Here is an example of Cloudflare Workers AI configuration: diff --git a/docs/customize/model-providers/more/cohere.mdx b/docs/customize/model-providers/more/cohere.mdx index 5162fd5ac..117465918 100644 --- a/docs/customize/model-providers/more/cohere.mdx +++ b/docs/customize/model-providers/more/cohere.mdx @@ -1,5 +1,6 @@ --- title: "Cohere" +description: "Configure Cohere's AI models with Continue, including setup for Command A for chat, embed-v4.0 for embeddings, and rerank-v3.5 for reranking capabilities" --- Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key. @@ -38,7 +39,7 @@ We recommend configuring **Command A** as your chat model. Cohere currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. ## Embeddings model diff --git a/docs/customize/model-providers/more/deepinfra.mdx b/docs/customize/model-providers/more/deepinfra.mdx index 238508333..83150bc56 100644 --- a/docs/customize/model-providers/more/deepinfra.mdx +++ b/docs/customize/model-providers/more/deepinfra.mdx @@ -1,5 +1,6 @@ --- title: "DeepInfra" +description: "Configure DeepInfra with Continue to access low-cost inference for open-source models like Mixtral-8x7B-Instruct, including API setup instructions" --- [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: diff --git a/docs/customize/model-providers/more/flowise.mdx b/docs/customize/model-providers/more/flowise.mdx index cdbeafa4c..fb504628f 100644 --- a/docs/customize/model-providers/more/flowise.mdx +++ b/docs/customize/model-providers/more/flowise.mdx @@ -1,5 +1,6 @@ --- title: "Flowise" +description: "Configure Flowise with Continue to integrate with this low-code/no-code drag & drop tool for building and visualizing LLM applications" --- [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: diff --git a/docs/customize/model-providers/more/function-network.mdx b/docs/customize/model-providers/more/function-network.mdx index 48641487c..b83f5aa40 100644 --- a/docs/customize/model-providers/more/function-network.mdx +++ b/docs/customize/model-providers/more/function-network.mdx @@ -1,12 +1,6 @@ --- title: "Function Network" ---- - ---- - -title: Function Network -slug: ../function-network - +description: "Configure Function Network with Continue to access private and affordable AI models, including Llama 3.1, Qwen2.5-Coder, and various embedding models for a user-owned AI experience" --- > Private, Affordable User-Owned AI diff --git a/docs/customize/model-providers/more/groq.mdx b/docs/customize/model-providers/more/groq.mdx index 22d67aa97..ae674b1e5 100644 --- a/docs/customize/model-providers/more/groq.mdx +++ b/docs/customize/model-providers/more/groq.mdx @@ -1,5 +1,7 @@ --- -title: "Groq" +title: "How to Configure Groq with Continue" +description: "Configure Groq with Continue to access their ultra-fast inference platform for open-source language models, including the entire Llama 3.1 and 3.3 family with industry-leading speeds" +sidebarTitle: "Groq" --- diff --git a/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx b/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx index 980a125a2..99426f80b 100644 --- a/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx +++ b/docs/customize/model-providers/more/huggingfaceinferenceapi.mdx @@ -1,5 +1,6 @@ --- title: "HuggingFace Inference Endpoints" +description: "Configure HuggingFace Inference Endpoints with Continue to deploy and access open-source language models on any cloud, including setup instructions for models like WizardCoder" --- 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: diff --git a/docs/customize/model-providers/more/ipex_llm.mdx b/docs/customize/model-providers/more/ipex_llm.mdx index 0b5f37fd2..e82fd2f34 100644 --- a/docs/customize/model-providers/more/ipex_llm.mdx +++ b/docs/customize/model-providers/more/ipex_llm.mdx @@ -1,5 +1,6 @@ --- title: "Intel Extension for PyTorch" +description: "Configure Intel Extension for PyTorch (IPEX-LLM) with Continue to run language models with very low latency on Intel CPUs and GPUs, leveraging accelerated Ollama backend" --- diff --git a/docs/customize/model-providers/more/kindo.mdx b/docs/customize/model-providers/more/kindo.mdx index a798247b6..2c0a87c6c 100644 --- a/docs/customize/model-providers/more/kindo.mdx +++ b/docs/customize/model-providers/more/kindo.mdx @@ -1,5 +1,6 @@ --- title: "Kindo" +description: "Configure Kindo with Continue to centralize control over your organization's AI operations with support for commercial and open-source models while ensuring data protection and policy compliance" --- 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). diff --git a/docs/customize/model-providers/more/llamacpp.mdx b/docs/customize/model-providers/more/llamacpp.mdx index 30f95a13e..e12d22cd8 100644 --- a/docs/customize/model-providers/more/llamacpp.mdx +++ b/docs/customize/model-providers/more/llamacpp.mdx @@ -1,5 +1,6 @@ --- title: "Llama.cpp" +description: "Configure Llama.cpp with Continue to run local language models using high-performance C++ inference, including setup instructions for the server and client configuration" --- 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: diff --git a/docs/customize/model-providers/more/llamafile.mdx b/docs/customize/model-providers/more/llamafile.mdx index 495d5a9e8..1bf4b534e 100644 --- a/docs/customize/model-providers/more/llamafile.mdx +++ b/docs/customize/model-providers/more/llamafile.mdx @@ -1,5 +1,6 @@ --- title: "Llamafile" +description: "Configure Llamafile with Continue to use self-contained binary files that can run open-source language models like Mistral without additional setup" --- 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: diff --git a/docs/customize/model-providers/more/lmstudio.mdx b/docs/customize/model-providers/more/lmstudio.mdx index 6fdaf9e7d..60226686f 100644 --- a/docs/customize/model-providers/more/lmstudio.mdx +++ b/docs/customize/model-providers/more/lmstudio.mdx @@ -1,5 +1,6 @@ --- title: "LM Studio" +description: "Configure LM Studio with Continue to run open-source models locally, including setup for Llama3.1 8B for chat, embedding models, and instructions for connecting to remote instances" --- [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: diff --git a/docs/customize/model-providers/more/moonshot.mdx b/docs/customize/model-providers/more/moonshot.mdx index 335665c1d..73f7927ed 100644 --- a/docs/customize/model-providers/more/moonshot.mdx +++ b/docs/customize/model-providers/more/moonshot.mdx @@ -1,5 +1,6 @@ --- title: "Moonshot AI" +description: "Configure Moonshot AI's language models with Continue, including setup instructions for their 8K, 32K, and 128K context window models with competitive pricing" --- [Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance. diff --git a/docs/customize/model-providers/more/morph.mdx b/docs/customize/model-providers/more/morph.mdx index 41724c56d..30ef1efec 100644 --- a/docs/customize/model-providers/more/morph.mdx +++ b/docs/customize/model-providers/more/morph.mdx @@ -1,5 +1,6 @@ --- title: "Morph" +description: "Configure Morph with Continue to access their optimized models for code application, embeddings, and reranking, designed for fast and accurate integration of AI-generated code changes" --- 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: diff --git a/docs/customize/model-providers/more/msty.mdx b/docs/customize/model-providers/more/msty.mdx index d8ec28b08..9d889bd0d 100644 --- a/docs/customize/model-providers/more/msty.mdx +++ b/docs/customize/model-providers/more/msty.mdx @@ -1,5 +1,6 @@ --- title: "Msty" +description: "Configure Msty with Continue to easily run both online and local open-source models like Llama-2 and DeepSeek Coder through their user-friendly application for Windows, Mac, and Linux" --- [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: diff --git a/docs/customize/model-providers/more/ncompass.mdx b/docs/customize/model-providers/more/ncompass.mdx index 21cb01e1e..e1e0a03a8 100644 --- a/docs/customize/model-providers/more/ncompass.mdx +++ b/docs/customize/model-providers/more/ncompass.mdx @@ -1,5 +1,6 @@ --- title: "NCompass" +description: "Configure NCompass Technologies with Continue to access their fast inference engine for open-source models like Google's Gemma 3 Coder" --- 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: diff --git a/docs/customize/model-providers/more/nebius.mdx b/docs/customize/model-providers/more/nebius.mdx index 860f114fd..b3491908c 100644 --- a/docs/customize/model-providers/more/nebius.mdx +++ b/docs/customize/model-providers/more/nebius.mdx @@ -1,5 +1,6 @@ --- title: "Nebius" +description: "Configure Nebius AI Studio with Continue to access their language model offerings, including DeepSeek R1 for chat and BAAI embeddings models" --- You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys) diff --git a/docs/customize/model-providers/more/novita.mdx b/docs/customize/model-providers/more/novita.mdx index 0370c8999..bb01ef77a 100644 --- a/docs/customize/model-providers/more/novita.mdx +++ b/docs/customize/model-providers/more/novita.mdx @@ -1,5 +1,6 @@ --- title: "Novita" +description: "Configure Novita AI with Continue to access their affordable and reliable inference platform for language models like Llama 3.1, offering scalable LLM API services" --- [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: diff --git a/docs/customize/model-providers/more/nvidia.mdx b/docs/customize/model-providers/more/nvidia.mdx index bfbce696f..4f149738b 100644 --- a/docs/customize/model-providers/more/nvidia.mdx +++ b/docs/customize/model-providers/more/nvidia.mdx @@ -1,11 +1,8 @@ --- title: "NVIDIA" +description: "Configure NVIDIA AI models with Continue, including setup for Nemotron-4-340B-Instruct for chat and NVIDIA Retrieval QA Mistral 7B for embeddings" --- ---- - -## title: NVIDIA - [View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) @@ -46,7 +43,7 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model. NVIDIA currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. ## Embeddings model diff --git a/docs/customize/model-providers/more/openrouter.mdx b/docs/customize/model-providers/more/openrouter.mdx index f1be54017..a6369364c 100644 --- a/docs/customize/model-providers/more/openrouter.mdx +++ b/docs/customize/model-providers/more/openrouter.mdx @@ -1,5 +1,7 @@ --- -title: "OpenRouter" +title: "How to Configure OpenRouter with Continue" +sidebarTitle: "OpenRouter" +description: "Configure OpenRouter with Continue to access various commercial and open-source models through a unified interface, including model capability configuration and advanced request options" --- 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). @@ -74,10 +76,13 @@ Learn more about available settings [here](https://openrouter.ai/docs). ## Model Capabilities -OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the original model's function calling support. +OpenRouter models may require explicit capability configuration because the proxy doesn't always preserve the original model's function calling support. - Continue automatically uses system message tools for models that don't support native function calling, so Agent mode should work even without explicit capability configuration. However, you can still override capabilities if needed. + Continue automatically uses system message tools for models that don't support + native function calling, so Agent mode should work even without explicit + capability configuration. However, you can still override capabilities if + needed. If you're experiencing issues with Agent mode or tools not working, you can add the capabilities field: diff --git a/docs/customize/model-providers/more/openvino_model_server.mdx b/docs/customize/model-providers/more/openvino_model_server.mdx index ceee689b3..8c7fc889a 100644 --- a/docs/customize/model-providers/more/openvino_model_server.mdx +++ b/docs/customize/model-providers/more/openvino_model_server.mdx @@ -1,5 +1,6 @@ --- title: "OpenVINO Model Server" +description: "Configure OpenVINO Model Server with Continue to use Intel-optimized models for CPU, iGPU, GPU and NPU via the OpenAI-compatible API, supporting code completion with models like CodeLlama and Qwen" --- diff --git a/docs/customize/model-providers/more/ovhcloud.mdx b/docs/customize/model-providers/more/ovhcloud.mdx index e3a255f99..3a7b00549 100644 --- a/docs/customize/model-providers/more/ovhcloud.mdx +++ b/docs/customize/model-providers/more/ovhcloud.mdx @@ -1,11 +1,8 @@ --- title: "OVHcloud" +description: "Configure OVHcloud AI Endpoints with Continue to access their GDPR-compliant serverless inference API for models like Qwen, Llama, Mistral, and Deepseek, with strong security and data privacy features" --- ---- - -## title: OVHcloud AI Endpoints - 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. diff --git a/docs/customize/model-providers/more/relace.mdx b/docs/customize/model-providers/more/relace.mdx index 072bc5fc6..3d46969f9 100644 --- a/docs/customize/model-providers/more/relace.mdx +++ b/docs/customize/model-providers/more/relace.mdx @@ -1,5 +1,6 @@ --- title: "Relace" +description: "Configure Relace with Continue to access their Fast Apply model, which helps you quickly and reliably apply chat suggestions to your codebase" --- 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: diff --git a/docs/customize/model-providers/more/replicatellm.mdx b/docs/customize/model-providers/more/replicatellm.mdx index b4e173158..939072cf2 100644 --- a/docs/customize/model-providers/more/replicatellm.mdx +++ b/docs/customize/model-providers/more/replicatellm.mdx @@ -1,5 +1,6 @@ --- title: "Replicate" +description: "Configure Replicate with Continue to access newly released language models or deploy your own through their platform, with support for various models including CodeLLama" --- 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: diff --git a/docs/customize/model-providers/more/sagemaker.mdx b/docs/customize/model-providers/more/sagemaker.mdx index 9c4d81ffd..ba1ab58c6 100644 --- a/docs/customize/model-providers/more/sagemaker.mdx +++ b/docs/customize/model-providers/more/sagemaker.mdx @@ -1,5 +1,6 @@ --- title: "Amazon SageMaker" +description: "Configure Amazon SageMaker with Continue to use deployed LLM endpoints for both chat and embedding models, supporting LMI and HuggingFace TEI deployments with AWS credentials" --- 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) diff --git a/docs/customize/model-providers/more/scaleway.mdx b/docs/customize/model-providers/more/scaleway.mdx index 5ba396389..5b840d1a1 100644 --- a/docs/customize/model-providers/more/scaleway.mdx +++ b/docs/customize/model-providers/more/scaleway.mdx @@ -1,11 +1,8 @@ --- title: "Scaleway" +description: "Configure Scaleway Generative APIs with Continue to access AI models hosted in European data centers, offering low latency, data privacy, and EU AI Act compliance with models like Qwen2.5-Coder and BGE-Multilingual-Gemma2" --- ---- - -## title: Scaleway - Scaleway Generative APIs give you instant access to leading AI models hosted in European data centers, ideal for developers requiring low latency, full @@ -50,7 +47,7 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model. Scaleway currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. ## Embeddings model diff --git a/docs/customize/model-providers/more/siliconflow.mdx b/docs/customize/model-providers/more/siliconflow.mdx index a3389382f..1b008dc6e 100644 --- a/docs/customize/model-providers/more/siliconflow.mdx +++ b/docs/customize/model-providers/more/siliconflow.mdx @@ -1,11 +1,8 @@ --- title: "SiliconFlow" +description: "Configure SiliconFlow with Continue to access their AI model platform, featuring Qwen's Coder models for chat and autocomplete, along with various embedding and reranking models" --- ---- - -## title: SiliconFlow - You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak). diff --git a/docs/customize/model-providers/more/textgenwebui.mdx b/docs/customize/model-providers/more/textgenwebui.mdx index 08c1c87fd..29ac9fa01 100644 --- a/docs/customize/model-providers/more/textgenwebui.mdx +++ b/docs/customize/model-providers/more/textgenwebui.mdx @@ -1,5 +1,6 @@ --- title: "Text Generation WebUI" +description: "Configure Text Generation WebUI with Continue to use its comprehensive open-source language model UI and local server through its OpenAI-compatible API" --- 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: diff --git a/docs/customize/model-providers/more/together.mdx b/docs/customize/model-providers/more/together.mdx index e59dfc7b6..11a9c6107 100644 --- a/docs/customize/model-providers/more/together.mdx +++ b/docs/customize/model-providers/more/together.mdx @@ -1,5 +1,7 @@ --- -title: "Together AI" +title: "How to Configure Together AI with Continue" +description: "Configure the Together AI cloud platform for running large language models with Continue, including setup instructions and sample configuration for Qwen2.5 Coder" +sidebarTitle: "Together AI" --- 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: diff --git a/docs/customize/model-providers/more/venice.mdx b/docs/customize/model-providers/more/venice.mdx index 13247c418..1f48802cb 100644 --- a/docs/customize/model-providers/more/venice.mdx +++ b/docs/customize/model-providers/more/venice.mdx @@ -1,11 +1,8 @@ --- title: "Venice AI" +description: "Configure Venice AI with Continue to access this privacy-focused generative AI platform that supports open-source LLMs without storing private user data" --- ---- - -## title: "Venice AI" - 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. Change `~/.continue/config.json` to look like the following. diff --git a/docs/customize/model-providers/more/vllm.mdx b/docs/customize/model-providers/more/vllm.mdx index ba86af790..3f3bdd643 100644 --- a/docs/customize/model-providers/more/vllm.mdx +++ b/docs/customize/model-providers/more/vllm.mdx @@ -1,5 +1,6 @@ --- title: "vLLM" +description: "Configure vLLM's high-performance inference library with Continue for chat, autocomplete, and embeddings, including setup instructions for Llama3.1, Qwen2.5-Coder, and Nomic Embed models" --- 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). @@ -101,6 +102,6 @@ We recommend configuring **Nomic Embed Text** as your embeddings model. Continue automatically handles vLLM's response format (which uses `results` instead of `data`). -[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. +[Click here](../../model-roles/reranking) to see a list of reranking model providers. -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) +The continue implementation uses [OpenAI](../top-level/openai) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts) diff --git a/docs/customize/model-providers/more/watsonx.mdx b/docs/customize/model-providers/more/watsonx.mdx index 9db577a66..aafb45b1d 100644 --- a/docs/customize/model-providers/more/watsonx.mdx +++ b/docs/customize/model-providers/more/watsonx.mdx @@ -1,5 +1,6 @@ --- title: "IBM WatsonX" +description: "How to configure IBM's watsonx models in Continue, including authentication methods, deployment options, and support for chat, autocomplete, embeddings, and reranking models" --- 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. diff --git a/docs/customize/model-providers/overview.mdx b/docs/customize/model-providers/overview.mdx new file mode 100644 index 000000000..c209544fd --- /dev/null +++ b/docs/customize/model-providers/overview.mdx @@ -0,0 +1,85 @@ +--- +title: "Model Providers Overview" +description: "Continue supports a wide range of AI model providers to power different features like chat, code editing, autocompletion, and embeddings. This overview helps you navigate through the available options and find the right provider for your needs." +--- + +## Popular Model Providers + +These are the most commonly used model providers that offer a wide range of capabilities: + +| Provider | Description | Capabilities | +| :------------------------------------------------------------- | :------------------------------------------------------------------------------ | :------------------------------------------ | +| [Anthropic](/customize/model-providers/top-level/anthropic) | Providers of Claude models, known for long context windows and strong reasoning | Chat, Edit, Apply, Embeddings | +| [OpenAI](/customize/model-providers/top-level/openai) | Creators of GPT models with strong coding capabilities | Chat, Edit, Apply, Embeddings | +| [Azure](/customize/model-providers/top-level/azure) | Microsoft's cloud platform offering OpenAI models | Chat, Edit, Apply, Embeddings | +| [Amazon Bedrock](/customize/model-providers/top-level/bedrock) | AWS service offering access to various foundation models | Chat, Edit, Apply, Embeddings | +| [Ollama](/customize/model-providers/top-level/ollama) | Run open-source models locally with a simple interface | Chat, Edit, Apply, Embeddings, Autocomplete | +| [Google Gemini](/customize/model-providers/top-level/gemini) | Google's multimodal AI models | Chat, Edit, Apply, Embeddings | +| [DeepSeek](/customize/model-providers/top-level/deepseek) | Specialized code models with strong performance | Chat, Edit, Apply | +| [Mistral](/customize/model-providers/top-level/mistral) | High-performance open models with commercial offerings | Chat, Edit, Apply, Embeddings | +| [xAI](/customize/model-providers/top-level/xAI) | Grok models from xAI | Chat, Edit, Apply | +| [Vertex AI](/customize/model-providers/top-level/vertexai) | Google Cloud's machine learning platform | Chat, Edit, Apply, Embeddings | +| [Inception](/customize/model-providers/top-level/inception) | On-premises open-source model runners | Chat, Edit, Apply | + +## Additional Model Providers + +Beyond the top-level providers, Continue supports many other options: + +### Hosted Services + +| Provider | Description | +| :--------------------------------------------------------------------- | :--------------------------------------------------------- | +| [Groq](/customize/model-providers/more/groq) | Ultra-fast inference for various open models | +| [Together AI](/customize/model-providers/more/together) | Platform for running a variety of open models | +| [DeepInfra](/customize/model-providers/more/deepinfra) | Hosting for various open source models | +| [OpenRouter](/customize/model-providers/more/openrouter) | Gateway to multiple model providers | +| [Cohere](/customize/model-providers/more/cohere) | Models specialized for semantic search and text generation | +| [NVIDIA](/customize/model-providers/more/nvidia) | GPU-accelerated model hosting | +| [Cloudflare](/customize/model-providers/more/cloudflare) | Edge-based AI inference services | +| [HuggingFace](/customize/model-providers/more/huggingfaceinferenceapi) | Platform for open source models | + +### Local Model Options + +| Provider | Description | +| :------------------------------------------------------- | :-------------------------------------------- | +| [LM Studio](/customize/model-providers/more/lmstudio) | Desktop app for running models locally | +| [llama.cpp](/customize/model-providers/more/llamacpp) | Optimized C++ implementation for running LLMs | +| [LlamaStack](/customize/model-providers/more/llamastack) | Stack for running Llama models locally | +| [llamafile](/customize/model-providers/more/llamafile) | Self-contained executable model files | + +### Enterprise Solutions + +| Provider | Description | +| :----------------------------------------------------- | :------------------------------------ | +| [SambaNova](/customize/model-providers/more/SambaNova) | Enterprise AI platform | +| [Watson x](/customize/model-providers/more/watsonx) | IBM's enterprise AI platform | +| [Sagemaker](/customize/model-providers/more/sagemaker) | AWS machine learning platform | +| [Nebius](/customize/model-providers/more/nebius) | Cloud-based machine learning platform | + +## How to Choose a Model Provider + +When selecting a model provider, consider: + +1. **Hosting preference**: Do you need local models for offline use or privacy, or are you comfortable with cloud services? +2. **Performance requirements**: Different providers offer varying levels of speed, quality, and context length. +3. **Specific capabilities**: Some models excel at code generation, others at embeddings or reasoning tasks. +4. **Pricing**: Costs vary significantly between providers, from free local options to premium cloud services. +5. **API key requirements**: Most cloud providers require API keys that you'll need to configure. + +## Configuration Format + +You can add models to your `config.yaml` file like this: + +```yaml +models: + - name: My Model + provider: openai # Choose provider from the lists above + model: gpt-4o # Specific model name + apiKey: ${{ secrets.OPENAI_API_KEY }} + roles: + - chat + - edit + - apply +``` + +For more detailed configuration, visit the specific provider pages linked above. diff --git a/docs/customize/model-providers/top-level/anthropic.mdx b/docs/customize/model-providers/top-level/anthropic.mdx index d0f925977..e3193e2bd 100644 --- a/docs/customize/model-providers/top-level/anthropic.mdx +++ b/docs/customize/model-providers/top-level/anthropic.mdx @@ -1,6 +1,8 @@ --- -title: Anthropic +title: "How to Configure Anthropic Claude Models with Continue" slug: ../anthropic +description: "Configure Anthropic's Claude models with Continue, including Claude 4 Sonnet with prompt caching capabilities to improve performance and reduce costs for chat applications" +sidebarTitle: "Anthropic" --- @@ -8,7 +10,7 @@ slug: ../anthropic console](https://console.anthropic.com/account/keys). -## Chat model +## How to Set Up Anthropic Chat Models We recommend configuring **Claude 4 Sonnet** as your chat model. @@ -38,25 +40,25 @@ We recommend configuring **Claude 4 Sonnet** as your chat model. -## Autocomplete model +## Anthropic Autocomplete Model Availability Anthropic currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. -## Embeddings model +## Anthropic Embeddings Model Availability Anthropic currently does not offer any embeddings models. [Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers. -## Reranking model +## Anthropic Reranking Model Availability Anthropic currently does not offer any reranking models. [Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. -## Prompt caching +## How to Enable Prompt Caching with Claude 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. diff --git a/docs/customize/model-providers/top-level/azure.mdx b/docs/customize/model-providers/top-level/azure.mdx index 722a2fd97..b59c2071c 100644 --- a/docs/customize/model-providers/top-level/azure.mdx +++ b/docs/customize/model-providers/top-level/azure.mdx @@ -1,11 +1,19 @@ --- -title: Azure AI Foundry +title: "How to Configure Azure AI Foundry with Continue" slug: ../azure +description: "Configure Azure AI Foundry with Continue to access models from OpenAI and Mistral with Microsoft's enterprise security features, including setup for GPT-4o, Codestral, and embedding models" +sidebarTitle: "Azure AI Foundry" --- 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). -## Chat model + + +For details on OpenAI model setup, see [Azure OpenAI Service configuration](#how-to-configure-azure-openai-service). + + + +## How to Set Up Azure AI Foundry Chat Models We recommend configuring **GPT-4o** as your chat model. @@ -41,7 +49,7 @@ We recommend configuring **GPT-4o** as your chat model. -## Autocomplete model +## How to Set Up Azure AI Foundry Autocomplete Models We recommend configuring **Codestral** as your autocomplete model. @@ -82,7 +90,7 @@ If you use Azure Machine Learning Studio to deploy Codestral: -## Embeddings model +## How to Configure Azure AI Foundry Embeddings Models We recommend configuring **text-embedding-3-large** as your embeddings model. diff --git a/docs/customize/model-providers/top-level/bedrock.mdx b/docs/customize/model-providers/top-level/bedrock.mdx index 93ed96648..4de1f2b54 100644 --- a/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/customize/model-providers/top-level/bedrock.mdx @@ -1,11 +1,13 @@ --- -title: Amazon Bedrock +title: "How to Configure Amazon Bedrock with Continue" slug: ../bedrock +description: "Configure Amazon Bedrock with Continue to access foundation models like Claude 3.7 Sonnet for chat, Titan for embeddings, and Cohere for reranking, with AWS credential authentication" +sidebarTitle: "Amazon Bedrock" --- Amazon Bedrock is a fully managed service on AWS that provides access to foundation models from various AI companies through a single API. -## Chat model +## How to Set Up Amazon Bedrock Chat Models We recommend configuring **Claude 3.7 Sonnet** as your chat model. @@ -75,13 +77,13 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model. -## Autocomplete model +## How to Set Up Amazon Bedrock Autocomplete Models 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. -In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete.md). +In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete). -## Embeddings model +## How to Configure Amazon Bedrock Embeddings Models 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. @@ -112,7 +114,7 @@ We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazo -## Reranking model +## How to Configure Amazon Bedrock Reranking Models We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`. @@ -144,7 +146,7 @@ We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may -## Prompt caching +## How to Enable Prompt Caching with Amazon Bedrock Bedrock allows Claude models to cache tool payloads, system messages, and chat messages between requests. Enable this behavior by adding @@ -174,7 +176,7 @@ models: Prompt caching is not supported in JSON configuration files, so use the YAML syntax above to enable it. -## Authentication +## How to Set Up Authentication for Amazon Bedrock Authentication will be through temporary or long-term credentials in `~/.aws/credentials` under a configured profile (e.g. "bedrock"). @@ -221,7 +223,7 @@ You can also use an AWS `accessKeyId` and `secretAccessKey` for authentication i -## Custom Imported Models +## How to Configure Custom Imported Models with Amazon Bedrock To setup Bedrock using custom imported models, add the following to your config file: diff --git a/docs/customize/model-providers/top-level/deepseek.mdx b/docs/customize/model-providers/top-level/deepseek.mdx index ce60d8589..376a33173 100644 --- a/docs/customize/model-providers/top-level/deepseek.mdx +++ b/docs/customize/model-providers/top-level/deepseek.mdx @@ -1,13 +1,15 @@ --- -title: DeepSeek +title: "How to Configure DeepSeek with Continue" slug: ../deepseek +description: "Configure DeepSeek models with Continue, including DeepSeek Chat for general conversations and DeepSeek Coder specifically optimized for code autocomplete and programming tasks" +sidebarTitle: "DeepSeek" --- You can get an API key from the [DeepSeek console](https://www.deepseek.com/). -## Chat model +## How to Set Up DeepSeek Chat Models We recommend configuring **DeepSeek Chat** as your chat model. @@ -37,7 +39,7 @@ We recommend configuring **DeepSeek Chat** as your chat model. -## Autocomplete model +## How to Set Up DeepSeek Autocomplete Models We recommend configuring **DeepSeek Coder** as your autocomplete model. @@ -67,13 +69,13 @@ We recommend configuring **DeepSeek Coder** as your autocomplete model. -## Embeddings model +## How to Configure DeepSeek Embeddings Models DeepSeek currently does not offer any embeddings models. [Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers. -## Reranking model +## How to Configure DeepSeek Reranking Models DeepSeek currently does not offer any reranking models. diff --git a/docs/customize/model-providers/top-level/gemini.mdx b/docs/customize/model-providers/top-level/gemini.mdx index e07acd332..2e85be425 100644 --- a/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/customize/model-providers/top-level/gemini.mdx @@ -1,6 +1,8 @@ --- -title: Gemini +title: "How to Configure Gemini with Continue" slug: ../gemini +description: "Configure Google's Gemini models with Continue to access Gemini 2.0 Flash for chat and text-embedding-004 for embeddings with simple API key authentication" +sidebarTitle: "Gemini" --- @@ -8,7 +10,7 @@ slug: ../gemini Studio](https://aistudio.google.com/). -## Chat model +## How to Set Up Gemini Chat Models We recommend configuring **Gemini 2.0 Flash** as your chat model. @@ -38,13 +40,13 @@ We recommend configuring **Gemini 2.0 Flash** as your chat model. -## Autocomplete model +## How to Set Up Gemini Autocomplete Models Gemini currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. -## Embeddings model +## How to Configure Gemini Embeddings Models We recommend configuring **text-embedding-004** as your embeddings model. @@ -73,7 +75,7 @@ We recommend configuring **text-embedding-004** as your embeddings model. -## Reranking model +## How to Configure Gemini Reranking Models Gemini currently does not offer any reranking models. diff --git a/docs/customize/model-providers/top-level/inception.mdx b/docs/customize/model-providers/top-level/inception.mdx index 7e36a8bf5..396921d76 100644 --- a/docs/customize/model-providers/top-level/inception.mdx +++ b/docs/customize/model-providers/top-level/inception.mdx @@ -1,6 +1,8 @@ --- -title: Inception +title: "How to Configure Inception with Continue" slug: ../inception +description: "Configure Inception Labs models with Continue, featuring Mercury Coder Small for both chat and autocomplete functions, optimized for programming and code generation tasks" +sidebarTitle: "Inception" --- @@ -8,7 +10,7 @@ slug: ../inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys). -## Chat model +## How to Set Up Inception Chat Models We recommend configuring **Mercury Coder Small** as your chat model. @@ -37,7 +39,7 @@ We recommend configuring **Mercury Coder Small** as your chat model. -## Autocomplete model +## How to Set Up Inception Autocomplete Models We also recommend configuring **Mercury Coder Small** as your autocomplete model. @@ -66,13 +68,13 @@ We also recommend configuring **Mercury Coder Small** as your autocomplete model -## Embeddings model +## How to Configure Inception Embeddings Models Inception currently does not offer any embeddings models. [Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers. -## Reranking model +## How to Configure Inception Reranking Models Inception currently does not offer any reranking models. diff --git a/docs/customize/model-providers/top-level/mistral.mdx b/docs/customize/model-providers/top-level/mistral.mdx index 63fcc53cb..6b3619bc8 100644 --- a/docs/customize/model-providers/top-level/mistral.mdx +++ b/docs/customize/model-providers/top-level/mistral.mdx @@ -1,6 +1,8 @@ --- -title: Mistral +title: "How to Configure Mistral with Continue" slug: ../mistral +description: "Configure Mistral AI models with Continue, including Mistral Large for chat, Codestral for code autocomplete, and Mistral Embed for embeddings with separate API key options" +sidebarTitle: "Mistral" --- @@ -12,7 +14,7 @@ slug: ../mistral using `https://api.mistral.ai/v1`. -## Chat model +## How to Set Up Mistral Chat Models We recommend configuring **Mistral Large** as your chat model. @@ -44,7 +46,7 @@ We recommend configuring **Mistral Large** as your chat model. -## Autocomplete model +## How to Set Up Mistral Autocomplete Models We recommend configuring **Codestral** as your autocomplete model. @@ -74,7 +76,7 @@ We recommend configuring **Codestral** as your autocomplete model. -## Embeddings model +## How to Configure Mistral Embeddings Models We recommend configuring **Mistral Embed** as your embeddings model. @@ -105,7 +107,7 @@ We recommend configuring **Mistral Embed** as your embeddings model. -## Reranking model +## How to Configure Mistral Reranking Models Mistral currently does not offer any reranking models. diff --git a/docs/customize/model-providers/top-level/ollama.mdx b/docs/customize/model-providers/top-level/ollama.mdx index 6c2d4002f..cdc4fa720 100644 --- a/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/customize/model-providers/top-level/ollama.mdx @@ -1,11 +1,13 @@ --- -title: Ollama +title: "How to Configure Ollama with Continue" slug: ../ollama +description: "Configure Ollama with Continue to run powerful open source models locally including Llama3.1 for chat, Qwen2.5-Coder for autocomplete, and Nomic Embed Text for embeddings" +sidebarTitle: "Ollama" --- 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. -## Chat model +## How to Set Up Ollama Chat Models We recommend configuring **Llama3.1 8B** as your chat model. @@ -33,7 +35,7 @@ We recommend configuring **Llama3.1 8B** as your chat model. -## Autocomplete model +## How to Configure Ollama Autocomplete Models We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model. @@ -61,7 +63,7 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model. -## Embeddings model +## How to Set Up Ollama Embeddings Models We recommend configuring **Nomic Embed Text** as your embeddings model. @@ -88,13 +90,13 @@ We recommend configuring **Nomic Embed Text** as your embeddings model. -## Reranking model +## Ollama Reranking Model Availability Ollama currently does not offer any reranking models. -[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. +[Click here](../../model-roles/reranking) to see a list of reranking model providers. -## Using a remote instance +## How to Configure Remote Ollama Instance To configure a remote instance of Ollama, add the `"apiBase"` property to your model in config.json: @@ -124,7 +126,7 @@ To configure a remote instance of Ollama, add the `"apiBase"` property to your m -## Model Capabilities +## How to Configure Model Capabilities in Ollama Ollama models usually have their capabilities auto-detected correctly. However, if you're using custom model names or experiencing issues with tools/images not working, you can explicitly set capabilities: @@ -160,5 +162,6 @@ Ollama models usually have their capabilities auto-detected correctly. However, -Most standard Ollama models (like llama3.1, mistral, etc.) support tool use by default. Vision models (like llava) also support image input. + Most standard Ollama models (like llama3.1, mistral, etc.) support tool use by + default. Vision models (like llava) also support image input. diff --git a/docs/customize/model-providers/top-level/openai.mdx b/docs/customize/model-providers/top-level/openai.mdx index b52ee1c08..96bd5a9ad 100644 --- a/docs/customize/model-providers/top-level/openai.mdx +++ b/docs/customize/model-providers/top-level/openai.mdx @@ -1,6 +1,8 @@ --- -title: OpenAI +title: "How to Configure OpenAI Models with Continue" slug: ../openai +description: "Configure OpenAI models with Continue, including GPT-4o for chat and text-embedding-3-large for embeddings, with support for OpenAI-compatible servers and APIs" +sidebarTitle: "OpenAI" --- @@ -8,7 +10,7 @@ slug: ../openai console](https://platform.openai.com/account/api-keys) -## Chat model +## How to Set Up OpenAI Chat Models We recommend configuring **GPT-4o** as your chat model. @@ -38,13 +40,13 @@ We recommend configuring **GPT-4o** as your chat model. -## Autocomplete model +## OpenAI Autocomplete Model Availability OpenAI currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. -## Embeddings model +## How to Configure OpenAI Embeddings Models We recommend configuring **text-embedding-3-large** as your embeddings model. @@ -73,13 +75,13 @@ We recommend configuring **text-embedding-3-large** as your embeddings model. -## Reranking model +## OpenAI Reranking Model Availability OpenAI currently does not offer any reranking models. [Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. -## OpenAI compatible servers / APIs +## How to Use OpenAI-Compatible Servers and APIs OpenAI compatible servers @@ -97,6 +99,8 @@ OpenAI compatible APIs - [Anyscale Endpoints](https://github.com/continuedev/deploy-os-code-llm#others) - [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) +### How to Configure Custom API Base for OpenAI-Compatible Services + If you are using an OpenAI compatible server / API, you can change the `apiBase` like this: @@ -127,6 +131,8 @@ If you are using an OpenAI compatible server / API, you can change the `apiBase` +### How to Force Legacy Completions Endpoint Usage + To force usage of `chat/completions` instead of `completions` endpoint you can set: diff --git a/docs/customize/model-providers/top-level/vertexai.mdx b/docs/customize/model-providers/top-level/vertexai.mdx index d1628d798..2e32f7deb 100644 --- a/docs/customize/model-providers/top-level/vertexai.mdx +++ b/docs/customize/model-providers/top-level/vertexai.mdx @@ -1,6 +1,8 @@ --- -title: Vertex AI +title: "How to Configure Vertex AI with Continue" slug: ../vertexai +description: "Configure Google Cloud's Vertex AI with Continue to access powerful models like Claude 3.5 Sonnet, Codestral, and text-embedding-004 for chat, autocomplete, and embeddings" +sidebarTitle: "Vertex AI" --- @@ -10,7 +12,7 @@ slug: ../vertexai Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc). -## Chat model +## How to Set Up Vertex AI Chat Models We recommend configuring **Claude 3.5 Sonnet** as your chat model. @@ -43,7 +45,7 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model. -## Autocomplete model +## How to Set Up Vertex AI Autocomplete Models We recommend configuring **Codestral** or **code-gecko** as your autocomplete model. @@ -77,7 +79,7 @@ We recommend configuring **Codestral** or **code-gecko** as your autocomplete mo -## Embeddings model +## How to Configure Vertex AI Embeddings Models We recommend configuring **text-embedding-004** as your embeddings model. @@ -109,13 +111,13 @@ We recommend configuring **text-embedding-004** as your embeddings model. -## Reranking model +## How to Configure Vertex AI Reranking Models Vertex AI currently does not offer any reranking models. [Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers. -## Express mode +## How to Enable Vertex AI Express Mode You can use VertexAI in [express mode](https://cloud.google.com/vertex-ai/generative-ai/docs/start/express-mode/overview) by only providing an API Key. Only some Gemini models are supported in express mode for now. diff --git a/docs/customize/model-providers/top-level/xAI.mdx b/docs/customize/model-providers/top-level/xAI.mdx index c196cf801..f77638d25 100644 --- a/docs/customize/model-providers/top-level/xAI.mdx +++ b/docs/customize/model-providers/top-level/xAI.mdx @@ -1,13 +1,15 @@ --- -title: xAI +title: "How to Configure xAI with Continue" slug: ../xai +description: "Configure xAI's Grok 4 model with Continue for advanced chat capabilities, with easy API key setup from the xAI console" +sidebarTitle: "xAI" --- You can get an API key from the [xAI console](https://console.x.ai/) -## Chat model +## How to Set Up xAI Chat Models We recommend configuring **grok-4** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models). @@ -40,19 +42,19 @@ We recommend configuring **grok-4** as your chat model. For information on other -## Autocomplete model +## How to Set Up xAI Autocomplete Models xAI currently does not offer any autocomplete models. -[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers. +[Click here](../../model-roles/autocomplete) to see a list of autocomplete model providers. -## Embeddings model +## How to Configure xAI Embeddings Models xAI currently does not offer any embeddings models. [Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers. -## Reranking model +## How to Configure xAI Reranking Models xAI currently does not offer any reranking models. diff --git a/docs/customize/model-roles.mdx b/docs/customize/model-roles.mdx index dbc065f1c..8db06d857 100644 --- a/docs/customize/model-roles.mdx +++ b/docs/customize/model-roles.mdx @@ -2,6 +2,7 @@ title: "Model roles" sidebarTitle: Overview icon: "circle-info" +description: "Learn about the different model roles in Continue including chat, autocomplete, edit, apply, embeddings, and reranking for customizing your AI coding assistant's capabilities" --- diff --git a/docs/customize/model-roles/00-intro.mdx b/docs/customize/model-roles/00-intro.mdx index 5ae734269..3722d08de 100644 --- a/docs/customize/model-roles/00-intro.mdx +++ b/docs/customize/model-roles/00-intro.mdx @@ -9,7 +9,7 @@ sidebar_label: Introduction Models in Continue can be configured to be used for various roles in the extension. - [`chat`](./chat.mdx): Used for chat conversations in the extension sidebar -- [`autocomplete`](./autocomplete.md): Used for autocomplete code suggestions in the editor +- [`autocomplete`](./autocomplete): Used for autocomplete code suggestions in the editor - [`edit`](./edit.mdx): Used to generate code based on edit prompts - [`apply`](./apply.mdx): Used to decide how to apply edits to a file - [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers) diff --git a/docs/customize/model-roles/autocomplete.mdx b/docs/customize/model-roles/autocomplete.mdx index 621417805..dc7bbe58f 100644 --- a/docs/customize/model-roles/autocomplete.mdx +++ b/docs/customize/model-roles/autocomplete.mdx @@ -1,6 +1,7 @@ --- -title: Autocomplete Role -description: Autocomplete model role +title: "Autocomplete Role in Continue Models" +sidebarTitle: "Autocomplete Role" +description: "Learn how the autocomplete role works in Continue, which models to use, and how to customize prompt templates for inline code suggestions." keywords: [autocomplete, model, role] sidebar_position: 2 --- @@ -11,7 +12,7 @@ In Continue, autocomplete models are used to display inline [Autocomplete](../.. ## Recommended Autocomplete models -Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details. +Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete) for recommended models and more details. ## Prompt templating diff --git a/docs/customize/model-roles/chat.mdx b/docs/customize/model-roles/chat.mdx index cd98dc307..300600a33 100644 --- a/docs/customize/model-roles/chat.mdx +++ b/docs/customize/model-roles/chat.mdx @@ -7,7 +7,7 @@ sidebar_position: 1 A "chat model" is an LLM that is trained to respond in a conversational format. Because they should be able to answer general questions and generate complex code, the best chat models are typically large, often 405B+ parameters. -In Continue, these models are used for normal [Chat](../../features/chat/quick-start) 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. +In Continue, these models are used for normal [Chat](../../features/chat/quick-start) and [VS Code actions](../deep-dives/vscode-actions). The selected chat model will also be used for [Edit](../../features/edit/quick-start) and [Apply](./apply) if no `edit` or `apply` models are specified, respectively. ## Recommended Chat models @@ -17,7 +17,7 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod ### Claude Sonnet 3.7 from Anthropic -Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx). +Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic). @@ -50,7 +50,7 @@ Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-pr ### Gemma from Google DeepMind -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). +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), or self-host it, e.g. [Ollama](../model-providers/top-level/ollama). @@ -119,7 +119,7 @@ If you prefer to use an open-weight model, then the Gemma family of Models from ### GPT-4o from OpenAI -If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.mdx), then we recommend GPT-4o. +If you prefer to use a model from [OpenAI](../model-providers/top-level/openai), then we recommend GPT-4o. @@ -152,7 +152,7 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.m ### Grok-2 from xAI -If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), then we recommend Grok-2. +If you prefer to use a model from [xAI](../model-providers/top-level/xAI), then we recommend Grok-2. @@ -185,7 +185,7 @@ If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), t ### Gemini 2.0 Flash from Google -If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash. +If you prefer to use a model from [Google](../model-providers/top-level/gemini), then we recommend Gemini 2.0 Flash. @@ -222,7 +222,7 @@ For the best local, offline Chat experience, you will want to use a model that i ### Llama 3.1 8B -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)). +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) or [LM Studio](../model-providers/more/lmstudio)). diff --git a/docs/customize/model-roles/embeddings.mdx b/docs/customize/model-roles/embeddings.mdx index feb7f675d..df6806189 100644 --- a/docs/customize/model-roles/embeddings.mdx +++ b/docs/customize/model-roles/embeddings.mdx @@ -7,7 +7,7 @@ sidebar_position: 5 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. -In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase.mdx) to perform similarity search over your codebase. +In Continue, embeddings are generated during indexing and then used by [@Codebase](../context/codebase) to perform similarity search over your codebase. You can add `embed` to a model's `roles` to specify that it can be used to embed. @@ -118,7 +118,7 @@ See [here](../model-providers/top-level/ollama#embeddings-model) for instruction ### OpenAI -See [here](../model-providers/top-level/openai#embeddings-model) for instructions on how to use OpenAI for embeddings. +See [here](../model-providers/top-level/openai#how-to-configure-openai-embeddings-models) for instructions on how to use OpenAI for embeddings. ### Cohere @@ -126,15 +126,15 @@ See [here](../model-providers/more/cohere#embeddings-model) for instructions on ### Gemini -See [here](../model-providers/top-level/gemini#embeddings-model) for instructions on how to use Gemini for embeddings. +See [here](../model-providers/top-level/gemini#how-to-configure-gemini-embeddings-models) for instructions on how to use Gemini for embeddings. ### Vertex -See [here](../model-providers/top-level/vertexai#embeddings-model) for instructions on how to use Vertex for embeddings. +See [here](../model-providers/top-level/vertexai#how-to-configure-vertex-ai-embeddings-models) for instructions on how to use Vertex for embeddings. ### Mistral -See [here](../model-providers/top-level/mistral#embeddings-model) for instructions on how to use Mistral for embeddings. +See [here](../model-providers/top-level/mistral#how-to-configure-mistral-embeddings-models) for instructions on how to use Mistral for embeddings. ### NVIDIA @@ -142,7 +142,7 @@ See [here](../model-providers/more/nvidia#embeddings-model) for instructions on ### Bedrock -See [here](../model-providers/top-level/bedrock#embeddings-model) for instructions on how to use Bedrock for embeddings. +See [here](../model-providers/top-level/bedrock#how-to-configure-amazon-bedrock-embeddings-models) for instructions on how to use Bedrock for embeddings. ### WatsonX diff --git a/docs/customize/model-roles/reranking.mdx b/docs/customize/model-roles/reranking.mdx index 52f1524a0..e9210e0eb 100644 --- a/docs/customize/model-roles/reranking.mdx +++ b/docs/customize/model-roles/reranking.mdx @@ -7,7 +7,7 @@ sidebar_position: 6 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. -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. +In Continue, rerankers are designated using the `rerank` role and used by [@Codebase](../context/codebase) in order to select the most relevant code snippets after vector search. ## Recommended reranking models diff --git a/docs/customize/overview.mdx b/docs/customize/overview.mdx index 38479b71c..4d9061799 100644 --- a/docs/customize/overview.mdx +++ b/docs/customize/overview.mdx @@ -13,19 +13,19 @@ Master how Continue understands your codebase with powerful context providers fo Specialized context features for codebase understanding and documentation integration. -[Browse Context Features →](/customization/overview#codebase-context) +[Browse Context Features →](customize/context/codebase) ## Deep Dives Detailed technical explanations of Continue's internal workings and advanced configuration options. -[Read Deep Dives →](/customization/overview#configuration) +[Read Deep Dives →](/customize/deep-dives/configuration) ## Model Providers Configure and optimize different AI model providers for your specific needs and infrastructure. -[Configure Providers →](/customization/models#openai) +[Configure Providers →](/customize/model-providers/overview) ## Model Roles diff --git a/docs/customize/telemetry.mdx b/docs/customize/telemetry.mdx index 3d5952b14..8522cd447 100644 --- a/docs/customize/telemetry.mdx +++ b/docs/customize/telemetry.mdx @@ -1,5 +1,6 @@ --- title: "Telemetry" +description: "Learn about Continue's anonymous telemetry collection practices, what usage data is collected, and how to opt out if you prefer not to share your usage information" --- ## Overview diff --git a/docs/docs.json b/docs/docs.json index a98c84f49..12edfb25c 100644 --- a/docs/docs.json +++ b/docs/docs.json @@ -102,6 +102,7 @@ "group": "Model Providers", "icon": "server", "pages": [ + "customize/model-providers/overview", { "group": "Popular Providers", "pages": [ @@ -1008,6 +1009,10 @@ { "source": "/customization/overview#documentation-context", "destination": "/customize/context/documentation" + }, + { + "source": "/customize/model-providers", + "destination": "/customize/model-providers/overview" } ] } diff --git a/docs/features/agent/context-selection.mdx b/docs/features/agent/context-selection.mdx index 57efd4711..8d43ad2d3 100644 --- a/docs/features/agent/context-selection.mdx +++ b/docs/features/agent/context-selection.mdx @@ -1,3 +1,8 @@ +--- +title: "Context Selection" +description: "Learn how Continue's agent mode selects relevant code context using file content, language server definitions, imports, and recent file history." +--- + You can use the same methods to manually add context as [Chat](/features/chat/context-selection). 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. diff --git a/docs/features/agent/how-it-works.mdx b/docs/features/agent/how-it-works.mdx index eaca170b7..d24557d78 100644 --- a/docs/features/agent/how-it-works.mdx +++ b/docs/features/agent/how-it-works.mdx @@ -1,9 +1,9 @@ --- -title: "How Agent Works" +title: "How Agent Mode Works" 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." --- -## The tool handshake +## How the Tool Handshake Works 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. @@ -17,19 +17,18 @@ The following handshake describes how Agent uses tools: 6. The model responds, potentially with another tool call and step 2 begins again - Tool availability varies by mode: - - **Chat mode**: No tools included - - **Plan mode**: Only read-only tools included - - **Agent mode**: All tools included + Tool availability varies by mode: - **Chat mode**: No tools included - **Plan + mode**: Only read-only tools included - **Agent mode**: All tools included -## Built-in tools +## What Built-in Tools Are Available Continue includes several built-in tools which provide the model access to IDE functionality. -### Plan mode tools (read-only) +### What Tools Are Available in Plan Mode (Read-Only) In Plan mode, only these read-only tools are available: + - **Read file** (`read_file`) - **Read currently open file** (`read_currently_open_file`) - **List directory** (`ls`) @@ -42,7 +41,7 @@ In Plan mode, only these read-only tools are available: - **View subdirectory** (`view_subdirectory`) - **Codebase tool** (`codebase_tool`) -### Agent mode tools (all tools) +### What Tools Are Available in Agent Mode (All Tools) In Agent mode, all tools are available including the read-only tools above plus: diff --git a/docs/features/agent/how-to-customize.mdx b/docs/features/agent/how-to-customize.mdx index 7e5fd634b..b26994906 100644 --- a/docs/features/agent/how-to-customize.mdx +++ b/docs/features/agent/how-to-customize.mdx @@ -1,8 +1,14 @@ -## Add Rules Blocks +--- +title: "How to Customize Agent Mode" +description: "Learn how to customize Agent Mode in Continue to better fit your workflow and coding style." +sidebarTitle: "Customize Agent" +--- + +## How to Add Rules Blocks 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. -## Customize System Messages +## How to Customize System Messages You can customize the system messages for Chat, Agent, and Plan modes using model-level configuration: @@ -17,11 +23,11 @@ models: basePlanSystemMessage: "You are a planning assistant. Create clear, actionable steps." ``` -## Add MCP Tools +## How to Add MCP Tools 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. -## Tool Policies +## How to Configure Tool Policies You can adjust the Agent's tool usage behavior to three options: diff --git a/docs/features/agent/model-setup.mdx b/docs/features/agent/model-setup.mdx index 88a22aa55..e38ce1c5e 100644 --- a/docs/features/agent/model-setup.mdx +++ b/docs/features/agent/model-setup.mdx @@ -1,6 +1,12 @@ +--- +title: "Model Setup for Agent Mode" +description: "Learn how to set up models for Agent Mode in Continue, including recommended models and configuration options for optimal performance" +sidebarTitle: "Model Setup" +--- + The models you set up for Chat mode will be used with Agent mode if the model supports tool calling. The recommended models and how to set them up can be found [here](/features/chat/model-setup). -## System Message Tools +## How System Message Tools Work System message tools are experimental and may change in future releases. @@ -8,7 +14,7 @@ The models you set up for Chat mode will be used with Agent mode if the model su Continue implements an innovative approach called **system message tools** that ensures consistent tool functionality across all models, regardless of their native capabilities. This allows Agent mode to work seamlessly with a wider range of models and providers. -### How It Works +### How System Message Tools Function Instead of relying solely on native tool calling APIs (which vary between providers), Continue converts tools into XML format and includes them in the system message. The model generates tool calls as structured XML within its response, which Continue then parses and executes. This approach provides: @@ -17,21 +23,23 @@ Instead of relying solely on native tool calling APIs (which vary between provid - **Better reliability** - Models that struggle with native tools often perform better with system message tools - **Seamless switching** - Change between providers without modifying your workflow -### Recommended Models +### What Models Are Recommended for Agent Mode For the best Agent mode experience, we recommend models with strong reasoning and instruction-following capabilities: **Premium Models:** + - **Claude Sonnet 4** (Anthropic) - Our top recommendation for its exceptional tool use and reasoning - **GPT-4** models (OpenAI) - Excellent native tool support - **DeepSeek** models - Strong performance with competitive pricing **Local Models:** While more limited in capabilities, these models can work with system message tools: + - Qwen2.5-Coder 32B - Best local option for Agent mode - Devstral 27B - Good for code-specific tasks - Smaller models (7B-13B) - May struggle with complex tool interactions -### Configuration +### How to Configure Agent Mode Agent mode automatically determines whether to use native or system message tools based on the model's capabilities. No additional configuration is required - simply select your model and Continue handles the rest. diff --git a/docs/features/agent/plan-mode.mdx b/docs/features/agent/plan-mode.mdx index 104b73d37..474c3fbd9 100644 --- a/docs/features/agent/plan-mode.mdx +++ b/docs/features/agent/plan-mode.mdx @@ -1,6 +1,7 @@ --- -title: "Plan Mode" -description: "Explore and understand code safely with read-only tools" +title: "Plan Mode in Continue – Safe, Read-Only Code Exploration" +sidebarTitle: "Plan Mode" +description: "Learn how to use Plan Mode in Continue to explore and understand codebases safely with read-only tools, search, and analysis before making changes" --- ## What is Plan mode? @@ -9,16 +10,17 @@ Plan mode is a restricted environment that provides read-only access to your cod ![Plan mode in action](/images/plan-mode.gif) -### Key features +### What Are the Key Features of Plan Mode? - **Read-only tools**: Access files, search, and analyze without risk - **Safe exploration**: Perfect for understanding unfamiliar codebases - **Planning focus**: Develop implementation strategies before execution - **MCP support**: Works with all MCP tools alongside built-in read-only tools -### How it works +### How Plan Mode Works Plan mode filters the available tools to only include read-only operations. This means you can: + - Read any file in your project - Search through code with grep and glob patterns - View repository structure and diffs @@ -26,11 +28,12 @@ Plan mode filters the available tools to only include read-only operations. This - Use all MCP tools But you cannot: + - Create, edit, or delete files - Run terminal commands - Make any system changes -### Getting started +### How to Get Started with Plan Mode Select "Plan" from the mode selector below the chat input, or use `Cmd/Ctrl + .` to cycle through modes. @@ -38,12 +41,14 @@ Select "Plan" from the mode selector below the chat input, or use `Cmd/Ctrl + .` For detailed information about tools and usage, see the [Agent documentation](/features/agent/how-it-works), which covers both Agent and Plan modes. -### Common workflow +### What Is the Common Workflow for Plan Mode? 1. **Start in Plan mode** to explore and understand 2. **Develop your approach** with the model's help 3. **Switch to Agent mode** when ready to implement - Plan mode shares the same interface and context features as Chat and Agent modes. You can use `@` context providers and highlight code just like in other modes. - \ No newline at end of file + Plan mode shares the same interface and context features as Chat and Agent + modes. You can use `@` context providers and highlight code just like in other + modes. + diff --git a/docs/features/agent/quick-start.mdx b/docs/features/agent/quick-start.mdx index 91f2e6297..32d99869a 100644 --- a/docs/features/agent/quick-start.mdx +++ b/docs/features/agent/quick-start.mdx @@ -1,28 +1,46 @@ --- title: "Quick Start" +description: "Get started with Continue's Agent mode to automatically implement code changes, fix bugs, and run commands using AI-powered tools that can modify your codebase based on natural language instructions" --- -## How to use it - 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. -### When to use each mode + + + + *Learn and discuss without changing code.* -- **Plan mode**: Use when you want to explore code, understand systems, or plan changes without making modifications. Perfect for: - - Understanding unfamiliar codebases - - Planning complex refactors - - Debugging and investigation - - Creating implementation strategies - -- **Agent mode**: Use when you're ready to make changes. Ideal for: - - Implementing features - - Fixing bugs - - Running tests and commands - - Executing plans developed in Plan mode + **Mental Model:** Talking to a knowledgeable colleague -### Use Agent + **Best For:** Explaining concepts, comparing approaches, code review discussions. + + + + + *Safely explore and plan with read-only tools.* + + **Mental Model:** Architect surveying before renovation + + **Best For:** Understanding a codebase, bug investigation, planning implementations. + + + + + *Make actual changes with full tool access.* + + **Mental Model:** Contractor executing approved blueprints + + **Best For:** Implementing features, fixing bugs, running tests and commands. + + + + + + +### How to Use Agent Mode You can switch to `Agent` in the mode selector below the chat input box. The mode selector offers three options: + - **Chat**: No tools available, pure conversation - **Plan**: Read-only tools for safe exploration and planning - **Agent**: All tools available for making changes @@ -30,20 +48,20 @@ You can switch to `Agent` in the mode selector below the chat input box. The mod ![How to select agent mode](/images/mode-select-agent.png) - If Agent or Plan 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) for more information. + If Agent or Plan 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) for more information. Use the keyboard shortcut `Cmd/Ctrl + .` to quickly cycle between modes. -### Chat with Agent +### How to Chat with Agent -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). +Agent lives within the same interface as [Chat](/features/chat/how-it-works), so the same [input](/features/chat/quick-start#how-to-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#how-to-use--for-additional-context) or adding [highlighted code from the editor](/features/chat/quick-start#how-to-include-code-context). -#### Use natural language +#### How to Use Natural Language with Agent With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say @@ -51,7 +69,7 @@ With Agent, you can provide natural language instruction and let the model do th Agent will then decide which tools to use to get the job done. -## Give Agent permission +## How to Give Agent Permission 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. @@ -59,7 +77,7 @@ By default, Agent will ask permission when it wants to use a tool. Click `Contin You can use tool policies to exclude or make usage automatic for specific tools. See [MCP Tools](/customization/mcp-tools) for more background. -## View Tool Responses +## How to View Tool Responses 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. diff --git a/docs/features/autocomplete/context-selection.mdx b/docs/features/autocomplete/context-selection.mdx index 9507ee439..28775a229 100644 --- a/docs/features/autocomplete/context-selection.mdx +++ b/docs/features/autocomplete/context-selection.mdx @@ -1,17 +1,22 @@ +--- +title: "Context Selection" +description: "Learn how Continue's autocomplete selects relevant code context using file content, language server definitions, imports, and recent file history." +--- + Autocomplete will automatically determine context based on the current cursor position. We use the following techniques to determine what to include in the prompt: -## File prefix/suffix +## File Prefix and Suffix Context We will always include the code from your file prior to and after the cursor position. -## Definitions from the Language Server Protocol +## Language Server Protocol (LSP) Definitions 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. -## Imported files +## Imported File Context 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. -## Recent files +## Recent File Context We automatically consider recently opened or edited files and include snippets that are relevant to the current completion. diff --git a/docs/features/autocomplete/how-it-works.mdx b/docs/features/autocomplete/how-it-works.mdx index 7f0e73d3f..c0c0fddee 100644 --- a/docs/features/autocomplete/how-it-works.mdx +++ b/docs/features/autocomplete/how-it-works.mdx @@ -1,27 +1,27 @@ --- -title: "How Autocomplete Works" -description: "Autocomplete is a that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts." +title: "How Autocomplete Works in Continue" +sidebarTitle: "How Autocomplete Works" +description: "Understand how Continue's autocomplete works, including timing optimization, context retrieval from your codebase, and filtering to improve AI code suggestions." --- -## Timing +## Timing Optimization for Autocomplete In order to display suggestions quickly, without sending too many requests, we do the following: - Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished. - 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. -## Context +## Context Retrieval from Your Codebase Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt. -## Filtering +## Filtering and Post-Processing AI Suggestions 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: -- filtering out special tokens -- stopping early when re-generating code -- fixing indentation - -We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition. +- Removing special tokens +- Stopping early when regenerating code to avoid long, irrelevant output +- Fixing indentation for proper formatting +- Occasionally discarding low-quality responses, such as those with excessive repetition You can learn more about how it works in the [Autocomplete deep dive](/customization/models#autocomplete). diff --git a/docs/features/autocomplete/how-to-customize.mdx b/docs/features/autocomplete/how-to-customize.mdx index 8a7f0f968..854be157e 100644 --- a/docs/features/autocomplete/how-to-customize.mdx +++ b/docs/features/autocomplete/how-to-customize.mdx @@ -1,3 +1,8 @@ -Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](/customize/deep-dives/settings/) to manage these settings. +--- +title: “Customize Autocomplete Settings in Continue” +description: “Learn how to customize autocomplete behavior in Continue, including user settings, configuration options, and adjustments to improve AI code suggestions in your IDE.” +--- + +Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](/customize/settings) to manage these settings. For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](/customize/deep-dives/autocomplete). diff --git a/docs/features/autocomplete/model-setup.mdx b/docs/features/autocomplete/model-setup.mdx index 6f5b1d799..0325b7fd2 100644 --- a/docs/features/autocomplete/model-setup.mdx +++ b/docs/features/autocomplete/model-setup.mdx @@ -1,6 +1,12 @@ +--- +title: "Recommended Models for Autocomplete in Continue" +description: "Choose the best autocomplete model for Continue, including hosted high-performance options, fast speed/quality tradeoffs, and local privacy-first models." +sidebarTitle: "Recommended Autocomplete Models" +--- + Setting up the right model for autocomplete is crucial for a smooth coding experience. Here are our top recommendations: -## Recommended Models +## Recommended Models for Autocomplete in Continue ### Hosted (Best Performance) @@ -46,4 +52,4 @@ If you're not seeing any completions or need more detailed configuration options ## Model Compatibility -To see a complete list of models and their capabilities, visit our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). +To see a complete list of models and their capabilities, visit our [Model Capabilities guide](/customize/deep-dives/model-capabilities). diff --git a/docs/features/autocomplete/quick-start.mdx b/docs/features/autocomplete/quick-start.mdx index 5a03c9671..8a08e553f 100644 --- a/docs/features/autocomplete/quick-start.mdx +++ b/docs/features/autocomplete/quick-start.mdx @@ -1,23 +1,27 @@ --- -title: "Quick Start" +title: "Quick Start with Continue Autocomplete" +description: "Learn how to quickly start using Continue's AI autocomplete in your IDE, including enabling inline code suggestions and keyboard shortcuts for accepting, rejecting, or partially accepting completions." +sidebarTitle: "Autocomplete Quick Start" --- -## How to use it +## How to Enable and Use Continue Autocomplete 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. -### Accepting a full suggestion +## Keyboard Shortcuts for Autocomplete + +### Accept a Full Suggestion Accept a full suggestion by pressing `Tab` -### Rejecting a full suggestion +### Reject a Full Suggestion Reject a full suggestion with `Esc` -### Partially accepting a suggestion +### Partially Accept a Suggestion For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggestion word-by-word. -### Forcing a suggestion (VS Code) +### Force a Suggestion (VS Code) 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`**. diff --git a/docs/features/chat/context-selection.mdx b/docs/features/chat/context-selection.mdx index 04041b689..b9354ac5a 100644 --- a/docs/features/chat/context-selection.mdx +++ b/docs/features/chat/context-selection.mdx @@ -1,39 +1,45 @@ -## Input +--- +title: "Chat Mode Context Selection" +sidebarTitle: "Context Selection" +description: "Learn how Continue selects relevant context for your chat requests, including text input, highlighted code, active files." +--- + +## How to Use Text Input Typing a question or instructions into the input box is the only required context. -## Highlighted Code +## How to Include Highlighted Code The highlighted code you've selected by pressing cmd/ctrl + L (VS Code) or cmd/ctrl + J (JetBrains) will be included in your prompt. -## Active File +## How to Include the Active File You can include the currently open file as context by pressing opt/alt + enter when you send your request. -## Specific File +## How to Include a Specific File You can include a specific file in your current workspace by typing '@Files' and selecting the file. -## Specific Folder +## How to Include a Specific Folder You can include a folder in your current workspace by typing '@Folder' and selecting the directory. -## Codebase Search +## How to Use Codebase Search You can automatically include relevant files from your codebase by typing '@Codebase'. -## Documentation Site +## How to Include Documentation Sites You can include a documentation site as context by typing '@Docs' and selecting the site. -## Terminal Contents +## How to Include Terminal Contents You can include the contents of the terminal in your IDE by typing '@Terminal'. -## Git Diff +## How to Include Git Diff You can include all of the changes you've made to your current branch by typing '@Git Diff'. -## Other Context +## How to Use Other Context Providers 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). diff --git a/docs/features/chat/how-it-works.mdx b/docs/features/chat/how-it-works.mdx index eeb35276f..d807ca5c4 100644 --- a/docs/features/chat/how-it-works.mdx +++ b/docs/features/chat/how-it-works.mdx @@ -3,7 +3,7 @@ title: "How Chat Works" description: "Continue's Chat feature provides a conversational interface with AI models directly in your IDE sidebar." --- -## Core Functionality +## How Chat Core Functionality Works When you start a chat conversation, Continue: @@ -12,22 +12,22 @@ When you start a chat conversation, Continue: 3. **Sends to Model**: Prompts the configured AI model for a response 4. **Streams Response**: Returns the AI response in real-time to the sidebar -## Context Management +## How Context Management Works -### Automatic Context +### What Context Is Automatically Included - Selected code in your editor - Current file context when relevant - Previous conversation history in the session -### Manual Context +### How to Add Manual Context - `@Codebase` - Search and include relevant code from your project - `@Docs` - Include documentation context - `@Files` - Reference specific files - Custom context providers -## Response Handling +## How Response Handling Works Each code section in the AI response includes action buttons: @@ -35,19 +35,19 @@ Each code section in the AI response includes action buttons: - **Insert at cursor** - Add code at cursor position - **Copy** - Copy code to clipboard -## Session Management +## How Session Management Works - Use `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) to start a new session - Clears all previous context for a fresh start - Helpful for switching between different tasks -## Advanced Features +## What Advanced Features Are Available -### Prompt Inspection +### How to Use Prompt Inspection View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting) for debugging and optimization. -### Context Providers +### How to Learn More About Context Providers Learn more about how context providers work: diff --git a/docs/features/chat/how-to-customize.mdx b/docs/features/chat/how-to-customize.mdx index 2692f7837..cf7fe0b62 100644 --- a/docs/features/chat/how-to-customize.mdx +++ b/docs/features/chat/how-to-customize.mdx @@ -1,3 +1,10 @@ +--- +title: "How to Customize Chat" +description: "Learn how to customize the Chat feature in Continue to better suit your workflow." +--- + +## How to Customize Chat + There are a number of different ways to customize Chat: - Add a `rules` block to give the model persistent instructions through the system prompt diff --git a/docs/features/chat/model-setup.mdx b/docs/features/chat/model-setup.mdx index 06d61fc6d..da46671b0 100644 --- a/docs/features/chat/model-setup.mdx +++ b/docs/features/chat/model-setup.mdx @@ -3,7 +3,7 @@ The model you use for for Chat mode will be - used with Edit mode by default but can be switched - always used with Agent mode if the model supports tool calling -## Recommended Models +## What Models Are Recommended for Chat? Our strong recommendation is to use [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet) from Anthropic. @@ -14,7 +14,7 @@ Its strong tool calling and reasoning capabilities make it the best model for Ag 3. Add `ANTHROPIC_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) 4. Click `Reload config` in the assistant selector in the Continue IDE extension -#### Other hosted models +### What Other Hosted Models Are Available? These models have varying tool calling and reasoning capabilities. @@ -67,7 +67,7 @@ These models have varying tool calling and reasoning capabilities. 3. Add `TOGETHER_API_KEY` as a [User Secret](https://docs.continue.dev/hub/secrets/secret-types#user-secrets) on Continue Hub [here](https://hub.continue.dev/settings/secrets) 4. Click `Reload config` in the assistant selector in the Continue IDE extension -#### Local models +### What Local Models Are Available? These models can be run on your computer if you have enough VRAM. @@ -99,6 +99,6 @@ Their limited tool calling and reasoning capabilities will make it challenging t For more detailed setup instructions, see [here](/getting-started/install#setup-your-first-model). -## Model Compatibility +## How to Check Model Compatibility -To see which models support specific features like tool use (for Agent mode) and image input, check out our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). +To see which models support specific features like tool use (for Agent mode) and image input, check out our [Model Capabilities guide](/customize/deep-dives/model-capabilities). diff --git a/docs/features/chat/quick-start.mdx b/docs/features/chat/quick-start.mdx index 58b3e0a36..7871cef90 100644 --- a/docs/features/chat/quick-start.mdx +++ b/docs/features/chat/quick-start.mdx @@ -1,12 +1,14 @@ --- -title: "Quick Start" +title: "Chat Mode Quick Start" +sidebarTitle: "Quick Start" +description: "Get started with Continue's AI chat assistant to solve coding problems directly in your IDE, with features for code context sharing, codebase search, and applying generated solutions to your files" --- Chat makes it easy to ask for help from an AI without leaving your IDE. Get explanations, generate code, and iterate on solutions conversationally. -## Basic Usage +## How to Use Chat - Basic Usage -### 1. Start a Conversation +### How to Start a Conversation Type your question or request in the chat input and press Enter. @@ -16,7 +18,7 @@ Type your question or request in the chat input and press Enter. - "How do I handle errors in this code?" - "Generate a test for this component" -### 2. Include Code Context +### How to Include Code Context Select code in your editor, then use the keyboard shortcut to include it in your chat: @@ -27,7 +29,7 @@ Press `Cmd/Ctrl + L` to send selected code to chat Press `Cmd/Ctrl + J` to send selected code to chat -### 3. Use @ for Additional Context +### How to Use @ for Additional Context Type `@` to include specific context: @@ -36,7 +38,7 @@ Type `@` to include specific context: - `@Files` - Reference specific files - `@Terminal` - Include terminal output -## Working with Responses +## How to Work with Responses When the AI provides code in its response, you'll see action buttons: @@ -44,7 +46,7 @@ When the AI provides code in its response, you'll see action buttons: - **Insert at cursor** - Add code at your cursor position - **Copy** - Copy code to clipboard -## Pro Tips +## What Are the Pro Tips for Chat ### Start Fresh @@ -66,7 +68,7 @@ If the first response isn't perfect: - Request modifications - Provide additional context -## Common Use Cases +## What Are Common Use Cases for Chat ### Code Explanation diff --git a/docs/features/edit/context-selection.mdx b/docs/features/edit/context-selection.mdx index 0cbff11c5..beb01ce88 100644 --- a/docs/features/edit/context-selection.mdx +++ b/docs/features/edit/context-selection.mdx @@ -1,7 +1,13 @@ -## Input +--- +title: "Context Selection in Edit Mode" +sidebarTitle: "Context Selection" +description: "Learn how Continue's Edit mode selects relevant code context using file content, language server" +--- -The input you provide is included in the prompt. +## How to Use Text Input -## Code to Edit +Typing a question or instructions into the input box is the only required context. + +## What Context is Included in Edit Mode The **entire contents** of the current file are included in the prompt for context. The model will only attempt to edit the highlighted/specified ranges. diff --git a/docs/features/edit/how-it-works.mdx b/docs/features/edit/how-it-works.mdx index b8dd95d37..ba8969691 100644 --- a/docs/features/edit/how-it-works.mdx +++ b/docs/features/edit/how-it-works.mdx @@ -3,7 +3,13 @@ title: "How Edit Works" 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." --- -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. +## How Edit Functionality Works + +When you start an edit session, Continue: + +1. **Gathers Context**: Uses the highlighted code and the current file contents +2. **Prompts the Model**: Sends the gathered context and your input instructions to the model +3. **Applies Changes**: 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. If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes. diff --git a/docs/features/edit/how-to-customize.mdx b/docs/features/edit/how-to-customize.mdx index 74f06a549..b200e2e67 100644 --- a/docs/features/edit/how-to-customize.mdx +++ b/docs/features/edit/how-to-customize.mdx @@ -1,4 +1,10 @@ -## Setting active Edit/Apply model +--- +title: "How to Customize Edit Functionality" +description: "Learn how to customize the Edit functionality in Continue to better suit your workflow." +sidebarTitle: "Customize Edit" +--- + +## How to Set Active Edit/Apply Model You can configure particular models from your Assistant to be used for Edit and Apply requests. diff --git a/docs/features/edit/model-setup.mdx b/docs/features/edit/model-setup.mdx index 8442015c9..d7b839a13 100644 --- a/docs/features/edit/model-setup.mdx +++ b/docs/features/edit/model-setup.mdx @@ -1,8 +1,14 @@ +--- +title: "How to Set Up Edit Models" +sidebarTitle: "Set Up Edit Models" +description: "Learn how to set up and customize models for Edit functionality in Continue." +--- + The model you set up for Chat mode will be used for Edit mode by default. The recommended models and how to set them up can be found [here](/features/chat/model-setup). -## Apply Model +## How to Set Up an Apply Model We also recommend setting up an Apply model for the best Edit experience. @@ -11,6 +17,6 @@ We also recommend setting up an Apply model for the best Edit experience. - [Morph v3](https://hub.continue.dev/morphllm/morph-v2) - [Relace Instant Apply](https://hub.continue.dev/relace/instant-apply) -## Model Compatibility +## How to Determine Model Compatibility -For a complete overview of which models support various features, see our [Model Capabilities guide](/customize/deep-dives/model-capabilities#model-compatibility-matrix). +For a complete overview of which models support various features, see our [Model Capabilities guide](/customize/deep-dives/model-capabilities). diff --git a/docs/features/edit/quick-start.mdx b/docs/features/edit/quick-start.mdx index aa2d9b5d4..365009c46 100644 --- a/docs/features/edit/quick-start.mdx +++ b/docs/features/edit/quick-start.mdx @@ -1,8 +1,10 @@ --- -title: "Quick Start" +title: "Quick Start with Continue Edit" +sideBarTitle: "Quick Start" +description: "Get started with Continue's Edit feature for making quick, targeted code changes directly in your file using AI suggestions, with keyboard shortcuts for accepting or rejecting modifications" --- -## How to use it +## How to Continue Edit 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,15 +14,17 @@ Edit is recommended for small, targeted changes, such as - Generating unit tests - Refactoring functions or methods -## Highlight code and activate +## How to Activate Edit Highlight the block of code you would like to modify and press `Cmd+I` (Mac) or `Ctrl+I` (Windows/Linux) to activate Edit mode. You can also press `Cmd/Ctrl+I` with no code highlighted, which will default to inserting code at the current cursor location. -## Describe code changes +Once you've activated Edit, you're ready to provide instructions. + +### How to Provide Instructions 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). -## Accept or reject changes +### How to Accept or Reject Changes Proposed changes appear as inline diffs within your highlighted text. @@ -30,7 +34,6 @@ You can also accept or reject all changes at once using `Cmd+Shift+Enter` (Mac) If you want to request a new suggestion for the same highlighted code section, you can use `Cmd+I` (Mac) or `Ctrl+I` (Windows/Linux) to re-prompt the model. - -## Jetbrains +## How to Use Edit in Jetbrains In Jetbrains, Edit is implemented as an inline popup. See the header GIF example. diff --git a/docs/features/plan/how-it-works.mdx b/docs/features/plan/how-it-works.mdx index c19bb2080..cb608f182 100644 --- a/docs/features/plan/how-it-works.mdx +++ b/docs/features/plan/how-it-works.mdx @@ -46,7 +46,10 @@ Plan mode includes these read-only built-in tools: In addition to built-in read-only tools, Plan mode also supports all MCP (Model Context Protocol) tools. This allows integration with external services that provide additional context or analysis capabilities without modifying your local environment. - While Plan mode restricts built-in tools to read-only operations, MCP tools are not filtered by Continue. Some MCP tools may have write capabilities that could modify your system or external services. Always verify what actions your MCP tools can perform before using them in Plan mode. + While Plan mode restricts built-in tools to read-only operations, MCP tools + are not filtered by Continue. Some MCP tools may have write capabilities that + could modify your system or external services. Always verify what actions your + MCP tools can perform before using them in Plan mode. ## The planning workflow diff --git a/docs/features/plan/quick-start.mdx b/docs/features/plan/quick-start.mdx index 988376dc0..40bbc80d0 100644 --- a/docs/features/plan/quick-start.mdx +++ b/docs/features/plan/quick-start.mdx @@ -1,5 +1,6 @@ --- title: "Quick Start" +description: "Get started with Continue's Plan mode to safely explore codebases, plan refactors, debug issues, and develop implementation strategies without modifying code before switching to execution" --- ## How to use it @@ -14,17 +15,18 @@ You can switch to `Plan` in the mode selector below the chat input box. If Plan is disabled with a `Not Supported` message, the selected model or - provider doesn't support tools. See [Model Setup](/features/plan/model-setup) + provider doesn't support tools. See [Model Setup](/features/agent/model-setup) for more information. ### Chat with Plan -Plan mode lives within the same interface as [Chat](/features/chat/how-it-works) and [Agent](/features/agent/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). +Plan mode lives within the same interface as [Chat](/features/chat/how-it-works) and [Agent](/features/agent/how-it-works), so the same [input](/features/chat/quick-start#how-to-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#how-to-use--for-additional-context) or adding [highlighted code from the editor](/features/chat/quick-start#how-to-include-code-context). #### What makes Plan different Unlike Agent mode, Plan mode: + - Only uses read-only tools (file reading, searching, analysis) - Cannot modify, create, or delete files - Focuses on understanding and planning rather than execution @@ -33,6 +35,7 @@ Unlike Agent mode, Plan mode: ### Common use cases Plan mode is ideal for: + - **Code exploration**: Understanding how a codebase works - **Planning refactors**: Analyzing impact before making changes - **Debugging**: Investigating issues without modifying code @@ -56,5 +59,6 @@ Plan mode will analyze the existing code, understand the current implementation, When you're ready to implement your plan, simply switch to Agent mode using the mode selector or keyboard shortcut (`Cmd/Ctrl + .`). The conversation context carries over, so Agent mode can immediately start implementing the plan you developed. - Use the keyboard shortcut `Cmd/Ctrl + .` to quickly cycle between Agent, Chat, and Plan modes. - \ No newline at end of file + Use the keyboard shortcut `Cmd/Ctrl + .` to quickly cycle between Agent, Chat, + and Plan modes. + diff --git a/docs/getting-started/extensions.mdx b/docs/getting-started/extensions.mdx index 995ac79a5..1904b97bc 100644 --- a/docs/getting-started/extensions.mdx +++ b/docs/getting-started/extensions.mdx @@ -3,4 +3,4 @@ title: "Understanding Assistants" description: "Continue offers two ways to configure your AI assistants" --- -This content has moved to our comprehensive guide: [Understanding Assistants: Hub vs Local Configuration](/guides/understanding-assistants) \ No newline at end of file +This content has moved to our comprehensive guide: [Understanding Assistants: Hub vs Local Configuration](/guides/understanding-assistants) diff --git a/docs/getting-started/overview.mdx b/docs/getting-started/overview.mdx index a24d5585f..18d8b67f3 100644 --- a/docs/getting-started/overview.mdx +++ b/docs/getting-started/overview.mdx @@ -57,7 +57,6 @@ description: "To quickly understand what you can do with Continue, check out eac - ## AI Coding Assistants Continue offers flexible AI assistants that enhance your development workflow. You can choose between cloud-managed **Hub Assistants** for easy setup and synchronization, or **Local Assistants** for complete control and privacy. Learn more about [understanding and configuring assistants](/guides/understanding-assistants). diff --git a/docs/guides/build-your-own-context-provider.mdx b/docs/guides/build-your-own-context-provider.mdx index 57dd2e577..84a47fb2c 100644 --- a/docs/guides/build-your-own-context-provider.mdx +++ b/docs/guides/build-your-own-context-provider.mdx @@ -1,9 +1,9 @@ --- -title: "Build Your Own Context Provider" -description: "Continue offers several way to provide your custom context to the extension." +title: "How to Build Your Own Context Provider" +description: "Learn how to create custom context providers for Continue using HTTP servers, CustomContextProvider API, or VSCode extensions to provide tailored context to your AI assistant" --- -## HTTP Context Provider +## How to Create an HTTP Context Provider Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this: @@ -42,11 +42,11 @@ The `"options"` property can be used to send additional parameters to your endpo The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP - Servers](/customization/mcp-tools), and [Prompts](/customization/prompts) + Servers](/customize/deep-dives/mcp), and [Prompts](/customize/deep-dives/prompts) where possible. -## Using CustomContextProvider +## How to Use CustomContextProvider 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` @@ -76,7 +76,7 @@ export function modifyConfig(config: Config): Config { if (!config.contextProvi This is automatically appended to your configuration. -### Custom Context Providers with Submenu or Query +### How to Create Custom Context Providers with Submenu or Query 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. @@ -97,7 +97,7 @@ The flow of information in the above example is as follows: 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. 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. -### Importing outside modules +### How to Import Outside Modules To include outside Node modules in your config.ts, run `npm install ` from the `~/.continue` directory, and then import them in config.ts. @@ -116,6 +116,7 @@ Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.t - `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`. - `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: + - `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 - `extras.embeddingsProvider`: The embeddings provider has an `embed` function that will convert text (such as `fullInput`) to an embedding - `extras.llm`: The current default LLM, which you can use to make completion requests @@ -124,7 +125,7 @@ Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.t - `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`. . -## Extension API for VSCode +## How to Use Extension API for VSCode 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`: diff --git a/docs/guides/cli.mdx b/docs/guides/cli.mdx index dcdea9d28..6438bde46 100644 --- a/docs/guides/cli.mdx +++ b/docs/guides/cli.mdx @@ -1,6 +1,7 @@ --- -title: "Continue CLI (cn)" -description: "Context engineering on the command line" +title: "How to Use Continue CLI (cn)" +sidebarTitle: "Continue CLI (cn)" +description: "Learn how to use Continue's command-line interface for context engineering, automated coding tasks, and headless development workflows with customizable models, rules, and tools" --- Continue CLI (cn) is currently in Alpha @@ -29,7 +30,7 @@ cn cn -p "Generate a conventional commit name for the current git changes" ``` -## Basic usage +## How to Use Continue CLI - Basic Usage Out of the box, `cn` comes with tools that let it understand your codebase, edit files, run terminal commands, and more (if you approve). You can ask `cn` to: @@ -43,7 +44,7 @@ Use '@' to give it file context, or '/' to run slash commands. If you want to resume a previous conversation, run `cn --resume`. -## Headless mode (`-p` flag) +## How to Use Headless Mode (`-p` flag) In headless mode, `cn` will only output its final response, making it perfect for Unix Philosophy-style scripting and automation. For example, you could pipe your git diff into `cn` to generate a commit message, and write this to a file: @@ -51,25 +52,25 @@ In headless mode, `cn` will only output its final response, making it perfect fo echo "$(git diff) Generate a conventional commit name for the current git changes" | cn -p > commit-message.txt ``` -## Configuration +## How to Configure Continue CLI -`cn` uses [`config.yaml`](./reference.mdx), the exact same configuration file as Continue. This means that you can log in to [Continue Hub](./hub/introduction.mdx) or use your existing local configuration. +`cn` uses [`config.yaml`](/reference), the exact same configuration file as Continue. This means that you can log in to [Continue Hub](/hub/introduction) or use your existing local configuration. To switch between configurations, you can use the `/config` slash command in `cn`, or you can start it with the `--config` flag (e.g. `cn --config continuedev/default-agent` or `cn --config ~/.continue/config.yaml`). -### Models +### How to Add Custom Models -Learn how to add custom models [here](./customization/models.mdx). Then, you can use the `/model` slash command to switch between them in `cn`. +Learn how to add custom models [here](/customize/overview). Then, you can use the `/model` slash command to switch between them in `cn`. -### Rules +### How to Configure Rules -`cn` supports [rules](./customize/deep-dives/rules.mdx) in the same way as the Continue IDE extensions. You can also use the `--rule` flag to manually include a rule from the hub. For example, `cn --rule nate/spanish` will tell `cn` to use [this rule](https://hub.continue.dev/nate/spanish) to always speak in Spanish. +`cn` supports [rules](/customize/deep-dives/rules) in the same way as the Continue IDE extensions. You can also use the `--rule` flag to manually include a rule from the hub. For example, `cn --rule nate/spanish` will tell `cn` to use [this rule](https://hub.continue.dev/nate/spanish) to always speak in Spanish. -### Tools +### How to Configure Tools -`cn` supports MCP tools, which can be configured in the [same way](./customize/deep-dives/mcp.mdx) as with the Continue IDE extensions. +`cn` supports MCP tools, which can be configured in the [same way](/customize/deep-dives/mcp) as with the Continue IDE extensions. -#### Tool Permissions +#### How to Set Tool Permissions `cn` includes a tool permission system to make sure you approve of the agent's actions. It will begin with minimal permissions but as you approve tool calls, it will add policies to `~/.continue/permissions.yaml` to remember your preferences. diff --git a/docs/guides/custom-code-rag.mdx b/docs/guides/custom-code-rag.mdx index 24e4ff91f..462bc81ef 100644 --- a/docs/guides/custom-code-rag.mdx +++ b/docs/guides/custom-code-rag.mdx @@ -1,19 +1,19 @@ --- -title: "Custom code RAG" -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." +title: "How to Build Custom Code RAG" +description: "Learn how to build a custom retrieval-augmented generation (RAG) system for code using vector databases like LanceDB, embeddings models like voyage-code-3, and chunking strategies for better code search and context" --- -## Step 1: Choose an embeddings model +## Step 1: How to Choose an Embeddings Model 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. -## Step 2: Choose a vector database +## Step 2: How to Choose a Vector Database 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. [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. -## Step 3: Choose a "chunking" strategy +## Step 3: How to Choose a "Chunking" Strategy Most embeddings models can only handle a limited amount of text at once. To get around this, we "chunk" our code into smaller pieces. @@ -25,7 +25,7 @@ If you use `voyage-code-3`, it has a maximum context length of 16,000 tokens, wh As usual in this guide, we recommend starting with the strategy that gives 80% of the benefit with 20% of the effort. -## Step 4: Put together an indexing script +## Step 4: How to Put Together an Indexing Script Indexing, in which we will insert your code into the vector database in a retrievable format, happens in three steps: @@ -48,7 +48,7 @@ from lancedb.pydantic import LanceModel, Vectorfrom lancedb.embeddings import ge 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. -## Step 5: Run your indexing script +## Step 5: How to Run Your Indexing Script 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. @@ -61,7 +61,7 @@ At this point, you've written your indexing script and tested that you can make 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. -## Step 6: Set up your server +## Step 6: How to Set Up Your Server 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. @@ -106,7 +106,7 @@ config.json } ``` -## Step 7 (Bonus): Set up reranking +## Step 7 (Bonus): How to Set Up Reranking 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. diff --git a/docs/guides/how-to-self-host-a-model.mdx b/docs/guides/how-to-self-host-a-model.mdx index ddad69551..3126b349e 100644 --- a/docs/guides/how-to-self-host-a-model.mdx +++ b/docs/guides/how-to-self-host-a-model.mdx @@ -1,6 +1,6 @@ --- title: "How to Self-Host a Model" -description: "You can deploy a model in your , , , , or using:" +description: "Learn how to deploy and self-host open-source language models using HuggingFace TGI, vLLM, SkyPilot, Anyscale Private Endpoints, or Lambda for use with Continue" --- - [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi) @@ -9,13 +9,13 @@ description: "You can deploy a model in your , , , , or using:" - [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints) (OpenAI compatible API) - [Lambda](https://github.com/continuedev/deploy-os-code-llm#lambda) -## Self-hosting an open-source model +## How to Self-Host an Open-Source Model 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. However, if neither of these are the case, you will need to wire up a new LLM object. -## Authentication +## How to Set Up Authentication Basic authentication can be done with any provider using the `apiKey` field: diff --git a/docs/guides/llama3.1.mdx b/docs/guides/llama3.1.mdx index a79644343..5462430bc 100644 --- a/docs/guides/llama3.1.mdx +++ b/docs/guides/llama3.1.mdx @@ -1,13 +1,13 @@ --- -title: "Using Llama 3.1 with Continue" -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." +title: "How to Use Llama 3.1 with Continue" +description: "Learn how to set up and use Llama 3.1 models with Continue using Ollama, Groq, Together AI, Replicate, SambaNova, or Cerebras Inference for local and cloud-based development" --- -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). +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](/customize/overview). Below we share some of the easiest ways to get up and running, depending on your use-case. -## Ollama +## How to Use Llama 3.1 with Ollama 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. @@ -37,7 +37,7 @@ config.json } ``` -## Groq +## How to Use Llama 3.1 with Groq Check if your chosen model is still supported by referring to the [model @@ -78,7 +78,7 @@ config.json } ``` -## Together AI +## How to Use Llama 3.1 with Together AI Together AI provides fast and reliable inference of open-source models. You'll be able to run the 405b model with good speed. @@ -114,7 +114,7 @@ config.json } ``` -## Replicate +## How to Use Llama 3.1 with Replicate Replicate makes it easy to host and run open-source AI with an API. @@ -149,7 +149,7 @@ config.json } ``` -## SambaNova +## How to Use Llama 3.1 with SambaNova SambaNova Cloud provides world record Llama3.1 70B/405B serving. @@ -185,7 +185,7 @@ config.json } ``` -## Cerebras Inference +## How to Use Llama 3.1 with Cerebras Inference Cerebras Inference uses specialized silicon to provides fast inference for the Llama3.1 8B/70B. diff --git a/docs/guides/ollama-guide.mdx b/docs/guides/ollama-guide.mdx index 5ded49934..51bcd3e10 100644 --- a/docs/guides/ollama-guide.mdx +++ b/docs/guides/ollama-guide.mdx @@ -1,9 +1,9 @@ --- title: "Using Ollama with Continue: A Developer's Guide" -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." +description: "Complete guide to setting up Ollama with Continue for local AI development. Learn installation, configuration, model selection, performance optimization, and troubleshooting for privacy-focused offline coding assistance" --- -## Prerequisites +## What Are the Prerequisites for Using Ollama Before getting started, ensure your system meets these requirements: @@ -12,9 +12,9 @@ Before getting started, ensure your system meets these requirements: - Storage: At least 10GB free space - Continue extension installed -## Installation Steps +## How to Install Ollama - Step-by-Step -### Step 1: Install Ollama +### Step 1: How to Install Ollama Choose the installation method for your operating system: @@ -29,7 +29,7 @@ curl -fsSL https://ollama.ai/install.sh | sh # Download from ollama.ai ``` -### Step 2: Download Models +### Step 2: How to Download Models After installing Ollama, download the models you want to use. Here are some popular options: @@ -40,11 +40,11 @@ ollama pull qwen2.5-coder:1.5b-base ollama pull nomic-embed-text:latest ``` -## Configuration +## How to Configure Ollama with Continue Configure Continue to work with your local Ollama instance: -### Continue Configuration +### How to Set Up Continue Configuration ```yaml models: @@ -70,9 +70,9 @@ models: - embed ``` -You can update `apiBase` with the IP address of a remote machine serving Ollama. +You can update `apiBase` with the IP address of a remote machine serving Ollama. -### Advanced Settings +### How to Configure Advanced Settings For optimal performance, consider these advanced configuration options: @@ -81,9 +81,9 @@ For optimal performance, consider these advanced configuration options: - Custom model parameters - Performance tuning -## Best Practices +## What Are the Best Practices for Ollama -### Model Selection +### How to Choose the Right Model Choose models based on your specific needs: @@ -91,7 +91,7 @@ Choose models based on your specific needs: 2. **Chat**: Llama2 or Mistral 3. **Specialized Tasks**: Domain-specific models -### Performance Optimization +### How to Optimize Performance To get the best performance from Ollama: @@ -100,25 +100,25 @@ To get the best performance from Ollama: - Use appropriate model sizes - Enable GPU acceleration when available -## Troubleshooting +## How to Troubleshoot Ollama Issues -### Common Issues +### What Are Common Issues Here are solutions to common problems you might encounter: -#### Connection Problems +#### How to Fix Connection Problems - Check Ollama service status - Verify port availability - Review firewall settings -#### Performance Issues +#### How to Resolve Performance Issues - Insufficient RAM - Model too large for system - GPU compatibility -### Solutions +### How to Apply Solutions Try these solutions in order: @@ -127,15 +127,15 @@ Try these solutions in order: 3. Update to latest version 4. Check system requirements -## Example Workflows +## What Are Example Workflows with Ollama -### Code Generation +### How to Use Ollama for Code Generation ``` # Example: Generate a FastAPI endpointdef create_user_endpoint(): # Continue will help generate the implementation pass ``` -### Code Review +### How to Use Ollama for Code Review Use Continue with Ollama to: diff --git a/docs/guides/overview.mdx b/docs/guides/overview.mdx index c4e95006b..b62df80c4 100644 --- a/docs/guides/overview.mdx +++ b/docs/guides/overview.mdx @@ -1,8 +1,9 @@ --- -title: "Overview" +title: "How to Use Continue Guides" +description: "Comprehensive collection of practical guides for Continue including model setup, local development with Ollama, offline usage, self-hosting, custom context providers, and advanced customization tutorials" --- -## Model & Setup Guides +## What Model & Setup Guides Are Available - [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama - [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model @@ -10,11 +11,11 @@ title: "Overview" - [Running Continue Without Internet](/guides/running-continue-without-internet) - Offline development setup - [Llama 3.1 Setup](/guides/llama3.1) - Getting started with Llama 3.1 -## Advanced Tutorials +## What Advanced Tutorials Are Available - [Build Your Own Context Provider](/guides/build-your-own-context-provider) - Create custom context providers - [Custom Code RAG](/guides/custom-code-rag) - Implement custom retrieval-augmented generation -## Contributing +## How to Contribute to Guides Have a guide idea or found an issue? We welcome contributions! Check our [GitHub repository](https://github.com/continuedev/continue) to get involved. diff --git a/docs/guides/plan-mode-guide.mdx b/docs/guides/plan-mode-guide.mdx index 304a37eaf..fdaca3db3 100644 --- a/docs/guides/plan-mode-guide.mdx +++ b/docs/guides/plan-mode-guide.mdx @@ -33,7 +33,7 @@ Plan Mode prevents unintentional file modifications, letting you think through s -## Use Cases +## What Are the Use Cases for Plan Mode Plan Mode excels in four key scenarios where understanding before acting prevents expensive mistakes: @@ -65,14 +65,14 @@ Plan Mode excels in four key scenarios where understanding before acting prevent -## Best Practices +## What Are the Best Practices for Plan Mode? -### For Faster Planning +### How to Plan Faster 1. **Scope your requests**: `Focus analysis on the user authentication module only, ignore the admin features` 2. **Use targeted context**: `Analyze @Files and its direct imports for security issues` -### For Higher Quality Plans +### How to Create Higher Quality Plans 1. **Provide business context**: `This feature needs to handle Black Friday traffic (10x normal load). Plan accordingly.` 2. **Share technical constraints**: `We're on AWS with strict security requirements. Plan a file upload system that meets SOC2 compliance.` @@ -85,7 +85,7 @@ You can switch to `Plan` in the mode selector below the chat input box. ![How to select plan mode](../images/plan-mode-selector.png) -## Available Tools in Plan Mode +## What Tools Are Available in Plan Mode? | Tool | Available | Description | | :-------------------------------- | :-------- | :--------------------------------------------------- | @@ -104,7 +104,7 @@ You can switch to `Plan` in the mode selector below the chat input box. | **Git commits/pushes** | ❌ | Making changes to version control | | **Database modifications** | ❌ | Altering database data or structure | -## Context Integration in Plan Mode +## How Context Integration Works in Plan Mode Context is the foundation of effective planning. Without proper context, AI models fall back on generic patterns, leading to plans that don't fit your specific system. Continue's [context system](/features/chat/context-selection) transforms broad suggestions into actionable strategies: @@ -256,7 +256,7 @@ Context is the foundation of effective planning. Without proper context, AI mode -## From Plan to Execution +## How to Transition From Plan to Execution ### When to Transition to Agent Mode diff --git a/docs/guides/running-continue-without-internet.mdx b/docs/guides/running-continue-without-internet.mdx index 0c2799032..6f3da06ff 100644 --- a/docs/guides/running-continue-without-internet.mdx +++ b/docs/guides/running-continue-without-internet.mdx @@ -1,9 +1,9 @@ --- -title: "Running Continue without Internet" -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." +title: "How to Run Continue Without Internet" +description: "Learn how to set up Continue for air-gapped or offline environments using local models, including steps to disable telemetry and configure local model providers" --- 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). 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). -3. Also in `config.json`, set the default model to a local model. You can available options [here](/customization/models#openai). +3. Also in `config.json`, set the default model to a local model. You can find available options [here](/customize/model-providers/overview). 4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect. diff --git a/docs/guides/set-up-codestral.mdx b/docs/guides/set-up-codestral.mdx index 06c7c01ca..eb700ad3a 100644 --- a/docs/guides/set-up-codestral.mdx +++ b/docs/guides/set-up-codestral.mdx @@ -1,5 +1,6 @@ --- title: "How to Set Up Codestral" +description: "Step-by-step guide for configuring Mistral's Codestral model with Continue for both chat and autocomplete functionality using your Mistral AI API key" --- **Here is a step-by-step guide on how to set up Codestral with Continue using the Mistral AI API:** diff --git a/docs/guides/understanding-assistants.mdx b/docs/guides/understanding-assistants.mdx index 7dfad68e9..4bc35693b 100644 --- a/docs/guides/understanding-assistants.mdx +++ b/docs/guides/understanding-assistants.mdx @@ -1,15 +1,17 @@ --- -title: "Understanding Assistants: Hub vs Local Configuration" -description: "Master the two approaches to configuring AI assistants in Continue - choosing the right path for your development workflow" +title: "How to Understand Assistants: Hub vs Local Configuration" +description: "Learn how to choose between cloud-managed Hub assistants and local configuration for AI development assistance in Continue, including setup, management, and best practices for each approach" --- Every developer has unique needs when it comes to AI assistance. Some prefer the convenience of cloud-managed configurations, while others need the control and privacy of local setups. Continue offers both paths, and this guide will help you choose the right one for your workflow. -## The Two Paths to AI Assistance +## What Are the Two Paths to AI Assistance? + +Continue provides two distinct ways to configure your AI assistant: Think of Continue's configuration options like choosing between a managed service and self-hosting. Both get you to the same destination—powerful AI assistance in your IDE—but the journey and control level differ significantly. -### Accessing Your Assistant Configuration +### How to Access Your Assistant Configuration Before we dive into the specifics, let's understand how to access your configuration: @@ -21,13 +23,14 @@ Before we dive into the specifics, let's understand how to access your configura ![configure an assistant](/images/configure-continue.png) -## Hub Assistants: The Managed Experience +## What Are Hub Assistants: The Managed Experience Hub Assistants represent the "it just works" philosophy. When you [sign in to Continue Hub](https://auth.continue.dev/), you gain access to a curated ecosystem of pre-configured assistants that sync seamlessly across all your development environments. -### Why Choose Hub Assistants? +### Why Should You Choose Hub Assistants? **The Power of Simplicity** + - **Instant Setup**: Browse the [assistant marketplace](https://hub.continue.dev/explore/assistants) and add any assistant to your account with a single click - **Web-Based Management**: Configure models, add secrets, and customize settings through an intuitive web interface—no JSON editing required - **Automatic Synchronization**: Make a change on the hub, and it reflects immediately across all your IDE instances @@ -35,7 +38,7 @@ Hub Assistants represent the "it just works" philosophy. When you [sign in to Co ![nextjs assistant](/images/nextjs-assistant.png) -### Getting Started with Hub Assistants +### How to Get Started with Hub Assistants The journey from zero to AI-powered coding takes just four steps: @@ -46,31 +49,34 @@ The journey from zero to AI-powered coding takes just four steps: Pro tip: Hub Assistants are perfect for teams. Create a custom assistant with your team's coding standards, preferred models, and context sources, then share it with a simple link. -### Managing Hub Assistants +### How to Manage Hub Assistants All Hub Assistant management happens through [the Hub](https://hub.continue.dev). For detailed customization, see our guide on [Editing an Assistant](/hub/assistants/edit-an-assistant). -## Local Assistants: The Power User's Choice +## What Are Local Assistants: The Power User's Choice Local Assistants put you in the driver's seat. Using a `config.yaml` file, you have complete control over every aspect of your AI assistant's behavior, with all configuration stored directly on your machine. -### Why Choose Local Assistants? +### Why Should You Choose Local Assistants? **Complete Control and Privacy** + - **Your Data, Your Rules**: All configuration stays on your machine—perfect for air-gapped environments or strict data policies - **Version Control Integration**: Check your `config.yaml` into git alongside your code, ensuring reproducible environments - **Offline Capability**: Once configured, no internet connection needed (assuming you're using local models) - **Unlimited Customization**: Access every configuration option, experimental feature, and advanced setting -### Setting Up Local Assistants +### How to Set Up Local Assistants Local configuration lives in a single YAML file in your home directory: **File Locations:** + - macOS/Linux: `~/.continue/config.yaml` - Windows: `%USERPROFILE%\.continue\config.yaml` **Quick Access Method:** + 1. Open the assistants dropdown in your IDE 2. Click the gear icon next to "Local Assistant" 3. The `config.yaml` file opens in your editor @@ -85,24 +91,27 @@ The first time you use Continue, it generates a `config.yaml` with sensible defa For the complete configuration reference, see our [config.yaml documentation](/reference). -## Making the Right Choice +## How to Make the Right Choice The decision between Hub and Local assistants often comes down to your specific needs and constraints. Here's a framework to help you decide: ### Choose Hub Assistants When You: **Value Convenience Over Control** + - Want to start coding with AI assistance in under 60 seconds - Prefer visual interfaces over editing configuration files - Need to switch between multiple machines frequently - Work in a team that needs standardized AI assistance **Need Advanced Collaboration** + - Want to share custom assistants with teammates - Need centralized API key management - Require quick updates across your entire organization **Are Getting Started** + - New to AI-powered development - Want to experiment with different models and configurations - Prefer guided setup experiences @@ -110,21 +119,24 @@ The decision between Hub and Local assistants often comes down to your specific ### Choose Local Assistants When You: **Require Maximum Control** + - Need to version control your exact configuration - Want to customize every aspect of the AI behavior - Require reproducible development environments **Have Privacy Requirements** + - Work with sensitive code that requires air-gapped environments - Need to ensure all configuration data stays local - Have strict compliance requirements about data storage **Are a Power User** + - Comfortable editing YAML/JSON files - Want access to experimental features - Need to integrate with local tools and scripts -## The Hybrid Approach +## How to Use the Hybrid Approach Here's a secret: you don't have to choose just one. Many developers use both approaches: @@ -154,22 +166,26 @@ You can switch between them seamlessly using the assistant selector in your IDE. ### Hub Assistant Issues **Changes Not Reflecting?** + - Click "Reload config" in your IDE - Check your internet connection - Ensure you're signed in to the correct account **Assistant Not Available?** + - Verify it's added to your account on the hub - Check if it requires specific API keys ### Local Assistant Issues **Config Not Loading?** + - Verify file location matches your OS - Check YAML syntax (Continue will show errors) - Ensure file permissions allow reading **Autocomplete Not Working?** + - Update to the latest Continue version - Check that you're editing the correct file @@ -183,4 +199,4 @@ Now that you understand both configuration approaches, you're ready to dive deep Remember, the best configuration is the one that helps you code more effectively. Start simple, experiment freely, and gradually refine your setup as you discover what works best for your workflow. -Happy coding with Continue! 🚀 \ No newline at end of file +Happy coding with Continue! 🚀 diff --git a/docs/home.mdx b/docs/home.mdx index a24548999..e2c79a939 100644 --- a/docs/home.mdx +++ b/docs/home.mdx @@ -1,8 +1,13 @@ --- title: "Introduction" +description: "Learn how Continue enables developers to embrace continuous AI, enabling them to build custom AI code assistants with open source VS Code and JetBrains extensions featuring chat, autocomplete, edit, and agent capabilities" --- -**Continue enables developers to ship faster with Continuous AI.** +## What is Continue? + +**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)** + +## Key Features **You can use Continue to build and run custom agents across your IDE, terminal, and CI.** diff --git a/docs/hub/assistants/create-an-assistant.mdx b/docs/hub/assistants/create-an-assistant.mdx index 83d7feff3..dd7ee9678 100644 --- a/docs/hub/assistants/create-an-assistant.mdx +++ b/docs/hub/assistants/create-an-assistant.mdx @@ -1,23 +1,10 @@ --- -title: "Create an assistant" +title: "How to Create an AI Assistant" +description: "Learn how to create custom AI coding assistants in Continue Hub by remixing existing assistants or building new ones from scratch with reusable blocks and YAML configuration." +sidebarTitle: "Create an AI Assistant" --- -## Remix an assistant - -You should remix an assistant if you want to use it after some modifications. - -By clicking the “remix” button, you’ll be taken to the “Create a remix” page. - -![Remix Assistant Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png) - -Once here, you’ll be able to - -1. add or remove blocks in YAML configuration -2. change the name, description, icon, etc. - -Clicking “Create assistant” will make this assistant available for use. - -## Create an assistant from scratch +## How to Create an AI Assistant from Scratch To create an assistant from scratch, select “New assistant” in the top bar. @@ -30,3 +17,18 @@ The easiest way to create an assistant is to click "Create assistant" with the d 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. ![New assistant YAML](/images/hub/assistants/images/assistant-create-yaml-a991e5a81506f1c3ba611a664a50734c.png) + +## How to Remix an Assistant + +You can also create an assistant by remixing an existing one. This is useful if you want to start with a pre-configured assistant and make modifications. + +By clicking the “remix” button, you’ll be taken to the “Create a remix” page. + +![Remix Assistant Button](/images/hub/assistants/images/assistant-remix-button-728ececa73983140eeab42e33cc3903b.png) + +Once here, you’ll be able to + +1. add or remove blocks in YAML configuration +2. change the name, description, icon, etc. + +Clicking “Create assistant” will make this assistant available for use. diff --git a/docs/hub/assistants/edit-an-assistant.mdx b/docs/hub/assistants/edit-an-assistant.mdx index b7fa9c2ed..235b01358 100644 --- a/docs/hub/assistants/edit-an-assistant.mdx +++ b/docs/hub/assistants/edit-an-assistant.mdx @@ -1,5 +1,5 @@ --- -title: "Edit an Assistant" +title: "How to Edit an Assistant" description: "New versions of an assistant can be created and published using the sidebar." --- diff --git a/docs/hub/assistants/use-an-assistant.mdx b/docs/hub/assistants/use-an-assistant.mdx index 92f28760a..85257d250 100644 --- a/docs/hub/assistants/use-an-assistant.mdx +++ b/docs/hub/assistants/use-an-assistant.mdx @@ -1,14 +1,19 @@ --- -title: "Use an assistant" -description: "To use an existing assistant, you can explore other assistants ." +title: "How to Use an Assistant" +description: "Learn how to add, configure, and use an AI assistant in Continue, including setting required inputs and selecting it in your IDE extension." --- -Once you've found the assistant you want to use +## Steps to Use an AI Assistant in Continue + +Once you've found the assistant you want to use on Continue Hub: 1. Click “Add Assistant” on its page 2. Add any required inputs (e.g. secrets like API keys) 3. Select “Save changes” in assistant sidebar on the right hand side -After this, you can then go to your IDE extension and begin using the assistant by selecting it from the assistant dropdown. +After saving, open your IDE extension and: + +- Select the assistant from the **assistant dropdown** in the Continue extension. +- Begin using it for chat, code generation, or other configured capabilities. [Extension Assistant Selector](/images/assistant-extension-select-319492a06d6249e5389747687341dfdb.png) diff --git a/docs/hub/blocks/block-types.mdx b/docs/hub/blocks/block-types.mdx index 235d0bd7e..bbcb34f02 100644 --- a/docs/hub/blocks/block-types.mdx +++ b/docs/hub/blocks/block-types.mdx @@ -1,12 +1,14 @@ --- -title: "Block Types" +title: "Block Types in Continue Hub: Models, Context Providers, Prompts, and More" +sideBarTitle: "Block Types" +description: "Explore the different types of reusable blocks in Continue Hub including models, context providers, documentation, MCP servers, rules, prompts, and data components" --- ## Models 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). -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. +Continue supports [many model providers](/customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](/customize/model-roles). View [`models`](/reference#models) in the YAML Reference for more details. ## Context @@ -36,7 +38,8 @@ Learn more in the [rules deep dive](/customize/deep-dives/rules), and view [`rul 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. -Prompt blocks have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts). +Prompt 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. +Prompt blocks have the same syntax as [prompt files](/customize/deep-dives/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts). ## Data diff --git a/docs/hub/blocks/bundles.mdx b/docs/hub/blocks/bundles.mdx index 1ac5cf1cb..681c5c1d7 100644 --- a/docs/hub/blocks/bundles.mdx +++ b/docs/hub/blocks/bundles.mdx @@ -3,9 +3,9 @@ title: "Bundles" 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 ." --- -## Use a bundle +## How to Use a Bundle -Once you know which bundle you want to use, you’ll need to +Once you know which bundle you want to use, you’ll need to: 1. Make sure the correct assistant is in the sidebar 2. Click “Add all blocks". This adds the individual blocks to your assistant. @@ -14,7 +14,7 @@ Once you know which bundle you want to use, you’ll need to 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. -## Create a bundle +## How to Create a Bundle To create a bundle, click “New bundle” in the header. @@ -28,6 +28,6 @@ Then, search blocks using the "Search blocks" input and add them to your bundle. Once you have added all the blocks you want in your bundle, click "Create Bundle" to save it and make it available for use. -## Remix a bundle +## How to Remix a Bundle It is not currently possible to remix a bundle. diff --git a/docs/hub/blocks/create-a-block.mdx b/docs/hub/blocks/create-a-block.mdx index cbf1eca05..2c5dc58fb 100644 --- a/docs/hub/blocks/create-a-block.mdx +++ b/docs/hub/blocks/create-a-block.mdx @@ -1,8 +1,10 @@ --- -title: "Create a block" +title: "How to Create a Block" +sidebarTitle: "Create a Block" +description: "Learn how to create and remix reusable blocks in Continue Hub for sharing configuration components like models, prompts, and tools with customizable inputs and template variables" --- -## Remix a block +## How to Remix a Block You should remix a block if you want to use it after some modifications. @@ -12,7 +14,7 @@ By clicking the “remix” button, you’ll be taken to the “Create a remix 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. -## Create a block from scratch +## How to Create a Block from Scratch To create a block from scratch, you will need to click “New block” in the top bar. @@ -22,6 +24,6 @@ After filling out information on the block, you will want to create a block foll ![New block page](/images/hub/blocks/images/block-new-page-2d7faf71739d0f062d555b5d7257fb56.png) -### Block inputs +### Block Inputs 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. diff --git a/docs/hub/blocks/intro.mdx b/docs/hub/blocks/intro.mdx index 0015b415f..d94f45c77 100644 --- a/docs/hub/blocks/intro.mdx +++ b/docs/hub/blocks/intro.mdx @@ -1,6 +1,6 @@ --- -title: "Introduction" -description: "Blocks are the components you use to build a custom AI code assistant. These include , , , , , , and ." +title: "Introduction to Continue Blocks" +description: "Blocks are the components you use to build a custom AI code assistant. These include models, prompts, tools, context, and more." --- Blocks follow the [`config.yaml`](/reference) format. When combined with other blocks into a complete `config.yaml`, they form a custom AI code assistant. diff --git a/docs/hub/blocks/use-a-block.mdx b/docs/hub/blocks/use-a-block.mdx index 753e8c085..3971dbc63 100644 --- a/docs/hub/blocks/use-a-block.mdx +++ b/docs/hub/blocks/use-a-block.mdx @@ -1,8 +1,10 @@ --- -title: "Use a block" -description: "Blocks can be used by adding them to assistants:" +title: "How to Use a Block" +description: "Learn how to use blocks in Continue Hub to enhance your AI code assistant." --- +Blocks are used to build custom AI code assistants in Continue Hub. Learn more: + - [Create an assistant](/hub/assistants/create-an-assistant) - [Edit an assistant](/hub/assistants/edit-an-assistant) diff --git a/docs/hub/governance/pricing.mdx b/docs/hub/governance/pricing.mdx index 69158b334..3dace0e4b 100644 --- a/docs/hub/governance/pricing.mdx +++ b/docs/hub/governance/pricing.mdx @@ -1,5 +1,6 @@ --- title: "Pricing" +description: "Continue Hub pricing plans for individuals, teams, and enterprises, including the Models Add-On that provides access to frontier AI models for a flat monthly fee" --- ## Solo diff --git a/docs/hub/introduction.mdx b/docs/hub/introduction.mdx index 4bc0c7da4..f10d567cd 100644 --- a/docs/hub/introduction.mdx +++ b/docs/hub/introduction.mdx @@ -1,5 +1,6 @@ --- title: "Introduction" +description: "Continue Hub provides a central registry for creating, managing, and sharing AI coding assistants and their reusable building blocks with organization-level governance and configuration" --- [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). diff --git a/docs/index.mdx b/docs/index.mdx index f6094964c..4df6c30cc 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -1,6 +1,7 @@ --- title: "Introduction" icon: book-open +description: "Continue is an open source platform for building AI-powered coding assistants with customizable components for chat, autocomplete, edit, and agent workflows in VS Code and JetBrains IDEs" --- diff --git a/docs/migrate-i18n.md b/docs/migrate-i18n.md deleted file mode 100644 index cdf0d6eb2..000000000 --- a/docs/migrate-i18n.md +++ /dev/null @@ -1,72 +0,0 @@ -# Internationalization (i18n) Migration Plan - -## Current State - -- Docusaurus has complete Chinese (zh-CN) translations but they're **commented out** in config -- 79 translated markdown files exist in `/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/` -- Theme translations exist in `/docs/i18n/zh-CN/code.json` - -## Mintlify Pro i18n Approach - -- Uses `versions` array in `mint.json` with `locale` values -- Supports Chinese as `cn` locale -- Auto-translates fixed UI text ("Was this page helpful?", etc.) -- Built-in internationalization feature in Mintlify Pro -- Requires manual content translation (which we already have) - -## Migration Steps - -### 1. Add Chinese Version to mint.json - -```json -"versions": [ - { - "name": "English", - "locale": "en" - }, - { - "name": "中文", - "locale": "cn" - } -] -``` - -### 2. Create Chinese Content Structure - -- Create `/docs2/cn/` directory -- Copy translated content from `/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/` -- Update paths and frontmatter for Mintlify format - -### 3. Update Navigation for Chinese - -- Add version specification to navigation groups -- Ensure proper routing for Chinese pages - -### 4. Content Format Migration - -- Convert Docusaurus-specific syntax to Mintlify format -- Update image paths from `/img/` to `/images/` -- Convert components (Info, Warning, Tabs, etc.) - -## Implementation Decision - -For Phase 4, we have two options: - -1. **Enable Chinese translations** - Full migration of existing Chinese content -2. **Document for future** - Create migration plan but defer implementation - -Given that Chinese translations are currently disabled in production, **Option 2** is recommended for Phase 4 to avoid scope creep. The Chinese content is ready and can be migrated when needed. - -## Files to Migrate (if enabled) - -- `/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/` → `/docs2/cn/` -- 79 translated markdown files -- Navigation structure adaptation -- Theme translations (handled automatically by Mintlify) - -## Next Steps - -1. Document the migration approach -2. Create helper scripts for content conversion -3. Test with a small subset of Chinese pages -4. Full migration when Chinese localization is prioritized diff --git a/docs/reference.mdx b/docs/reference.mdx index 06393cc2d..e941beaf7 100644 --- a/docs/reference.mdx +++ b/docs/reference.mdx @@ -1,5 +1,6 @@ --- title: "config.yaml Reference" +description: "Comprehensive guide to the config.yaml format used by Continue.dev for building custom coding assistants. Learn how to define models, context providers, rules, prompts, and more using reusable blocks and YAML configuration." --- ## Introduction @@ -14,7 +15,7 @@ Continue hub assistants are defined using the `config.yaml` specification. Assis Config YAML replaces `config.json`, which is deprecated. View the **[Migration - Guide](/customize/yaml-migration)**. + Guide](/reference/yaml-migration)**. An assistant is made up of: @@ -184,7 +185,7 @@ The `models` section defines the language models used in your configuration. Mod - `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. -- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are `chat`, [`edit`](/customize/model-roles#edit-prompt-templating), [`apply`](/customize/model-roles#apply-prompt-templating) and [`autocomplete`](/customize/model-roles#autocomplete-prompt-templating). The `chat` property must be a valid template name, such as `llama3` or `anthropic`. +- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are [`chat`](), [`edit`](/customize/model-roles/edit#edit-prompt-templating), [`apply`](/customize/model-roles/apply#apply-prompt-templating) and [`autocomplete`](/customize/model-roles/autocomplete#autocomplete-prompt-templating). The `chat` property must be a valid template name, such as `llama3` or `anthropic`. - `chatOptions`: If the model includes role `chat`, these settings apply for Agent and Chat mode: @@ -316,7 +317,7 @@ context: ### `rules` -List of rules that the LLM should follow. These are concatenated into the system message for all [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) requests. See the [rules deep dive](/customization/rules) for details. +List of rules that the LLM should follow. These are concatenated into the system message for all [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) requests. See the [rules deep dive](/customize/deep-dives/rules) for details. Explicit rules can either be simple text or an object with the following properties: @@ -411,7 +412,7 @@ mcpServers: ### `data` -Destinations to which [development data](/customize/overview#development-data) will be sent. +Destinations to which [development data](/customize/deep-dives/development-data) will be sent. **Properties:** diff --git a/docs/reference/json-reference.mdx b/docs/reference/json-reference.mdx index 54fa4d64a..fa57ed5a8 100644 --- a/docs/reference/json-reference.mdx +++ b/docs/reference/json-reference.mdx @@ -18,9 +18,9 @@ Below are details for each property that can be set in `config.json`. The config **All properties at all levels are optional unless explicitly marked required** -### `models` +## `models` -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](/customization/overview#vscode-actions). +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/overview#vscode-actions). Each model has specific configuration options tailored to its provider and functionality, which can be seen as suggestions while editing the json. @@ -85,7 +85,7 @@ config.json } ``` -### `tabAutocompleteModel` +## `tabAutocompleteModel` 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. @@ -137,7 +137,7 @@ config.json } ``` -### `embeddingsProvider` +## `embeddingsProvider` Embeddings model settings - the model used for @Codebase and @docs. @@ -172,7 +172,7 @@ config.json } ``` -### `completionOptions` +## `completionOptions` Parameters that control the behavior of text generation and completion settings. Top-level `completionOptions` apply to all models, _unless overridden at the model level_. @@ -202,7 +202,7 @@ config.json { "completionOptions": { "stream": false, "temperature": 0.5 } } ``` -### `requestOptions` +## `requestOptions` Default HTTP request options that apply to all models and context providers, unless overridden at the model level. @@ -261,7 +261,7 @@ config.json } ``` -### `docs` +## `docs` List of documentation sites to index. @@ -282,7 +282,7 @@ config.json "docs": [ { "title": "Continue", "startUrl": "https://docs.continue.dev/intro", "faviconUrl": "https://docs.continue.dev/favicon.ico", }] ``` -### `slashCommands` +## `slashCommands` Custom commands initiated by typing "/" in the sidebar. Commands include predefined functionality or may be user-defined. @@ -295,7 +295,7 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi The following commands are built-in and can be added to `config.json` to make them visible: -#### `/share` +### `/share` Generate a shareable markdown transcript of your current chat history. @@ -315,7 +315,7 @@ config.json Use the `outputDir` parameter to specify where you want to the markdown file to be saved. -#### `/cmd` +### `/cmd` Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal. @@ -329,7 +329,7 @@ config.json } ``` -#### `/commit` +### `/commit` Shows the LLM your current git diff and asks it to generate a commit message. @@ -346,7 +346,7 @@ config.json } ``` -#### `/http` +### `/http` 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. @@ -364,7 +364,7 @@ config.json } ``` -#### `/issue` +### `/issue` 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. @@ -382,7 +382,7 @@ config.json } ``` -#### `/onboard` +### `/onboard` 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. @@ -463,15 +463,15 @@ config.json } ``` -### `userToken` +## `userToken` An optional token that identifies the user, primarily for authenticated services. -### `systemMessage` +## `systemMessage` Defines a system message that appears before every response from the language model, providing guidance or context. -### `experimental` +## `experimental` Several experimental config parameters are available, as described below: @@ -498,7 +498,7 @@ Several experimental config parameters are available, as described below: - `fix`: Prompt for fixing code. - `optimize`: Prompt for optimizing code. -- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools) +- `modelContextProtocolServers`: See [Model Context Protocol](/customize/deep-dives/mcp) Example @@ -531,7 +531,7 @@ config.json } ``` -### Fully deprecated settings +## Fully deprecated settings 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`. diff --git a/docs/reference/yaml-migration.mdx b/docs/reference/yaml-migration.mdx index 1e585b0a0..4b214f2d2 100644 --- a/docs/reference/yaml-migration.mdx +++ b/docs/reference/yaml-migration.mdx @@ -321,6 +321,7 @@ The following top-level fields from `config.json` still work when using `config. - top-level `completionOptions` - `tabAutocompleteOptions` + - `disable` - `maxPromptTokens` - `debounceDelay` diff --git a/docs/replace-custom-plugins.md b/docs/replace-custom-plugins.md deleted file mode 100644 index 4fd3acc1b..000000000 --- a/docs/replace-custom-plugins.md +++ /dev/null @@ -1,147 +0,0 @@ -# Custom Plugin Replacement Plan - -## Overview - -This document outlines how to replace custom Docusaurus plugins and functionality with Mintlify Pro equivalents. - -## Custom Plugins Analysis - -### 1. Custom LLMs.txt Plugin ✅ BUILT-IN (Mintlify Pro) - -**Current functionality:** - -- Scans HTML files post-build -- Extracts titles, descriptions, URLs from all pages -- Organizes content by sections (Getting Started, Features, Guides, etc.) -- Generates structured `/llms.txt` file for AI model consumption - -**Mintlify Pro replacement:** - -- **Automatic `/llms.txt`** - Lists all available pages automatically -- **Automatic `/llms-full.txt`** - Combines entire documentation into single file -- **AI-optimized** - Specifically designed for LLM consumption -- **No custom code required** - Built-in feature - -**Status:** ✅ Complete - No migration needed - -### 2. Analytics Configuration ✅ BUILT-IN - -**Current:** - -- Google Analytics: `G-M3JWW8N2XQ` -- Custom Reo.dev script - -**Mintlify replacement:** - -- Native Google Analytics support in mint.json -- Custom scripts can be added via mint.json - -### 3. Search Configuration ✅ BUILT-IN - -**Current:** - -- Algolia search (App ID: `0OMUMCQZVV`, Index: `continue`) - -**Mintlify replacement:** - -- Native search functionality built-in -- Can configure Algolia if needed - -### 4. URL Redirects ✅ COMPLETE - -**Status:** Already migrated (145 redirects) in mint.json - -## Implementation Plan - -### Phase 4A: Replace LLMs.txt Plugin - -1. Create `generate-llms-txt.js` script -2. Adapt to work with Mintlify's build structure -3. Test with current docs2 content -4. Add to build process - -### Phase 4B: Add Analytics - -1. Add Google Analytics to mint.json -2. Migrate custom Reo.dev script if needed - -### Phase 4C: Configure Search - -1. Verify Mintlify search works -2. Configure Algolia if required - -## Custom LLMs.txt Script for Mintlify - -```javascript -// generate-llms-txt.js - Adapted for Mintlify -const fs = require("fs"); -const path = require("path"); - -function generateLLMsTxt(buildDir) { - const sections = { - "Getting Started": [], - Features: [], - Guides: [], - Customization: [], - Customize: [], - Hub: [], - Reference: [], - }; - - // Read mint.json to get page structure - const mintJson = JSON.parse(fs.readFileSync("mint.json", "utf8")); - - // Extract page info from navigation - function extractPages(navItems, sectionName = "") { - navItems.forEach((item) => { - if (typeof item === "string") { - // Direct page reference - const pageInfo = getPageInfo(item); - if (pageInfo) { - categorizeContent(pageInfo, sections); - } - } else if (item.group && item.pages) { - // Group with pages - extractPages(item.pages, item.group); - } - }); - } - - extractPages(mintJson.navigation); - - // Generate llms.txt content - generateContent(sections); -} -``` - -## Files to Create - -1. **`/docs2/scripts/generate-llms-txt.js`** - LLMs.txt generator -2. **`/docs2/scripts/build-hooks.js`** - Post-build automation -3. **Update mint.json** - Add analytics and search config - -## Success Criteria - -- [ ] LLMs.txt generated correctly from Mintlify build -- [ ] Analytics tracking matches current setup -- [ ] Search functionality works as expected -- [ ] All redirects function properly -- [ ] No loss of functionality compared to Docusaurus - -## Risk Assessment - -**Low Risk:** - -- Analytics migration (built-in support) -- Search configuration (native functionality) - -**Medium Risk:** - -- LLMs.txt generation (requires custom script) -- Custom JavaScript integration - -**Mitigation:** - -- Test scripts thoroughly before deployment -- Keep Docusaurus version running during transition -- Monitor analytics and search metrics post-migration diff --git a/docs/telemetry.mdx b/docs/telemetry.mdx index 54eca8490..b44bd7e00 100644 --- a/docs/telemetry.mdx +++ b/docs/telemetry.mdx @@ -1,6 +1,7 @@ --- title: "Telemetry" icon: "chart-line" +description: "Learn about Continue's anonymous telemetry collection practices, what usage data is tracked, and how to opt out of data collection to maintain your privacy preferences" --- ## Overview diff --git a/docs/troubleshooting.mdx b/docs/troubleshooting.mdx index d14f282d3..ad44fd0f2 100644 --- a/docs/troubleshooting.mdx +++ b/docs/troubleshooting.mdx @@ -1,5 +1,6 @@ --- title: "Troubleshooting" +description: "Comprehensive guide to resolving common issues with Continue, including logging, keyboard shortcuts, networking problems, model capabilities, and extension configuration troubleshooting" --- 1. [Check the logs](#check-the-logs) @@ -140,7 +141,8 @@ This can be accomplished using the following command: `Continue: Rebuild codebas If Agent mode is grayed out or tools aren't functioning properly, this is likely due to model capability configuration issues. - Continue uses system message tools as a fallback for models without native tool support, so most models should work with Agent mode automatically. + Continue uses system message tools as a fallback for models without native + tool support, so most models should work with Agent mode automatically. #### Check if your model has tool support