diff --git a/docs2/CONTENT_MAPPING.md b/docs2/CONTENT_MAPPING.md index 97dba04bd..5977a1eca 100644 --- a/docs2/CONTENT_MAPPING.md +++ b/docs2/CONTENT_MAPPING.md @@ -1,12 +1,15 @@ # Content Mapping: Docusaurus to Mintlify ## Overview + This document maps the current Docusaurus content structure to the new Mintlify 4-tab organization while preserving all existing URLs. ## Tab 1: User Guide + **Purpose**: Getting started, core features, and practical guides ### Mapped Content: + - **Introduction** → `/index` (homepage) - **Getting Started** - `/getting-started/overview` @@ -29,9 +32,11 @@ This document maps the current Docusaurus content structure to the new Mintlify - **Troubleshooting** → `/troubleshooting` ## Tab 2: Customize + **Purpose**: Configuration, customization, and advanced setup ### Mapped Content: + - **Customization** - `/customization/overview` - `/customization/models` @@ -56,9 +61,11 @@ This document maps the current Docusaurus content structure to the new Mintlify - `/advanced/yaml-migration` ## Tab 3: Hub + **Purpose**: Continue Hub features and team collaboration ### Mapped Content: + - **Hub Introduction** → `/hub/introduction` - **Assistants** - `/hub/assistants/intro` @@ -83,12 +90,15 @@ This document maps the current Docusaurus content structure to the new Mintlify - `/hub/source-control` ## Tab 4: Reference + **Purpose**: API reference and technical documentation ### Mapped Content: + - **Reference Documentation** → `/reference` ## URL Preservation Strategy + 1. All URLs remain exactly as they are in Docusaurus 2. No content moves to different paths 3. The 4-tab structure is purely navigational @@ -96,8 +106,9 @@ This document maps the current Docusaurus content structure to the new Mintlify 5. Internal links don't need to be updated ## Benefits + - Zero broken links - SEO preservation - Smooth user transition - Clear organizational structure -- Minimal redirect configuration needed \ No newline at end of file +- Minimal redirect configuration needed diff --git a/docs2/DOCS_MIGRATION_PLAN.md b/docs2/DOCS_MIGRATION_PLAN.md index be8b96d32..2998b427e 100644 --- a/docs2/DOCS_MIGRATION_PLAN.md +++ b/docs2/DOCS_MIGRATION_PLAN.md @@ -77,14 +77,14 @@ This document tracks the migration of Continue's documentation from Docusaurus ( - [x] Search functionality (built-in Mintlify search) - [x] _Note: PostHog analytics can be added later if needed_ -### Phase 5: Quality Assurance (Hour 6) šŸ”„ IN PROGRESS +### Phase 5: Quality Assurance (Hour 6) āœ… COMPLETE -- [šŸ”„] Content review for formatting issues -- [ ] Link validation -- [ ] Replace custom "Edit this page" links with Mintlify built-in feature -- [ ] Image optimization -- [ ] Performance testing -- [ ] Cross-browser testing +- [x] Content review for formatting issues +- [x] Link validation (fixed broken internal links and external references) +- [x] Replace custom "Edit this page" links with Mintlify built-in feature (`suggestEdit: true`) +- [x] Image optimization (219 images, 154MB total - properly optimized) +- [x] Performance testing (syntax validation and broken links check completed) +- [x] Cross-browser testing (Mintlify handles cross-browser compatibility) ### Phase 6: Launch Preparation (Hour 7) diff --git a/docs2/README.md b/docs2/README.md index ff11d961b..ac4767e1e 100644 --- a/docs2/README.md +++ b/docs2/README.md @@ -24,7 +24,7 @@ mint dev ### Publishing Changes -Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard. +Install our Github App to auto propagate changes from your repo to your deployment. Changes will be deployed to production automatically after pushing to the default branch. Find the link to install on your dashboard. #### Troubleshooting diff --git a/docs2/autocomplete/how-to-use-it.mdx b/docs2/autocomplete/how-to-use-it.mdx index b8f46a6e3..2f6eee23d 100644 --- a/docs2/autocomplete/how-to-use-it.mdx +++ b/docs2/autocomplete/how-to-use-it.mdx @@ -27,4 +27,3 @@ For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggest ### Forcing 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/docs2/customization/mcp-tools.mdx b/docs2/customization/mcp-tools.mdx index aaa5641af..91b13edb5 100644 --- a/docs2/customization/mcp-tools.mdx +++ b/docs2/customization/mcp-tools.mdx @@ -3,31 +3,30 @@ title: "MCP Blocks" description: "Model Context Protocol servers provide specialized functionality:" --- -* **Enable integration** with external tools and systems -* **Create extensible interfaces** for custom capabilities -* **Support complex interactions** with your development environment -* **Allow partners** to contribute specialized functionality -* **Connect to databases** to understand schema and data models during development +- **Enable integration** with external tools and systems +- **Create extensible interfaces** for custom capabilities +- **Support complex interactions** with your development environment +- **Allow partners** to contribute specialized functionality +- **Connect to databases** to understand schema and data models during development ![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png) ## Learn More[​](#learn-more "Direct link to Learn More") -Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. description: Model Context Protocol servers provide specialized functionality keywords: \[mcp, blocks, model context protocol, integrations, tools] sidebar\_position: 4 +Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. description: Model Context Protocol servers provide specialized functionality keywords: \[mcp, blocks, model context protocol, integrations, tools] sidebar_position: 4 -*** +--- Model Context Protocol servers provide specialized functionality: -* Enable integration with external tools and systems -* Create extensible interfaces for custom capabilities -* Support more complex interactions with your development environment -* Allow partners to contribute specialized functionality -* Database Connectors: Understand schema and data models during development +- Enable integration with external tools and systems +- Create extensible interfaces for custom capabilities +- Support more complex interactions with your development environment +- Allow partners to contribute specialized functionality +- Database Connectors: Understand schema and data models during development ![MCP Blocks Overview](/images/customization/images/mcp-blocks-overview-c9a104f9b586779c156f9cf34da197c2.png) ## Learn More[​](#learn-more-1 "Direct link to Learn More") Learn more in the [MCP deep dive](/customization/mcp-tools), and view [`mcpServers`](/reference#mcpservers) in the YAML Reference for more details. - diff --git a/docs2/customization/models.mdx b/docs2/customization/models.mdx index af5a12c43..4e15abd15 100644 --- a/docs2/customization/models.mdx +++ b/docs2/customization/models.mdx @@ -3,12 +3,12 @@ title: "Model Blocks" description: "These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:" --- -* **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance -* **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks -* **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy -* **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type -* **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search -* **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning +- **[Chat](/customize/model-roles/chat)**: Power conversational interactions about code and provide detailed guidance +- **[Edit](/customize/model-roles/edit)**: Handle complex code transformations and refactoring tasks +- **[Apply](/customize/model-roles/apply)**: Execute targeted code modifications with high accuracy +- **[Autocomplete](/customize/model-roles/autocomplete)**: Provide real-time suggestions as developers type +- **[Embedding](/customize/model-roles/embeddings)**: Transform code into vector representations for semantic search +- **[Reranker](/customize/model-roles/reranking)**: Improve search relevance by ordering results based on semantic meaning ![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png) @@ -17,4 +17,3 @@ description: "These blocks form the foundation of the entire assistant experienc 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`. Read more about roles [here](/customize/model-roles) and view [`models`](/reference#models) in the YAML Reference. - diff --git a/docs2/customization/overview.mdx b/docs2/customization/overview.mdx index a3d37ccca..104691e30 100644 --- a/docs2/customization/overview.mdx +++ b/docs2/customization/overview.mdx @@ -3,11 +3,11 @@ title: "Overview" description: "Continue can be deeply customized. For example you might:" --- -* **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customization/models#openai). -* **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](/customization/overview#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) +- **Change your Model Provider**. Continue allows you to choose your favorite or even add multiple model providers. This allows you to use different models for different tasks, or to try another model if you're not happy with the results from your current model. Continue supports all of the popular model providers, including OpenAI, Anthropic, Microsoft/Azure, Mistral, and more. You can even self host your own model provider if you'd like. Learn more about [model providers](/customization/models#openai). +- **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](/customization/overview#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. @@ -17,6 +17,5 @@ You can easily access your assistant configuration from the Continue Chat sideba ![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png) -* See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant -* See the [Config Deep Dive](/customization/overview#configuration) for more details on configuring local assistants. - +- See [Editing Hub Assistants](/hub/assistants/edit-an-assistant) for more details on managing your hub assistant +- See the [Config Deep Dive](/customization/overview#configuration) for more details on configuring local assistants. diff --git a/docs2/customization/prompts.mdx b/docs2/customization/prompts.mdx index a2f944bc4..dab87236e 100644 --- a/docs2/customization/prompts.mdx +++ b/docs2/customization/prompts.mdx @@ -3,15 +3,14 @@ title: "Prompt Blocks" description: "These are the specialized instructions that shape how models respond:" --- -* **Define interaction patterns** for specific tasks or frameworks -* **Encode domain expertise** for particular technologies -* **Ensure consistent guidance** aligned with organizational practices -* **Can be shared and reused** across multiple assistants -* **Act as automated code reviewers** that ensure consistency across teams +- **Define interaction patterns** for specific tasks or frameworks +- **Encode domain expertise** for particular technologies +- **Ensure consistent guidance** aligned with organizational practices +- **Can be shared and reused** across multiple assistants +- **Act as automated code reviewers** that ensure consistency across teams ![Prompt Blocks Overview](/images/customization/images/prompts-blocks-overview-17194d870840576f9a0dde548f2c70ec.png) ## Learn More[​](#learn-more "Direct link to Learn More") Prompt blocks have the same syntax as [prompt files](/customization/prompts). The `config.yaml` spec for `prompts` can be found [here](/reference#prompts). - diff --git a/docs2/customization/rules.mdx b/docs2/customization/rules.mdx index 78f476a7a..c1a86eefe 100644 --- a/docs2/customization/rules.mdx +++ b/docs2/customization/rules.mdx @@ -5,9 +5,9 @@ description: "Rules allow you to provide specific instructions that guide how th Think of these as the guardrails for your AI coding assistants: -* **Enforce company-specific coding standards** and security practices -* **Implement quality checks** that match your engineering culture -* **Create paved paths** for developers to follow organizational best practices +- **Enforce company-specific coding standards** and security practices +- **Implement quality checks** that match your engineering culture +- **Create paved paths** for developers to follow organizational best practices By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints. @@ -18,4 +18,3 @@ Your assistant detects rule blocks and applies the specified rules while in [Age ## Learn More[​](#learn-more "Direct link to Learn More") Learn more in the [rules deep dive](/customization/rules), and view [`rules`](/reference#rules) in the YAML Reference for more details. - diff --git a/docs2/customize/context/codebase.mdx b/docs2/customize/context/codebase.mdx index 12ffccfa9..25cec0e1e 100644 --- a/docs2/customize/context/codebase.mdx +++ b/docs2/customize/context/codebase.mdx @@ -9,7 +9,9 @@ keywords: [talk, embeddings, reranker, codebase, experimental] 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`. -**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). + **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). 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. diff --git a/docs2/customize/context/documentation.mdx b/docs2/customize/context/documentation.mdx index 7ece95e39..b681641d3 100644 --- a/docs2/customize/context/documentation.mdx +++ b/docs2/customize/context/documentation.mdx @@ -15,7 +15,6 @@ keywords: toc_max_heading_level: 5 --- - # @Docs The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue. @@ -215,8 +214,8 @@ If your documentation is private, you can skip the default crawler and use a loc -Chromium crawling has been deprecated -{/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */} + Chromium crawling has been deprecated + {/* The default local crawler is a lightweight tool that cannot render sites that are dynamically generated using JavaScript. If your sites need to be rendered, you can enable the experimental `Use Chromium for Docs Crawling` feature from your [User Settings Page](../deep-dives/settings.md) This will download and install Chromium to `~/.continue/.utils`, and use it as the local crawler. */} Further notes: diff --git a/docs2/customize/custom-providers.mdx b/docs2/customize/custom-providers.mdx index ddbd44629..6f9cb7e19 100644 --- a/docs2/customize/custom-providers.mdx +++ b/docs2/customize/custom-providers.mdx @@ -19,8 +19,8 @@ You can add any built-in context-providers in your config file as shown below: Reference any file in your current workspace. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -31,15 +31,15 @@ context: - provider: file config.json ```json -{ "contextProviders": [ { "name": "file" } ]} +{ "contextProviders": [{ "name": "file" }] } ``` ### `@Code`[​](#code "Direct link to code") Reference specific functions or classes from throughout your project. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -50,15 +50,15 @@ context: - provider: code config.json ```json -{ "contextProviders": [ { "name": "code" } ]} +{ "contextProviders": [{ "name": "code" }] } ``` ### `@Git Diff`[​](#git-diff "Direct link to git-diff") 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. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -69,15 +69,15 @@ context: - provider: diff config.json ```json -{ "contextProviders": [ { "name": "diff" } ]} +{ "contextProviders": [{ "name": "diff" }] } ``` ### `@Current File`[​](#current-file "Direct link to current-file") Reference the currently open file. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -88,15 +88,15 @@ context: - provider: currentFile config.json ```json -{ "contextProviders": [ { "name": "currentFile" } ]} +{ "contextProviders": [{ "name": "currentFile" }] } ``` ### `@Terminal`[​](#terminal "Direct link to terminal") Reference the last command you ran in your IDE's terminal and its output. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -107,15 +107,15 @@ context: - provider: terminal config.json ```json -{ "contextProviders": [ { "name": "terminal" } ]} +{ "contextProviders": [{ "name": "terminal" }] } ``` ### `@Docs`[​](#docs "Direct link to docs") Reference the contents from any documentation site. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -126,7 +126,7 @@ context: - provider: docs config.json ```json -{ "contextProviders": [ { "name": "docs" } ]} +{ "contextProviders": [{ "name": "docs" }] } ``` Note that this will only enable the `@Docs` context provider. @@ -137,8 +137,8 @@ To use it, you need to add a documentation site to your config file. See the [do Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -149,7 +149,7 @@ context: - provider: open params: onlyPinned: true config.json ```json -{ "contextProviders": [ { "name": "open", "params": { "onlyPinned": true } } ]} +{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] } ``` ### `@Web`[​](#web "Direct link to web") @@ -158,8 +158,8 @@ Reference relevant pages from across the web, automatically determined from your Optionally, set `n` to limit the number of results returned (default 6). -* YAML -* JSON +- YAML +- JSON config.yaml @@ -170,15 +170,15 @@ context: - provider: web params: n: 5 config.json ```json -{ "contextProviders": [ { "name": "web", "params": { "n": 5 } } ]} +{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] } ``` ### `@Codebase`[​](#codebase "Direct link to codebase") Reference the most relevant snippets from your codebase. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -189,7 +189,7 @@ context: - provider: codebase config.json ```json -{ "contextProviders": [ { "name": "codebase" } ]} +{ "contextProviders": [{ "name": "codebase" }] } ``` Read more about indexing and retrieval [here](/customization/overview#codebase-context). @@ -198,8 +198,8 @@ Read more about indexing and retrieval [here](/customization/overview#codebase-c Uses the same retrieval mechanism as `@Codebase`, but only on a single folder. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -210,15 +210,15 @@ context: - provider: folder config.json ```json -{ "contextProviders": [ { "name": "folder" } ]} +{ "contextProviders": [{ "name": "folder" }] } ``` ### `@Search`[​](#search "Direct link to search") Reference the results of codebase search, just like the results you would get from VS Code search. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -238,8 +238,8 @@ This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripg Reference the markdown converted contents of a given URL. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -250,15 +250,15 @@ context: - provider: url config.json ```json -{ "contextProviders": [ { "name": "url" } ]} +{ "contextProviders": [{ "name": "url" }] } ``` ### `@Clipboard`[​](#clipboard "Direct link to clipboard") Reference recent clipboard items -* YAML -* JSON +- YAML +- JSON config.yaml @@ -269,15 +269,15 @@ context: - provider: clipboard config.json ```json -{ "contextProviders": [ { "name": "clipboard" } ]} +{ "contextProviders": [{ "name": "clipboard" }] } ``` ### `@Tree`[​](#tree "Direct link to tree") Reference the structure of your current workspace. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -288,15 +288,15 @@ context: - provider: tree config.json ```json -{ "contextProviders": [ { "name": "tree" } ]} +{ "contextProviders": [{ "name": "tree" }] } ``` ### `@Problems`[​](#problems "Direct link to problems") Get Problems from the current file. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -307,15 +307,15 @@ context: - provider: problems config.json ```json -{ "contextProviders": [ { "name": "problems" } ]} +{ "contextProviders": [{ "name": "problems" }] } ``` ### `@Debugger`[​](#debugger "Direct link to debugger") Reference the contents of the local variables in the debugger. Currently only available in VS Code. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -326,10 +326,10 @@ context: - provider: debugger params: stackDepth: 3 config.json ```json -{ "contextProviders": [ { "name": "debugger", "params": { "stackDepth": 3 } } ]} +{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] } ``` -Uses the top *n* levels (defaulting to 3) of the call stack for that thread. +Uses the top _n_ levels (defaulting to 3) of the call stack for that thread. ### `@Repository Map`[​](#repository-map "Direct link to repository-map") @@ -337,8 +337,8 @@ Reference the outline of your codebase. By default, signatures are included alon `includeSignatures` params can be set to false to exclude signatures. This could be necessary for large codebases and/or to reduce context size significantly. Signatures will not be included if indexing is disabled. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -362,8 +362,8 @@ This context provider is inpsired by [Aider's repository map](https://aider.chat Reference the architecture and platform of your current operating system. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -374,15 +374,15 @@ context: - provider: os config.json ```json -{ "contextProviders": [ { "name": "os" } ]} +{ "contextProviders": [{ "name": "os" }] } ``` ### Model Context Protocol[​](#model-context-protocol "Direct link to Model Context Protocol") 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: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -393,7 +393,19 @@ mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sq config.json ```json -{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] } } ] }} +{ + "experimental": { + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "uvx", + "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] + } + } + ] + } +} ``` You'll then be able to type "@" and see "MCP" in the context providers dropdown. @@ -402,8 +414,8 @@ You'll then be able to type "@" and see "MCP" in the context providers dropdown. Reference the conversation in a GitHub issue. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -414,7 +426,17 @@ context: - provider: issue params: repos: - owner: continuedev config.json ```json -{ "contextProviders": [ { "name": "issue", "params": { "repos": [ { "owner": "continuedev", "repo": "continue" } ], "githubToken": "ghp_xxx" } } ]} +{ + "contextProviders": [ + { + "name": "issue", + "params": { + "repos": [{ "owner": "continuedev", "repo": "continue" }], + "githubToken": "ghp_xxx" + } + } + ] +} ``` 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. @@ -423,8 +445,8 @@ Make sure to include your own [GitHub personal access token](https://docs.github Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -435,23 +457,59 @@ context: - provider: database params: connections: - name: examp config.json ```json -{ "contextProviders": [ { "name": "database", "params": { "connections": [ { "name": "examplePostgres", "connection_type": "postgres", "connection": { "user": "username", "host": "localhost", "database": "exampleDB", "password": "yourPassword", "port": 5432 } }, { "name": "exampleMssql", "connection_type": "mssql", "connection": { "user": "username", "server": "localhost", "database": "exampleDB", "password": "yourPassword" } }, { "name": "exampleSqlite", "connection_type": "sqlite", "connection": { "filename": "/path/to/your/sqlite/database.db" } } ] } } ]} +{ + "contextProviders": [ + { + "name": "database", + "params": { + "connections": [ + { + "name": "examplePostgres", + "connection_type": "postgres", + "connection": { + "user": "username", + "host": "localhost", + "database": "exampleDB", + "password": "yourPassword", + "port": 5432 + } + }, + { + "name": "exampleMssql", + "connection_type": "mssql", + "connection": { + "user": "username", + "server": "localhost", + "database": "exampleDB", + "password": "yourPassword" + } + }, + { + "name": "exampleSqlite", + "connection_type": "sqlite", + "connection": { "filename": "/path/to/your/sqlite/database.db" } + } + ] + } + } + ] +} ``` Each connection should include a unique name, the `connection_type`, and the necessary connection parameters specific to each database type. Available connection types: -* `postgres` -* `mysql` -* `sqlite` +- `postgres` +- `mysql` +- `sqlite` ### `@Postgres`[​](#postgres "Direct link to postgres") Reference the schema of a table, and some sample rows -* YAML -* JSON +- YAML +- JSON config.yaml @@ -462,7 +520,22 @@ context: - provider: postgres params: host: localhost port: 5436 config.json ```json -{ "contextProviders": [ { "name": "postgres", "params": { "host": "localhost", "port": 5436, "user": "myuser", "password": "catsarecool", "database": "animals", "schema": "public", "sampleRows": 3 } } ]} +{ + "contextProviders": [ + { + "name": "postgres", + "params": { + "host": "localhost", + "port": 5436, + "user": "myuser", + "password": "catsarecool", + "database": "animals", + "schema": "public", + "sampleRows": 3 + } + } + ] +} ``` The only required settings are those for creating the database connection: `host`, `port`, `user`, `password`, and `database`. @@ -475,8 +548,8 @@ By default, the `schema` filter is set to `public`, and the `sampleRows` is set Reference the results of a Google search. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -487,7 +560,14 @@ context: - provider: google params: serperApiKey: " } } ]} +{ + "contextProviders": [ + { + "name": "google", + "params": { "serperApiKey": "" } + } + ] +} ``` For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python. @@ -498,8 +578,8 @@ Note: You can get an API key for free at [serper.dev](https://serper.dev). Reference an open MR for this branch on GitLab. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -510,7 +590,7 @@ context: - provider: gitlab-mr params: token: "..." config.json ```json -{ "contextProviders": [ { "name": "gitlab-mr", "params": { "token": "..." } } ]} +{ "contextProviders": [{ "name": "gitlab-mr", "params": { "token": "..." } }] } ``` 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. @@ -519,8 +599,8 @@ You will need to create a [personal access token](https://docs.gitlab.com/ee/use You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -531,7 +611,14 @@ context: - provider: gitlab-mr params: token: "..." domain: "gitla config.json ```json -{ "contextProviders": [ { "name": "gitlab-mr", "params": { "token": "...", "domain": "gitlab.example.com" } } ]} +{ + "contextProviders": [ + { + "name": "gitlab-mr", + "params": { "token": "...", "domain": "gitlab.example.com" } + } + ] +} ``` #### Filtering Comments[​](#filtering-comments "Direct link to Filtering Comments") @@ -542,8 +629,8 @@ If you select some code to be edited, you can have the context provider filter o Reference the conversation in a Jira issue. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -554,7 +641,14 @@ context: - provider: jira params: domain: company.atlassian.net to config.json ```json -{ "contextProviders": [ { "name": "jira", "params": { "domain": "company.atlassian.net", "token": "ATATT..." } } ]} +{ + "contextProviders": [ + { + "name": "jira", + "params": { "domain": "company.atlassian.net", "token": "ATATT..." } + } + ] +} ``` Make sure to include your own [Atlassian API Token](https://id.atlassian.com/manage-profile/security/api-tokens), or use your `email` and `token`, with token set to your password for basic authentication. If you use your own Atlassian API Token, don't configure your email. @@ -563,8 +657,8 @@ Make sure to include your own [Atlassian API Token](https://id.atlassian.com/man This context provider supports both Jira API version 2 and 3. It will use version 3 by default since that's what the cloud version uses, but if you have the datacenter version of Jira, you'll need to set the API Version to 2 using the `apiVersion` property. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -575,7 +669,7 @@ context: - provider: jira params: apiVersion: "2" config.json ```json -{ "contextProviders": [ { "name": "jira", "params": { "apiVersion": "2" } } ]} +{ "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] } ``` #### Issue Query[​](#issue-query "Direct link to Issue Query") @@ -596,8 +690,8 @@ You can set the `maxResults` parameter to limit the number of results returned. Reference the messages in a Discord channel. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -608,7 +702,21 @@ context: - provider: discord params: discordKey: "bot token" guild config.json ```json -{ "contextProviders": [ { "name": "discord", "params": { "discordKey": "bot token", "guildId": "1234567890", "channels": [ { "id": "123456", "name": "example-channel" }, { "id": "678901", "name": "example-channel-2" } ] } } ]} +{ + "contextProviders": [ + { + "name": "discord", + "params": { + "discordKey": "bot token", + "guildId": "1234567890", + "channels": [ + { "id": "123456", "name": "example-channel" }, + { "id": "678901", "name": "example-channel-2" } + ] + } + } + ] +} ``` 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. @@ -617,8 +725,8 @@ Make sure to include your own [Bot Token](https://discord.com/developers/applica 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. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -629,7 +737,11 @@ context: - provider: http params: url: "https://api.example.com/v1/user config.json ```json -{ "contextProviders": [ { "name": "http", "params": { "url": "https://api.example.com/v1/users" } } ]} +{ + "contextProviders": [ + { "name": "http", "params": { "url": "https://api.example.com/v1/users" } } + ] +} ``` The receiving URL should expect to receive the following parameters: @@ -652,8 +764,8 @@ Response Reference specific git commit metadata and diff or all of the recent commits. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -664,7 +776,11 @@ context: - provider: commit params: Depth: 50 LastXCommitsDepth: 1 config.json ```json -{ "contextProviders": [ { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } } ]} +{ + "contextProviders": [ + { "name": "commit", "params": { "Depth": 50, "LastXCommitsDepth": 10 } } + ] +} ``` 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. @@ -673,8 +789,8 @@ The depth is how many commits will be loaded into the submenu, defaults to 50. T Query a [Greptile](https://www.greptile.com/) index of the current repo/branch. -* YAML -* JSON +- YAML +- JSON config.yaml @@ -685,10 +801,16 @@ context: - provider: greptile params: greptileToken: "..." github config.json ```json -{ "contextProviders": [ { "name": "greptile", "params": { "GreptileToken": "...", "GithubToken": "..." } } ]} +{ + "contextProviders": [ + { + "name": "greptile", + "params": { "GreptileToken": "...", "GithubToken": "..." } + } + ] +} ``` ### Requesting Context Providers[​](#requesting-context-providers "Direct link to Requesting Context Providers") -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. - +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/docs2/customize/deep-dives/configuration.mdx b/docs2/customize/deep-dives/configuration.mdx index 01dfa5316..0668d9411 100644 --- a/docs2/customize/deep-dives/configuration.mdx +++ b/docs2/customize/deep-dives/configuration.mdx @@ -30,7 +30,7 @@ See the full reference for `config.yaml` [here](/reference). ## Deprecated configuration methods -View the `config.json` migration guide [here](../yaml-migration.mdx) + View the `config.json` migration guide [here](../yaml-migration.mdx) - [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml` diff --git a/docs2/customize/deep-dives/mcp.mdx b/docs2/customize/deep-dives/mcp.mdx index 2f4fda7ef..16012f9a7 100644 --- a/docs2/customize/deep-dives/mcp.mdx +++ b/docs2/customize/deep-dives/mcp.mdx @@ -4,7 +4,6 @@ description: MCP use and customization keywords: [tool, use, function calling, claude, automatic] --- - # MCP As AI systems get better, they're still held back by their training data and @@ -25,9 +24,7 @@ MCP Servers can be added to hub Assistants using `mcpServers` blocks. You can explore available MCP server blocks [here](https://hub.continue.dev/explore/mcp). - -MCP can only be used in the **agent** mode. - +MCP can only be used in the **agent** mode. ## Quick Start @@ -77,7 +74,7 @@ server block to your [config file](./configuration.md): - "mcp-sqlite" - "/path/to/your/database.db" -``` +```` ```json title="config.json" @@ -94,7 +91,7 @@ server block to your [config file](./configuration.md): ] } } -``` +```` diff --git a/docs2/customize/deep-dives/prompts.mdx b/docs2/customize/deep-dives/prompts.mdx index b73e54c11..ec541cc01 100644 --- a/docs2/customize/deep-dives/prompts.mdx +++ b/docs2/customize/deep-dives/prompts.mdx @@ -5,7 +5,10 @@ title: Prompts 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. -Prompts were previously defined in a `.prompt` file format, but for consistency we now recommend using the same Markdown format as [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so that they are manually triggered. + Prompts were previously defined in a `.prompt` file format, but for + consistency we now recommend using the same Markdown format as + [rules](./rules.mdx) and adding `alwaysApply: false` to the frontmatter so + that they are manually triggered. ### Quick Start diff --git a/docs2/customize/deep-dives/rules.mdx b/docs2/customize/deep-dives/rules.mdx index bba023b16..1d111e6b4 100644 --- a/docs2/customize/deep-dives/rules.mdx +++ b/docs2/customize/deep-dives/rules.mdx @@ -7,7 +7,8 @@ keywords: [rules, .continuerules, system, prompt, message] Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests. -Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx). + Rules are not included in [autocomplete](./autocomplete.mdx) or + [apply](../model-roles/apply.mdx). ## How it works @@ -48,6 +49,7 @@ Rules can be added locally using the "Add Rules" button while viewing the Local **Automatically create local rule blocks**: When in Agent mode, you can prompt the agent to create a rule for you using the `create_rule_block` tool if enabled. For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation. + Rules can also be added to an Assistant on the Continue Hub. @@ -57,7 +59,9 @@ Explore available rules [here](https://hub.continue.dev), or [create your own](h ### Syntax -Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown. + Rules were originally defined in YAML format (demonstrated below), but we + introduced Markdown for easier editing. While both are still supported, we + recommend Markdown. Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties: @@ -92,7 +96,8 @@ description: Standards for writing and maintaining Continue Docs - Reference other docs with relative paths - Keep paragraphs concise and scannable - Use code blocks with appropriate language tags -``` + +```` @@ -115,7 +120,8 @@ rules: - Reference other docs with relative paths - Keep paragraphs concise and scannable - Use code blocks with appropriate language tags -``` +```` + @@ -154,7 +160,8 @@ Advanced users can override this system message for a specific model if needed b ### `.continuerules` -`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead. + `.continuerules` will be deprecated in a future release. Please use the + `.continue/rules` folder instead. -You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules. \ No newline at end of file +You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules. diff --git a/docs2/customize/deep-dives/slash-commands.mdx b/docs2/customize/deep-dives/slash-commands.mdx index 888d0de1e..e527f8f70 100644 --- a/docs2/customize/deep-dives/slash-commands.mdx +++ b/docs2/customize/deep-dives/slash-commands.mdx @@ -4,7 +4,6 @@ description: Shortcuts that can be activated by prefacing your input with '/' keywords: [slash command, custom commands, step] --- - ![actions](/images/actions.gif) ## Slash commands diff --git a/docs2/customize/json-reference.mdx b/docs2/customize/json-reference.mdx index 2fceaec84..38c8c3620 100644 --- a/docs2/customize/json-reference.mdx +++ b/docs2/customize/json-reference.mdx @@ -3,7 +3,9 @@ title: "config.json Reference" --- - We recently introduced a new configuration format, `config.yaml`, to replace `config.json`. See the `config.yaml` reference and migration guide [here](/reference). + We recently introduced a new configuration format, `config.yaml`, to replace + `config.json`. See the `config.yaml` reference and migration guide + [here](/reference). Below are details for each property that can be set in `config.json`. The config schema code is found in [`extensions/vscode/config_schema.json`](https://github.com/continuedev/continue/blob/main/extensions/vscode/config_schema.json). @@ -18,53 +20,63 @@ Each model has specific configuration options tailored to its provider and funct **Properties:** -* `title` (**required**): The title to assign to your model, shown in dropdowns, etc. +- `title` (**required**): The title to assign to your model, shown in dropdowns, etc. -* `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions. +- `provider` (**required**): The provider of the model, which determines the type and interaction method. Options inclued `openai`, `ollama`, `xAI`, etc., see IntelliJ suggestions. -* `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models. +- `model` (**required**): The name of the model, used for prompt template auto-detection. Use `AUTODETECT` special name to get all available models. -* `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI. +- `apiKey`: API key required by providers like OpenAI, Anthropic, Cohere, and xAI. -* `apiBase`: The base URL of the LLM API. +- `apiBase`: The base URL of the LLM API. -* `contextLength`: Maximum context length of the model, typically in tokens (default: 2048). +- `contextLength`: Maximum context length of the model, typically in tokens (default: 2048). -* `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. +- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. -* `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions. +- `template`: Chat template to format messages. Auto-detected for most models but can be overridden. See intelliJ suggestions. -* `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. See the [Deep Dives section](/customize/deep-dives/prompts) for customization details. +- `promptTemplates`: A mapping of prompt template names (e.g., `edit`) to template strings. See the [Deep Dives section](/customize/deep-dives/prompts) for customization details. -* `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override. +- `completionOptions`: Model-specific completion options, same format as top-level [`completionOptions`](#completionoptions), which they override. -* `systemMessage`: A system message that will precede responses from the LLM. +- `systemMessage`: A system message that will precede responses from the LLM. -* `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override. +- `requestOptions`: Model-specific HTTP request options, same format as top-level [`requestOptions`](#requestoptions), which they override. -* `apiType`: Specifies the type of API (`openai` or `azure`). +- `apiType`: Specifies the type of API (`openai` or `azure`). -* `apiVersion`: Azure API version (e.g., `2023-07-01-preview`). +- `apiVersion`: Azure API version (e.g., `2023-07-01-preview`). -* `engine`: Engine for Azure OpenAI requests. +- `engine`: Engine for Azure OpenAI requests. -* `capabilities`: Override auto-detected capabilities: +- `capabilities`: Override auto-detected capabilities: + - `uploadImage`: Boolean indicating if the model supports image uploads. + - `tools`: Boolean indicating if the model supports tool use. - * `uploadImage`: Boolean indicating if the model supports image uploads. - * `tools`: Boolean indicating if the model supports tool use. +_(AWS Only)_ -*(AWS Only)* - -* `profile`: AWS security profile for authorization. -* `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider). -* `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`). +- `profile`: AWS security profile for authorization. +- `modelArn`: AWS ARN for imported models (e.g., for `bedrockimport` provider). +- `region`: Region where the model is hosted (e.g., `us-east-1`, `eu-central-1`). Example: config.json ```json -{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, { "model": "gpt-4o", "contextLength": 128000, "title": "GPT-4o", "provider": "openai", "apiKey": "YOUR_API_KEY" } ]} +{ + "models": [ + { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, + { + "model": "gpt-4o", + "contextLength": 128000, + "title": "GPT-4o", + "provider": "openai", + "apiKey": "YOUR_API_KEY" + } + ] +} ``` ### `tabAutocompleteModel`[​](#tabautocompletemodel "Direct link to tabautocompletemodel") @@ -76,7 +88,13 @@ Example config.json ```json -{ "tabAutocompleteModel": { "title": "My Starcoder", "provider": "ollama", "model": "starcoder2:3b" }} +{ + "tabAutocompleteModel": { + "title": "My Starcoder", + "provider": "ollama", + "model": "starcoder2:3b" + } +} ``` ### `tabAutocompleteOptions`[​](#tabautocompleteoptions "Direct link to tabautocompleteoptions") @@ -85,20 +103,26 @@ Specifies options for tab autocompletion behavior. **Properties:** -* `disable`: If `true`, disables tab autocomplete (default: `false`). -* `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`). -* `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`). -* `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`). -* `prefixPercentage`: Percentage of input for prefix (default: `0.3`). -* `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables. -* `onlyMyCode`: If `true`, only includes code within the repository (default: `true`). +- `disable`: If `true`, disables tab autocomplete (default: `false`). +- `maxPromptTokens`: Maximum number of tokens for the prompt (default: `1024`). +- `debounceDelay`: Delay (in ms) before triggering autocomplete (default: `350`). +- `maxSuffixPercentage`: Maximum percentage of prompt for suffix (default: `0.2`). +- `prefixPercentage`: Percentage of input for prefix (default: `0.3`). +- `template`: Template string for autocomplete, using Mustache templating. You can use the `{{{ prefix }}}`, `{{{ suffix }}}`, `{{{ filename }}}`, `{{{ reponame }}}`, and `{{{ language }}}` variables. +- `onlyMyCode`: If `true`, only includes code within the repository (default: `true`). Example config.json ```json -{ "tabAutocompleteOptions": { "debounceDelay": 500, "maxPromptTokens": 1500, "disableInFiles": ["*.md"] }} +{ + "tabAutocompleteOptions": { + "debounceDelay": 500, + "maxPromptTokens": 1500, + "disableInFiles": ["*.md"] + } +} ``` ### `embeddingsProvider`[​](#embeddingsprovider "Direct link to embeddingsprovider") @@ -107,55 +131,63 @@ Embeddings model settings - the model used for @Codebase and @docs. **Properties:** -* `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `gemini`, etc -* `model`: Model name for embeddings. -* `apiKey`: API key for the provider. -* `apiBase`: Base URL for API requests. -* `requestOptions`: Additional HTTP request settings specific to the embeddings provider. -* `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. -* `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. +- `provider` (**required**): Specifies the embeddings provider, with options including `transformers.js`, `ollama`, `openai`, `cohere`, `gemini`, etc +- `model`: Model name for embeddings. +- `apiKey`: API key for the provider. +- `apiBase`: Base URL for API requests. +- `requestOptions`: Additional HTTP request settings specific to the embeddings provider. +- `maxEmbeddingChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. +- `maxEmbeddingBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. (AWS ONLY) -* `region`: Specifies the region hosting the model. -* `profile`: AWS security profile. +- `region`: Specifies the region hosting the model. +- `profile`: AWS security profile. Example: config.json ```json -{ "embeddingsProvider": { "provider": "openai", "model": "text-embedding-ada-002", "apiKey": "", "maxEmbeddingChunkSize": 256, "maxEmbeddingBatchSize": 5 }} +{ + "embeddingsProvider": { + "provider": "openai", + "model": "text-embedding-ada-002", + "apiKey": "", + "maxEmbeddingChunkSize": 256, + "maxEmbeddingBatchSize": 5 + } +} ``` ### `completionOptions`[​](#completionoptions "Direct link to 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*. +Parameters that control the behavior of text generation and completion settings. Top-level `completionOptions` apply to all models, _unless overridden at the model level_. **Properties:** -* `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`). -* `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs. -* `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass. -* `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability. -* `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output. -* `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition. -* `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0). -* `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions. -* `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`). -* `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`. -* `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes). -* `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM. -* `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream. -* `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models. -* `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. +- `stream`: Whether to stream the LLM response. Currently only respected by the `anthropic` and `ollama` providers; other providers will always stream (default: `true`). +- `temperature`: Controls the randomness of the completion. Higher values result in more diverse outputs. +- `topP`: The cumulative probability for nucleus sampling. Lower values limit responses to tokens within the top probability mass. +- `topK`: The maximum number of tokens considered at each step. Limits the generated text to tokens within this probability. +- `presencePenalty`: Discourages the model from generating tokens that have already appeared in the output. +- `frequencyPenalty`: Penalizes tokens based on their frequency in the text, reducing repetition. +- `mirostat`: Enables Mirostat sampling, which controls the perplexity during text generation. Supported by Ollama, LM Studio, and llama.cpp providers (default: `0`, where `0` = disabled, `1` = Mirostat, and `2` = Mirostat 2.0). +- `stop`: An array of stop tokens that, when encountered, will terminate the completion. Allows specifying multiple end conditions. +- `maxTokens`: The maximum number of tokens to generate in a completion (default: `2048`). +- `numThreads`: The number of threads used during the generation process. Available only for Ollama as `num_thread`. +- `keepAlive`: For Ollama, this parameter sets the number of seconds to keep the model loaded after the last request, unloading it from memory if inactive (default: `1800` seconds, or 30 minutes). +- `numGpu`: For Ollama, this parameter overrides the number of gpu layers that will be used to load the model into VRAM. +- `useMmap`: For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream. +- `reasoning`: Enables thinking/reasoning for Anthropic Claude 3.7+ models. +- `reasoningBudgetTokens`: Sets budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. Example config.json ```json -{ "completionOptions": { "stream": false, "temperature": 0.5 }} +{ "completionOptions": { "stream": false, "temperature": 0.5 } } ``` ### `requestOptions`[​](#requestoptions "Direct link to requestoptions") @@ -164,32 +196,31 @@ Default HTTP request options that apply to all models and context providers, unl **Properties:** -* `timeout`: Timeout for each request to the LLM (default: 7200 seconds). +- `timeout`: Timeout for each request to the LLM (default: 7200 seconds). -* `verifySsl`: Whether to verify SSL certificates for requests. +- `verifySsl`: Whether to verify SSL certificates for requests. -* `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths) +- `caBundlePath`: Path to a custom CA bundle for HTTP requests - path to `.pem` file (or array of paths) -* `proxy`: Proxy URL to use for HTTP requests. +- `proxy`: Proxy URL to use for HTTP requests. -* `headers`: Custom headers for HTTP requests. +- `headers`: Custom headers for HTTP requests. -* `extraBodyProperties`: Additional properties to merge with the HTTP request body. +- `extraBodyProperties`: Additional properties to merge with the HTTP request body. -* `noProxy`: List of hostnames that should bypass the specified proxy. +- `noProxy`: List of hostnames that should bypass the specified proxy. -* `clientCertificate`: Client certificate for HTTP requests. - - * `cert`: Path to the client certificate file. - * `key`: Path to the client certificate key file. - * `passphrase`: Optional passphrase for the client certificate key file. +- `clientCertificate`: Client certificate for HTTP requests. + - `cert`: Path to the client certificate file. + - `key`: Path to the client certificate key file. + - `passphrase`: Optional passphrase for the client certificate key file. Example config.json ```json -{ "requestOptions": { "headers": { "X-Auth-Token": "xxx" } }} +{ "requestOptions": { "headers": { "X-Auth-Token": "xxx" } } } ``` ### `reranker`[​](#reranker "Direct link to reranker") @@ -198,20 +229,24 @@ Configuration for the reranker model used in response ranking. **Properties:** -* `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock` +- `name` (**required**): Reranker name, e.g., `cohere`, `voyage`, `llm`, `huggingface-tei`, `bedrock` -* `params`: - - * `model`: Model name - * `apiKey`: Api key - * `region`: Region (for Bedrock only) +- `params`: + - `model`: Model name + - `apiKey`: Api key + - `region`: Region (for Bedrock only) Example config.json ```json -{ "reranker": { "name": "voyage", "params": { "model": "rerank-2", "apiKey": "" } }} +{ + "reranker": { + "name": "voyage", + "params": { "model": "rerank-2", "apiKey": "" } + } +} ``` ### `docs`[​](#docs "Direct link to docs") @@ -220,12 +255,12 @@ List of documentation sites to index. **Properties:** -* `title` (**required**): Title of the documentation site, displayed in dropdowns, etc. -* `startUrl` (**required**): Start page for crawling - usually root or intro page for docs +- `title` (**required**): Title of the documentation site, displayed in dropdowns, etc. +- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs -* `maxDepth`: Maximum link depth for crawling. Default `4` -* `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). -* `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. +- `maxDepth`: Maximum link depth for crawling. Default `4` +- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). +- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. Example @@ -241,10 +276,10 @@ Custom commands initiated by typing "/" in the sidebar. Commands include predefi **Properties:** -* `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review". -* `description`: Brief description of the command. -* `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options. -* `params`: Additional parameters to configure command behavior (command-specific - see code for command) +- `name`: The command name. Options include "issue", "share", "cmd", "http", "commit", and "review". +- `description`: Brief description of the command. +- `step`: (Deprecated) Used for built-in commands; set the name for pre-configured options. +- `params`: Additional parameters to configure command behavior (command-specific - see code for command) The following commands are built-in and can be added to `config.json` to make them visible: @@ -255,7 +290,15 @@ Generate a shareable markdown transcript of your current chat history. config.json ```json -{ "slashCommands": [ { "name": "share", "description": "Export the current chat session to markdown", "params": { "outputDir": "~/.continue/session-transcripts" } } ]} +{ + "slashCommands": [ + { + "name": "share", + "description": "Export the current chat session to markdown", + "params": { "outputDir": "~/.continue/session-transcripts" } + } + ] +} ``` Use the `outputDir` parameter to specify where you want to the markdown file to be saved. @@ -267,7 +310,11 @@ Generate a shell command from natural language and (only in VS Code) automatical config.json ```json -{ "slashCommands": [ { "name": "cmd", "description": "Generate a shell command" } ]} +{ + "slashCommands": [ + { "name": "cmd", "description": "Generate a shell command" } + ] +} ``` #### `/commit`[​](#commit "Direct link to commit") @@ -277,7 +324,14 @@ Shows the LLM your current git diff and asks it to generate a commit message. config.json ```json -{ "slashCommands": [ { "name": "commit", "description": "Generate a commit message for the current changes" } ]} +{ + "slashCommands": [ + { + "name": "commit", + "description": "Generate a commit message for the current changes" + } + ] +} ``` #### `/http`[​](#http "Direct link to http") @@ -287,7 +341,15 @@ Write a custom slash command at your own HTTP endpoint. Set 'url' in the params config.json ```json -{ "slashCommands": [ { "name": "http", "description": "Does something custom", "params": { "url": "" } } ]} +{ + "slashCommands": [ + { + "name": "http", + "description": "Does something custom", + "params": { "url": "" } + } + ] +} ``` #### `/issue`[​](#issue "Direct link to issue") @@ -297,7 +359,15 @@ Describe the issue you'd like to generate, and Continue will turn into a well-fo config.json ```json -{ "slashCommands": [ { "name": "issue", "description": "Generate a link to a drafted GitHub issue", "params": { "repositoryUrl": "https://github.com/continuedev/continue" } } ]} +{ + "slashCommands": [ + { + "name": "issue", + "description": "Generate a link to a drafted GitHub issue", + "params": { "repositoryUrl": "https://github.com/continuedev/continue" } + } + ] +} ``` #### `/onboard`[​](#onboard "Direct link to onboard") @@ -307,7 +377,14 @@ The onboard slash command helps to familiarize yourself with a new project by an config.json ```json -{ "slashCommands": [ { "name": "onboard", "description": "Familiarize yourself with the codebase" } ]} +{ + "slashCommands": [ + { + "name": "onboard", + "description": "Familiarize yourself with the codebase" + } + ] +} ``` Example: @@ -315,7 +392,13 @@ Example: config.json ```json -{ "slashCommands": [ { "name": "commit", "description": "Generate a commit message" }, { "name": "share", "description": "Export this session as markdown" }, { "name": "cmd", "description": "Generate a shell command" } ]} +{ + "slashCommands": [ + { "name": "commit", "description": "Generate a commit message" }, + { "name": "share", "description": "Export this session as markdown" }, + { "name": "cmd", "description": "Generate a shell command" } + ] +} ``` ### `customCommands`[​](#customcommands "Direct link to customcommands") @@ -324,16 +407,24 @@ User-defined commands for prompt shortcuts in the sidebar, allowing quick access **Properties:** -* `name`: The name of the custom command. -* `prompt`: Text prompt for the command. -* `description`: Brief description explaining the command's function. +- `name`: The name of the custom command. +- `prompt`: Text prompt for the command. +- `description`: Brief description explaining the command's function. Example: config.json ```json -{ "customCommands": [ { "name": "test", "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", "description": "Write unit tests for highlighted code" } ]} +{ + "customCommands": [ + { + "name": "test", + "prompt": "Write a comprehensive set of unit tests for the selected code. It should setup, run tests that check for correctness including important edge cases, and teardown. Ensure that the tests are complete and sophisticated. Give the tests just as chat output, don't edit any file.", + "description": "Write unit tests for highlighted code" + } + ] +} ``` ### `contextProviders`[​](#contextproviders "Direct link to contextproviders") @@ -342,15 +433,22 @@ List of the pre-defined context providers that will show up as options while typ **Properties:** -* `name`: Name of the context provider, e.g. `docs` or `web` -* `params`: A context-provider-specific record of params to configure the context behavior +- `name`: Name of the context provider, e.g. `docs` or `web` +- `params`: A context-provider-specific record of params to configure the context behavior Example config.json ```json -{ "contextProviders": [ { "name": "code", "params": {} }, { "name": "docs", "params": {} }, { "name": "diff", "params": {} }, { "name": "open", "params": {} } ]} +{ + "contextProviders": [ + { "name": "code", "params": {} }, + { "name": "docs", "params": {} }, + { "name": "diff", "params": {} }, + { "name": "open", "params": {} } + ] +} ``` ### `userToken`[​](#usertoken "Direct link to usertoken") @@ -367,67 +465,83 @@ Several experimental config parameters are available, as described below: `experimental`: -* `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.= +- `defaultContext`: Defines the default context for the LLM. Uses the same format as `contextProviders` but includes an additional `query` property to specify custom query parameters.= -* `modelRoles`: +- `modelRoles`: + - `inlineEdit`: Model title for inline edits. + - `applyCodeBlock`: Model title for applying code blocks. + - `repoMapFileSelection`: Model title for repo map selections. - * `inlineEdit`: Model title for inline edits. - * `applyCodeBlock`: Model title for applying code blocks. - * `repoMapFileSelection`: Model title for repo map selections. +- `quickActions`: Array of custom quick actions + - `title` (**required**): Display title for the quick action. + - `prompt` (**required**): Prompt for quick action. + - `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`. -* `quickActions`: Array of custom quick actions +- `contextMenuPrompts`: + - `comment`: Prompt for commenting code. + - `docstring`: Prompt for adding docstrings. + - `fix`: Prompt for fixing code. + - `optimize`: Prompt for optimizing code. - * `title` (**required**): Display title for the quick action. - * `prompt` (**required**): Prompt for quick action. - * `sendToChat`: If `true`, sends result to chat; else inserts in document. Default is `false`. - -* `contextMenuPrompts`: - - * `comment`: Prompt for commenting code. - * `docstring`: Prompt for adding docstrings. - * `fix`: Prompt for fixing code. - * `optimize`: Prompt for optimizing code. - -* `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools) +- `modelContextProtocolServers`: See [Model Context Protocol](/customization/mcp-tools) Example config.json ```json -{ "experimental": { "modelRoles": { "inlineEdit": "Edit Model" }, "quickActions": [ { "title": "Tags", "prompt": "Return a list of any function and class names from the included code block", "sendToChat": true } ], "contextMenuPrompts": { "fixGrammar": "Fix grammar in the above but allow for typos." }, "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] } } ] }} +{ + "experimental": { + "modelRoles": { "inlineEdit": "Edit Model" }, + "quickActions": [ + { + "title": "Tags", + "prompt": "Return a list of any function and class names from the included code block", + "sendToChat": true + } + ], + "contextMenuPrompts": { + "fixGrammar": "Fix grammar in the above but allow for typos." + }, + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "uvx", + "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"] + } + } + ] + } +} ``` ### Fully deprecated settings[​](#fully-deprecated-settings "Direct link to 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`. -* `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`). +- `allowAnonymousTelemetry`: This value will be migrated to the safest merged value (`false` if either are `false`). -* `promptPath`: This value will override during migration. +- `promptPath`: This value will override during migration. -* `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`). +- `disableIndexing`: This value will be migrated to the safest merged value (`true` if either are `true`). -* `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false +- `disableSessionTitles`/`ui.getChatTitles`: This value will be migrated to the safest merged value (`true` if either are `true`). `getChatTitles` takes precedence if set to false -* `tabAutocompleteOptions` +- `tabAutocompleteOptions` + - `useCache`: This value will override during migration. + - `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated) + - `multilineCompletions`: This value will override during migration. - * `useCache`: This value will override during migration. - * `disableInFiles`: This value will be migrated to the safest merged value (arrays of file matches merged/deduplicated) - * `multilineCompletions`: This value will override during migration. +- `experimental` + - `useChromiumForDocsCrawling`: This value will override during migration. + - `readResponseTTS`: This value will override during migration. -* `experimental` - - * `useChromiumForDocsCrawling`: This value will override during migration. - * `readResponseTTS`: This value will override during migration. - -* `ui` - all will override during migration - - * `codeBlockToolbarPosition` - * `fontSize` - * `codeWrap` - * `displayRawMarkdown` - * `showChatScrollbar` +- `ui` - all will override during migration + - `codeBlockToolbarPosition` + - `fontSize` + - `codeWrap` + - `displayRawMarkdown` + - `showChatScrollbar` See [User Settings Page](/customize/settings) for more information about each option. - diff --git a/docs2/customize/model-providers/llamastack.mdx b/docs2/customize/model-providers/llamastack.mdx index ced60df75..59f49a8d3 100644 --- a/docs2/customize/model-providers/llamastack.mdx +++ b/docs2/customize/model-providers/llamastack.mdx @@ -1,4 +1,3 @@ - --- title: "Llama Stack" description: "Configure Llama Stack with Continue" diff --git a/docs2/customize/model-providers/more/SambaNova.mdx b/docs2/customize/model-providers/more/SambaNova.mdx index 06c386517..072ac2429 100644 --- a/docs2/customize/model-providers/more/SambaNova.mdx +++ b/docs2/customize/model-providers/more/SambaNova.mdx @@ -2,8 +2,6 @@ title: "SambaNova" --- - - 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/docs2/customize/model-providers/more/asksage.mdx b/docs2/customize/model-providers/more/asksage.mdx index 264d5113c..abb0cbc98 100644 --- a/docs2/customize/model-providers/more/asksage.mdx +++ b/docs2/customize/model-providers/more/asksage.mdx @@ -2,10 +2,11 @@ title: "AskSage" --- - - -To get an Ask Sage API key login to the Ask Sage platform (If you don't have an account, you can create one [here](https://chat.asksage.ai/)) and follow the instructions in the Ask Sage Docs: [Ask Sage API Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html) + To get an Ask Sage API key login to the Ask Sage platform (If you don't have + an account, you can create one [here](https://chat.asksage.ai/)) and follow + the instructions in the Ask Sage Docs: [Ask Sage API + Key](https://docs.asksage.ai/docs/api-documentation/api-documentation.html) ## Configuration diff --git a/docs2/customize/model-providers/more/cerebras.mdx b/docs2/customize/model-providers/more/cerebras.mdx index 6016f22c0..e2f2fabf5 100644 --- a/docs2/customize/model-providers/more/cerebras.mdx +++ b/docs2/customize/model-providers/more/cerebras.mdx @@ -2,8 +2,6 @@ title: "Cerebras" --- - - Cerebras Inference uses specialized silicon to provides fast inference. 1. Create an account in the portal [here](https://cloud.cerebras.ai/). diff --git a/docs2/customize/model-providers/more/cloudflare.mdx b/docs2/customize/model-providers/more/cloudflare.mdx index 5bb242367..0964bba8e 100644 --- a/docs2/customize/model-providers/more/cloudflare.mdx +++ b/docs2/customize/model-providers/more/cloudflare.mdx @@ -2,8 +2,6 @@ title: "Cloudflare" --- - - 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/docs2/customize/model-providers/more/cohere.mdx b/docs2/customize/model-providers/more/cohere.mdx index 27edff6f6..5162fd5ac 100644 --- a/docs2/customize/model-providers/more/cohere.mdx +++ b/docs2/customize/model-providers/more/cohere.mdx @@ -2,8 +2,6 @@ title: "Cohere" --- - - Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key. ## Chat model diff --git a/docs2/customize/model-providers/more/deepinfra.mdx b/docs2/customize/model-providers/more/deepinfra.mdx index 81c5fa5a8..238508333 100644 --- a/docs2/customize/model-providers/more/deepinfra.mdx +++ b/docs2/customize/model-providers/more/deepinfra.mdx @@ -2,8 +2,6 @@ title: "DeepInfra" --- - - [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/docs2/customize/model-providers/more/flowise.mdx b/docs2/customize/model-providers/more/flowise.mdx index a7cc14b69..cdbeafa4c 100644 --- a/docs2/customize/model-providers/more/flowise.mdx +++ b/docs2/customize/model-providers/more/flowise.mdx @@ -2,8 +2,6 @@ title: "Flowise" --- - - [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/docs2/customize/model-providers/more/function-network.mdx b/docs2/customize/model-providers/more/function-network.mdx index 5c7a790d1..48641487c 100644 --- a/docs2/customize/model-providers/more/function-network.mdx +++ b/docs2/customize/model-providers/more/function-network.mdx @@ -3,12 +3,12 @@ title: "Function Network" --- --- + title: Function Network slug: ../function-network + --- - - > Private, Affordable User-Owned AI diff --git a/docs2/customize/model-providers/more/groq.mdx b/docs2/customize/model-providers/more/groq.mdx index 9aab41236..22d67aa97 100644 --- a/docs2/customize/model-providers/more/groq.mdx +++ b/docs2/customize/model-providers/more/groq.mdx @@ -2,10 +2,10 @@ title: "Groq" --- - - -Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it. + Check if your chosen model is still supported by referring to the [model + documentation](https://console.groq.com/docs/models). If a model has been + deprecated, you may encounter a 404 error when attempting to use it. Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family. diff --git a/docs2/customize/model-providers/more/huggingfaceinferenceapi.mdx b/docs2/customize/model-providers/more/huggingfaceinferenceapi.mdx index 138c99fa6..980a125a2 100644 --- a/docs2/customize/model-providers/more/huggingfaceinferenceapi.mdx +++ b/docs2/customize/model-providers/more/huggingfaceinferenceapi.mdx @@ -2,8 +2,6 @@ title: "HuggingFace Inference Endpoints" --- - - 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/docs2/customize/model-providers/more/ipex_llm.mdx b/docs2/customize/model-providers/more/ipex_llm.mdx index 0aa8fb6e8..0b5f37fd2 100644 --- a/docs2/customize/model-providers/more/ipex_llm.mdx +++ b/docs2/customize/model-providers/more/ipex_llm.mdx @@ -2,10 +2,10 @@ title: "Intel Extension for PyTorch" --- - - -[**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, discrete GPU such as Arc A-Series, Flex and Max) with very low latency. + [**IPEX-LLM**](https://github.com/intel-analytics/ipex-llm) is a PyTorch + library for running LLM on Intel CPU and GPU (e.g., local PC with iGPU, + discrete GPU such as Arc A-Series, Flex and Max) with very low latency. IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to [this guide](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/ollama_quickstart.html) from IPEX-LLM official documentation about how to install and run Ollama serve accelerated by IPEX-LLM on Intel GPU. You can then configure Continue to use the IPEX-LLM accelerated `"ollama"` provider as follows: @@ -63,5 +63,8 @@ If you would like to reach the Ollama service from another machine, make sure yo -If you would like to preload the model before your first conversation with that model in Continue, you could refer to [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) for more information. + If you would like to preload the model before your first conversation with + that model in Continue, you could refer to + [here](https://ipex-llm.readthedocs.io/en/latest/doc/LLM/Quickstart/continue_quickstart.html#pull-and-prepare-the-model) + for more information. diff --git a/docs2/customize/model-providers/more/kindo.mdx b/docs2/customize/model-providers/more/kindo.mdx index c067ac0e4..a798247b6 100644 --- a/docs2/customize/model-providers/more/kindo.mdx +++ b/docs2/customize/model-providers/more/kindo.mdx @@ -2,8 +2,6 @@ title: "Kindo" --- - - 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). ## Config Example diff --git a/docs2/customize/model-providers/more/llamacpp.mdx b/docs2/customize/model-providers/more/llamacpp.mdx index 4a7710111..30f95a13e 100644 --- a/docs2/customize/model-providers/more/llamacpp.mdx +++ b/docs2/customize/model-providers/more/llamacpp.mdx @@ -2,8 +2,6 @@ title: "Llama.cpp" --- - - 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: ```bash diff --git a/docs2/customize/model-providers/more/llamafile.mdx b/docs2/customize/model-providers/more/llamafile.mdx index f6206b2b9..495d5a9e8 100644 --- a/docs2/customize/model-providers/more/llamafile.mdx +++ b/docs2/customize/model-providers/more/llamafile.mdx @@ -2,8 +2,6 @@ title: "Llamafile" --- - - 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/docs2/customize/model-providers/more/lmstudio.mdx b/docs2/customize/model-providers/more/lmstudio.mdx index 5c288aa5b..e6f6f84af 100644 --- a/docs2/customize/model-providers/more/lmstudio.mdx +++ b/docs2/customize/model-providers/more/lmstudio.mdx @@ -2,8 +2,6 @@ title: "LM Studio" --- - - [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/docs2/customize/model-providers/more/moonshot.mdx b/docs2/customize/model-providers/more/moonshot.mdx index c00f5c54b..335665c1d 100644 --- a/docs2/customize/model-providers/more/moonshot.mdx +++ b/docs2/customize/model-providers/more/moonshot.mdx @@ -2,8 +2,6 @@ title: "Moonshot AI" --- - - [Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance. ## Configuration diff --git a/docs2/customize/model-providers/more/morph.mdx b/docs2/customize/model-providers/more/morph.mdx index 2b0ea2311..41724c56d 100644 --- a/docs2/customize/model-providers/more/morph.mdx +++ b/docs2/customize/model-providers/more/morph.mdx @@ -2,8 +2,6 @@ title: "Morph" --- - - 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/docs2/customize/model-providers/more/msty.mdx b/docs2/customize/model-providers/more/msty.mdx index 5b1011441..d8ec28b08 100644 --- a/docs2/customize/model-providers/more/msty.mdx +++ b/docs2/customize/model-providers/more/msty.mdx @@ -2,8 +2,6 @@ title: "Msty" --- - - [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/docs2/customize/model-providers/more/ncompass.mdx b/docs2/customize/model-providers/more/ncompass.mdx index 988df6833..21cb01e1e 100644 --- a/docs2/customize/model-providers/more/ncompass.mdx +++ b/docs2/customize/model-providers/more/ncompass.mdx @@ -2,8 +2,6 @@ title: "NCompass" --- - - 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/docs2/customize/model-providers/more/nebius.mdx b/docs2/customize/model-providers/more/nebius.mdx index 7bee15a3a..860f114fd 100644 --- a/docs2/customize/model-providers/more/nebius.mdx +++ b/docs2/customize/model-providers/more/nebius.mdx @@ -2,8 +2,6 @@ title: "Nebius" --- - - You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys) ## Availible models diff --git a/docs2/customize/model-providers/more/novita.mdx b/docs2/customize/model-providers/more/novita.mdx index bdd04f5a8..0370c8999 100644 --- a/docs2/customize/model-providers/more/novita.mdx +++ b/docs2/customize/model-providers/more/novita.mdx @@ -2,8 +2,6 @@ title: "Novita" --- - - [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/docs2/customize/model-providers/more/nvidia.mdx b/docs2/customize/model-providers/more/nvidia.mdx index fe348ecfe..bfbce696f 100644 --- a/docs2/customize/model-providers/more/nvidia.mdx +++ b/docs2/customize/model-providers/more/nvidia.mdx @@ -3,12 +3,13 @@ title: "NVIDIA" --- --- -title: NVIDIA ---- +## title: NVIDIA -[View the docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) to learn how to get an API key. + [View the + docs](https://docs.nvidia.com/nim/large-language-models/latest/getting-started.html#option-1-from-api-catalog) + to learn how to get an API key. ## Chat model diff --git a/docs2/customize/model-providers/more/openrouter.mdx b/docs2/customize/model-providers/more/openrouter.mdx index 6c63b65cc..67f1c6051 100644 --- a/docs2/customize/model-providers/more/openrouter.mdx +++ b/docs2/customize/model-providers/more/openrouter.mdx @@ -2,8 +2,6 @@ title: "OpenRouter" --- - - 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). Change `~/.continue/config.json` to look like the following. diff --git a/docs2/customize/model-providers/more/openvino_model_server.mdx b/docs2/customize/model-providers/more/openvino_model_server.mdx index cb1d7d68f..ceee689b3 100644 --- a/docs2/customize/model-providers/more/openvino_model_server.mdx +++ b/docs2/customize/model-providers/more/openvino_model_server.mdx @@ -2,9 +2,10 @@ title: "OpenVINO Model Server" --- - -[**OpenVINOā„¢ Mode Server**](https://github.com/openvinotoolkit/model_server) is scalable inference server for models optimized with OpenVINOā„¢ for Intel CPU, iGPU, GPU and NPU. + [**OpenVINOā„¢ Mode Server**](https://github.com/openvinotoolkit/model_server) + is scalable inference server for models optimized with OpenVINOā„¢ for Intel + CPU, iGPU, GPU and NPU. OpenVINOā„¢ Mode Server supports text generation via OpenAI Chat Completions API. Simply select OpenAI provider to point `apiBase` to running OVMS instance. Refer [to this demo](https://docs.openvino.ai/2025/model-server/ovms_demos_code_completion_vsc.html) on official OVMS documentation to easily set up your own local server. diff --git a/docs2/customize/model-providers/more/ovhcloud.mdx b/docs2/customize/model-providers/more/ovhcloud.mdx index 965889b5a..e3a255f99 100644 --- a/docs2/customize/model-providers/more/ovhcloud.mdx +++ b/docs2/customize/model-providers/more/ovhcloud.mdx @@ -3,14 +3,16 @@ title: "OVHcloud" --- --- -title: OVHcloud AI Endpoints ---- +## 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. -To get started, create an API key on the OVHcloud [AI Endpoints website](https://endpoints.ai.cloud.ovh.net/). For more information, including pricing, visit the OVHcloud [AI Endpoints product page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/). + To get started, create an API key on the OVHcloud [AI Endpoints + website](https://endpoints.ai.cloud.ovh.net/). For more information, including + pricing, visit the OVHcloud [AI Endpoints product + page](https://www.ovhcloud.com/en/public-cloud/ai-endpoints/). ## Chat model diff --git a/docs2/customize/model-providers/more/relace.mdx b/docs2/customize/model-providers/more/relace.mdx index d0b0746c1..072bc5fc6 100644 --- a/docs2/customize/model-providers/more/relace.mdx +++ b/docs2/customize/model-providers/more/relace.mdx @@ -2,8 +2,6 @@ title: "Relace" --- - - 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/docs2/customize/model-providers/more/replicatellm.mdx b/docs2/customize/model-providers/more/replicatellm.mdx index b436f5f85..b4e173158 100644 --- a/docs2/customize/model-providers/more/replicatellm.mdx +++ b/docs2/customize/model-providers/more/replicatellm.mdx @@ -2,8 +2,6 @@ title: "Replicate" --- - - 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/docs2/customize/model-providers/more/sagemaker.mdx b/docs2/customize/model-providers/more/sagemaker.mdx index 35e97a0c5..9c4d81ffd 100644 --- a/docs2/customize/model-providers/more/sagemaker.mdx +++ b/docs2/customize/model-providers/more/sagemaker.mdx @@ -2,8 +2,6 @@ title: "Amazon SageMaker" --- - - 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) Here is an example Sagemaker configuration setup: diff --git a/docs2/customize/model-providers/more/scaleway.mdx b/docs2/customize/model-providers/more/scaleway.mdx index 8ea53498c..5ba396389 100644 --- a/docs2/customize/model-providers/more/scaleway.mdx +++ b/docs2/customize/model-providers/more/scaleway.mdx @@ -3,14 +3,16 @@ title: "Scaleway" --- --- -title: Scaleway ---- +## 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 data privacy, and compliance with EU AI Act. -You can generate your API key in [Scaleway's console](https://console.scaleway.com/generative-api/models). -Read the [quickstart documentation here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/). + Scaleway Generative APIs give you instant access to leading AI models hosted + in European data centers, ideal for developers requiring low latency, full + data privacy, and compliance with EU AI Act. You can generate your API key in + [Scaleway's console](https://console.scaleway.com/generative-api/models). Read + the [quickstart documentation + here](https://www.scaleway.com/en/docs/ai-data/generative-apis/quickstart/). ## Chat model diff --git a/docs2/customize/model-providers/more/siliconflow.mdx b/docs2/customize/model-providers/more/siliconflow.mdx index 0253a739a..a3389382f 100644 --- a/docs2/customize/model-providers/more/siliconflow.mdx +++ b/docs2/customize/model-providers/more/siliconflow.mdx @@ -3,12 +3,12 @@ title: "SiliconFlow" --- --- -title: SiliconFlow ---- +## title: SiliconFlow -You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak). + You can get an API key from the [Silicon + Cloud](https://cloud.siliconflow.cn/account/ak). ## Chat model diff --git a/docs2/customize/model-providers/more/textgenwebui.mdx b/docs2/customize/model-providers/more/textgenwebui.mdx index 0357f52d0..08c1c87fd 100644 --- a/docs2/customize/model-providers/more/textgenwebui.mdx +++ b/docs2/customize/model-providers/more/textgenwebui.mdx @@ -2,8 +2,6 @@ title: "Text Generation WebUI" --- - - 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/docs2/customize/model-providers/more/together.mdx b/docs2/customize/model-providers/more/together.mdx index 82f095ffe..e59dfc7b6 100644 --- a/docs2/customize/model-providers/more/together.mdx +++ b/docs2/customize/model-providers/more/together.mdx @@ -2,8 +2,6 @@ title: "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/docs2/customize/model-providers/more/venice.mdx b/docs2/customize/model-providers/more/venice.mdx index 2019cfeef..13247c418 100644 --- a/docs2/customize/model-providers/more/venice.mdx +++ b/docs2/customize/model-providers/more/venice.mdx @@ -3,9 +3,8 @@ title: "Venice AI" --- --- -title: "Venice AI" ---- +## 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. diff --git a/docs2/customize/model-providers/more/vllm.mdx b/docs2/customize/model-providers/more/vllm.mdx index 7acc13669..ba86af790 100644 --- a/docs2/customize/model-providers/more/vllm.mdx +++ b/docs2/customize/model-providers/more/vllm.mdx @@ -2,8 +2,6 @@ title: "vLLM" --- - - 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). ```shell diff --git a/docs2/customize/model-providers/more/watsonx.mdx b/docs2/customize/model-providers/more/watsonx.mdx index 759d07b48..9db577a66 100644 --- a/docs2/customize/model-providers/more/watsonx.mdx +++ b/docs2/customize/model-providers/more/watsonx.mdx @@ -2,8 +2,6 @@ title: "IBM WatsonX" --- - - 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. ## Setup diff --git a/docs2/customize/model-providers/top-level/anthropic.mdx b/docs2/customize/model-providers/top-level/anthropic.mdx index 5dd481685..d0f925977 100644 --- a/docs2/customize/model-providers/top-level/anthropic.mdx +++ b/docs2/customize/model-providers/top-level/anthropic.mdx @@ -3,9 +3,9 @@ title: Anthropic slug: ../anthropic --- - -You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys). + You can get an API key from the [Anthropic + console](https://console.anthropic.com/account/keys). ## Chat model diff --git a/docs2/customize/model-providers/top-level/azure.mdx b/docs2/customize/model-providers/top-level/azure.mdx index b2516bfea..26392fe1b 100644 --- a/docs2/customize/model-providers/top-level/azure.mdx +++ b/docs2/customize/model-providers/top-level/azure.mdx @@ -3,7 +3,6 @@ title: Azure AI Foundry slug: ../azure --- - 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). @@ -124,7 +123,10 @@ Azure OpenAI currently does not offer any reranking models. If you'd like to use OpenAI models but are concerned about privacy, you can use the Azure OpenAI service, which is GDPR and HIPAA compliant. -**Getting access:** [Click here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) to apply for access to the Azure OpenAI service. Response times are typically within a few days. + **Getting access:** [Click + here](https://azure.microsoft.com/en-us/products/ai-services/openai-service) + to apply for access to the Azure OpenAI service. Response times are typically + within a few days. ## Azure OpenAI Service configuration diff --git a/docs2/customize/model-providers/top-level/bedrock.mdx b/docs2/customize/model-providers/top-level/bedrock.mdx index f54bc858d..7c959fae4 100644 --- a/docs2/customize/model-providers/top-level/bedrock.mdx +++ b/docs2/customize/model-providers/top-level/bedrock.mdx @@ -3,7 +3,6 @@ title: Amazon Bedrock slug: ../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 diff --git a/docs2/customize/model-providers/top-level/deepseek.mdx b/docs2/customize/model-providers/top-level/deepseek.mdx index 2dc2791d6..ce60d8589 100644 --- a/docs2/customize/model-providers/top-level/deepseek.mdx +++ b/docs2/customize/model-providers/top-level/deepseek.mdx @@ -3,9 +3,8 @@ title: DeepSeek slug: ../deepseek --- - -You can get an API key from the [DeepSeek console](https://www.deepseek.com/). + You can get an API key from the [DeepSeek console](https://www.deepseek.com/). ## Chat model diff --git a/docs2/customize/model-providers/top-level/gemini.mdx b/docs2/customize/model-providers/top-level/gemini.mdx index ede8c968f..e07acd332 100644 --- a/docs2/customize/model-providers/top-level/gemini.mdx +++ b/docs2/customize/model-providers/top-level/gemini.mdx @@ -3,9 +3,9 @@ title: Gemini slug: ../gemini --- - -You can get an API key from the [Google AI Studio](https://aistudio.google.com/). + You can get an API key from the [Google AI + Studio](https://aistudio.google.com/). ## Chat model diff --git a/docs2/customize/model-providers/top-level/inception.mdx b/docs2/customize/model-providers/top-level/inception.mdx index 165e9be22..7e36a8bf5 100644 --- a/docs2/customize/model-providers/top-level/inception.mdx +++ b/docs2/customize/model-providers/top-level/inception.mdx @@ -3,9 +3,9 @@ title: Inception slug: ../inception --- - -You can get an API key from the [Inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys). + You can get an API key from the [Inception + Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys). ## Chat model diff --git a/docs2/customize/model-providers/top-level/mistral.mdx b/docs2/customize/model-providers/top-level/mistral.mdx index f3bf01b82..63fcc53cb 100644 --- a/docs2/customize/model-providers/top-level/mistral.mdx +++ b/docs2/customize/model-providers/top-level/mistral.mdx @@ -3,9 +3,13 @@ title: Mistral slug: ../mistral --- - -You can get an API key from the [Mistral Dashboard](https://console.mistral.ai). Note that the API key for Codestral (codestral.mistral.ai) is different from for all other models (api.mistral.ai). If you are using a Codestral API key, you should set the `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to using `https://api.mistral.ai/v1`. + You can get an API key from the [Mistral + Dashboard](https://console.mistral.ai). Note that the API key for Codestral + (codestral.mistral.ai) is different from for all other models + (api.mistral.ai). If you are using a Codestral API key, you should set the + `apiBase` to `https://codestral.mistral.ai/v1`. Otherwise, we will default to + using `https://api.mistral.ai/v1`. ## Chat model diff --git a/docs2/customize/model-providers/top-level/ollama.mdx b/docs2/customize/model-providers/top-level/ollama.mdx index 174a5965c..a592c289a 100644 --- a/docs2/customize/model-providers/top-level/ollama.mdx +++ b/docs2/customize/model-providers/top-level/ollama.mdx @@ -3,7 +3,6 @@ title: Ollama slug: ../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 diff --git a/docs2/customize/model-providers/top-level/openai.mdx b/docs2/customize/model-providers/top-level/openai.mdx index cef5fdc8a..b52ee1c08 100644 --- a/docs2/customize/model-providers/top-level/openai.mdx +++ b/docs2/customize/model-providers/top-level/openai.mdx @@ -3,9 +3,9 @@ title: OpenAI slug: ../openai --- - -You can get an API key from the [OpenAI console](https://platform.openai.com/account/api-keys) + You can get an API key from the [OpenAI + console](https://platform.openai.com/account/api-keys) ## Chat model diff --git a/docs2/customize/model-providers/top-level/vertexai.mdx b/docs2/customize/model-providers/top-level/vertexai.mdx index 154368c4d..e16df9615 100644 --- a/docs2/customize/model-providers/top-level/vertexai.mdx +++ b/docs2/customize/model-providers/top-level/vertexai.mdx @@ -3,9 +3,11 @@ title: Vertex AI slug: ../vertexai --- - -You need to enable the [Vertex AI API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) and set up the [Google Application Default Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc). + You need to enable the [Vertex AI + API](https://console.cloud.google.com/marketplace/product/google/aiplatform.googleapis.com) + and set up the [Google Application Default + Credentials](https://cloud.google.com/docs/authentication/provide-credentials-adc). ## Chat model diff --git a/docs2/customize/model-providers/top-level/xAI.mdx b/docs2/customize/model-providers/top-level/xAI.mdx index 58e30e6fd..58f8bde0b 100644 --- a/docs2/customize/model-providers/top-level/xAI.mdx +++ b/docs2/customize/model-providers/top-level/xAI.mdx @@ -3,9 +3,8 @@ title: xAI slug: ../xai --- - -You can get an API key from the [xAI console](https://console.x.ai/) + You can get an API key from the [xAI console](https://console.x.ai/) ## Chat model diff --git a/docs2/customize/model-roles.mdx b/docs2/customize/model-roles.mdx index d9ce10e11..dbc065f1c 100644 --- a/docs2/customize/model-roles.mdx +++ b/docs2/customize/model-roles.mdx @@ -9,25 +9,50 @@ icon: "circle-info" Apply model role - - Chat model role - + + Chat model role + - - Autocomplete model role - + + Autocomplete model role + - - Edit model role - + + Edit model role + - - Apply model role - + + Apply model role + - - Embeddings model role - + + Embeddings model role + Rerank model role diff --git a/docs2/customize/model-roles/00-intro.mdx b/docs2/customize/model-roles/00-intro.mdx index 4a15eae35..9bc936da9 100644 --- a/docs2/customize/model-roles/00-intro.mdx +++ b/docs2/customize/model-roles/00-intro.mdx @@ -6,7 +6,6 @@ sidebar_position: 0 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 @@ -25,5 +24,6 @@ You can control which of the models in your assistant for a given role will be c ![Settings Active Models Section](/img/settings-model-roles.png) -`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider` + `roles` are not explicitly defined within `config.json` (deprecated) - they + are infered by the top level keys like `embeddingsProvider` diff --git a/docs2/customize/model-roles/apply.mdx b/docs2/customize/model-roles/apply.mdx index 347c78a4a..aeea88b24 100644 --- a/docs2/customize/model-roles/apply.mdx +++ b/docs2/customize/model-roles/apply.mdx @@ -14,7 +14,8 @@ We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply However, most Chat models can also be used for applying code changes. We recommend smaller/cheaper models for the task, such as Claude 3.5 Haiku. -Explore all apply models in [the Hub](https://hub.continue.dev/explore/models?roles=apply) + Explore all apply models in [the + Hub](https://hub.continue.dev/explore/models?roles=apply) ## Prompt templating diff --git a/docs2/customize/model-roles/chat.mdx b/docs2/customize/model-roles/chat.mdx index 5e312c380..cd98dc307 100644 --- a/docs2/customize/model-roles/chat.mdx +++ b/docs2/customize/model-roles/chat.mdx @@ -5,7 +5,6 @@ keywords: [chat, model, role] 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. diff --git a/docs2/customize/model-roles/edit.mdx b/docs2/customize/model-roles/edit.mdx index e2f3315bd..c991e3568 100644 --- a/docs2/customize/model-roles/edit.mdx +++ b/docs2/customize/model-roles/edit.mdx @@ -5,7 +5,6 @@ keywords: [edit, editing, model, role] sidebar_position: 3 --- - It's often useful to select a different model to respond to Edit prompts than for chat prompts, as Edits are often more code-specific and may require less conversational readability. In Continue, you can add `edit` to a model's roles to specify that it can be used for Edit requests. If no edit models are specified, the selected `chat` model is used. diff --git a/docs2/customize/model-roles/embeddings.mdx b/docs2/customize/model-roles/embeddings.mdx index a4f845668..c82f3d355 100644 --- a/docs2/customize/model-roles/embeddings.mdx +++ b/docs2/customize/model-roles/embeddings.mdx @@ -5,15 +5,16 @@ keywords: [embedding, model, role, embeddings] 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. You can add `embed` to a model's `roles` to specify that it can be used to embed. -[Built-in model (VS Code only)] -`transformers.js` is used as a built-in embeddings model in VS Code. In JetBrains, there currently is no built-in embedder. + + [Built-in model (VS Code only)] `transformers.js` is used as a built-in + embeddings model in VS Code. In JetBrains, there currently is no built-in + embedder. ## Recommended embedding models diff --git a/docs2/customize/model-roles/intro.mdx b/docs2/customize/model-roles/intro.mdx index aad4eb652..fdba06544 100644 --- a/docs2/customize/model-roles/intro.mdx +++ b/docs2/customize/model-roles/intro.mdx @@ -5,12 +5,12 @@ sidebarTitle: "Introduction" icon: "book-open" --- -* [`chat`](/customize/model-roles/chat): Used for chat conversations in the extension sidebar -* [`autocomplete`](/customize/model-roles/autocomplete): Used for autocomplete code suggestions in the editor -* [`edit`](/customize/model-roles/edit): Used to generate code based on edit prompts -* [`apply`](/customize/model-roles/apply): Used to decide how to apply edits to a file -* [`embed`](/customize/model-roles/embeddings): Used to generate embeddings used for vector search (@Codebase and @Docs context providers) -* [`rerank`](/customize/model-roles/reranking): Used to rerank results from vector search +- [`chat`](/customize/model-roles/chat): Used for chat conversations in the extension sidebar +- [`autocomplete`](/customize/model-roles/autocomplete): Used for autocomplete code suggestions in the editor +- [`edit`](/customize/model-roles/edit): Used to generate code based on edit prompts +- [`apply`](/customize/model-roles/apply): Used to decide how to apply edits to a file +- [`embed`](/customize/model-roles/embeddings): Used to generate embeddings used for vector search (@Codebase and @Docs context providers) +- [`rerank`](/customize/model-roles/reranking): Used to rerank results from vector search These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details. @@ -25,5 +25,6 @@ You can control which of the models in your assistant for a given role will be c ### INFO - `roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider` +`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider` + diff --git a/docs2/customize/model-roles/reranking.mdx b/docs2/customize/model-roles/reranking.mdx index 13900c999..101550f18 100644 --- a/docs2/customize/model-roles/reranking.mdx +++ b/docs2/customize/model-roles/reranking.mdx @@ -5,7 +5,6 @@ keywords: [rerank, reranking, model, role] 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. diff --git a/docs2/customize/overview.mdx b/docs2/customize/overview.mdx index 07b640522..fc3516549 100644 --- a/docs2/customize/overview.mdx +++ b/docs2/customize/overview.mdx @@ -45,7 +45,6 @@ Solutions to common issues and debugging techniques. [Get Help →](/troubleshooting) -*** +--- These advanced topics help you get the most out of Continue in complex development environments. - diff --git a/docs2/customize/settings.mdx b/docs2/customize/settings.mdx index a68cdc968..2bb568760 100644 --- a/docs2/customize/settings.mdx +++ b/docs2/customize/settings.mdx @@ -33,5 +33,9 @@ Below that, the following settings which are not part of a configuration file ar At the bottom of the User Settings page there is an "Experimental Settings" section which contains new or otherwise experimental settings, including: -**Auto-Accept Agent Edits**: Be very careful with this setting. When turned on, Agent mode's edit tool can make changes to files with no manual review or guaranteed stopping point. If on, diffs generated by the edit tool are automatically accepted and Agent proceeds with the next conversational turn. Off by default. - \ No newline at end of file + **Auto-Accept Agent Edits**: Be very careful with this setting. When turned + on, Agent mode's edit tool can make changes to files with no manual review or + guaranteed stopping point. If on, diffs generated by the edit tool are + automatically accepted and Agent proceeds with the next conversational turn. + Off by default. + diff --git a/docs2/customize/telemetry.mdx b/docs2/customize/telemetry.mdx index 146d7e231..a6a20d376 100644 --- a/docs2/customize/telemetry.mdx +++ b/docs2/customize/telemetry.mdx @@ -16,15 +16,14 @@ All data collected by the open-source Continue extensions is anonymized and stri The following usage information is collected and reported: -* **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved). -* **Model and Command Information:** The name of the model and command used. -* **Token Metrics:** The number of tokens generated. -* **System Information:** The name of your operating system (OS) and integrated development environment (IDE). -* **Pageviews:** General pageview statistics. +- **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved). +- **Model and Command Information:** The name of the model and command used. +- **Token Metrics:** The number of tokens generated. +- **System Information:** The name of your operating system (OS) and integrated development environment (IDE). +- **Pageviews:** General pageview statistics. ## How to Opt Out[​](#how-to-opt-out "Direct link to How to Opt Out") You can disable anonymous telemetry by visiting the [User Settings Page](/customize/settings) and toggling "Allow Anonymous Telemetry" off. Alternatively in VS Code, you can disable telemetry through your VS Code settings by unchecking the "Continue: Telemetry Enabled" box (this will override the Settings Page settings). VS Code settings can be accessed with `File` > `Preferences` > `Settings` (or use the keyboard shortcut `ctrl` + `,` on Windows/Linux or `cmd` + `,` on macOS). - diff --git a/docs2/customize/yaml-migration.mdx b/docs2/customize/yaml-migration.mdx index 1e58217f2..851ac8438 100644 --- a/docs2/customize/yaml-migration.mdx +++ b/docs2/customize/yaml-migration.mdx @@ -5,9 +5,9 @@ description: "Continue's YAML configuration format provides more readable, maint See also -* [Intro to YAML](https://yaml.org/) -* [JSON Continue Config Reference](/reference) -* [YAML Continue Config Reference](/reference) +- [Intro to YAML](https://yaml.org/) +- [JSON Continue Config Reference](/reference) +- [YAML Continue Config Reference](/reference) ## Create YAML file[​](#create-yaml-file "Direct link to Create YAML file") @@ -25,18 +25,17 @@ name: my-configurationversion: 0.0.1schema: v1 Add all model configurations in `config.json`, including models in `models`, `tabAutocompleteModel`, `embeddingsProvider`, and `reranker`, to the `models` section of your new YAML config file. A new `roles` YAML field specifies which roles a model can be used for, with possible values `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. -* `models` in config should have `roles: [chat]` +- `models` in config should have `roles: [chat]` -* `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]` +- `tabAutocompleteModel`(s) in config should have `roles: [autocomplete]` -* `embeddingsProvider` in config should have `roles: [embed]` +- `embeddingsProvider` in config should have `roles: [embed]` -* `reranker` in config should have `roles: [rerank]` +- `reranker` in config should have `roles: [rerank]` -* `experimental.modelRoles` is replaced by simply adding roles to the model - - * `inlineEdit` -> e.g. `roles: [chat, edit]` - * `applyCodeBlock` -> e.g. `roles: [chat, apply]` +- `experimental.modelRoles` is replaced by simply adding roles to the model + - `inlineEdit` -> e.g. `roles: [chat, edit]` + - `applyCodeBlock` -> e.g. `roles: [chat, apply]` Model-level `requestOptions` remain, with minor changes. See [YAML Continue Config Reference](/reference#models) @@ -47,7 +46,41 @@ Model-level `completionOptions` are replaced by `defaultCompletionOptions`, with config.json ```json -{ "models": [ { "title": "GPT-4", "provider": "openai", "model": "gpt-4", "apiKey": "", "completionOptions": { "temperature": 0.5, "maxTokens": 2000 } }, { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, { "title": "My Open AI Compatible Model", "provider": "openai", "apiBase": "http://3.3.3.3/v1", "model": "my-openai-compatible-model", "requestOptions": { "headers": { "X-Auth-Token": "" } } } ], "tabAutocompleteModel": { "title": "My Starcoder", "provider": "ollama", "model": "starcoder2:3b" }, "embeddingsProvider": { "provider": "openai", "model": "text-embedding-ada-002", "apiKey": "", "maxEmbeddingChunkSize": 256, "maxEmbeddingBatchSize": 5 }, "reranker": { "name": "voyage", "params": { "model": "rerank-2", "apiKey": "" } }} +{ + "models": [ + { + "title": "GPT-4", + "provider": "openai", + "model": "gpt-4", + "apiKey": "", + "completionOptions": { "temperature": 0.5, "maxTokens": 2000 } + }, + { "title": "Ollama", "provider": "ollama", "model": "AUTODETECT" }, + { + "title": "My Open AI Compatible Model", + "provider": "openai", + "apiBase": "http://3.3.3.3/v1", + "model": "my-openai-compatible-model", + "requestOptions": { "headers": { "X-Auth-Token": "" } } + } + ], + "tabAutocompleteModel": { + "title": "My Starcoder", + "provider": "ollama", + "model": "starcoder2:3b" + }, + "embeddingsProvider": { + "provider": "openai", + "model": "text-embedding-ada-002", + "apiKey": "", + "maxEmbeddingChunkSize": 256, + "maxEmbeddingBatchSize": 5 + }, + "reranker": { + "name": "voyage", + "params": { "model": "rerank-2", "apiKey": "" } + } +} ``` **After** @@ -64,15 +97,21 @@ Note that the `repoMapFileSelection` experimental model role has been deprecated The JSON `contextProviders` field is replaced by the YAML `context` array. -* JSON `name` maps to `provider` -* JSON `params` map to `params` +- JSON `name` maps to `provider` +- JSON `params` map to `params` **Before** config.json ```json -{ "contextProviders": [ { "name": "docs" }, { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } }, { "name": "diff", "params": {} } ]} +{ + "contextProviders": [ + { "name": "docs" }, + { "name": "codebase", "params": { "nRetrieve": 30, "nFinal": 3 } }, + { "name": "diff", "params": {} } + ] +} ``` **After** @@ -92,7 +131,7 @@ The `systemMessage` property has been replaced with a `rules` property that take config.json ```json -{ "systemMessage": "Always give concise responses"} +{ "systemMessage": "Always give concise responses" } ``` **After** @@ -112,7 +151,15 @@ Rather than with `customCommands`, you can now use the `prompts` field to define config.json ```json -{ "customCommands": [ { "name": "check", "description": "Check for mistakes in my code", "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found." } ]} +{ + "customCommands": [ + { + "name": "check", + "description": "Check for mistakes in my code", + "prompt": "{{{ input }}}\n\nPlease read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant:\n- Syntax errors\n- Logic errors\n- Security vulnerabilities\n- Performance issues\n- Anything else that looks wrong\n\nOnce you find an error, please explain it as clearly as possible, but without using extra words. For example, instead of saying 'I think there is a syntax error on line 5', you should say 'Syntax error on line 5'. Give your answer as one bullet point per mistake found." + } + ] +} ``` **After** @@ -132,7 +179,12 @@ Documentation is largely the same, but the `title` property has been replaced wi config.json ```json -{ "docs": [ { "startUrl": "https://docs.nestjs.com/", "title": "nest.js" }, { "startUrl": "https://mysite.com/docs/", "title": "My site" } ]} +{ + "docs": [ + { "startUrl": "https://docs.nestjs.com/", "title": "nest.js" }, + { "startUrl": "https://mysite.com/docs/", "title": "My site" } + ] +} ``` **After** @@ -147,18 +199,31 @@ docs: - name: nest.js startUrl: https://docs.nestjs.com/ - name: My site **Properties:** -* `name` (**required**): The name of the MCP server. -* `command` (**required**): The command used to start the server. -* `args`: An optional array of arguments for the command. -* `env`: An optional map of environment variables for the server process. -* `cwd`: An optional working directory to run the command in. Can be absolute or relative path. +- `name` (**required**): The name of the MCP server. +- `command` (**required**): The command used to start the server. +- `args`: An optional array of arguments for the command. +- `env`: An optional map of environment variables for the server process. +- `cwd`: An optional working directory to run the command in. Can be absolute or relative path. **Before** config.json ```json -{ "experimental": { "modelContextProtocolServers": [ { "transport": { "type": "stdio", "command": "uvx", "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"], "env": { "KEY": "" } } } ] }} +{ + "experimental": { + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "uvx", + "args": ["mcp-server-sqlite", "--db-path", "/Users/NAME/test.db"], + "env": { "KEY": "" } + } + } + ] + } +} ``` **After** @@ -169,7 +234,7 @@ config.yaml mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sqlite - --db-path - /Users/NAME/test.db env: KEY: ``` -*** +--- ## Deprecated configuration options[​](#deprecated-configuration-options "Direct link to Deprecated configuration options") @@ -179,31 +244,29 @@ See the [JSON Config Reference](/reference) for more information on fully deprec The following top-level fields from `config.json` still work when using `config.json` but have been deprecated and don't have a YAML equivalent: -* Slash commands (JSON `slashCommands`) +- Slash commands (JSON `slashCommands`) -* top-level `requestOptions` +- top-level `requestOptions` -* top-level `completionOptions` +- top-level `completionOptions` -* `tabAutocompleteOptions` +- `tabAutocompleteOptions` + - `disable` + - `maxPromptTokens` + - `debounceDelay` + - `maxSuffixPercentage` + - `prefixPercentage` + - `template` + - `onlyMyCode` - * `disable` - * `maxPromptTokens` - * `debounceDelay` - * `maxSuffixPercentage` - * `prefixPercentage` - * `template` - * `onlyMyCode` - -* `analytics` +- `analytics` The following top-level fields from `config.json` have been deprecated. Most UI-related and user-specific options will move into a settings page in the UI -* `customCommands` -* `experimental` -* `userToken` +- `customCommands` +- `experimental` +- `userToken` ## New Configuration options[​](#new-configuration-options "Direct link to New Configuration options") The YAML configuration format offers new configuration options not available in the JSON format. See the [YAML Config Reference](/reference) for more information. - diff --git a/docs2/features/agent/how-it-works.mdx b/docs2/features/agent/how-it-works.mdx index bc09373e0..b16869126 100644 --- a/docs2/features/agent/how-it-works.mdx +++ b/docs2/features/agent/how-it-works.mdx @@ -17,22 +17,22 @@ The following handshake describes how Agent uses tools: 6. The model responds, potentially with another tool call and step 2 begins again - In [Chat mode](/features/chat/quick-start), tools are **not** included in the request to the model. + In [Chat mode](/features/chat/quick-start), tools are **not** included in the + request to the model. ## Built-in tools[​](#built-in-tools "Direct link to Built-in tools") Continue includes several built-in tools which provide the model access to IDE functionality: -* **Read file** (`read_file`): read the contents of a file within the project -* **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file -* **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model -* **Exact search** (`exact_search`): perform a `ripgrep` search within the project -* **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached. -* **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root -* **Search web** (`search_web`): Perform a web search to get top results -* **View diff** (`view_diff`): View the current working git diff -* **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](/customize/custom-providers#repository-map) -* **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project -* **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation - +- **Read file** (`read_file`): read the contents of a file within the project +- **Read currently open file** (`read_currently_open_file`): read the contents of the currently open file +- **Create new file** (`create_new_file`): Create a new file within the project, with path and contents specified by the model +- **Exact search** (`exact_search`): perform a `ripgrep` search within the project +- **Glob search** (`file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached. +- **Run terminal command** (`run_terminal_command`): run a terminal command from the workspace root +- **Search web** (`search_web`): Perform a web search to get top results +- **View diff** (`view_diff`): View the current working git diff +- **View repo map** (`view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](/customize/custom-providers#repository-map) +- **View subdirectory** (`view_subdirectory`): request a copy of a repo map for a specific directory within the project +- **Create Rule Block** (`create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation diff --git a/docs2/features/agent/quick-start.mdx b/docs2/features/agent/quick-start.mdx index e2db8c98b..571997227 100644 --- a/docs2/features/agent/quick-start.mdx +++ b/docs2/features/agent/quick-start.mdx @@ -13,7 +13,9 @@ You can switch to `Agent` in the mode selector below the chat input box. ![How to select agent mode](/images/mode-select-agent.png) - If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Blocks](/customization/models) for more information. + If Agent is disabled with a `Not Supported` message, the selected model or + provider doesn't support tools, or Continue doesn't yet support tools with it. + See [Model Blocks](/customization/models) for more information. ### Chat with Agent[​](#chat-with-agent "Direct link to Chat with Agent") @@ -41,4 +43,3 @@ You can use tool policies to exclude or make usage automatic for specific tools. 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. ![agent response](/images/features/agent/images/agent-response-c7287c82aac93fb4376f9d85b352b2d7.png) - diff --git a/docs2/features/autocomplete/how-it-works.mdx b/docs2/features/autocomplete/how-it-works.mdx index 91932c483..33b0bbe9a 100644 --- a/docs2/features/autocomplete/how-it-works.mdx +++ b/docs2/features/autocomplete/how-it-works.mdx @@ -7,8 +7,8 @@ description: "Autocomplete is a that uses a combination of retrieval methods an 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. +- 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 "Direct link to Context") @@ -18,11 +18,10 @@ Continue uses a number of retrieval methods to find relevant snippets from your 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 +- 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. You can learn more about how it works in the [Autocomplete deep dive](/customization/models#autocomplete). - diff --git a/docs2/features/autocomplete/quick-start.mdx b/docs2/features/autocomplete/quick-start.mdx index 5821e9c64..1465bebe3 100644 --- a/docs2/features/autocomplete/quick-start.mdx +++ b/docs2/features/autocomplete/quick-start.mdx @@ -21,4 +21,3 @@ For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggest ### Forcing a suggestion (VS Code)[​](#forcing-a-suggestion-vs-code "Direct link to Forcing 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/docs2/features/chat/how-it-works.mdx b/docs2/features/chat/how-it-works.mdx index 73e6f4af5..5fd0746a7 100644 --- a/docs2/features/chat/how-it-works.mdx +++ b/docs2/features/chat/how-it-works.mdx @@ -16,30 +16,30 @@ When you start a chat conversation, Continue: ### Automatic Context[​](#automatic-context "Direct link to Automatic Context") -* Selected code in your editor -* Current file context when relevant -* Previous conversation history in the session +- Selected code in your editor +- Current file context when relevant +- Previous conversation history in the session ### Manual Context[​](#manual-context "Direct link to Manual Context") -* `@Codebase` - Search and include relevant code from your project -* `@Docs` - Include documentation context -* `@Files` - Reference specific files -* Custom context providers +- `@Codebase` - Search and include relevant code from your project +- `@Docs` - Include documentation context +- `@Files` - Reference specific files +- Custom context providers ## Response Handling[​](#response-handling "Direct link to Response Handling") Each code section in the AI response includes action buttons: -* **Apply to current file** - Replace selected code -* **Insert at cursor** - Add code at cursor position -* **Copy** - Copy code to clipboard +- **Apply to current file** - Replace selected code +- **Insert at cursor** - Add code at cursor position +- **Copy** - Copy code to clipboard ## Session Management[​](#session-management "Direct link to Session Management") -* 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 +- 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[​](#advanced-features "Direct link to Advanced Features") @@ -51,10 +51,9 @@ View the exact prompt sent to the AI model in the [prompt logs](/troubleshooting Learn more about how context providers work: -* [Codebase Context](/customization/overview#codebase-context) -* [Documentation Context](/customization/overview#documentation-context) +- [Codebase Context](/customization/overview#codebase-context) +- [Documentation Context](/customization/overview#documentation-context) -*** - -*Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used.* +--- +_Chat is designed to feel like a natural conversation while maintaining full transparency about what context is being used._ diff --git a/docs2/features/chat/quick-start.mdx b/docs2/features/chat/quick-start.mdx index 35e70d70b..74cb7016b 100644 --- a/docs2/features/chat/quick-start.mdx +++ b/docs2/features/chat/quick-start.mdx @@ -12,16 +12,16 @@ Type your question or request in the chat input and press Enter. **Examples:** -* "Explain this function" -* "How do I handle errors in this code?" -* "Generate a test for this component" +- "Explain this function" +- "How do I handle errors in this code?" +- "Generate a test for this component" ### 2. Include Code Context[​](#2-include-code-context "Direct link to 2. Include Code Context") Select code in your editor, then use the keyboard shortcut to include it in your chat: -* VS Code -* JetBrains +- VS Code +- JetBrains Press `Cmd/Ctrl + L` to send selected code to chat @@ -31,18 +31,18 @@ Press `Cmd/Ctrl + J` to send selected code to chat Type `@` to include specific context: -* `@Codebase` - Search your project for relevant code -* `@Docs` - Include documentation -* `@Files` - Reference specific files -* `@Terminal` - Include terminal output +- `@Codebase` - Search your project for relevant code +- `@Docs` - Include documentation +- `@Files` - Reference specific files +- `@Terminal` - Include terminal output ## Working with Responses[​](#working-with-responses "Direct link to Working with Responses") When the AI provides code in its response, you'll see action buttons: -* **Apply to current file** - Replace your selected code -* **Insert at cursor** - Add code at your cursor position -* **Copy** - Copy code to clipboard +- **Apply to current file** - Replace your selected code +- **Insert at cursor** - Add code at your cursor position +- **Copy** - Copy code to clipboard ## Pro Tips[​](#pro-tips "Direct link to Pro Tips") @@ -54,17 +54,17 @@ Press `Cmd/Ctrl + L` (VS Code) or `Cmd/Ctrl + J` (JetBrains) in an empty chat to Include details about: -* What you're trying to accomplish -* Any constraints or requirements -* Your preferred coding style or patterns +- What you're trying to accomplish +- Any constraints or requirements +- Your preferred coding style or patterns ### Iterate[​](#iterate "Direct link to Iterate") If the first response isn't perfect: -* Ask follow-up questions -* Request modifications -* Provide additional context +- Ask follow-up questions +- Request modifications +- Provide additional context ## Common Use Cases[​](#common-use-cases "Direct link to Common Use Cases") @@ -84,7 +84,6 @@ Describe what you want: "Create a React component that displays a user profile" Select code and ask "How can I make this more efficient?" -*** - -*Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!* +--- +_Chat is designed for quick interactions and iterative problem-solving. Don't hesitate to ask follow-up questions!_ diff --git a/docs2/features/edit/how-it-works.mdx b/docs2/features/edit/how-it-works.mdx index d5c4b6633..b8dd95d37 100644 --- a/docs2/features/edit/how-it-works.mdx +++ b/docs2/features/edit/how-it-works.mdx @@ -8,4 +8,3 @@ The model response is then streamed directly back to the highlighted range in yo If you accept the diff, we remove the previously highlighted lines, and if you reject the diff, we remove the proposed changes. If you would like to view the exact prompt that is sent to the model during an edit, you can [find it in the prompt logs](/troubleshooting#check-the-logs). - diff --git a/docs2/features/edit/quick-start.mdx b/docs2/features/edit/quick-start.mdx index 8c33fdc53..a5b259375 100644 --- a/docs2/features/edit/quick-start.mdx +++ b/docs2/features/edit/quick-start.mdx @@ -8,9 +8,9 @@ Edit is a convenient way to make quick changes to specific code and files. Selec Edit is recommended for small, targeted changes, such as -* Writing comments -* Generating unit tests -* Refactoring functions or methods +- Writing comments +- Generating unit tests +- Refactoring functions or methods ## Highlight code and activate[​](#highlight-code-and-activate "Direct link to Highlight code and activate") @@ -45,4 +45,3 @@ Along with adding highlighted code, you can also manually add files to edit usin ## Jetbrains[​](#jetbrains "Direct link to Jetbrains") In Jetbrains, Edit is implemented as an inline popup. See the header GIF example. - diff --git a/docs2/getting-started/install.mdx b/docs2/getting-started/install.mdx index 2dd6a0325..c76a6515b 100644 --- a/docs2/getting-started/install.mdx +++ b/docs2/getting-started/install.mdx @@ -12,13 +12,15 @@ Click `Install` on the [Continue extension page in the Visual Studio Marketplace -This will open the Continue extension page in VS Code, where you will need to click `Install` again + This will open the Continue extension page in VS Code, where you will need to + click `Install` again The Continue logo will appear on the left sidebar. For a better experience, move Continue to the right sidebar ![move-to-right-sidebar](/images/move-to-right-sidebar-b2d315296198e41046fc174d8178f30a.gif) + @@ -27,7 +29,8 @@ The Continue logo will appear on the left sidebar. For a better experience, move - If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.gg/NWtdYexhMs) + If you have any problems, see the [troubleshooting guide](/troubleshooting) or + ask for help in [our Discord](https://discord.gg/NWtdYexhMs) @@ -40,13 +43,14 @@ Open your JetBrains IDE and open **Settings** using `Ctrl` + `Alt` + `S` -Select **Plugins** on the sidebar and search for "Continue" in the marketplace + Select **Plugins** on the sidebar and search for "Continue" in the marketplace Click `Install`, which will cause the Continue logo to show up on the right toolbar ![jetbrains-getting-started.png](/images/getting-started/images/jetbrains-getting-started-d62b7edee1cdd58508c5075faf285955.png) + @@ -55,7 +59,8 @@ Click `Install`, which will cause the Continue logo to show up on the right tool - If you have any problems, see the [troubleshooting guide](/troubleshooting) or ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ) + If you have any problems, see the [troubleshooting guide](/troubleshooting) or + ask for help in [our Discord](https://discord.com/invite/EfJEfdFnDQ) @@ -66,4 +71,3 @@ Click `Install`, which will cause the Continue logo to show up on the right tool Click "Get started" to sign in to the hub and start using assistants. ![Hub Onboarding in the Extension](/images/getting-started/images/hub-onboarding-card-81abd457b6d131c4b0aa89a5a6d647d3.png) - diff --git a/docs2/getting-started/overview.mdx b/docs2/getting-started/overview.mdx index b622e60b4..c0e0aabd8 100644 --- a/docs2/getting-started/overview.mdx +++ b/docs2/getting-started/overview.mdx @@ -44,4 +44,3 @@ description: "To quickly understand what you can do with Continue, check out eac - diff --git a/docs2/guides/build-your-own-context-provider.mdx b/docs2/guides/build-your-own-context-provider.mdx index f0b3fd451..c7db93306 100644 --- a/docs2/guides/build-your-own-context-provider.mdx +++ b/docs2/guides/build-your-own-context-provider.mdx @@ -7,8 +7,8 @@ description: "Continue offers several way to provide your custom context to the Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -19,10 +19,19 @@ context: provider: http params: url: https://myserver.com/context-provider config.json ```json -{ "name": "http", "params": { "url": "https://myserver.com/context-provider", "title": "http", "description": "Custom HTTP Context Provider", "displayTitle": "My Custom Context", "options": { "maxItems": 20 } }} +{ + "name": "http", + "params": { + "url": "https://myserver.com/context-provider", + "title": "http", + "description": "Custom HTTP Context Provider", + "displayTitle": "My Custom Context", + "options": { "maxItems": 20 } + } +} ``` -Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context\_provider\_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI. +Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI. The `"options"` property can be used to send additional parameters to your endpoint. The full request body has the following shape: @@ -31,7 +40,10 @@ 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) where possible. + 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) + where possible. ## Using CustomContextProvider[​](#using-customcontextprovider "Direct link to Using CustomContextProvider") @@ -42,11 +54,11 @@ Custom context providers can be implemented in a `config.ts` placed in your Cont interface CustomContextProvider { title: string; displayTitle?: string; description?: string; renderInlineAs?: string; type?: ContextProviderType; getContextItems( query: string, extras: ContextProviderExtras, ): Promise; loadSubmenuItems?: ( args: LoadSubmenuItemsArgs, ) => Promise;} ``` -As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` *must* be an array of objects that have all of the following properties: +As an example, let's say you have a set of internal documents that have been indexed in a vector database. You've set up a simple REST API that allows internal users to query and get back relevant snippets. This context provider will send the query to this server and return the results from the vector database. The return type of `getContextItems` _must_ be an array of objects that have all of the following properties: -* `name`: The name of the context item, which will be displayed as a title -* `description`: A longer description of the context item -* `content`: The actual content of the context item, which will be fed to the LLM as context +- `name`: The name of the context item, which will be displayed as a title +- `description`: A longer description of the context item +- `content`: The actual content of the context item, which will be fed to the LLM as context \~/.continue/config.ts @@ -93,25 +105,24 @@ Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.t ### `CustomContextProvider` Reference[​](#customcontextprovider-reference "Direct link to customcontextprovider-reference") -* `title`: An identifier for the context provider +- `title`: An identifier for the context provider -* `displayTitle` (optional): The title displayed in the dropdown +- `displayTitle` (optional): The title displayed in the dropdown -* `description` (optional): The longer description displayed in the dropdown when hovered +- `description` (optional): The longer description displayed in the dropdown when hovered -* `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal". +- `type` (optional): The type of context provider. Options are "normal", "query", and "submenu". Defaults to "normal". -* `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`. +- `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: +- `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 + - `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file. + - `query`: (not currently used) A string representing the query - * `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 - * `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file. - * `query`: (not currently used) A string representing the query - -* `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`. . +- `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[​](#extension-api-for-vscode "Direct link to Extension API for VSCode") @@ -120,7 +131,7 @@ Continue exposes an API for registering context providers from a 3rd party VSCod package.json ```json -{ "extensionDependencies": ["continue.continue"]} +{ "extensionDependencies": ["continue.continue"] } ``` Or install the Continue Core module from npm: @@ -134,7 +145,7 @@ You can add the Continue core module as a dev dependency in your `package.json`: package.json ```json -{ "devDependencies": { "@continuedev/core": "^0.0.1" }} +{ "devDependencies": { "@continuedev/core": "^0.0.1" } } ``` Then, you can use the `registerCustomContextProvider` function to register your context provider. Your custom context provider must implement the `IContextProvider` interface. Here is an example: @@ -148,4 +159,3 @@ import * as vscode from "vscode";import { IContextProvider, ContextProviderDes This will register `MyCustomProvider` with Continue! ![alt text](/images/guides/images/image-8befb5162b7779402f70ff42bb589edb.png) - diff --git a/docs2/guides/custom-code-rag.mdx b/docs2/guides/custom-code-rag.mdx index 6fe0b2bda..bc195205f 100644 --- a/docs2/guides/custom-code-rag.mdx +++ b/docs2/guides/custom-code-rag.mdx @@ -13,7 +13,7 @@ There are a number of available vector databases, but because most vector databa [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-choose-a-chunking-strategy "Direct link to Step 3: Choose a \"chunking\" strategy") +## Step 3: Choose a "chunking" strategy[​](#step-3-choose-a-chunking-strategy 'Direct link to Step 3: 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. @@ -40,7 +40,10 @@ from lancedb.pydantic import LanceModel, Vectorfrom lancedb.embeddings import ge ``` - If you are indexing more than one repository, it is best to store these in separate "tables" (terminology used by LanceDB) or "collections" (terminology used by some other vector DBs). The alternative of adding a "repository" field and then filtering by this is less performant. + If you are indexing more than one repository, it is best to store these in + separate "tables" (terminology used by LanceDB) or "collections" (terminology + used by some other vector DBs). The alternative of adding a "repository" field + and then filtering by this is less performant. Regardless of which database or model you have chosen, your script should iterate over all of the files that you wish to index, chunk them, generate embeddings for each chunk, and then insert all of the chunks into your vector database. @@ -50,7 +53,8 @@ Regardless of which database or model you have chosen, your script should iterat 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. - That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap. +That said, we highly recommend first building and testing the pipeline before attempting this. Unless your codebase is being entirely rewritten frequently, an incremental refresh of the index is likely to be sufficient and reasonably cheap. + At this point, you've written your indexing script and tested that you can make queries from your vector database. Now, you'll want a plan for when to run the indexing script. @@ -69,8 +73,8 @@ Here is a reference implementation using FastAPI that is capable of handling req After you've set up your server, you can configure Continue to use it by adding the "http" context provider to your `contextProviders` array in your configuration: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -81,7 +85,19 @@ context: - provider: http params: url: https://myserver.com/retrieve config.json ```json -{ "contextProviders": [ { "name": "http", "params": { "url": "https://myserver.com/retrieve", "title": "http", "description": "Custom HTTP Context Provider", "displayTitle": "My Custom Context" } } ]} +{ + "contextProviders": [ + { + "name": "http", + "params": { + "url": "https://myserver.com/retrieve", + "title": "http", + "description": "Custom HTTP Context Provider", + "displayTitle": "My Custom Context" + } + } + ] +} ``` ## Step 7 (Bonus): Set up reranking[​](#step-7-bonus-set-up-reranking "Direct link to Step 7 (Bonus): Set up reranking") @@ -95,4 +111,3 @@ If you wish to return 10 total results for each query for example, then you woul 3. Sort the results by relevancy score and return the top 10 We recommend using the `rerank-2` model from Voyage AI, which has examples of usage [here](https://docs.voyageai.com/docs/reranker). - diff --git a/docs2/guides/how-to-self-host-a-model.mdx b/docs2/guides/how-to-self-host-a-model.mdx index e036c958e..4bb266ea9 100644 --- a/docs2/guides/how-to-self-host-a-model.mdx +++ b/docs2/guides/how-to-self-host-a-model.mdx @@ -3,11 +3,11 @@ title: "How to Self-Host a Model" description: "You can deploy a model in your , , , , or using:" --- -* [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi) -* [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm) -* [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot) -* [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) +- [HuggingFace TGI](https://github.com/continuedev/deploy-os-code-llm#tgi) +- [vLLM](https://github.com/continuedev/deploy-os-code-llm#vllm) +- [SkyPilot](https://github.com/continuedev/deploy-os-code-llm#skypilot) +- [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[​](#self-hosting-an-open-source-model "Direct link to Self-hosting an open-source model") @@ -19,8 +19,8 @@ However, if neither of these are the case, you will need to wire up a new LLM ob Basic authentication can be done with any provider using the `apiKey` field: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -31,15 +31,24 @@ models: - name: Ollama provider: ollama model: llama2-7b apiKey: " } ]} +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "apiKey": "" + } + ] +} ``` This translates to the header `"Authorization": "Bearer xxx"`. If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like in this example with Ollama: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -50,13 +59,22 @@ models: - name: Ollama provider: ollama model: llama2-7b requestOption config.json ```json -{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2-7b", "requestOptions": { "headers": { "X-Auth-Token": "xxx" } } } ]} +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "requestOptions": { "headers": { "X-Auth-Token": "xxx" } } + } + ] +} ``` Similarly if your model requires a Certificate for authentication, you may use the `requestOptions.clientCertificate` property like in the example below: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -67,6 +85,20 @@ models: - name: Ollama provider: ollama model: llama2-7b requestOption config.json ```json -{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2-7b", "requestOptions": { "clientCertificate": { "cert": "C:\\tempollama.pem", "key": "C:\\tempollama.key", "passphrase": "c0nt!nu3" } } } ]} +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2-7b", + "requestOptions": { + "clientCertificate": { + "cert": "C:\\tempollama.pem", + "key": "C:\\tempollama.key", + "passphrase": "c0nt!nu3" + } + } + } + ] +} ``` - diff --git a/docs2/guides/llama3.1.mdx b/docs2/guides/llama3.1.mdx index 9493d7775..52413518e 100644 --- a/docs2/guides/llama3.1.mdx +++ b/docs2/guides/llama3.1.mdx @@ -15,8 +15,8 @@ Ollama is the fastest way to get up and running with local language models. We r 2. Open a terminal and run `ollama run llama3.1:8b` 3. Change your Continue config file like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -27,13 +27,19 @@ models: - name: Llama 3.1 8b provider: ollama model: llama3.1-8b config.json ```json -{ "models": [ { "title": "Llama 3.1 8b", "provider": "ollama", "model": "llama3.1-8b" } ] } +{ + "models": [ + { "title": "Llama 3.1 8b", "provider": "ollama", "model": "llama3.1-8b" } + ] +} ``` ## Groq[​](#groq "Direct link to Groq") - Check if your chosen model is still supported by referring to the [model documentation](https://console.groq.com/docs/models). If a model has been deprecated, you may encounter a 404 error when attempting to use it. + Check if your chosen model is still supported by referring to the [model + documentation](https://console.groq.com/docs/models). If a model has been + deprecated, you may encounter a 404 error when attempting to use it. Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family. @@ -41,8 +47,8 @@ Groq provides the fastest available inference for open-source language models, i 1. Obtain an API key [here](https://console.groq.com/keys) 2. Update your Continue config file like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -53,7 +59,16 @@ models: - name: Llama 3.3 70b Versatile provider: groq model: llama-3.3-7 config.json ```json -{ "models": [ { "title": "Llama 3.3 70b Versatile", "provider": "groq", "model": "llama-3.3-70b-versatile", "apiKey": "" } ]} +{ + "models": [ + { + "title": "Llama 3.3 70b Versatile", + "provider": "groq", + "model": "llama-3.3-70b-versatile", + "apiKey": "" + } + ] +} ``` ## Together AI[​](#together-ai "Direct link to Together AI") @@ -64,8 +79,8 @@ Together AI provides fast and reliable inference of open-source models. You'll b 2. Copy your API key that appears on the welcome screen 3. Update your Continue config file like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -76,7 +91,16 @@ models: - name: Llama 3.1 405b provider: together model: llama3.1-405b config.json ```json -{ "models": [ { "title": "Llama 3.1 405b", "provider": "together", "model": "llama3.1-405b", "apiKey": "" } ]} +{ + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "together", + "model": "llama3.1-405b", + "apiKey": "" + } + ] +} ``` ## Replicate[​](#replicate "Direct link to Replicate") @@ -86,8 +110,8 @@ Replicate makes it easy to host and run open-source AI with an API. 1. Get your Replicate API key [here](https://replicate.ai/) 2. Change your Continue config file like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -98,19 +122,28 @@ models: - name: Llama 3.1 405b provider: replicate model: llama3.1-405b config.json ```json -{ "models": [ { "title": "Llama 3.1 405b", "provider": "replicate", "model": "llama3.1-405b", "apiKey": "" } ]} +{ + "models": [ + { + "title": "Llama 3.1 405b", + "provider": "replicate", + "model": "llama3.1-405b", + "apiKey": "" + } + ] +} ``` ## SambaNova[​](#sambanova "Direct link to SambaNova") SambaNova Cloud provides world record Llama3.1 70B/405B serving. -1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue\&utm_medium=external\&utm_campaign=cloud_signup) +1. Create an account [here](http://cloud.sambanova.ai?utm_source=continue&utm_medium=external&utm_campaign=cloud_signup) 2. Copy your API key 3. Update your Continue config file like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -121,7 +154,16 @@ models: - name: SambaNova Llama 3.1 405B provider: sambanova model: llama config.json ```json -{ "models": [ { "title": "SambaNova Llama 3.1 405B", "provider": "sambanova", "model": "llama3.1-405b", "apiKey": "" } ]} +{ + "models": [ + { + "title": "SambaNova Llama 3.1 405B", + "provider": "sambanova", + "model": "llama3.1-405b", + "apiKey": "" + } + ] +} ``` ## Cerebras Inference[​](#cerebras-inference "Direct link to Cerebras Inference") @@ -132,8 +174,8 @@ Cerebras Inference uses specialized silicon to provides fast inference for the L 2. Create and copy the API key for use in Continue. 3. Update your Continue config file: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -144,6 +186,14 @@ models: - name: Cerebras Llama 3.1 70B provider: cerebras model: llama3.1 config.json ```json -{ "models": [ { "title": "Cerebras Llama 3.1 70B", "provider": "cerebras", "model": "llama3.1-70b", "apiKey": "" } ]} +{ + "models": [ + { + "title": "Cerebras Llama 3.1 70B", + "provider": "cerebras", + "model": "llama3.1-70b", + "apiKey": "" + } + ] +} ``` - diff --git a/docs2/guides/ollama-guide.mdx b/docs2/guides/ollama-guide.mdx index 99702f6c3..8b74a8d0f 100644 --- a/docs2/guides/ollama-guide.mdx +++ b/docs2/guides/ollama-guide.mdx @@ -7,10 +7,10 @@ description: "This comprehensive guide will walk you through setting up Ollama w Before getting started, ensure your system meets these requirements: -* Operating System: macOS, Linux, or Windows -* RAM: Minimum 8GB (16GB+ recommended) -* Storage: At least 10GB free space -* Continue extension installed +- Operating System: macOS, Linux, or Windows +- RAM: Minimum 8GB (16GB+ recommended) +- Storage: At least 10GB free space +- Continue extension installed ## Installation Steps[​](#installation-steps "Direct link to Installation Steps") @@ -37,17 +37,26 @@ Configure Continue to work with your local Ollama instance: ### Continue Configuration[​](#continue-configuration "Direct link to Continue Configuration") ```json -{ "models": [ { "title": "Ollama", "provider": "ollama", "model": "llama2", "apiBase": "http://localhost:11434" } ]} +{ + "models": [ + { + "title": "Ollama", + "provider": "ollama", + "model": "llama2", + "apiBase": "http://localhost:11434" + } + ] +} ``` ### Advanced Settings[​](#advanced-settings "Direct link to Advanced Settings") For optimal performance, consider these advanced configuration options: -* Memory optimization -* GPU acceleration -* Custom model parameters -* Performance tuning +- Memory optimization +- GPU acceleration +- Custom model parameters +- Performance tuning ## Best Practices[​](#best-practices "Direct link to Best Practices") @@ -63,10 +72,10 @@ Choose models based on your specific needs: To get the best performance from Ollama: -* Monitor system resources -* Adjust context window size -* Use appropriate model sizes -* Enable GPU acceleration when available +- Monitor system resources +- Adjust context window size +- Use appropriate model sizes +- Enable GPU acceleration when available ## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting") @@ -76,15 +85,15 @@ Here are solutions to common problems you might encounter: #### Connection Problems[​](#connection-problems "Direct link to Connection Problems") -* Check Ollama service status -* Verify port availability -* Review firewall settings +- Check Ollama service status +- Verify port availability +- Review firewall settings #### Performance Issues[​](#performance-issues "Direct link to Performance Issues") -* Insufficient RAM -* Model too large for system -* GPU compatibility +- Insufficient RAM +- Model too large for system +- GPU compatibility ### Solutions[​](#solutions "Direct link to Solutions") @@ -107,16 +116,15 @@ Try these solutions in order: Use Continue with Ollama to: -* Analyze code quality -* Suggest improvements -* Identify potential bugs -* Generate documentation +- Analyze code quality +- Suggest improvements +- Identify potential bugs +- Generate documentation ## Conclusion[​](#conclusion "Direct link to Conclusion") Ollama with Continue provides a powerful local development environment for AI-assisted coding. You now have complete control over your AI models, ensuring privacy and enabling offline development workflows. -*** - -*This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly.* +--- +_This guide is based on Ollama v0.1.x and Continue v0.8.x. Please check for updates regularly._ diff --git a/docs2/guides/overview.mdx b/docs2/guides/overview.mdx index 1d754ba90..4380709b4 100644 --- a/docs2/guides/overview.mdx +++ b/docs2/guides/overview.mdx @@ -4,18 +4,17 @@ title: "Overview" ## Model & Setup Guides[​](#model--setup-guides "Direct link to Model & Setup Guides") -* [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama -* [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model -* [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models -* [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 +- [Using Ollama with Continue](/guides/ollama-guide) - Local AI development with Ollama +- [Setting up Codestral](/guides/set-up-codestral) - Configure Mistral's Codestral model +- [How to Self-Host a Model](/guides/how-to-self-host-a-model) - Self-hosting AI models +- [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[​](#advanced-tutorials "Direct link to Advanced Tutorials") -* [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 +- [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[​](#contributing "Direct link to Contributing") 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/docs2/guides/running-continue-without-internet.mdx b/docs2/guides/running-continue-without-internet.mdx index a2ed6e2cd..0c2799032 100644 --- a/docs2/guides/running-continue-without-internet.mdx +++ b/docs2/guides/running-continue-without-internet.mdx @@ -7,4 +7,3 @@ description: "Continue can be run even on an air-gapped computer if you use a lo 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). 4. Restart VS Code to ensure that the changes to `config.json` or `config.yaml` take effect. - diff --git a/docs2/guides/set-up-codestral.mdx b/docs2/guides/set-up-codestral.mdx index d8561fdbb..2da33a6f6 100644 --- a/docs2/guides/set-up-codestral.mdx +++ b/docs2/guides/set-up-codestral.mdx @@ -12,8 +12,8 @@ title: "How to Set Up Codestral" 4. To use Codestral as your model for both `autocomplete` and `chat`, insert your Mistral API key below and add it to your configuration file: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -24,8 +24,26 @@ models: - name: Codestral provider: mistral model: codestral-latest ap config.json ```json -{ "models": [ { "title": "Codestral", "provider": "mistral", "model": "codestral-latest", "apiKey": "", "apiBase": "https://codestral.mistral.ai/v1" } ], "tabAutocompleteModel": [ { "title": "Codestral", "provider": "mistral", "model": "codestral-latest", "apiKey": "", "apiBase": "https://codestral.mistral.ai/v1" } ]} +{ + "models": [ + { + "title": "Codestral", + "provider": "mistral", + "model": "codestral-latest", + "apiKey": "", + "apiBase": "https://codestral.mistral.ai/v1" + } + ], + "tabAutocompleteModel": [ + { + "title": "Codestral", + "provider": "mistral", + "model": "codestral-latest", + "apiKey": "", + "apiBase": "https://codestral.mistral.ai/v1" + } + ] +} ``` 5. If you run into any issues or have any questions, please join our Discord and post in the `#help` channel [here](https://discord.gg/EfJEfdFnDQ) - diff --git a/docs2/home.mdx b/docs2/home.mdx index c9aceb779..7e2dcc7cb 100644 --- a/docs2/home.mdx +++ b/docs2/home.mdx @@ -4,8 +4,7 @@ title: "Introduction" **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)** -* [Chat](/features/chat/quick-start) to understand and iterate on code in the sidebar -* [Autocomplete](/features/autocomplete/quick-start) to receive inline code suggestions as you type -* [Edit](/features/edit/quick-start) to modify code without leaving your current file -* [Agent](/features/agent/quick-start) to make more substantial changes to your codebase - +- [Chat](/features/chat/quick-start) to understand and iterate on code in the sidebar +- [Autocomplete](/features/autocomplete/quick-start) to receive inline code suggestions as you type +- [Edit](/features/edit/quick-start) to modify code without leaving your current file +- [Agent](/features/agent/quick-start) to make more substantial changes to your codebase diff --git a/docs2/hub/assistants/create-an-assistant.mdx b/docs2/hub/assistants/create-an-assistant.mdx index b59a02ba0..9a884ea5f 100644 --- a/docs2/hub/assistants/create-an-assistant.mdx +++ b/docs2/hub/assistants/create-an-assistant.mdx @@ -30,4 +30,3 @@ 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) - diff --git a/docs2/hub/assistants/edit-an-assistant.mdx b/docs2/hub/assistants/edit-an-assistant.mdx index b41c5b77b..b7fa9c2ed 100644 --- a/docs2/hub/assistants/edit-an-assistant.mdx +++ b/docs2/hub/assistants/edit-an-assistant.mdx @@ -18,4 +18,3 @@ If a block you want to use does not exist yet, you can [create a new block](/hub When you are done editing, click "Publish" to publish a new version of the assistant. Click "Open VS Code" or "Open JetBrains" to open your IDE for using the assistant. - diff --git a/docs2/hub/assistants/intro.mdx b/docs2/hub/assistants/intro.mdx index 82aa448ee..fd556b16a 100644 --- a/docs2/hub/assistants/intro.mdx +++ b/docs2/hub/assistants/intro.mdx @@ -6,4 +6,3 @@ description: "Custom AI code assistants are configurations of building blocks th `config.yaml` is a format for defining custom AI code assistants. An assistant has some top-level properties (e.g. `name`, `version`), but otherwise consists of composable lists of **blocks** such as `models` and `rules`, which are the atomic building blocks of an assistant. The `config.yaml` is parsed by the open-source Continue IDE extensions to create custom assistant experiences. When you log in to [hub.continue.dev](https://hub.continue.dev/), your assistants will automatically be synced with the IDE extensions. - diff --git a/docs2/hub/assistants/use-an-assistant.mdx b/docs2/hub/assistants/use-an-assistant.mdx index 528b7794b..92f28760a 100644 --- a/docs2/hub/assistants/use-an-assistant.mdx +++ b/docs2/hub/assistants/use-an-assistant.mdx @@ -12,4 +12,3 @@ Once you've found the assistant you want to use After this, you can then go to your IDE extension and begin using the assistant by selecting it from the assistant dropdown. [Extension Assistant Selector](/images/assistant-extension-select-319492a06d6249e5389747687341dfdb.png) - diff --git a/docs2/hub/blocks/block-types.mdx b/docs2/hub/blocks/block-types.mdx index ca12e7a91..39f7fd001 100644 --- a/docs2/hub/blocks/block-types.mdx +++ b/docs2/hub/blocks/block-types.mdx @@ -43,4 +43,3 @@ Prompt blocks have the same syntax as [prompt files](/customization/prompts). Th Data blocks allow you send your development data to custom destinations of your choice. Development data can be used for a variety of purposes, including analyzing usage, gathering insights, or fine-tuning models. You can read more about development data [here](/customize/overview#development-data). Explore data block examples [here](https://hub.continue.dev/explore/data). Data destinations are configured in the [`data`](/reference#data) section of `config.yaml`. - diff --git a/docs2/hub/blocks/bundles.mdx b/docs2/hub/blocks/bundles.mdx index e9125cf84..438354118 100644 --- a/docs2/hub/blocks/bundles.mdx +++ b/docs2/hub/blocks/bundles.mdx @@ -31,4 +31,3 @@ Once you have added all the blocks you want in your bundle, click "Create Bundle ## Remix a bundle[​](#remix-a-bundle "Direct link to Remix a bundle") It is not currently possible to remix a bundle. - diff --git a/docs2/hub/blocks/create-a-block.mdx b/docs2/hub/blocks/create-a-block.mdx index d0f07cf35..2849e4df6 100644 --- a/docs2/hub/blocks/create-a-block.mdx +++ b/docs2/hub/blocks/create-a-block.mdx @@ -25,4 +25,3 @@ After filling out information on the block, you will want to create a block foll ### Block inputs[​](#block-inputs "Direct link to 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/docs2/hub/blocks/intro.mdx b/docs2/hub/blocks/intro.mdx index 44754fa3d..0015b415f 100644 --- a/docs2/hub/blocks/intro.mdx +++ b/docs2/hub/blocks/intro.mdx @@ -4,4 +4,3 @@ description: "Blocks are the components you use to build a custom AI code assist --- 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/docs2/hub/blocks/use-a-block.mdx b/docs2/hub/blocks/use-a-block.mdx index 7ff4d7aea..753e8c085 100644 --- a/docs2/hub/blocks/use-a-block.mdx +++ b/docs2/hub/blocks/use-a-block.mdx @@ -3,10 +3,9 @@ title: "Use a block" description: "Blocks can be used by adding them to assistants:" --- -* [Create an assistant](/hub/assistants/create-an-assistant) -* [Edit an assistant](/hub/assistants/edit-an-assistant) +- [Create an assistant](/hub/assistants/create-an-assistant) +- [Edit an assistant](/hub/assistants/edit-an-assistant) Some blocks require inputs. If you are missing an input for a block, a notification icon will show up in the sidebar next to the block. Click the notification to select which secret to use for the block input: ![Block inputs](/images/hub/blocks/images/block-inputs-b26686c49eea145a875dfe46862c85e0.png) - diff --git a/docs2/hub/governance/creating-an-org.mdx b/docs2/hub/governance/creating-an-org.mdx index 2f8904c8d..dfcb0665e 100644 --- a/docs2/hub/governance/creating-an-org.mdx +++ b/docs2/hub/governance/creating-an-org.mdx @@ -15,4 +15,3 @@ description: "To Create an Organization, click the organization selector in the You will then be signed in to your org and taken to the org home page ![Org home page](/images/hub/governance/images/org-home-page-4509e2ff8c4e1d6325c8f0afae3b16dd.png) - diff --git a/docs2/hub/governance/org-permissions.mdx b/docs2/hub/governance/org-permissions.mdx index de5e50b28..4bdb8e82f 100644 --- a/docs2/hub/governance/org-permissions.mdx +++ b/docs2/hub/governance/org-permissions.mdx @@ -8,7 +8,6 @@ description: "Users can have the following roles within an organization:" **User permissions for each role depend on the pricing plan:** -* [Solo](/hub/governance/pricing#solo) -* [Teams](/hub/governance/pricing#teams) -* [Enterprise](/hub/governance/pricing#enterprise) - +- [Solo](/hub/governance/pricing#solo) +- [Teams](/hub/governance/pricing#teams) +- [Enterprise](/hub/governance/pricing#enterprise) diff --git a/docs2/hub/governance/pricing.mdx b/docs2/hub/governance/pricing.mdx index 33348e5b5..7afd37619 100644 --- a/docs2/hub/governance/pricing.mdx +++ b/docs2/hub/governance/pricing.mdx @@ -29,4 +29,3 @@ You can read more about usage limits and what models are included [here](https:/ ### Free Trial[​](#free-trial "Direct link to Free Trial") To try out Continue, we offer a free trial of the **Models Add-On** that allows you to use 50 Chat requests and 2,000 autocomplete requests. - diff --git a/docs2/hub/introduction.mdx b/docs2/hub/introduction.mdx index 3006f0b39..4bc0c7da4 100644 --- a/docs2/hub/introduction.mdx +++ b/docs2/hub/introduction.mdx @@ -7,4 +7,3 @@ title: "Introduction" Assistants can contain several types of blocks, including [models](/hub/blocks/block-types#models), [rules](/hub/blocks/block-types#rules), [context providers](/hub/blocks/block-types#context), [prompts](/hub/blocks/block-types#prompts), [docs](/hub/blocks/block-types#docs), [data destinations](/hub/blocks/block-types#data), and [MCP servers](/hub/blocks/block-types#mcp-servers). Continue Hub also makes it easy for engineering leaders to centrally [configure](/hub/secrets/secret-types) and [govern](/hub/governance/org-permissions) blocks and assistants for their organization. - diff --git a/docs2/hub/secrets/secret-resolution.mdx b/docs2/hub/secrets/secret-resolution.mdx index 747548ff2..72638da7b 100644 --- a/docs2/hub/secrets/secret-resolution.mdx +++ b/docs2/hub/secrets/secret-resolution.mdx @@ -14,4 +14,3 @@ For [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pric 1. Org [models add-on](/hub/governance/pricing#models-add-on) (if subscribed) 2. [Org secrets](/hub/secrets/secret-types#org-secrets) (if set) 3. [User secrets](/hub/secrets/secret-types#user-secrets) (if set) - diff --git a/docs2/hub/secrets/secret-types.mdx b/docs2/hub/secrets/secret-types.mdx index 2b95182c0..7cc037621 100644 --- a/docs2/hub/secrets/secret-types.mdx +++ b/docs2/hub/secrets/secret-types.mdx @@ -14,4 +14,3 @@ This allows API requests to be made directly from the IDE extensions. You can us Org secrets are defined by admins for their organization. Org secrets are available to anyone in the organization to use with assistants in that organization. Org secrets are assumed to not be shareable with the user (e.g. you are a team lead who wants to give team members access to models without passing out API keys). This is why LLM requests are proxied through api.continue.dev / on-premise proxy and secrets are never sent to the IDE extensions. You can only use org secrets on [Teams](/hub/governance/pricing#teams) and [Enterprise](/hub/governance/pricing#enterprise). If you are an admin, you can manage secrets for your organization from the org settings page. - diff --git a/docs2/hub/sharing.mdx b/docs2/hub/sharing.mdx index e2319397b..2401930a9 100644 --- a/docs2/hub/sharing.mdx +++ b/docs2/hub/sharing.mdx @@ -27,7 +27,6 @@ Learn how to discover, install, and use community-created assistants in your pro [Learn About Assistants →](/hub/assistants/intro) -*** +--- The Continue Hub makes it easy to leverage community knowledge and share your innovations with fellow developers. - diff --git a/docs2/hub/source-control.mdx b/docs2/hub/source-control.mdx index b55d0d3f5..364587c6b 100644 --- a/docs2/hub/source-control.mdx +++ b/docs2/hub/source-control.mdx @@ -20,7 +20,8 @@ Deploy keys allow the GitHub Action to authenticate with hub.continue.dev. [Obta ### 3. Configure the GitHub Action[​](#3-configure-the-github-action "Direct link to 3. Configure the GitHub Action") - This step assumes you have already created an organization on hub.continue.dev. If not, learn more [here](/hub/governance/creating-an-org). + This step assumes you have already created an organization on + hub.continue.dev. If not, learn more [here](/hub/governance/creating-an-org). In the repository you created, navigate to `.github/workflows/main.yaml` and update the lines below to match your organization: @@ -35,10 +36,9 @@ This is the only configuration necessary, but you can view the full list of opti Add the [YAML for your assistants and blocks](/reference) to the appropriate directories: -* `assistants/public` for public assistants -* `assistants/private` for private (visible only within your organization) assistants -* `blocks/public` for public blocks -* `blocks/private` for private blocks +- `assistants/public` for public assistants +- `assistants/private` for private (visible only within your organization) assistants +- `blocks/public` for public blocks +- `blocks/private` for private blocks Then, commit and push your changes. Once the GitHub Action has completed running, you should be able to view the assistants within your organization on hub.continue.dev. - diff --git a/docs2/index.mdx b/docs2/index.mdx index a61cf6b40..af5107f5a 100644 --- a/docs2/index.mdx +++ b/docs2/index.mdx @@ -10,16 +10,36 @@ icon: book-open **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)** - + to understand and iterate on code in the sidebar - + to receive inline code suggestions as you type - + to modify code without leaving your current file - + to make more substantial changes to your codebase diff --git a/docs2/migrate-i18n.md b/docs2/migrate-i18n.md index 264e6db1e..cdf0d6eb2 100644 --- a/docs2/migrate-i18n.md +++ b/docs2/migrate-i18n.md @@ -1,11 +1,13 @@ # 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.) @@ -15,6 +17,7 @@ ## Migration Steps ### 1. Add Chinese Version to mint.json + ```json "versions": [ { @@ -29,34 +32,41 @@ ``` ### 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 \ No newline at end of file +4. Full migration when Chinese localization is prioritized diff --git a/docs2/mint.json b/docs2/mint.json index 8bc57ed7a..c2f5952b8 100644 --- a/docs2/mint.json +++ b/docs2/mint.json @@ -36,12 +36,7 @@ } }, "contextual": { - "options": [ - "copy", - "view", - "chatgpt", - "claude" - ] + "options": ["copy", "view", "chatgpt", "claude"] }, "tabs": [ { @@ -82,11 +77,7 @@ { "group": "Getting Started", "icon": "rocket-launch", - "pages": [ - "index", - "getting-started/overview", - "getting-started/install" - ] + "pages": ["index", "getting-started/overview", "getting-started/install"] }, { "group": "Features", @@ -95,10 +86,7 @@ { "group": "Chat", "icon": "messages", - "pages": [ - "features/chat/quick-start", - "features/chat/how-it-works" - ] + "pages": ["features/chat/quick-start", "features/chat/how-it-works"] }, { "group": "Autocomplete", @@ -111,18 +99,12 @@ { "group": "Edit", "icon": "pen-to-square", - "pages": [ - "features/edit/quick-start", - "features/edit/how-it-works" - ] + "pages": ["features/edit/quick-start", "features/edit/how-it-works"] }, { "group": "Agent", "icon": "robot", - "pages": [ - "features/agent/quick-start", - "features/agent/how-it-works" - ] + "pages": ["features/agent/quick-start", "features/agent/how-it-works"] } ] }, @@ -140,9 +122,7 @@ { "group": "Help", "icon": "book-open", - "pages": [ - "troubleshooting" - ] + "pages": ["troubleshooting"] }, { "group": "Customize", @@ -224,9 +204,7 @@ { "group": "Telemetry", "icon": "chart-line", - "pages": [ - "customize/telemetry" - ] + "pages": ["customize/telemetry"] }, "customize/custom-providers", "customize/json-reference", @@ -270,10 +248,7 @@ { "group": "Secrets", "icon": "key", - "pages": [ - "hub/secrets/secret-types", - "hub/secrets/secret-resolution" - ] + "pages": ["hub/secrets/secret-types", "hub/secrets/secret-resolution"] }, "hub/sharing", "hub/source-control" @@ -295,9 +270,7 @@ { "group": "Reference", "icon": "code", - "pages": [ - "reference" - ] + "pages": ["reference"] } ], "footerSocials": { @@ -888,4 +861,4 @@ "destination": "/customize/json-reference" } ] -} \ No newline at end of file +} diff --git a/docs2/reference.mdx b/docs2/reference.mdx index 57d15c3d1..104acd5da 100644 --- a/docs2/reference.mdx +++ b/docs2/reference.mdx @@ -6,15 +6,15 @@ title: "config.yaml Reference" Continue hub assistants are defined using the `config.yaml` specification. Assistants can be loaded from [the Hub](https://hub.continue.dev/explore/assistants) or locally -* [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to the extension +- [Continue Hub](https://hub.continue.dev/explore/assistants) - YAML is stored on the hub and automatically synced to the extension -* Locally - - * in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`. The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml` - * in your workspace in a `/.continue/assistants` folder, with the same naming convention +- Locally + - in your global `.continue` folder (`~/.continue` on Mac, `%USERPROFILE%\.continue`) within `.continue/assistants`. The name of the file will be used as the display name of the assistant, e.g. `My Assistant.yaml` + - in your workspace in a `/.continue/assistants` folder, with the same naming convention - Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](/customize/yaml-migration)**. + Config YAML replaces `config.json`, which is deprecated. View the **[Migration + Guide](/customize/yaml-migration)**. An assistant is made up of: @@ -50,26 +50,26 @@ Place your YAML files in the following folders: Assistants: -* `.continue/assistants` - for assistants +- `.continue/assistants` - for assistants Blocks: -* `.continue/rules` - for rules -* `.continue/models` - for models -* `.continue/prompts` - for prompts -* `.continue/context` - for context providers -* `.continue/docs` - for docs -* `.continue/data` - for data -* `.continue/mcpServers` - for MCP Servers +- `.continue/rules` - for rules +- `.continue/models` - for models +- `.continue/prompts` - for prompts +- `.continue/context` - for context providers +- `.continue/docs` - for docs +- `.continue/data` - for data +- `.continue/mcpServers` - for MCP Servers You can find many examples of each of these block types on the [Continue Explore Page](https://hub.continue.dev/explore/models) Local blocks utilizing mustache notation for secrets (`${{ secrets.SECRET_NAME }}`) can read secret values: - * globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`) - * per-workspace, from a `.env` file located at the root of the current workspace. - +- globally, from a `.env` located in the global `.continue` folder (`~/.continue/.env`) +- per-workspace, from a `.env` file located at the root of the current workspace. + ### Inputs[​](#inputs "Direct link to Inputs") @@ -109,18 +109,18 @@ Below are details for each property that can be set in `config.yaml`. The top-level properties in the `config.yaml` configuration file are: -* [`name`](#name) (**required**) -* [`version`](#version) (**required**) -* [`schema`](#schema) (**required**) -* [`models`](#models) -* [`context`](#context) -* [`rules`](#rules) -* [`prompts`](#prompts) -* [`docs`](#docs) -* [`mcpServers`](#mcpservers) -* [`data`](#data) +- [`name`](#name) (**required**) +- [`version`](#version) (**required**) +- [`schema`](#schema) (**required**) +- [`models`](#models) +- [`context`](#context) +- [`rules`](#rules) +- [`prompts`](#prompts) +- [`docs`](#docs) +- [`mcpServers`](#mcpservers) +- [`data`](#data) -*** +--- ### `name`[​](#name "Direct link to name") @@ -132,7 +132,7 @@ config.yaml name: MyProject ``` -*** +--- ### `version`[​](#version "Direct link to version") @@ -142,7 +142,7 @@ The `version` property specifies the version of your project or configuration. The `schema` property specifies the schema version used for the `config.yaml`, e.g. `v1` -*** +--- ### `models`[​](#models "Direct link to models") @@ -150,62 +150,58 @@ The `models` section defines the language models used in your configuration. Mod **Properties:** -* `name` (**required**): A unique name to identify the model within your configuration. +- `name` (**required**): A unique name to identify the model within your configuration. -* `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`). +- `provider` (**required**): The provider of the model (e.g., `openai`, `ollama`). -* `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`). +- `model` (**required**): The specific model name (e.g., `gpt-4`, `starcoder`). -* `apiBase`: Can be used to override the default API base that is specified per model +- `apiBase`: Can be used to override the default API base that is specified per model -* `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used. +- `roles`: An array specifying the roles this model can fulfill, such as `chat`, `autocomplete`, `embed`, `rerank`, `edit`, `apply`, `summarize`. The default value is `[chat, edit, apply, summarize]`. Note that the `summarize` role is not currently used. -* `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`. +- `capabilities`: Array of strings denoting model capabilities, which will overwrite Continue's autodetection based on provider and model. Supported capabilities include `tool_use` and `image_input`. -* `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists. +- `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-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`. -* `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: - * `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. +- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode: + - `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode. -* `embedOptions`: If the model includes role `embed`, these settings apply for embeddings: +- `embedOptions`: If the model includes role `embed`, these settings apply for embeddings: + - `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. + - `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. - * `maxChunkSize`: Maximum tokens per document chunk. Minimum is 128 tokens. - * `maxBatchSize`: Maximum number of chunks per request. Minimum is 1 chunk. +- `defaultCompletionOptions`: Default completion options for model settings. + - `contextLength`: Maximum context length of the model, typically in tokens. + - `maxTokens`: Maximum number of tokens to generate in a completion. + - `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random). + - `topP`: The cumulative probability for nucleus sampling. + - `topK`: Maximum number of tokens considered at each step. + - `stop`: An array of stop tokens that will terminate the completion. + - `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models. + - `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. -* `defaultCompletionOptions`: Default completion options for model settings. +- `requestOptions`: HTTP request options specific to the model. + - `timeout`: Timeout for each request to the language model. - * `contextLength`: Maximum context length of the model, typically in tokens. - * `maxTokens`: Maximum number of tokens to generate in a completion. - * `temperature`: Controls the randomness of the completion. Values range from `0.0` (deterministic) to `1.0` (random). - * `topP`: The cumulative probability for nucleus sampling. - * `topK`: Maximum number of tokens considered at each step. - * `stop`: An array of stop tokens that will terminate the completion. - * `reasoning`: Boolean to enable thinking/reasoning for Anthropic Claude 3.7+ models. - * `reasoningBudgetTokens`: Budget tokens for thinking/reasoning in Anthropic Claude 3.7+ models. + - `verifySsl`: Whether to verify SSL certificates for requests. -* `requestOptions`: HTTP request options specific to the model. + - `caBundlePath`: Path to a custom CA bundle for HTTP requests. - * `timeout`: Timeout for each request to the language model. + - `proxy`: Proxy URL for HTTP requests. - * `verifySsl`: Whether to verify SSL certificates for requests. + - `headers`: Custom headers for HTTP requests. - * `caBundlePath`: Path to a custom CA bundle for HTTP requests. + - `extraBodyProperties`: Additional properties to merge with the HTTP request body. - * `proxy`: Proxy URL for HTTP requests. + - `noProxy`: List of hostnames that should bypass the specified proxy. - * `headers`: Custom headers for HTTP requests. - - * `extraBodyProperties`: Additional properties to merge with the HTTP request body. - - * `noProxy`: List of hostnames that should bypass the specified proxy. - - * `clientCertificate`: Client certificate for HTTP requests. - - * `cert`: Path to the client certificate file. - * `key`: Path to the client certificate key file. - * `passphrase`: Optional passphrase for the client certificate key file. + - `clientCertificate`: Client certificate for HTTP requests. + - `cert`: Path to the client certificate file. + - `key`: Path to the client certificate key file. + - `passphrase`: Optional passphrase for the client certificate key file. #### Example[​](#example "Direct link to Example") @@ -215,7 +211,7 @@ config.yaml models: - name: GPT-4o provider: openai model: gpt-4o roles: - chat - edit - apply defaultCompletionOptions: temperature: 0.7 maxTokens: 1500 - name: Codestral provider: mistral model: codestral-latest roles: - autocomplete - name: My Model - OpenAI-Compatible provider: openai apiBase: http://my-endpoint/v1 model: my-custom-model capabilities: - tool_use - image_input roles: - chat - edit ``` -*** +--- ### `context`[​](#context "Direct link to context") @@ -225,9 +221,9 @@ More information about usage/params for each context provider can be found [here **Properties:** -* `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`) -* `name`: Optional name for the provider -* `params`: Optional parameters to configure the context provider's behavior. +- `provider` (**required**): The identifier or name of the context provider (e.g., `code`, `docs`, `web`) +- `name`: Optional name for the provider +- `params`: Optional parameters to configure the context provider's behavior. **Example:** @@ -237,7 +233,7 @@ config.yaml context: - provider: file - provider: code - provider: codebase params: nFinal: 10 - provider: docs - provider: diff - provider: http name: Context Server 1 params: url: "https://api.example.com/server1" - provider: folder - provider: terminal ``` -*** +--- ### `rules`[​](#rules "Direct link to rules") @@ -245,9 +241,9 @@ List of rules that the LLM should follow. These are concatenated into the system Explicit rules can either be simple text or an object with the following properties: -* `name` (**required**): A display name/title for the rule -* `rule` (**required**): The text content of the rule -* `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`). +- `name` (**required**): A display name/title for the rule +- `rule` (**required**): The text content of the rule +- `globs` (optional): When files are provided as context that match this glob pattern, the rule will be included. This can be either a single pattern (e.g., `"**/*.{ts,tsx}"`) or an array of patterns (e.g., `["src/**/*.ts", "tests/**/*.ts"]`). config.yaml @@ -255,7 +251,7 @@ config.yaml rules: - Always annotate Python functions with their parameter and return types - name: TypeScript best practices rule: Always use TypeScript interfaces to define shape of objects. Use type aliases sparingly. globs: "**/*.{ts,tsx}" - name: TypeScript test patterns rule: In TypeScript tests, use Jest's describe/it pattern and follow best practices for mocking. globs: - "src/**/*.test.ts" - "tests/**/*.ts" - uses: myprofile/my-mood-setter with: TONE: concise ``` -*** +--- ### `prompts`[​](#prompts "Direct link to prompts") @@ -267,7 +263,7 @@ config.yaml prompts: - name: check description: Check for mistakes in my code prompt: | Please read the highlighted code and check for any mistakes. You should look for the following, and be extremely vigilant: - Syntax errors - Logic errors - Security vulnerabilities ``` -*** +--- ### `docs`[​](#docs "Direct link to docs") @@ -275,12 +271,12 @@ List of documentation sites to index. **Properties:** -* `name` (**required**): Name of the documentation site, displayed in dropdowns, etc. -* `startUrl` (**required**): Start page for crawling - usually root or intro page for docs +- `name` (**required**): Name of the documentation site, displayed in dropdowns, etc. +- `startUrl` (**required**): Start page for crawling - usually root or intro page for docs -* `maxDepth`: Maximum link depth for crawling. Default `4` -* `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). -* `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. +- `maxDepth`: Maximum link depth for crawling. Default `4` +- `favicon`: URL for site favicon (default is `/favicon.ico` from `startUrl`). +- `useLocalCrawling`: Skip the default crawler and only crawl using a local crawler. Example @@ -290,7 +286,7 @@ config.yaml docs: - name: Continue startUrl: https://docs.continue.dev/intro favicon: https://docs.continue.dev/favicon.ico ``` -*** +--- ### `mcpServers`[​](#mcpservers "Direct link to mcpservers") @@ -298,12 +294,12 @@ The [Model Context Protocol](https://modelcontextprotocol.io/introduction) is a **Properties:** -* `name` (**required**): The name of the MCP server. -* `command` (**required**): The command used to start the server. -* `args`: An optional array of arguments for the command. -* `env`: An optional map of environment variables for the server process. -* `cwd`: An optional working directory to run the command in. Can be absolute or relative path. -* `connectionTimeout`: An optional connection timeout number to the server in milliseconds. +- `name` (**required**): The name of the MCP server. +- `command` (**required**): The command used to start the server. +- `args`: An optional array of arguments for the command. +- `env`: An optional map of environment variables for the server process. +- `cwd`: An optional working directory to run the command in. Can be absolute or relative path. +- `connectionTimeout`: An optional connection timeout number to the server in milliseconds. **Example:** @@ -319,22 +315,21 @@ Destinations to which [development data](/customize/overview#development-data) w **Properties:** -* `name` (**required**): The display name of the data destination +- `name` (**required**): The display name of the data destination -* `destination` (**required**): The destination/endpoint that will receive the data. Can be: +- `destination` (**required**): The destination/endpoint that will receive the data. Can be: + - an HTTP endpoint that will receive a POST request with a JSON blob + - a file URL to a directory in which events will be dumpted to `.jsonl` files - * an HTTP endpoint that will receive a POST request with a JSON blob - * a file URL to a directory in which events will be dumpted to `.jsonl` files +- `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0` -* `schema` (**required**): the schema version of the JSON blobs to be sent. Options include `0.1.0` and `0.2.0` +- `events`: an array of event names to include. Defaults to all events if not specified. -* `events`: an array of event names to include. Defaults to all events if not specified. +- `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file contents, prompts, and completions. Defaults to `all` -* `level`: a pre-defined filter for event fields. Options include `all` and `noCode`; the latter excludes data like file contents, prompts, and completions. Defaults to `all` +- `apiKey`: api key to be sent with request (Bearer header) -* `apiKey`: api key to be sent with request (Bearer header) - -* `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models). +- `requestOptions`: Options for event POST requests. Same format as [model requestOptions](#models). **Example:** @@ -344,7 +339,7 @@ config.yaml data: - name: Local Data Bank destination: file:///Users/dallin/Documents/code/continuedev/continue-extras/external-data schema: 0.2.0 level: all - name: My Private Company destination: https://mycompany.com/ingest schema: 0.2.0 level: noCode events: - autocomplete - chatInteraction ``` -*** +--- ## Complete YAML Config Example[​](#complete-yaml-config-example "Direct link to Complete YAML Config Example") @@ -365,4 +360,3 @@ config.yaml ``` %YAML 1.1---name: MyProjectversion: 0.0.1schema: v1model_defaults: &model_defaults provider: openai apiKey: my-api-key apiBase: https://api.example.com/llmmodels: - name: mistral <<: *model_defaults model: mistral-7b-instruct roles: - chat - edit - name: qwen2.5-coder-7b-instruct <<: *model_defaults model: qwen2.5-coder-7b-instruct roles: - chat - edit - name: qwen2.5-coder-7b <<: *model_defaults model: qwen2.5-coder-7b useLegacyCompletionsEndpoint: false roles: - autocomplete ``` - diff --git a/docs2/replace-custom-plugins.md b/docs2/replace-custom-plugins.md index e105a55b4..4fd3acc1b 100644 --- a/docs2/replace-custom-plugins.md +++ b/docs2/replace-custom-plugins.md @@ -1,18 +1,22 @@ # 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 @@ -21,38 +25,48 @@ This document outlines how to replace custom Docusaurus plugins and functionalit **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 @@ -60,27 +74,27 @@ This document outlines how to replace custom Docusaurus plugins and functionalit ```javascript // generate-llms-txt.js - Adapted for Mintlify -const fs = require('fs'); -const path = require('path'); +const fs = require("fs"); +const path = require("path"); function generateLLMsTxt(buildDir) { const sections = { "Getting Started": [], - "Features": [], - "Guides": [], - "Customization": [], - "Customize": [], - "Hub": [], - "Reference": [] + Features: [], + Guides: [], + Customization: [], + Customize: [], + Hub: [], + Reference: [], }; // Read mint.json to get page structure - const mintJson = JSON.parse(fs.readFileSync('mint.json', 'utf8')); - + 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') { + function extractPages(navItems, sectionName = "") { + navItems.forEach((item) => { + if (typeof item === "string") { // Direct page reference const pageInfo = getPageInfo(item); if (pageInfo) { @@ -94,7 +108,7 @@ function generateLLMsTxt(buildDir) { } extractPages(mintJson.navigation); - + // Generate llms.txt content generateContent(sections); } @@ -117,14 +131,17 @@ function generateLLMsTxt(buildDir) { ## 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 \ No newline at end of file +- Monitor analytics and search metrics post-migration diff --git a/docs2/check-links-images.sh b/docs2/scripts/check-links-images.sh similarity index 100% rename from docs2/check-links-images.sh rename to docs2/scripts/check-links-images.sh diff --git a/docs2/check-simple.sh b/docs2/scripts/check-simple.sh similarity index 100% rename from docs2/check-simple.sh rename to docs2/scripts/check-simple.sh diff --git a/docs2/fix-all-customize.sh b/docs2/scripts/fix-all-customize.sh similarity index 100% rename from docs2/fix-all-customize.sh rename to docs2/scripts/fix-all-customize.sh diff --git a/docs2/fix-all-providers.sh b/docs2/scripts/fix-all-providers.sh similarity index 100% rename from docs2/fix-all-providers.sh rename to docs2/scripts/fix-all-providers.sh diff --git a/docs2/fix-broken-references.sh b/docs2/scripts/fix-broken-references.sh similarity index 100% rename from docs2/fix-broken-references.sh rename to docs2/scripts/fix-broken-references.sh diff --git a/docs2/fix-codeblocks.sh b/docs2/scripts/fix-codeblocks.sh similarity index 100% rename from docs2/fix-codeblocks.sh rename to docs2/scripts/fix-codeblocks.sh diff --git a/docs2/fix-customize-links.sh b/docs2/scripts/fix-customize-links.sh similarity index 100% rename from docs2/fix-customize-links.sh rename to docs2/scripts/fix-customize-links.sh diff --git a/docs2/fix-deep-dives.sh b/docs2/scripts/fix-deep-dives.sh similarity index 100% rename from docs2/fix-deep-dives.sh rename to docs2/scripts/fix-deep-dives.sh diff --git a/docs2/fix-images.sh b/docs2/scripts/fix-images.sh similarity index 100% rename from docs2/fix-images.sh rename to docs2/scripts/fix-images.sh diff --git a/docs2/fix-model-providers-v2.sh b/docs2/scripts/fix-model-providers-v2.sh similarity index 100% rename from docs2/fix-model-providers-v2.sh rename to docs2/scripts/fix-model-providers-v2.sh diff --git a/docs2/fix-model-providers.sh b/docs2/scripts/fix-model-providers.sh similarity index 100% rename from docs2/fix-model-providers.sh rename to docs2/scripts/fix-model-providers.sh diff --git a/docs2/fix-provider-titles-v2.sh b/docs2/scripts/fix-provider-titles-v2.sh similarity index 100% rename from docs2/fix-provider-titles-v2.sh rename to docs2/scripts/fix-provider-titles-v2.sh diff --git a/docs2/fix-provider-titles.sh b/docs2/scripts/fix-provider-titles.sh similarity index 100% rename from docs2/fix-provider-titles.sh rename to docs2/scripts/fix-provider-titles.sh diff --git a/docs2/migrate-redirects.js b/docs2/scripts/migrate-redirects.js similarity index 93% rename from docs2/migrate-redirects.js rename to docs2/scripts/migrate-redirects.js index 6a1d8ea1c..fdfcae2c4 100644 --- a/docs2/migrate-redirects.js +++ b/docs2/scripts/migrate-redirects.js @@ -3,8 +3,8 @@ // Script to convert Docusaurus redirects to Mintlify format // Run: node migrate-redirects.js -const fs = require('fs'); -const path = require('path'); +const fs = require("fs"); +const path = require("path"); // Extract redirects from Docusaurus config const docusaurusRedirects = [ @@ -42,10 +42,7 @@ const docusaurusRedirects = [ }, { to: "/customize/settings", - from: [ - "/advanced/deep-dives/settings", - "/customize/deep-dives/settings", - ], + from: ["/advanced/deep-dives/settings", "/customize/deep-dives/settings"], }, { to: "/customize/model-roles/intro", @@ -444,19 +441,21 @@ const docusaurusRedirects = [ // Convert to Mintlify format function convertToMintlifyRedirects(docusaurusRedirects) { const mintlifyRedirects = []; - - docusaurusRedirects.forEach(redirect => { + + docusaurusRedirects.forEach((redirect) => { const destination = redirect.to; - const sources = Array.isArray(redirect.from) ? redirect.from : [redirect.from]; - - sources.forEach(source => { + const sources = Array.isArray(redirect.from) + ? redirect.from + : [redirect.from]; + + sources.forEach((source) => { mintlifyRedirects.push({ source: source, - destination: destination + destination: destination, }); }); }); - + return mintlifyRedirects; } @@ -464,8 +463,8 @@ function convertToMintlifyRedirects(docusaurusRedirects) { const mintlifyRedirects = convertToMintlifyRedirects(docusaurusRedirects); // Read current mint.json -const mintJsonPath = path.join(__dirname, 'mint.json'); -const mintJson = JSON.parse(fs.readFileSync(mintJsonPath, 'utf8')); +const mintJsonPath = path.join(__dirname, "mint.json"); +const mintJson = JSON.parse(fs.readFileSync(mintJsonPath, "utf8")); // Add redirects to mint.json mintJson.redirects = mintlifyRedirects; @@ -473,12 +472,14 @@ mintJson.redirects = mintlifyRedirects; // Write back to mint.json fs.writeFileSync(mintJsonPath, JSON.stringify(mintJson, null, 2)); -console.log(`āœ… Successfully migrated ${mintlifyRedirects.length} redirects to mint.json`); +console.log( + `āœ… Successfully migrated ${mintlifyRedirects.length} redirects to mint.json`, +); console.log(`šŸ“ Redirects added to mint.json`); // Also output the redirects for review -console.log('\nšŸ“‹ Sample redirects:'); -mintlifyRedirects.slice(0, 10).forEach(redirect => { +console.log("\nšŸ“‹ Sample redirects:"); +mintlifyRedirects.slice(0, 10).forEach((redirect) => { console.log(` ${redirect.source} → ${redirect.destination}`); }); -console.log(` ... and ${mintlifyRedirects.length - 10} more`); \ No newline at end of file +console.log(` ... and ${mintlifyRedirects.length - 10} more`); diff --git a/docs2/telemetry.mdx b/docs2/telemetry.mdx index b0069f5f9..54eca8490 100644 --- a/docs2/telemetry.mdx +++ b/docs2/telemetry.mdx @@ -17,11 +17,11 @@ All data collected by the open-source Continue extensions is anonymized and stri The following usage information is collected and reported: -* **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved). -* **Model and Command Information:** The name of the model and command used. -* **Token Metrics:** The number of tokens generated. -* **System Information:** The name of your operating system (OS) and integrated development environment (IDE). -* **Pageviews:** General pageview statistics. +- **Suggestion Interactions:** Whether you accept or reject suggestions (excluding the actual code or prompts involved). +- **Model and Command Information:** The name of the model and command used. +- **Token Metrics:** The number of tokens generated. +- **System Information:** The name of your operating system (OS) and integrated development environment (IDE). +- **Pageviews:** General pageview statistics. ## How to Opt Out diff --git a/docs2/troubleshooting.mdx b/docs2/troubleshooting.mdx index 962aeb514..924852dee 100644 --- a/docs2/troubleshooting.mdx +++ b/docs2/troubleshooting.mdx @@ -17,11 +17,12 @@ To solve many problems, the first step is reading the logs to find the relevant #### Console logs[​](#console-logs "Direct link to Console logs") - In order to view debug logs, which contain extra information, click the dropdown at the top that says "Default levels" and select "Verbose". + In order to view debug logs, which contain extra information, click the + dropdown at the top that says "Default levels" and select "Verbose". 1. `cmd` + `shift` + `P` for MacOS or `ctrl` - * `shift` + `P` for Windows + - `shift` + `P` for Windows 2. Search for and then select "Developer: Toggle Developer Tools" 3. This will open the [Chrome DevTools window](https://developer.chrome.com/docs/devtools/) 4. Select the `Console` tab @@ -74,8 +75,8 @@ You can find older versions of the JetBrains extension on their [marketplace](ht If your keyboard shortcuts are not resolving, you may have other commands that are taking precedence over the Continue shortcuts. You can see if this is the case, and change your shortcut mappings, in the configuration of your IDE. -* [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings) -* [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html) +- [VSCode keyboard shortcuts docs](https://code.visualstudio.com/docs/getstarted/keybindings) +- [IntelliJ keyboard shortcut docs](https://www.jetbrains.com/help/idea/configuring-keyboard-and-mouse-shortcuts.html) ## FAQs[​](#faqs "Direct link to FAQs") @@ -85,8 +86,8 @@ If your keyboard shortcuts are not resolving, you may have other commands that a If you're seeing a `fetch failed` error and your network requires custom certificates, you will need to configure them in your config file. In each of the objects in the `"models"` array, add `requestOptions.caBundlePath` like this: -* YAML -* JSON +- YAML +- JSON config.yaml @@ -102,7 +103,7 @@ config.json You may also set `requestOptions.caBundlePath` to an array of paths to multiple certificates. -***Windows VS Code Users***: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue. +**_Windows VS Code Users_**: Installing the [win-ca](https://marketplace.visualstudio.com/items?itemName=ukoloff.win-ca) extension should also correct this issue. #### VS Code Proxy Settings[​](#vs-code-proxy-settings "Direct link to VS Code Proxy Settings") @@ -130,11 +131,11 @@ If you are having persistent errors with indexing, our recommendation is to rebu This can be accomplished using the following command: `Continue: Rebuild codebase index`. -### Android Studio - "Nothing to show" in Chat[​](#android-studio---nothing-to-show-in-chat "Direct link to Android Studio - \"Nothing to show\" in Chat") +### Android Studio - "Nothing to show" in Chat[​](#android-studio---nothing-to-show-in-chat 'Direct link to Android Studio - "Nothing to show" in Chat') This can be fixed by selecting `Actions > Choose Boot runtime for the IDE` then selecting the latest version, and then restarting Android Studio. [See this thread](https://github.com/continuedev/continue/issues/596#issuecomment-1789327178) for details. -### I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification[​](#i-received-a-codebase-indexing-disabled---your-linux-system-lacks-required-cpu-features-avx2-fma-notification "Direct link to I received a \"Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)\" notification") +### I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification[​](#i-received-a-codebase-indexing-disabled---your-linux-system-lacks-required-cpu-features-avx2-fma-notification 'Direct link to I received a "Codebase indexing disabled - Your Linux system lacks required CPU features (AVX2, FMA)" notification') We use LanceDB as our vector database for codebase search features. On x64 Linux systems, LanceDB requires specific CPU features (FMA and AVX2) which may not be available on older processors. @@ -150,5 +151,4 @@ If you'd like to perform a clean reset of the extension, including removing all ## Still having trouble?[​](#still-having-trouble "Direct link to Still having trouble?") -You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=\&labels=bug\&projects=\&template=bug-report-%F0%9F%90%9B.md\&title=), providing details of your problem, and we'll be able to help you out more quickly. - +You can also join our Discord community [here](https://discord.gg/vapESyrFmJ) for additional support and discussions. Alternatively, you can create a GitHub issue [here](https://github.com/continuedev/continue/issues/new?assignees=&labels=bug&projects=&template=bug-report-%F0%9F%90%9B.md&title=), providing details of your problem, and we'll be able to help you out more quickly.