Merge branch 'main' into pe/parallel-tool-calling

This commit is contained in:
Patrick Erichsen 2025-07-11 21:33:38 -07:00
commit 0274041f3c
523 changed files with 13358 additions and 25793 deletions

View file

@ -0,0 +1,11 @@
name: Continue Documentation MCP
version: 0.0.1
schema: v1
mcpServers:
- name: Continue Docs Search
type: stdio
command: npx
args:
- mint-mcp
- add
- continue-docs

View file

@ -0,0 +1,25 @@
---
globs: ["gui/**/*", "core/**/*"]
description: Provides test running instructions for GUI and core folders
alwaysApply: false
---
When working with test files, use the following commands to run tests:
GUI folder tests:
- Run all tests: `cd gui && npm test`
Core folder tests:
- Run Jest tests: `cd core && npm test`
- Run Vitest tests: `cd core && npm run vitest`
Test file patterns:
- GUI: _.test.ts or_.test.tsx files use Vitest
- Core: _.test.ts files use Jest,_.vitest.ts files use Vitest
Best practices:
- We are transitioning to vitest, so use that when creating new tests

32
.github/workflows/docs.yml vendored Normal file
View file

@ -0,0 +1,32 @@
name: Docs Check
on:
push:
paths:
- 'docs2/**'
pull_request:
paths:
- 'docs2/**'
jobs:
check-broken-links:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: docs2/package-lock.json
- name: Install dependencies
working-directory: ./docs2
run: npm ci
- name: Check for broken links
working-directory: ./docs2
run: npx mintlify broken-links

3
.gitignore vendored
View file

@ -67,8 +67,9 @@ instance/
# Scrapy stuff:
.scrapy
# Sphinx documentation
# docusaurus
docs/_build/
docs/.docusaurus
# PyBuilder
target/

View file

@ -36,27 +36,27 @@ and [hub of models, rules, prompts, docs, and other building blocks](https://hub
[Agent](https://continue.dev/docs/agent/how-to-use-it) enables you to make more substantial changes to your codebase
![agent](docs/static/img/agent.gif)
![agent](docs/images/agent.gif)
## Chat
[Chat](https://continue.dev/docs/chat/how-to-use-it) makes it easy to ask for help from an LLM without needing to leave
the IDE
![chat](docs/static/img/chat.gif)
![chat](docs/images/chat.gif)
## Autocomplete
[Autocomplete](https://continue.dev/docs/autocomplete/how-to-use-it) provides inline code suggestions as you type
![autocomplete](docs/static/img/autocomplete.gif)
![autocomplete](docs/images/autocomplete.gif)
## Edit
[Edit](https://continue.dev/docs/edit/how-to-use-it) is a convenient way to modify code without leaving your current
file
![edit](docs/static/img/edit.gif)
![edit](docs/images/edit.gif)
</div>

View file

@ -20,6 +20,7 @@ import {
Tool,
} from "../../";
import { MCPManagerSingleton } from "../../context/mcp/MCPManagerSingleton";
import CurrentFileContextProvider from "../../context/providers/CurrentFileContextProvider";
import MCPContextProvider from "../../context/providers/MCPContextProvider";
import RulesContextProvider from "../../context/providers/RulesContextProvider";
import { ControlPlaneProxyInfo } from "../../control-plane/analytics/IAnalyticsProvider.js";
@ -152,6 +153,17 @@ export default async function doLoadConfig(options: {
newConfig.rules.unshift(...rules);
newConfig.contextProviders.push(new RulesContextProvider({}));
// Add current file as context if setting is enabled
if (
newConfig.experimental?.useCurrentFileAsContext === true &&
!newConfig.contextProviders.find(
(c) =>
c.description.title === CurrentFileContextProvider.description.title,
)
) {
newConfig.contextProviders.push(new CurrentFileContextProvider({}));
}
// Add rules from colocated rules.md files in the codebase
const { rules: codebaseRules, errors: codebaseRulesErrors } =
await loadCodebaseRules(ide);

View file

@ -11,7 +11,6 @@ import { ConfigHandler } from "./config/ConfigHandler";
import { SYSTEM_PROMPT_DOT_FILE } from "./config/getWorkspaceContinueRuleDotFiles";
import { addModel, deleteModel } from "./config/util";
import CurrentFileContextProvider from "./context/providers/CurrentFileContextProvider";
import { ContinueServerClient } from "./continueServer/stubs/client";
import { getAuthUrlForTokenPage } from "./control-plane/auth/index";
import { getControlPlaneEnv } from "./control-plane/env";
import { DevDataSqliteDb } from "./data/devdataSqlite";
@ -202,11 +201,6 @@ export class Core {
dataLogger.ideSettingsPromise = ideSettingsPromise;
void ideSettingsPromise.then((ideSettings) => {
const continueServerClient = new ContinueServerClient(
ideSettings.remoteConfigServerUrl,
ideSettings.userToken,
);
// Index on initialization
void this.ide.getWorkspaceDirs().then(async (dirs) => {
// Respect pauseCodebaseIndexOnStart user settings

1
core/index.d.ts vendored
View file

@ -50,6 +50,7 @@ export interface IndexingProgressUpdate {
shouldClearIndexes?: boolean;
status:
| "loading"
| "waiting"
| "indexing"
| "done"
| "failed"

View file

@ -16,7 +16,7 @@ import { ChunkCodebaseIndex } from "./chunk/ChunkCodebaseIndex.js";
import { CodeSnippetsCodebaseIndex } from "./CodeSnippetsIndex.js";
import { FullTextSearchCodebaseIndex } from "./FullTextSearchCodebaseIndex.js";
import { LanceDbIndex } from "./LanceDbIndex.js";
import { getComputeDeleteAddRemove } from "./refreshIndex.js";
import { getComputeDeleteAddRemove, IndexLock } from "./refreshIndex.js";
import {
CodebaseIndex,
IndexResultType,
@ -643,11 +643,47 @@ export class CodebaseIndexer {
);
}
/**
* We want to prevent sqlite concurrent write errors
* when there are 2 indexing happening from different windows.
* We want the other window to wait until the first window's indexing finishes.
* Incase the first window closes before indexing is finished,
* we want to unlock the IndexLock by checking the last timestamp.
*/
private async *waitForDBIndex(): AsyncGenerator<IndexingProgressUpdate> {
let foundLock = await IndexLock.isLocked();
while (foundLock?.locked) {
if ((Date.now() - foundLock.timestamp) / 1000 > 10) {
console.log(`${foundLock.dirs} is not being indexed... unlocking`);
await IndexLock.unlock();
break;
}
console.log(`indexing ${foundLock.dirs}`);
yield {
progress: 0,
desc: "",
status: "waiting",
};
await new Promise((resolve) => setTimeout(resolve, 1000));
foundLock = await IndexLock.isLocked();
}
}
public async refreshCodebaseIndex(paths: string[]) {
if (this.indexingCancellationController) {
this.indexingCancellationController.abort();
}
this.indexingCancellationController = new AbortController();
for await (const update of this.waitForDBIndex()) {
this.updateProgress(update);
}
await IndexLock.lock(paths.join(", ")); // acquire the index lock to prevent multiple windows to begin indexing
const indexLockTimestampUpdateInterval = setInterval(
() => void IndexLock.updateTimestamp(),
5_000,
);
try {
for await (const update of this.refreshDirs(
paths,
@ -664,6 +700,9 @@ export class CodebaseIndexer {
await this.handleIndexingError(e);
}
clearInterval(indexLockTimestampUpdateInterval); // interval will also be cleared when window closes before indexing is finished
await IndexLock.unlock();
// Directly refresh submenu items
if (this.messenger) {
this.messenger.send("refreshSubmenuItems", {

View file

@ -45,6 +45,16 @@ export class SqliteDb {
artifactId STRING NOT NULL
)`,
);
await db.exec(
`CREATE TABLE IF NOT EXISTS indexing_lock (
id INTEGER PRIMARY KEY AUTOINCREMENT,
locked BOOLEAN NOT NULL,
timestamp INTEGER NOT NULL,
dirs STRING NOT NULL
)`,
);
// Delete duplicate rows from tag_catalog
await db.exec(`
DELETE FROM tag_catalog
@ -532,3 +542,47 @@ export function truncateToLastNBytes(input: string, maxBytes: number): string {
export function truncateSqliteLikePattern(input: string, safety: number = 100) {
return truncateToLastNBytes(input, SQLITE_MAX_LIKE_PATTERN_LENGTH - safety);
}
export class IndexLock {
private static getLockTableName() {
return "indexing_lock";
}
static async isLocked(): Promise<
{ locked: boolean; dirs: string; timestamp: number } | undefined | undefined
> {
const db = await SqliteDb.get();
const row = (await db.get(
`SELECT locked, dirs, timestamp FROM ${IndexLock.getLockTableName()} WHERE locked = ?`,
true,
)) as { locked: boolean; dirs: string; timestamp: number } | undefined;
return row;
}
static async lock(dirs: string) {
const db = await SqliteDb.get();
await db.run(
`INSERT INTO ${IndexLock.getLockTableName()} (locked, timestamp, dirs) VALUES (?, ?, ?)`,
true,
Date.now(),
dirs,
);
}
static async updateTimestamp() {
const db = await SqliteDb.get();
await db.run(
`UPDATE ${IndexLock.getLockTableName()} SET timestamp = ? where locked = ?`,
Date.now(),
true,
);
}
static async unlock() {
const db = await SqliteDb.get();
await db.run(
`DELETE FROM ${IndexLock.getLockTableName()} WHERE locked = ?`,
true,
);
}
}

View file

@ -1,9 +1,12 @@
import { streamResponse, streamSse } from "@continuedev/fetch";
import {
AssistantChatMessage,
ChatMessage,
Chunk,
CompletionOptions,
LLMOptions,
ToolCallDelta,
ToolResultChatMessage,
} from "../../index.js";
import { BaseLLM } from "../index.js";
import { fromChatCompletionChunk } from "../openaiTypeConverters.js";
@ -89,30 +92,24 @@ class WatsonX extends BaseLLM {
static providerName = "watsonx";
protected _convertMessage(message: ChatMessage) {
if (typeof message.content === "string") {
return message;
let message_ = message as any;
if (message_.role === "tool") {
message_.tool_call_id = (message as ToolResultChatMessage).toolCallId;
delete message_.toolCallId;
} else if (message.role === "assistant" && !!message.toolCalls) {
message_.tool_calls = message.toolCalls.map((t) => ({
...t,
type: "function",
}));
delete message_.toolCalls;
delete message_.content;
} else if (
message_.role === "user" &&
typeof message_.content === "string"
) {
message_.content = [{ type: "text", text: message_.content }];
}
if (message.role === "tool") {
return null;
}
const parts = message.content.map((part) => {
if (part.type === "imageUrl") {
return {
type: "image_url",
image_url: { ...part.imageUrl, detail: "low" },
};
}
return {
type: "text",
text: part.text,
};
});
return {
...message,
content: parts,
};
return message_;
}
protected _convertArgs(options: any, messages: ChatMessage[]) {
@ -257,11 +254,11 @@ class WatsonX extends BaseLLM {
const headers = this._getHeaders();
const payload: any = {
messages: messages,
messages: messages.map(this._convertMessage).filter(Boolean),
max_tokens: options.maxTokens ?? 1024,
stop: stopSequences,
frequency_penalty: options.frequencyPenalty || 1,
presence_penalty: options.presencePenalty || 1,
frequency_penalty: options.frequencyPenalty ?? 0,
presence_penalty: options.presencePenalty ?? 0,
};
if (!this.deploymentId) {
@ -291,10 +288,53 @@ class WatsonX extends BaseLLM {
signal,
});
let toolName;
let toolCallId = null;
let accumulatedArgs = "";
for await (const value of streamSse(response)) {
const chunk = fromChatCompletionChunk(value);
if (chunk) {
yield chunk;
const message = fromChatCompletionChunk(value);
if (!!message) {
if (
(message as AssistantChatMessage)?.toolCalls &&
(message as AssistantChatMessage).toolCalls?.length !== 0
) {
let chunk = message as AssistantChatMessage;
if (!!chunk.toolCalls?.[0]?.id) {
toolCallId = chunk.toolCalls?.[0]?.id;
}
if (!!chunk.toolCalls?.[0]?.function?.name) {
accumulatedArgs = "";
toolName = chunk.toolCalls[0].function.name;
continue;
}
if (!!toolName) {
if (value?.choices?.[0]?.finish_reason === "tool_calls") {
// If final assistant message has "tool_calls" as finish_reason
let args: string | undefined;
try {
accumulatedArgs += chunk.toolCalls?.[0]?.function?.arguments;
// Check if accumulated argument chunks are parsable
args = JSON.stringify(JSON.parse(accumulatedArgs));
} catch (e) {
// Otherwise use arguments from final assistant tool call message
args = chunk.toolCalls?.[0]?.function?.arguments;
}
const toolCall = {
function: { name: toolName, arguments: args },
id: toolCallId,
};
chunk.toolCalls = [toolCall as ToolCallDelta];
} else {
if (!!chunk.toolCalls?.[0]?.function?.arguments)
accumulatedArgs += chunk.toolCalls?.[0]?.function?.arguments;
continue;
}
}
yield chunk;
} else {
yield message;
}
}
}
}

20
docs/.gitignore vendored
View file

@ -1,20 +0,0 @@
# Dependencies
/node_modules
# Production
/build
# Generated files
.docusaurus
.cache-loader
# Misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local
npm-debug.log*
yarn-debug.log*
yarn-error.log*

2
docs/.prettierignore Normal file
View file

@ -0,0 +1,2 @@
*.md
*.mdx

View file

@ -1,3 +1,32 @@
# Continue Docs
# Mintlify Starter Kit
Markdown content exists in the `docs/` folder, nested as it will be shown in the sidebar. `docusaurus.config.js` defines important footer, sidebar, and title content for the site.
Click on `Use this template` to copy the Mintlify starter kit. The starter kit contains examples including
- Guide pages
- Navigation
- Customizations
- API Reference pages
- Use of popular components
### Development
Install the [Mintlify CLI](https://www.npmjs.com/package/mint) to preview the documentation changes locally. To install, use the following command
```
npm i -g mint
```
Run the following command at the root of your documentation (where docs.json is)
```
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.
#### Troubleshooting
- If the dev environment isn't running - Run `mint update` to ensure you have the most recent version of the CLI.
- Page loads as a 404 - Make sure you are running in a folder with `docs.json`

View file

@ -1,10 +1,12 @@
---
title: Quick Start
description: Get started with Continue's autocomplete feature
keywords: [autocomplete, quick start, getting started, code completion]
title: "Autocomplete"
sidebarTitle: "How To Use It"
icon: "circle-question"
---
![autocomplete](/img/autocomplete.gif)
<Frame>
<img src="/images/autocomplete-9d4e3f7658d3e65b8e8b20f2de939675.gif" />
</Frame>
## How to use it
@ -12,16 +14,16 @@ Autocomplete provides inline code suggestions as you type. To enable it, simply
### Accepting a full suggestion
Accept a full suggestion by pressing <kbd>Tab</kbd>
Accept a full suggestion by pressing `Tab`
### Rejecting a full suggestion
Reject a full suggestion with <kbd>Esc</kbd>
Reject a full suggestion with `Esc`
### Partially accepting a suggestion
For more granular control, use <kbd>cmd/ctrl</kbd> + <kbd>→</kbd> to accept parts of the suggestion word-by-word.
For more granular control, use `cmd/ctrl` + `→` to accept parts of the suggestion word-by-word.
### 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 **<kbd>cmd/ctrl</kbd> + <kbd>alt</kbd> + <kbd>space</kbd>**.
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`**.

View file

@ -1,3 +0,0 @@
module.exports = {
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
};

View file

@ -0,0 +1,39 @@
---
title: "Chat"
sidebarTitle: "How To Use It"
icon: "circle-question"
---
<Frame>
<img src="/images/chat-489b68d156be2aafe09ee7cedf233fba.gif" />
</Frame>
## How to use it
Chat makes it easy to ask for help from an LLM without needing to leave the IDE. You send it a task, including any relevant information, and it replies with the text / code most likely to complete the task. If it does not give you what you want, then you can send follow up messages to clarify and adjust its approach until the task is completed.
Chat is best used to understand and iterate on code or as a replacement for search engine queries.
## Type a request and press enter
You send it a question, and it replies with an answer. You tell it to solve a problem, and it provides you a solution. You ask for some code, and it generates it.
## Highlight a code section to include as context
You select a code section with your mouse, press `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) to send it to the LLM, and then ask for it to be explained to you or request it to be refactored in some way.
## Reference context with the @ symbol
If there is information from the codebase, documentation, IDE, or other tools that you want to include as context, you can type @ to select and include it as context. You can learn more about how to use this in [Chat context selection](/features/chat/quick-start#3-use--for-additional-context).
## Apply generated code to your file
When the LLM replies with edits to a file, you can click the “Apply” button. This will update the existing code in the editor to reflect the suggested changes.
## Start a fresh session for a new task
Once you complete a task and want to start a new one, press `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) to begin a new session, ensuring only relevant context for the next task is provided to the LLM.
## Switch between different models
If you have configured multiple models, you can switch between models using the dropdown or by pressing `cmd/ctrl` + `’`

View file

@ -0,0 +1,16 @@
---
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
![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.

View file

@ -0,0 +1,19 @@
---
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
![Model Blocks Overview](/images/customization/images/model-blocks-overview-36c30e7e01928d7a9b5b26ff1639c34b.png)
## Learn More[​](#learn-more "Direct link to Learn More")
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.

View file

@ -1,24 +1,21 @@
---
title: Overview
description: Introduction to customizing Continue
keywords: [customize, configure, config]
title: "Overview"
description: "Continue can be deeply customized. For example you might:"
---
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](../customize/model-providers/top-level/openai.mdx).
- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](../customize/model-roles/00-intro.mdx).
- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](../customize/custom-providers.mdx).
- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](../customize/deep-dives/slash-commands.mdx).
- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../features/agent/quick-start.mdx). Add custom tools using [MCP Servers](../customize/deep-dives/mcp.mdx)
- **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.
## Editing your assistant
## Editing your assistant[​](#editing-your-assistant "Direct link to Editing your assistant")
You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing `cmd/ctrl` + `L` (VS Code) or `cmd/ctrl` + `J` (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
![configure an assistant](/img/configure-continue.png)
![configure an assistant](/images/customization/images/configure-continue-a5c8c79f3304c08353f3fc727aa5da7e.png)
- See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hub assistant
- See the [Config Deep Dive](../customize/deep-dives/configuration.md) 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.

View file

@ -0,0 +1,16 @@
---
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
![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).

View file

@ -0,0 +1,20 @@
---
title: "Rules Blocks"
description: "Rules allow you to provide specific instructions that guide how the AI assistant behaves when working with your code. Instead of the AI making assumptions about your coding standards, architecture patterns, or project-specific requirements, you can explicitly define guidelines that ensure consistent, contextually appropriate responses."
---
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
By implementing rules, you transform the AI from a generic coding assistant into a knowledgeable team member that understands your project's unique requirements and constraints.
### How Rules Work[​](#how-rules-work "Direct link to How Rules Work")
Your assistant detects rule blocks and applies the specified rules while in [Agent](/features/agent/quick-start), [Chat](/features/chat/quick-start), and [Edit](/features/edit/quick-start) modes.
## 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.

View file

@ -1,18 +1,18 @@
---
title: "@Codebase"
description: Talk to your codebase
keywords: [talk, embeddings, reranker, codebase, experimental]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# @Codebase
Continue indexes your codebase so that it can later automatically pull in the most relevant context from throughout your workspace. This is done via a combination of embeddings-based retrieval and keyword search. By default, all embeddings are calculated locally using `transformers.js` and stored locally in `~/.continue/index`.
:::info[`transformers.js cannot be used in JetBrains`]
Currently, `transformers.js` cannot be used in JetBrains IDEs. However, you can select a differet embeddings model from [the list here](../model-roles/embeddings.mdx).
:::
<Info>
**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).
</Info>
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.
@ -43,8 +43,8 @@ Here are use cases where it is not useful:
There are a few options that let you configure the behavior of the `@codebase` context provider, which are the same for the `@folder` context provider:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
context:
- provider: codebase
@ -53,8 +53,8 @@ There are a few options that let you configure the behavior of the `@codebase` c
nFinal: 5
useReranking: true
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -69,7 +69,7 @@ There are a few options that let you configure the behavior of the `@codebase` c
]
}
```
</TabItem>
</Tab>
</Tabs>
### `nRetrieve`

View file

@ -1,4 +1,5 @@
---
title: "@Docs"
description: Learn how to access and search your project's documentation directly within Continue
keywords:
[
@ -14,9 +15,6 @@ keywords:
toc_max_heading_level: 5
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# @Docs
The [`@Docs` context provider](../custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
@ -25,14 +23,14 @@ The [`@Docs` context provider](../custom-providers#docs) allows you to efficient
To enable the `@Docs` context provider, add it to the list of context providers in your `config.json` file.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
context:
- provider: docs
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -42,7 +40,7 @@ To enable the `@Docs` context provider, add it to the list of context providers
]
}
```
</TabItem>
</Tab>
</Tabs>
## How It Works
@ -87,16 +85,16 @@ Documentation sources may be suggested based on package files in your repo. This
For bulk documentation site adds or edits, we recommend editing your global configuration file directly. Documentation sites are stored in an array within `docs` in your global configuration, as follows:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
docs:
- title: Nest.js
startUrl: https://docs.nestjs.com/
faviconUrl: https://docs.nestjs.com/favicon.ico
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"docs": [
@ -108,7 +106,7 @@ For bulk documentation site adds or edits, we recommend editing your global conf
]
}
```
</TabItem>
</Tab>
</Tabs>
See [the config reference](/reference) for all documentation site configuration options.
@ -125,8 +123,8 @@ If you have set up an [embeddings provider](../model-roles/embeddings.mdx), @doc
As with [@Codebase context provider configuration](./codebase#configuration), you can adjust the reranking behavior of the `@Docs` context provider with the `nRetrieve`, `nFinal`, and `useReranking`.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
context:
- provider: docs
@ -135,8 +133,8 @@ As with [@Codebase context provider configuration](./codebase#configuration), yo
nFinal: 5 # The number of docs chunks to return IF reranking
useReranking: true # use reranking if a reranker is configured (defaults to true)
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -151,23 +149,23 @@ As with [@Codebase context provider configuration](./codebase#configuration), yo
]
}
```
</TabItem>
</Tab>
</Tabs>
### GitHub
The GitHub API rate limits public requests to 60 per hour. If you want to reliably index GitHub repos, you can add a github token to your config file:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
context:
- provider: docs
params:
githubToken: <GITHUB_TOKEN>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -180,7 +178,7 @@ The GitHub API rate limits public requests to 60 per hour. If you want to reliab
]
}
```
</TabItem>
</Tab>
</Tabs>
### Local Crawling
@ -189,8 +187,8 @@ By default, Continue crawls documentation sites using a specialized crawling ser
If your documentation is private, you can skip the default crawler and use a local crawler instead by setting `useLocalCrawling` to `true`.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
docs:
- title: My Private Docs
@ -198,8 +196,8 @@ If your documentation is private, you can skip the default crawler and use a loc
faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
useLocalCrawling: true
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"docs": [
@ -212,13 +210,13 @@ If your documentation is private, you can skip the default crawler and use a loc
]
}
```
</TabItem>
</Tab>
</Tabs>
:::info
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. */}
:::
<Info>
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. */}
</Info>
Further notes:
@ -248,8 +246,8 @@ You can also use the following IDE command to force a re-index of all docs: `Con
The following configuration example works out of the box for VS Code. This uses the built-in embeddings provider with no reranking.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
context:
- provider: docs
@ -258,8 +256,8 @@ The following configuration example works out of the box for VS Code. This uses
- title: Nest.js
startUrl: https://docs.nestjs.com/
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -275,15 +273,15 @@ The following configuration example works out of the box for VS Code. This uses
]
}
```
</TabItem>
</Tab>
</Tabs>
### Jetbrains minimal setup
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx).
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: LMStudio embedder
@ -297,8 +295,8 @@ Here is the equivalent minimal example for Jetbrains, which requires setting up
- title: Nest.js
startUrl: https://docs.nestjs.com/
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -318,7 +316,7 @@ Here is the equivalent minimal example for Jetbrains, which requires setting up
}
}
```
</TabItem>
</Tab>
</Tabs>
### Full-power setup (VS Code or Jetbrains)
@ -330,8 +328,8 @@ The following configuration example includes:
- A reranker model available, with reranking parameters customized
- A GitHub token to enable GitHub crawling
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: LMStudio Nomic Text
@ -361,8 +359,8 @@ The following configuration example includes:
maxDepth: 4
useLocalCrawling: true
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"contextProviders": [
@ -402,7 +400,7 @@ The following configuration example includes:
}
}
```
</TabItem>
</Tab>
</Tabs>
{/* This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../deep-dives/settings.md). */}

View file

@ -0,0 +1,816 @@
---
title: "Context Providers"
description: "Context Providers allow you to type '@' and see a dropdown of content that can all be fed to the LLM as context. Every context provider is a plugin, which means if you want to reference some source of information that you don't see here, you can request (or build!) a new context provider."
---
As an example, say you are working on solving a new GitHub Issue. You type '@Issue' and select the one you are working on. Continue can now see the issue title and contents. You also know that the issue is related to the files 'readme.md' and 'helloNested.py', so you type '@readme' and '@hello' to find and select them. Now these 3 "Context Items" are displayed inline with the rest of your input.
![Context Items](/images/customize/images/context-provider-example-0c96ff77286fa970b23dddfdc1fa986a.png)
## Context blocks[​](#context-blocks "Direct link to Context blocks")
You can add context providers to assistants using [`context` blocks](/hub/blocks/block-types#context). Explore available context blocks in [the hub](https://hub.continue.dev/explore/context).
## Built-in Context Providers[​](#built-in-context-providers "Direct link to Built-in Context Providers")
You can add any built-in context-providers in your config file as shown below:
### `@File`[​](#file "Direct link to file")
Reference any file in your current workspace.
- YAML
- JSON
config.yaml
```
context: - provider: file
```
config.json
```json
{ "contextProviders": [{ "name": "file" }] }
```
### `@Code`[​](#code "Direct link to code")
Reference specific functions or classes from throughout your project.
- YAML
- JSON
config.yaml
```
context: - provider: code
```
config.json
```json
{ "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
config.yaml
```
context: - provider: diff
```
config.json
```json
{ "contextProviders": [{ "name": "diff" }] }
```
### `@Current File`[​](#current-file "Direct link to current-file")
Reference the currently open file.
- YAML
- JSON
config.yaml
```
context: - provider: currentFile
```
config.json
```json
{ "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
config.yaml
```
context: - provider: terminal
```
config.json
```json
{ "contextProviders": [{ "name": "terminal" }] }
```
### `@Docs`[​](#docs "Direct link to docs")
Reference the contents from any documentation site.
- YAML
- JSON
config.yaml
```
context: - provider: docs
```
config.json
```json
{ "contextProviders": [{ "name": "docs" }] }
```
Note that this will only enable the `@Docs` context provider.
To use it, you need to add a documentation site to your config file. See the [docs](/customization/overview#documentation-context) page for more information.
### `@Open`[​](#open "Direct link to open")
Reference the contents of all of your open files. Set `onlyPinned` to `true` to only reference pinned files.
- YAML
- JSON
config.yaml
```
context: - provider: open params: onlyPinned: true
```
config.json
```json
{ "contextProviders": [{ "name": "open", "params": { "onlyPinned": true } }] }
```
### `@Web`[​](#web "Direct link to web")
Reference relevant pages from across the web, automatically determined from your input.
Optionally, set `n` to limit the number of results returned (default 6).
- YAML
- JSON
config.yaml
```
context: - provider: web params: n: 5
```
config.json
```json
{ "contextProviders": [{ "name": "web", "params": { "n": 5 } }] }
```
### `@Codebase`[​](#codebase "Direct link to codebase")
Reference the most relevant snippets from your codebase.
- YAML
- JSON
config.yaml
```
context: - provider: codebase
```
config.json
```json
{ "contextProviders": [{ "name": "codebase" }] }
```
Read more about indexing and retrieval [here](/customization/overview#codebase-context).
### `@Folder`[​](#folder "Direct link to folder")
Uses the same retrieval mechanism as `@Codebase`, but only on a single folder.
- YAML
- JSON
config.yaml
```
context: - provider: folder
```
config.json
```json
{ "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
config.yaml
```
context: - provider: search params: maxResults: 100 # optional, defaults to 200
```
config.json
```json
{ "contextProviders": [ { "name": "search", "params": { "maxResults": 100 // optional, defaults to 200 } } ]}
```
This context provider is powered by [ripgrep](https://github.com/BurntSushi/ripgrep).
### `@Url`[​](#url "Direct link to url")
Reference the markdown converted contents of a given URL.
- YAML
- JSON
config.yaml
```
context: - provider: url
```
config.json
```json
{ "contextProviders": [{ "name": "url" }] }
```
### `@Clipboard`[​](#clipboard "Direct link to clipboard")
Reference recent clipboard items
- YAML
- JSON
config.yaml
```
context: - provider: clipboard
```
config.json
```json
{ "contextProviders": [{ "name": "clipboard" }] }
```
### `@Tree`[​](#tree "Direct link to tree")
Reference the structure of your current workspace.
- YAML
- JSON
config.yaml
```
context: - provider: tree
```
config.json
```json
{ "contextProviders": [{ "name": "tree" }] }
```
### `@Problems`[​](#problems "Direct link to problems")
Get Problems from the current file.
- YAML
- JSON
config.yaml
```
context: - provider: problems
```
config.json
```json
{ "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
config.yaml
```
context: - provider: debugger params: stackDepth: 3
```
config.json
```json
{ "contextProviders": [{ "name": "debugger", "params": { "stackDepth": 3 } }] }
```
Uses the top _n_ levels (defaulting to 3) of the call stack for that thread.
### `@Repository Map`[​](#repository-map "Direct link to repository-map")
Reference the outline of your codebase. By default, signatures are included along with file in the repo map.
`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
config.yaml
```
context: - provider: repo-map params: includeSignatures: false # default true
```
config.json
```json
{ "contextProviders": [ { "name": "repo-map", "params": { "includeSignatures": false // default true } } ]}
```
Provides a list of files and the call signatures of top-level classes, functions, and methods in those files. This helps the model better understand how a particular piece of code relates to the rest of the codebase.
In the submenu that appears, you can select either `Entire codebase`, or specify a subfolder to generate the repostiory map from.
This context provider is inpsired by [Aider's repository map](https://aider.chat/2023/10/22/repomap.html).
### `@Operating System`[​](#operating-system "Direct link to operating-system")
Reference the architecture and platform of your current operating system.
- YAML
- JSON
config.yaml
```
context: - provider: os
```
config.json
```json
{ "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
config.yaml
```
mcpServers: - name: My MCP Server command: uvx args: - mcp-server-sqlite - --db-path - /Users/NAME/test.db
```
config.json
```json
{
"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.
### `@Issue`[​](#issue "Direct link to issue")
Reference the conversation in a GitHub issue.
- YAML
- JSON
config.yaml
```
context: - provider: issue params: repos: - owner: continuedev repo: continue githubToken: ghp_xxx
```
config.json
```json
{
"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.
### `@Database`[​](#database "Direct link to database")
Reference table schemas from Sqlite, Postgres, MSSQL, and MySQL databases.
- YAML
- JSON
config.yaml
```
context: - provider: database params: connections: - name: examplePostgres connection_type: postgres connection: user: username host: localhost database: exampleDB password: yourPassword port: 5432 - name: exampleMssql connection_type: mssql connection: user: username server: localhost database: exampleDB password: yourPassword - name: exampleSqlite connection_type: sqlite connection: filename: /path/to/your/sqlite/database.db
```
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" }
}
]
}
}
]
}
```
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`[​](#postgres "Direct link to postgres")
Reference the schema of a table, and some sample rows
- YAML
- JSON
config.yaml
```
context: - provider: postgres params: host: localhost port: 5436 user: myuser password: catsarecool database: animals schema: public sampleRows: 3
```
config.json
```json
{
"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`.
By default, the `schema` filter is set to `public`, and the `sampleRows` is set to 3. You may unset the schema if you want to include tables from all schemas.
[Here is a short demo.](https://github.com/continuedev/continue/pull/859)
### `@Google`[​](#google "Direct link to google")
Reference the results of a Google search.
- YAML
- JSON
config.yaml
```
context: - provider: google params: serperApiKey: <YOUR_SERPER.DEV_API_KEY>
```
config.json
```json
{
"contextProviders": [
{
"name": "google",
"params": { "serperApiKey": "<YOUR_SERPER.DEV_API_KEY>" }
}
]
}
```
For example, type "@Google python tutorial" if you want to search and discuss ways of learning Python.
Note: You can get an API key for free at [serper.dev](https://serper.dev).
### `@Gitlab Merge Request`[​](#gitlab-merge-request "Direct link to gitlab-merge-request")
Reference an open MR for this branch on GitLab.
- YAML
- JSON
config.yaml
```
context: - provider: gitlab-mr params: token: "..."
```
config.json
```json
{ "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.
#### Using Self-Hosted GitLab[​](#using-self-hosted-gitlab "Direct link to Using Self-Hosted GitLab")
You can specify the domain to communicate with by setting the `domain` parameter in your configurtion. By default this is set to `gitlab.com`.
- YAML
- JSON
config.yaml
```
context: - provider: gitlab-mr params: token: "..." domain: "gitlab.example.com"
```
config.json
```json
{
"contextProviders": [
{
"name": "gitlab-mr",
"params": { "token": "...", "domain": "gitlab.example.com" }
}
]
}
```
#### Filtering Comments[​](#filtering-comments "Direct link to Filtering Comments")
If you select some code to be edited, you can have the context provider filter out comments for other files. To enable this feature, set `filterComments` to `true`.
### `@Jira`[​](#jira "Direct link to jira")
Reference the conversation in a Jira issue.
- YAML
- JSON
config.yaml
```
context: - provider: jira params: domain: company.atlassian.net token: ATATT...
```
config.json
```json
{
"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.
#### Jira Datacenter Support[​](#jira-datacenter-support "Direct link to Jira Datacenter Support")
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
config.yaml
```
context: - provider: jira params: apiVersion: "2"
```
config.json
```json
{ "contextProviders": [{ "name": "jira", "params": { "apiVersion": "2" } }] }
```
#### Issue Query[​](#issue-query "Direct link to Issue Query")
By default, the following query will be used to find issues:
```
assignee = currentUser() AND resolution = Unresolved order by updated DESC
```
You can override this query by setting the `issueQuery` parameter.
#### Max results[​](#max-results "Direct link to Max results")
You can set the `maxResults` parameter to limit the number of results returned. The default is `50`.
### `@Discord`[​](#discord "Direct link to discord")
Reference the messages in a Discord channel.
- YAML
- JSON
config.yaml
```
context: - provider: discord params: discordKey: "bot token" guildId: "1234567890" channels: - id: "123456" name: "example-channel" - id: "678901" name: "example-channel-2"
```
config.json
```json
{
"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.
### `@HTTP`[​](#http "Direct link to http")
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
config.yaml
```
context: - provider: http params: url: "https://api.example.com/v1/users"
```
config.json
```json
{
"contextProviders": [
{ "name": "http", "params": { "url": "https://api.example.com/v1/users" } }
]
}
```
The receiving URL should expect to receive the following parameters:
POST parameters
```json
{ query: string, fullInput: string}
```
The response 200 OK should be a JSON object with the following structure:
Response
```
[ { "name": "", "description": "", "content": "" }]// OR{ "name": "", "description": "", "content": ""}
```
### `@Commits`[​](#commits "Direct link to commits")
Reference specific git commit metadata and diff or all of the recent commits.
- YAML
- JSON
config.yaml
```
context: - provider: commit params: Depth: 50 LastXCommitsDepth: 10
```
config.json
```json
{
"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.
### `@Greptile`[​](#greptile "Direct link to greptile")
Query a [Greptile](https://www.greptile.com/) index of the current repo/branch.
- YAML
- JSON
config.yaml
```
context: - provider: greptile params: greptileToken: "..." githubToken: "..."
```
config.json
```json
{
"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.

View file

@ -4,7 +4,7 @@ keywords: [apply, speculative]
toc_max_heading_level: 5
---
<!-- This is a work in progress and excluded by prefixing the file name with an underscore -->
{/* This is a work in progress and excluded by prefixing the file name with an underscore */}
# Apply

View file

@ -1,20 +1,18 @@
---
title: Autocomplete
title: "Autocomplete"
description: "Deep dive into Continue's autocomplete functionality and configuration"
keywords: [autocomplete]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
### Setting up with Codestral (recommended)
If you want to have the best autocomplete experience, we recommend using Codestral, which is available through the [Mistral API](https://console.mistral.ai/). To do this, obtain an API key and add it to your config:
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
[Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Codestral
@ -24,8 +22,8 @@ If you want to have the best autocomplete experience, we recommend using Codestr
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -36,12 +34,16 @@ If you want to have the best autocomplete experience, we recommend using Codestr
}
}
```
</TabItem>
</Tab>
</Tabs>
:::tip[Codestral API Key]
The API keys for Codestral and the general Mistral APIs are different. If you are using Codestral, you probably want a Codestral API key, but if you are sharing the key as a team or otherwise want to use `api.mistral.ai`, then make sure to set `"apiBase": "https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
:::
<Tip>
**Codestral API Key**: The API keys for Codestral and the general Mistral APIs
are different. If you are using Codestral, you probably want a Codestral API
key, but if you are sharing the key as a team or otherwise want to use
`api.mistral.ai`, then make sure to set `"apiBase":
"https://api.mistral.ai/v1"` in your `tabAutocompleteModel`.
</Tip>
### Setting up with Ollama (default)
@ -53,11 +55,11 @@ ollama run qwen2.5-coder:1.5b
Then, add the model to your configuration:
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
[Ollama Qwen 2.5 Coder 1.5B model block](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b)
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen 1.5b Autocomplete Model
@ -66,8 +68,8 @@ Then, add the model to your configuration:
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -77,7 +79,7 @@ Then, add the model to your configuration:
}
}
```
</TabItem>
</Tab>
</Tabs>
Once the model has been downloaded, you should begin to see completions in VS Code.

View file

@ -1,13 +1,12 @@
---
title: "Configuration"
description: Configuration
keywords: [config, settings, customize]
---
# Configuration
You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
![configure an assistant](/img/configure-continue.png)
![configure an assistant](/images/configure-continue.png)
## Hub Assistants
@ -22,7 +21,7 @@ Local user-level configuration is stored and can be edited in your home director
To open this `config.yaml`, you need to open the assistants dropdown in the top-right portion of the chat input. On that dropdown beside the "Local Assistant" option, select the cog icon. It will open the local `config.yaml`.
![local-config-open-steps](/img/local-config-open-steps.png)
![local-config-open-steps](/images/local-config-open-steps.png)
When editing this file, you can see the available options suggested as you type, or check the reference below. When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
@ -30,9 +29,9 @@ See the full reference for `config.yaml` [here](/reference).
## Deprecated configuration methods
:::info
View the `config.json` migration guide [here](../yaml-migration.mdx)
:::
<Info>
View the `config.json` migration guide [here](../yaml-migration.mdx)
</Info>
- [`config.json`](/reference) - The original configuration format which is stored in a file at the same location as `config.yaml`
- [`.continuerc.json`](#continuercjson) - Workspace-level configuration

View file

@ -4,8 +4,6 @@ description: Collecting data on how you build software
keywords: [development data, dev data, LLM-aided development]
---
# Development Data
When you use Continue, you automatically collect data on how you build software. By default, this development data is saved to `.continue/dev_data` on your local machine.
You can read more about how development data is generated as a byproduct of LLM-aided development and why we believe that you should start collecting it now: [It’s time to collect data on how you build software](https://blog.continue.dev/its-time-to-collect-data-on-how-you-build-software)

View file

@ -4,9 +4,6 @@ description: MCP use and customization
keywords: [tool, use, function calling, claude, automatic]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# MCP
As AI systems get better, they're still held back by their training data and
@ -27,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).
:::info
MCP can only be used in the **agent** mode.
:::
<Info>MCP can only be used in the **agent** mode.</Info>
## Quick Start
@ -58,7 +53,47 @@ Open the browser and navigate Hacker News. Save the top 10 headlines in a hn.txt
The result will be a generated file called `hn.txt` in the current working directory.
![playwright mcp](/img/mcp-playwright.png)
![playwright mcp](/images/mcp-playwright.png)
## Continue Documentation Search
You can set up an MCP server to search the Continue documentation directly from your agent. This is particularly useful for getting help with Continue configuration and features.
1. Create a folder called `.continue/mcpServers` at the top level of your workspace
2. Add a file called `continue-docs-mcp.yaml` to this folder
3. Write the following contents and save:
```yaml title=".continue/mcpServers/continue-docs-mcp.yaml"
name: Continue Documentation MCP
version: 0.0.1
schema: v1
mcpServers:
- name: Continue Docs Search
type: stdio
command: npx
args:
- mint-mcp
- add
- continue-docs
```
Now you can search the Continue documentation by asking questions like:
```
Search for model setup instructions in the Continue docs
```
```
Find documentation about context providers
```
```
How do I configure autocomplete in Continue?
```
The MCP server will search the Continue documentation and provide relevant information to help with your questions.
For detailed setup instructions and troubleshooting, see the [Continue MCP Reference](/reference/continue-mcp).
## Using MCP Servers
@ -68,8 +103,8 @@ quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
block](https://hub.continue.dev/new?type=block&blockType=mcpServers) or add a local MCP
server block to your [config file](./configuration.md):
<Tabs groupId="config.yaml">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
mcpServers:
- name: SQLite MCP
@ -80,8 +115,8 @@ server block to your [config file](./configuration.md):
- "/path/to/your/database.db"
````
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"experimental": {
@ -98,7 +133,7 @@ server block to your [config file](./configuration.md):
}
````
</TabItem>
</Tab>
</Tabs>
### Syntax
@ -110,7 +145,6 @@ MCP blocks follow the established syntax for blocks, with a few additional prope
- `type` (optional): The type of the MCP server: `sse`, `stdio`, `streamable-http`
- `args` (optional): Arguments to pass to the command.
- `env` (optional): Secrets to be injected into the command as environment variables.
- `cwd` (optional): Working directory to run the command in. Can be absolute or relative path.
### Transport Types
@ -133,22 +167,12 @@ For local MCP servers that communicate via standard input and output:
```yaml
mcpServers:
- name: SQLite Server
- name: Name
type: stdio
command: npx
args:
- "@modelcontextprotocol/server-sqlite"
- "./database.db"
cwd: "/path/to/project"
- name: Local Project Server
command: npm
args:
- "run"
- "mcp-server"
cwd: "./my-project"
env:
NODE_ENV: "production"
- "/path/to/your/database.db"
```
#### Streamable HTTP Transport

View file

@ -4,9 +4,12 @@ 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.
:::info
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.
:::
<Info>
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.
</Info>
### Quick Start

View file

@ -0,0 +1,167 @@
---
title: "Rules"
description: "Rules are used to provide instructions to the model for Chat, Edit, and Agent requests."
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.
<Info>
Rules are not included in [autocomplete](./autocomplete.mdx) or
[apply](../model-roles/apply.mdx).
</Info>
## How it works
You can view the current rules by clicking the pen icon above the main toolbar:
![rules input toolbar section](/images/notch-rules.png)
To form the system message, rules are joined with new lines, in the order they appear in the toolbar. This includes the base chat system message ([see below](#chat-system-message)).
## Quick Start
Below is a quick example of setting up a new rule file:
1. Create a folder called `.continue/rules` at the top level of your workspace
2. Add a file called `pirates-rule.md` to this folder.
3. Write the following contents to `pirates-rule.md` and save.
```md title=".continue/rules/pirates-rule.md"
---
name: Pirate rule
---
- Talk like a pirate.
```
Now test your rules by asking a question about a file in chat.
![pirate rule test](/images/pirate-rule-test.png)
## Creating rules blocks
Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
![add local rules button](/images/add-local-rules.png)
<Info>
**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.
</Info>
Rules can also be added to an Assistant on the Continue Hub.
Explore available rules [here](https://hub.continue.dev), or [create your own](https://hub.continue.dev/new?type=block&blockType=rules) in the Hub.
### Syntax
<Info>
Rules were originally defined in YAML format (demonstrated below), but we
introduced Markdown for easier editing. While both are still supported, we
recommend Markdown.
</Info>
Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
- `name` (**required** for YAML): A display name/title for 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"]`).
- `regex` (optional): When files are provided as context and their content matches this regex pattern, the rule will be included. This can be either a single pattern (e.g., `"^import .* from '.*';$"`) or an array of patterns (e.g., `["^import .* from '.*';$", "^export .* from '.*';$"]`).
- `description` (optional): A description for the rule. Agents may read this description when `alwaysApply` is false to determine whether the rule should be pulled into context.
- `alwaysApply`: Determines whether the rule is always included. Behavior is described below:
- `true`: Always included, regardless of file context
- `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on its description
- `undefined` (default behavior): Included if no globs exist OR globs exist and match
<Tabs>
<Tab title="Markdown">
```md title="doc-standards.md"
---
name: Documentation Standards
globs: docs/**/*.{md,mdx}
alwaysApply: false
description: Standards for writing and maintaining Continue Docs
---
# Continue Docs Standards
- Follow Docusaurus documentation standards
- Include YAML frontmatter with title, description, and keywords
- Use consistent heading hierarchy starting with h2 (##)
- Include relevant Admonition components for tips, warnings, and info
- Use descriptive alt text for images
- Include cross-references to related documentation
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
````
</Tab>
<Tab title="YAML">
```yaml title="doc-standards.yaml"
name: Documentation Standards
version: 1.0.0
schema: v1
rules:
- name: Documentation Standards
globs: docs/**/*.{md,mdx}
alwaysApply: false
rule: >
- Follow Docusaurus documentation standards
- Include YAML frontmatter with title, description, and keywords
- Use consistent heading hierarchy starting with h2 (##)
- Include relevant Admonition components for tips, warnings, and info
- Use descriptive alt text for images
- Include cross-references to related documentation
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
````
</Tab>
</Tabs>
### `.continue/rules` folder
You can create project-specific rules by adding a `.continue/rules` folder to the root of your project and adding new rule files.
Rules files are loaded in lexicographical order, so you can prefix them with numbers to control the order in which they are applied. For example: `01-general.md`, `02-frontend.md`, `03-backend.md`.
### Example: TypeScript Rules
```md title=".continue/rules/typescript.md"
---
name: TypeScript Best Practices
globs: ["**/*.ts", "**/*.tsx"]
---
# TypeScript Rules
- Always use TypeScript interfaces for object shapes
- Use type aliases sparingly, prefer interfaces
- Include proper JSDoc comments for public APIs
- Use strict null checks
- Prefer readonly arrays and properties where possible
- modularize components into smaller, reusable pieces
```
### Chat System Message
Continue includes a simple default system message for [Chat](../../features/chat/quick-start) and [Agent](../../features/agent/quick-start) requests, to help the model provide reliable codeblock formats in its output.
This can be viewed in the rules section of the toolbar (see above), or in the source code [here](https://github.com/continuedev/continue/blob/main/core/llm/constructMessages.ts#L4).
Advanced users can override this system message for a specific model if needed by using `chatOptions.baseSystemMessage`. See the [`config.yaml` reference](/reference#models).
### `.continuerules`
<Warning>
`.continuerules` will be deprecated in a future release. Please use the
`.continue/rules` folder instead.
</Warning>
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.

View file

@ -1,23 +1,19 @@
---
title: "Rules"
description: Rules are used to provide instructions to the model for Chat, Edit, and Agent requests.
keywords: [rules, .continuerules, system, prompt, message]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Rules
Rules provide instructions to the model for [Chat](../../features/chat/quick-start), [Edit](../../features/edit/quick-start), and [Agent](../../features/agent/quick-start) requests.
:::info Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
:::
<Info> Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
</Info>
## How it works
You can view the current rules by clicking the pen icon above the main toolbar:
![rules input toolbar section](/img/notch-rules.png)
![rules input toolbar section](/images/notch-rules.png)
To form the system message, rules are joined with new lines, in the order they appear in the toolbar. This includes the base chat system message ([see below](#chat-system-message)).
@ -39,19 +35,19 @@ name: Pirate rule
Now test your rules by asking a question about a file in chat.
![pirate rule test](/img/pirate-rule-test.png)
![pirate rule test](/images/pirate-rule-test.png)
## Creating `rules` blocks
Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
![add local rules button](/img/add-local-rules.png)
![add local rules button](/images/add-local-rules.png)
:::info 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.
<Info>
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.
:::
</Info>
Rules can also be added to an Assistant on the Continue Hub.
@ -59,11 +55,11 @@ Explore available rules [here](https://hub.continue.dev), or [create your own](h
### Syntax
:::info
<Info>
Rules were originally defined in YAML format (demonstrated below), but we introduced Markdown for easier editing. While both are still supported, we recommend Markdown.
:::
</Info>
Rules blocks can be simple text, written in YAML configuration files, or as Markdown (`.md`) files. They can have the following properties:
@ -76,9 +72,9 @@ Rules blocks can be simple text, written in YAML configuration files, or as Mark
- `false`: Included if globs exist AND match file context, or the agent decides to pull the rule into context based on it's description
- `undefined` (default behavior): Included if no globs exist OR globs exist and match
<Tabs groupId="rules-example">
<TabItem value="md" label="Markdown">
```yaml title="doc-standards.md"
<Tabs>
<Tab title="Markdown">
```md title="doc-standards.md"
---
name: Documentation Standards
globs: docs/**/*.{md,mdx}
@ -86,21 +82,20 @@ Rules blocks can be simple text, written in YAML configuration files, or as Mark
description: Standards for writing and maintaining Continue Docs
---
# Continue Docs Standards
# Continue Docs Standards
- Follow Docusaurus documentation standards
- Include YAML frontmatter with title, description, and keywords
- Use consistent heading hierarchy starting with h2 (##)
- Include relevant Admonition components for tips, warnings, and info
- Use descriptive alt text for images
- Include cross-references to related documentation
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
````
</TabItem>
<TabItem value="yaml" label="YAML">
- Follow Docusaurus documentation standards
- Include YAML frontmatter with title, description, and keywords
- Use consistent heading hierarchy starting with h2 (##)
- Include relevant Admonition components for tips, warnings, and info
- Use descriptive alt text for images
- Include cross-references to related documentation
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
```
</Tab>
<Tab title="YAML">
```yaml title="doc-standards.yaml"
name: Documentation Standards
@ -121,9 +116,8 @@ Rules blocks can be simple text, written in YAML configuration files, or as Mark
- Reference other docs with relative paths
- Keep paragraphs concise and scannable
- Use code blocks with appropriate language tags
````
</TabItem>
```
</Tab>
</Tabs>
@ -180,10 +174,8 @@ Advanced users can override this system message for a specific model if needed b
### `.continuerules`
:::warning
<Warning>
`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
:::
</Warning>
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.

View file

@ -4,15 +4,12 @@ description: Shortcuts that can be activated by prefacing your input with '/'
keywords: [slash command, custom commands, step]
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
![actions](/img/actions.gif)
![actions](/images/actions.gif)
## Slash commands
Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
![slash-commands](/img/slash-commands.png)
![slash-commands](/images/slash-commands.png)
Slash commands can be combined with additional instructions, including [context providers](../custom-providers.mdx) or highlighted code.

View file

@ -1,14 +1,11 @@
---
title: VS Code Actions
description: VS Code Actions
keywords: [vscode, quick actions, quick, actions]
---
### Other triggers for Actions (VS Code)
:::info
Currently all of these are only available in VS Code
:::
<Info>Currently all of these are only available in VS Code</Info>
To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
@ -16,7 +13,7 @@ To make common use cases even more accessible, we provide a handful of other way
Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompts.md) to perform custom actions.
![quick-actions](/img/quick-actions.png)
![quick-actions](/images/quick-actions.png)
By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
@ -28,7 +25,7 @@ The highlighted code you’ve selected will be included in your prompt alongside
Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../features/edit/how-it-works.mdx).
![context-menu](/img/context-menu.png)
![context-menu](/images/context-menu.png)
## Debug action
@ -46,4 +43,4 @@ Whenever you see red/yellow underlines in your code indicating errors, you can p
Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
![ask-continue](/img/ask-continue.png)
![ask-continue](/images/ask-continue.png)

View file

Before

Width:  |  Height:  |  Size: 858 KiB

After

Width:  |  Height:  |  Size: 858 KiB

View file

@ -1,5 +1,8 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
title: "Llama Stack"
description: "Configure Llama Stack with Continue"
keywords: [llama, stack, local, api, inference]
---
# Llama Stack
@ -23,8 +26,8 @@ Learn more about how to get started with llama stack in this [guide](https://lla
We recommend configuring **Llama 4 Maverick** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama4 Maverick
@ -32,8 +35,8 @@ We recommend configuring **Llama 4 Maverick** as your chat model.
model: meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8
apiBase: http://<llama stack endpoint>/v1/openai/v1/
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -46,15 +49,15 @@ We recommend configuring **Llama 4 Maverick** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **CodeLlama 7B** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: CodeLlama 7B
@ -64,8 +67,8 @@ We recommend configuring **CodeLlama 7B** as your autocomplete model.
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -76,15 +79,15 @@ We recommend configuring **CodeLlama 7B** as your autocomplete model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: all-MiniLM-L6-v2
@ -94,8 +97,8 @@ By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -105,7 +108,7 @@ By default, Llama Stack uses **all-MiniLM-L6-v2** as the embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# SambaNova Cloud
---
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.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: SambaNova Llama 4 Scout
@ -14,8 +13,8 @@ The SambaNova Cloud is a cloud platform for running large AI models with the wor
model: Llama-4-Scout-17B-16E-Instruct
apiKey: <YOUR_SAMBANOVA_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ The SambaNova Cloud is a cloud platform for running large AI models with the wor
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)

View file

@ -1,18 +1,20 @@
# Ask Sage
---
title: "AskSage"
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
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)
:::
<Info>
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)
</Info>
## Configuration
To use the Ask Sage models, you can use the following
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: GPT-4 gov
@ -21,8 +23,8 @@ To use the Ask Sage models, you can use the following
apiBase: https://api.asksage.ai/server/
apiKey: <YOUR_ASK_SAGE_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -36,7 +38,7 @@ To use the Ask Sage models, you can use the following
]
}
```
</TabItem>
</Tab>
</Tabs>
The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:

View file

@ -1,7 +1,6 @@
# Cerebras Inference
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
title: "Cerebras"
---
Cerebras Inference uses specialized silicon to provides fast inference.
@ -9,8 +8,8 @@ Cerebras Inference uses specialized silicon to provides fast inference.
2. Create and copy the API key for use in Continue.
3. Update your Continue config file:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Cerebras Llama 3.1 70B
@ -18,8 +17,8 @@ Cerebras Inference uses specialized silicon to provides fast inference.
model: llama3.1-70b
apiKey: <YOUR_CEREBRAS_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -32,5 +31,5 @@ Cerebras Inference uses specialized silicon to provides fast inference.
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Cloudflare Workers AI
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama 3 8B
@ -40,8 +39,8 @@ Cloudflare Workers AI can be used for both chat and tab autocompletion in Contin
env:
accountId: YOUR CLOUDFLARE ACCOUNT ID
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -77,7 +76,7 @@ Cloudflare Workers AI can be used for both chat and tab autocompletion in Contin
}
}
```
</TabItem>
</Tab>
</Tabs>
Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Cohere
---
title: "Cohere"
---
Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
@ -9,8 +8,8 @@ Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/a
We recommend configuring **Command A** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Command A 03-2025
@ -18,8 +17,8 @@ We recommend configuring **Command A** as your chat model.
model: command-a-03-2025
apiKey: <YOUR_COHERE_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -32,7 +31,7 @@ We recommend configuring **Command A** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -45,8 +44,8 @@ Cohere currently does not offer any autocomplete models.
We recommend configuring **embed-v4.0** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Cohere Embed v4.0
@ -56,8 +55,8 @@ We recommend configuring **embed-v4.0** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -67,15 +66,15 @@ We recommend configuring **embed-v4.0** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
We recommend configuring **rerank-v3.5** as your reranking model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Cohere Rerank v3.5
@ -85,8 +84,8 @@ We recommend configuring **rerank-v3.5** as your reranking model.
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -98,5 +97,5 @@ We recommend configuring **rerank-v3.5** as your reranking model.
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# DeepInfra
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: DeepInfra
@ -14,8 +13,8 @@ import TabItem from "@theme/TabItem";
model: mistralai/Mixtral-8x7B-Instruct-v0.1
apiKey: <YOUR_DEEP_INFRA_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ import TabItem from "@theme/TabItem";
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Flowise
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Flowise
@ -14,8 +13,8 @@ import Tabs from "@theme/Tabs";
model: <MODEL>
apiBase: <API_BASE>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ import Tabs from "@theme/Tabs";
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)

View file

@ -1,27 +1,28 @@
---
title: "Function Network"
---
---
title: Function Network
slug: ../function-network
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Function Network
> Private, Affordable User-Owned AI
:::info
<Info>
To get an API key, login to the Function Network Developer Platform. If you don't have an account, you can create one [here](https://www.function.network/join-waitlist).
:::
</Info>
## Chat model
Function Network supports a number of models for chat. We recommend using LLama 3.1 70b or Qwen2.5-Coder-32B-Instruct.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama 3.1 70b
@ -31,8 +32,8 @@ Function Network supports a number of models for chat. We recommend using LLama
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -45,7 +46,7 @@ Function Network supports a number of models for chat. We recommend using LLama
]
}
```
</TabItem>
</Tab>
</Tabs>
[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
@ -54,8 +55,8 @@ Function Network supports a number of models for chat. We recommend using LLama
Function Network supports a number of models for autocomplete. We recommend using Llama 3.1 8b or Qwen2.5-Coder-1.5B.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Deepseek Coder 6.7b
@ -65,8 +66,8 @@ Function Network supports a number of models for autocomplete. We recommend usin
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -77,15 +78,15 @@ Function Network supports a number of models for autocomplete. We recommend usin
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
Function Network supports a number of models for embeddings. We recommend using baai/bge-base-en-v1.5.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: BGE Base En
@ -95,8 +96,8 @@ Function Network supports a number of models for embeddings. We recommend using
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -106,7 +107,7 @@ Function Network supports a number of models for embeddings. We recommend using
}
}
```
</TabItem>
</Tab>
</Tabs>
[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.

View file

@ -1,19 +1,20 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
title: "Groq"
---
# Groq
:::info
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.
:::
<Info>
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.
</Info>
Groq provides the fastest available inference for open-source language models, including the entire Llama 3.1 family.
1. Obtain an API key [here](https://console.groq.com/keys)
2. Update your Continue config file like this:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama 3.3 70b Versatile
@ -23,8 +24,8 @@ Groq provides the fastest available inference for open-source language models, i
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -37,5 +38,5 @@ Groq provides the fastest available inference for open-source language models, i
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# HuggingFace Inference Endpoints
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Hugging Face Inference API
@ -15,8 +14,8 @@ Hugging Face Inference Endpoints are an easy way to setup instances of open-sour
apiKey: <YOUR_HF_TOKEN>
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -30,7 +29,7 @@ Hugging Face Inference Endpoints are an easy way to setup instances of open-sour
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)

View file

@ -1,24 +1,25 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
title: "Intel Extension for PyTorch"
---
# IPEX-LLM
:::info
[**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.
:::
<Info>
[**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.
</Info>
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: IPEX-LLM
provider: ollama
model: AUTODETECT
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -30,13 +31,13 @@ IPEX-LLM supports accelerated Ollama backend to be hosted on Intel GPU. Refer to
]
}
```
</TabItem>
</Tab>
</Tabs>
If you would like to reach the Ollama service from another machine, make sure you set or export the environment variable `OLLAMA_HOST=0.0.0.0` before executing the command `ollama serve`. Then, in the Continue configuration, set `'apiBase'` to correspond with the IP address / port of the remote machine. That is, Continue can be configured to be:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: IPEX-LLM
@ -44,8 +45,8 @@ If you would like to reach the Ollama service from another machine, make sure yo
model: AUTODETECT
apiBase: http://your-ollama-service-ip:11434
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -58,9 +59,12 @@ If you would like to reach the Ollama service from another machine, make sure yo
]
}
```
</TabItem>
</Tab>
</Tabs>
:::tip
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.
:::
<Tip>
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.
</Tip>

View file

@ -1,14 +1,13 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Kindo
---
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
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.5 Sonnet
@ -16,8 +15,8 @@ Kindo offers centralized control over your organization's AI operations, ensurin
model: claude-3-5-sonnet
apiKey: <YOUR_KINDO_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -30,13 +29,13 @@ Kindo offers centralized control over your organization's AI operations, ensurin
]
}
```
</TabItem>
</Tab>
</Tabs>
## Tab Autocomplete Config Example
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: WhiteRabbitNeo
@ -46,8 +45,8 @@ Kindo offers centralized control over your organization's AI operations, ensurin
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": [
@ -61,7 +60,7 @@ Kindo offers centralized control over your organization's AI operations, ensurin
]
}
```
</TabItem>
</Tab>
</Tabs>
## Security

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# LlamaCpp
---
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:
@ -11,8 +10,8 @@ Run the llama.cpp server binary to start the API server. If running on a remote
After it's up and running, change `~/.continue/config.json` to look like this:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama CPP
@ -20,8 +19,8 @@ After it's up and running, change `~/.continue/config.json` to look like this:
model: MODEL_NAME
apiBase: http://localhost:8080
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -34,7 +33,7 @@ After it's up and running, change `~/.continue/config.json` to look like this:
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)

View file

@ -1,20 +1,19 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Llamafile
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llamafile
provider: llamafile
model: mistral-7b
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -26,7 +25,7 @@ A [llamafile](https://github.com/Mozilla-Ocho/llamafile#readme) is a self-contai
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)

View file

@ -1,20 +1,19 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# LM Studio
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: LM Studio
provider: lmstudio
model: llama2-7b
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -26,15 +25,15 @@ import Tabs from "@theme/Tabs";
]
}
```
</TabItem>
</Tab>
</Tabs>
### Embeddings model
LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed-text-v1.5-GGUF` model (as of Nov 2024, check your models)
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Nomic Embed Text
@ -43,8 +42,8 @@ LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -53,15 +52,15 @@ LMStudio supports embeddings endpoints, and comes with the `nomic-ai/nomic-embed
}
}
```
</TabItem>
</Tab>
</Tabs>
## Setting up a remote instance
To configure a remote instance of LM Studio, add the `"apiBase"` property to your model in config.json:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Nomic Embed Text
@ -70,8 +69,8 @@ To configure a remote instance of LM Studio, add the `"apiBase"` property to you
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -80,7 +79,7 @@ To configure a remote instance of LM Studio, add the `"apiBase"` property to you
}
}
```
</TabItem>
</Tab>
</Tabs>
This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Moonshot
---
title: "Moonshot AI"
---
[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
@ -12,8 +11,8 @@ To use Moonshot AI models, you need to:
1. Get an API key from [Moonshot AI Platform](https://platform.moonshot.cn/)
2. Add the following configuration:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Moonshot
@ -21,8 +20,8 @@ To use Moonshot AI models, you need to:
model: moonshot-v1-8k
apiKey: <YOUR_MOONSHOT_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -35,7 +34,7 @@ To use Moonshot AI models, you need to:
]
}
```
</TabItem>
</Tab>
</Tabs>
## Available Models
@ -58,8 +57,8 @@ Moonshot AI currently provides the following models:
Here's a complete configuration example:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Moonshot-8K
@ -71,8 +70,8 @@ Here's a complete configuration example:
topP: 0.95
maxTokens: 2048
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -90,5 +89,5 @@ Here's a complete configuration example:
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Morph
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- uses: morphllm/morph-v0
@ -25,8 +24,8 @@ or
promptTemplates:
apply: "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -44,15 +43,15 @@ or
]
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **morph-embedding-v2** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Morph Embeddings
@ -63,8 +62,8 @@ We recommend configuring **morph-embedding-v2** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -75,15 +74,15 @@ We recommend configuring **morph-embedding-v2** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
We recommend configuring **morph-rerank-v2** as your reranking model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Morph Reranker
@ -94,8 +93,8 @@ We recommend configuring **morph-rerank-v2** as your reranking model.
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -108,5 +107,5 @@ We recommend configuring **morph-rerank-v2** as your reranking model.
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,20 +1,19 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Msty
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Msty
provider: msty
model: deepseek-coder:6.7b
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -26,7 +25,7 @@ import Tabs from "@theme/Tabs";
]
}
```
</TabItem>
</Tab>
</Tabs>
## Completion Options
@ -44,8 +43,8 @@ In addition to the model type, you can also configure some of the parameters tha
If you need to send custom headers for authentication, you may use the `requestOptions.headers` property like this:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Msty
@ -55,8 +54,8 @@ If you need to send custom headers for authentication, you may use the `requestO
headers:
Authorization: Bearer xxx
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -73,7 +72,7 @@ If you need to send custom headers for authentication, you may use the `requestO
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts)

View file

@ -1,12 +1,11 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# nCompass
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="Package or config.yaml"
models:
- name: Ncompass Gemma 3 Coder
@ -14,8 +13,8 @@ The nCompass Technologies API exposes an extremely fast inference engine for ope
model: google/gemma-3-27b-it
apiKey: <YOUR_NCOMPASS_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ The nCompass Technologies API exposes an extremely fast inference engine for ope
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/NCompass.ts)

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Nebius AI Studio
---
title: "Nebius"
---
You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
@ -11,8 +10,8 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
## Chat model
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: DeepSeek R1
@ -20,8 +19,8 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
model: deepseek-ai/DeepSeek-R1
apiKey: <YOUR_NEBIUS_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -34,15 +33,15 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
]
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
Available models can be found on the [Nebius AI Studio embeddings page](https://studio.nebius.ai/models/embedding)
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: BAAI Embedder
@ -52,8 +51,8 @@ Available models can be found on the [Nebius AI Studio embeddings page](https://
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -63,5 +62,5 @@ Available models can be found on the [Nebius AI Studio embeddings page](https://
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Novita
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama 3.1 8B
@ -14,8 +13,8 @@ import Tabs from "@theme/Tabs";
model: meta-llama/llama-3.1-8b-instruct
apiKey: <YOUR_NOVITA_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ import Tabs from "@theme/Tabs";
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)

View file

@ -1,20 +1,23 @@
---
title: NVIDIA
title: "NVIDIA"
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
:::info
[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.
:::
## title: NVIDIA
<Info>
[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.
</Info>
## Chat model
We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Nemotron-4-340B-Instruct
@ -22,8 +25,8 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
model: nvidia-nemotron-4-340b-instruct
apiKey: <YOUR_NVIDIA_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -36,7 +39,7 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -49,8 +52,8 @@ NVIDIA currently does not offer any autocomplete models.
We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Nvidia Embedder
@ -60,8 +63,8 @@ We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings m
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -71,7 +74,7 @@ We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings m
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -1,14 +1,13 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# OpenRouter
---
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.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: OpenRouter LLaMA 70 8B
@ -17,8 +16,8 @@ Change `~/.continue/config.json` to look like the following.
apiBase: https://openrouter.ai/api/v1
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -32,15 +31,15 @@ Change `~/.continue/config.json` to look like the following.
]
}
```
</TabItem>
</Tab>
</Tabs>
To utilize features such as provider preferences or model routing configuration, include these parameters inside the `models[].requestsOptions.extraBodyProperties` field of your plugin config.
For example, to prevent extra long prompts from being compressed, you can explicitly turn off the feature like so:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Example Model
@ -50,8 +49,8 @@ For example, to prevent extra long prompts from being compressed, you can explic
extraBodyProperties:
transforms: []
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -68,7 +67,7 @@ For example, to prevent extra long prompts from being compressed, you can explic
]
}
```
</TabItem>
</Tab>
</Tabs>
Learn more about available settings [here](https://openrouter.ai/docs).

View file

@ -1,8 +1,12 @@
# OpenVINO™ Model Server
---
title: "OpenVINO Model Server"
---
:::info
[**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.
:::
<Info>
[**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.
</Info>
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.

View file

@ -1,23 +1,27 @@
---
title: OVHcloud AI Endpoints
title: "OVHcloud"
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
## 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.
:::info
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/).
:::
<Info>
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/).
</Info>
## Chat model
We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of our models hsoted on AI Endpoints.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen2.5-Coder-32B-Instruct
@ -25,8 +29,8 @@ Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of ou
model: qwen2.5-coder-32b
apiKey: <YOUR_AIENDPOINTS_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -39,15 +43,15 @@ Check our [catalog](https://endpoints.ai.cloud.ovh.net/catalog) to see all of ou
]
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: BGE Multilingual Gemma2
@ -57,8 +61,8 @@ We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -68,5 +72,5 @@ We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# Relace
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="Package or config.yaml"
models:
- name: Relace Fast Apply
@ -18,8 +17,8 @@ Relace provides a fast apply model through their API that helps you reliably and
promptTemplates:
apply: "{{{ new_code }}}"
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -32,7 +31,7 @@ Relace provides a fast apply model through their API that helps you reliably and
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Relace.ts)

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# ReplicateLLM
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Replicate CodeLLama
@ -14,8 +13,8 @@ Replicate is a great option for newly released language models or models that yo
model: codellama-13b
apiKey: <YOUR_REPLICATE_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ Replicate is a great option for newly released language models or models that yo
]
}
```
</TabItem>
</Tab>
</Tabs>
If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.

View file

@ -1,14 +1,13 @@
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
# AWS SageMaker
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: deepseek-6.7b-instruct
@ -23,8 +22,8 @@ Here is an example Sagemaker configuration setup:
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -41,7 +40,7 @@ Here is an example Sagemaker configuration setup:
}
}
```
</TabItem>
</Tab>
</Tabs>
The value in model should be the SageMaker endpoint name you deployed.

View file

@ -1,23 +1,27 @@
---
title: Scaleway
title: "Scaleway"
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
---
:::info
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/).
:::
## title: Scaleway
<Info>
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/).
</Info>
## Chat model
We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
[Click here](https://www.scaleway.com/en/docs/ai-data/generative-apis/reference-content/supported-models/) to see the list of available chat models.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen2.5-Coder-32B-Instruct
@ -25,8 +29,8 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
model: qwen2.5-coder-32b-instruct
apiKey: <YOUR_SCALEWAY_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -39,7 +43,7 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -52,8 +56,8 @@ Scaleway currently does not offer any autocomplete models.
We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: BGE Multilingual Gemma2
@ -63,8 +67,8 @@ We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -74,5 +78,5 @@ We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,20 +1,22 @@
---
title: SiliconFlow
title: "SiliconFlow"
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
---
:::info
You can get an API key from the [Silicon Cloud](https://cloud.siliconflow.cn/account/ak).
:::
## title: SiliconFlow
<Info>
You can get an API key from the [Silicon
Cloud](https://cloud.siliconflow.cn/account/ak).
</Info>
## Chat model
We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen
@ -24,8 +26,8 @@ We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -38,15 +40,15 @@ We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen
@ -56,8 +58,8 @@ We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -76,7 +78,7 @@ We recommend configuring **Qwen/Qwen2.5-Coder-7B-Instruct** as your autocomplete
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# TextGenWebUI
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Text Generation WebUI
@ -14,8 +13,8 @@ TextGenWebUI is a comprehensive, open-source language model UI and local server.
apiBase: http://localhost:5000/v1
model: MODEL_NAME
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,5 +27,5 @@ TextGenWebUI is a comprehensive, open-source language model UI and local server.
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -1,12 +1,11 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Together
---
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:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Together Qwen2.5 Coder
@ -14,8 +13,8 @@ The Together API is a cloud platform for running large AI models. You can sign u
model: Qwen/Qwen2.5-Coder-32B-Instruct
apiKey: <YOUR_TOGETHER_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -28,7 +27,7 @@ The Together API is a cloud platform for running large AI models. You can sign u
]
}
```
</TabItem>
</Tab>
</Tabs>
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)

View file

@ -1,4 +1,10 @@
# Venice
---
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.

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# vLLM
---
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).
@ -13,8 +12,8 @@ vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
We recommend configuring **Llama3.1 8B** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama3.1 8B Instruct
@ -22,8 +21,8 @@ We recommend configuring **Llama3.1 8B** as your chat model.
model: meta-llama/Meta-Llama-3.1-8B-Instruct
apiBase: http://<vllm chat endpoint>/v1
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -36,15 +35,15 @@ We recommend configuring **Llama3.1 8B** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen2.5-Coder 1.5B
@ -54,8 +53,8 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -66,15 +65,15 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **Nomic Embed Text** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: VLLM Nomad Embed Text
@ -84,8 +83,8 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -95,7 +94,7 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -1,7 +1,6 @@
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# IBM watsonx
---
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.
@ -43,8 +42,8 @@ To authenticate to your watsonx.ai Software instance with Continue, you can use
Add the following configuration:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: watsonx - Model Name
@ -56,8 +55,8 @@ Add the following configuration:
projectId: PROJECT_ID
apiVersion: 2024-03-14
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -73,15 +72,15 @@ Add the following configuration:
]
}
```
</TabItem>
</Tab>
</Tabs>
`apiVersion` is optional and defaults to the latest version.
If you are using a custom deployment endpoint, set `deploymentID` to the model's deployment ID. You can find it in the watsonx.ai Prompt Lab UI by selecting the corresponding model and opening the `</>` tab on the right, which will display the endpoint's URL containing the deployment ID.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: watsonx - Model Name
@ -93,8 +92,8 @@ If you are using a custom deployment endpoint, set `deploymentID` to the model's
apiVersion: 2024-03-14
deploymentId: DEPLOYMENT_ID
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -110,7 +109,7 @@ If you are using a custom deployment endpoint, set `deploymentID` to the model's
]
}
```
</TabItem>
</Tab>
</Tabs>
### Configuration Options
@ -118,8 +117,8 @@ If you are using a custom deployment endpoint, set `deploymentID` to the model's
Make sure to specify a template name, such as `granite` or `llama3`, and to set the `contextLength` to the model's context window size.
You can also configure generation parameters, such as temperature, topP, topK, frequency penalty, and stop sequences:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Granite Code 20b
@ -143,8 +142,8 @@ You can also configure generation parameters, such as temperature, topP, topK, f
apiVersion: 2024-03-14
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -170,15 +169,15 @@ You can also configure generation parameters, such as temperature, topP, topK, f
]
}
```
</TabItem>
</Tab>
</Tabs>
## Tab Auto Complete Model
Granite models are recommended for tab auto complete. The configuration is similar to that of the chat models:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Granite Code 8b
@ -191,8 +190,8 @@ Granite models are recommended for tab auto complete. The configuration is simil
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -207,15 +206,15 @@ Granite models are recommended for tab auto complete. The configuration is simil
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings Model
To view the list of available embeddings models, visit [this page](https://dataplatform.cloud.ibm.com/docs/content/wsj/analyze-data/fm-models-embed.html?context=wx&pos=2#ibm-provided).
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Watsonx Embedder
@ -228,8 +227,8 @@ To view the list of available embeddings models, visit [this page](https://datap
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -242,13 +241,13 @@ To view the list of available embeddings models, visit [this page](https://datap
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranker
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Watsonx Reranker
@ -259,8 +258,8 @@ To view the list of available embeddings models, visit [this page](https://datap
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
apiVersion: 2024-03-14
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -275,5 +274,5 @@ To view the list of available embeddings models, visit [this page](https://datap
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -3,19 +3,17 @@ title: Anthropic
slug: ../anthropic
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [Anthropic console](https://console.anthropic.com/account/keys).
:::
<Info>
You can get an API key from the [Anthropic
console](https://console.anthropic.com/account/keys).
</Info>
## Chat model
We recommend configuring **Claude 4 Sonnet** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 4 Sonnet
@ -23,8 +21,8 @@ We recommend configuring **Claude 4 Sonnet** as your chat model.
model: claude-sonnet-4-20250514
apiKey: <YOUR_ANTHROPIC_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -37,7 +35,7 @@ We recommend configuring **Claude 4 Sonnet** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -71,8 +69,8 @@ Prompt caching is generally available for:
To enable caching of the system message and the turn-by-turn conversation, update your model configuration as follows:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Anthropic
@ -84,8 +82,8 @@ To enable caching of the system message and the turn-by-turn conversation, updat
defaultCompletionOptions:
promptCaching: true
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -105,5 +103,5 @@ To enable caching of the system message and the turn-by-turn conversation, updat
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -3,23 +3,20 @@ title: Azure AI Foundry
slug: ../azure
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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).
:::info
<Info>
For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
:::
</Info>
## Chat model
We recommend configuring **GPT-4o** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: GPT-4o
@ -31,8 +28,8 @@ We recommend configuring **GPT-4o** as your chat model.
deployment: <YOUR_DEPLOYMENT_NAME>
apiType: azure-foundry # Or "azure-openai" if using OpenAI models
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [{
@ -46,15 +43,15 @@ We recommend configuring **GPT-4o** as your chat model.
}]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Codestral** as your autocomplete model. If you use Azure AI Foundry to deploy Codestral:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Codestral
@ -65,8 +62,8 @@ We recommend configuring **Codestral** as your autocomplete model. If you use Az
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -78,15 +75,15 @@ We recommend configuring **Codestral** as your autocomplete model. If you use Az
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **text-embedding-3-large** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Text Embedding-3 Large
@ -98,8 +95,8 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
deployment: <YOUR_DEPLOYMENT_NAME>
apiType: azure
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -112,7 +109,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
@ -125,9 +122,12 @@ 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.
:::info[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.
:::
<Info>
**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.
</Info>
## Azure OpenAI Service configuration
@ -137,8 +137,8 @@ To find this information in _Azure AI Foundry_, first select the model that you
For example, a Target URI of `https://just-an-example.openai.azure.com/openai/deployments/gpt-4o-july/chat/completions?api-version=2023-03-15-preview` would map to the following:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: GPT-4o Azure
@ -151,8 +151,8 @@ For example, a Target URI of `https://just-an-example.openai.azure.com/openai/de
deployment: gpt-4o-july
apiType: azure-openai
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"title": "GPT-4o Azure",
@ -165,5 +165,5 @@ For example, a Target URI of `https://just-an-example.openai.azure.com/openai/de
"apiType": "azure-openai"
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -3,17 +3,14 @@ title: Amazon Bedrock
slug: ../bedrock
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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
We recommend configuring **Claude 3.7 Sonnet** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.7 Sonnet
@ -25,8 +22,8 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -40,15 +37,15 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
> If you run into the following error when connecting to the new Claude 3.5 Sonnet 2 models from AWS - `400 Invocation of model ID anthropic.claude-3-5-sonnet-20241022-v2:0 with on-demand throughput isn't supported. Retry your request with the ID or ARN of an inference profile that contains this model.`
> You can fix this using the following config:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.5 Sonnet
@ -60,8 +57,8 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -75,7 +72,7 @@ We recommend configuring **Claude 3.7 Sonnet** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -88,8 +85,8 @@ In the meantime, you can view a list of autocomplete model providers [here](../.
We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazon.com/bedrock/latest/devguide/models.html#amazon.titan-embed-text-v2-0) as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Embeddings Model
@ -100,8 +97,8 @@ We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazo
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -112,15 +109,15 @@ We recommend configuring [`amazon.titan-embed-text-v2:0`](https://docs.aws.amazo
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may also use `amazon.rerank-v1:0`.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Bedrock Reranker
@ -131,8 +128,8 @@ We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -144,7 +141,7 @@ We recommend configuring `cohere.rerank-v3-5:0` as your reranking model, you may
}
}
```
</TabItem>
</Tab>
</Tabs>
## Prompt caching
@ -193,8 +190,8 @@ aws_session_token = pqrstuvwxyz # Optional: means short term creds.
To setup Bedrock using custom imported models, add the following to your config file:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: AWS Bedrock deepseek-coder-6.7b-instruct
@ -205,8 +202,8 @@ To setup Bedrock using custom imported models, add the following to your config
profile: bedrock
modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -221,7 +218,7 @@ To setup Bedrock using custom imported models, add the following to your config
]
}
```
</TabItem>
</Tab>
</Tabs>
Authentication will be through temporary or long-term credentials in

View file

@ -3,19 +3,16 @@ title: DeepSeek
slug: ../deepseek
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
:::
<Info>
You can get an API key from the [DeepSeek console](https://www.deepseek.com/).
</Info>
## Chat model
We recommend configuring **DeepSeek Chat** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: DeepSeek Chat
@ -23,8 +20,8 @@ We recommend configuring **DeepSeek Chat** as your chat model.
model: deepseek-chat
apiKey: <YOUR_DEEPSEEK_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -37,15 +34,15 @@ We recommend configuring **DeepSeek Chat** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **DeepSeek Coder** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: DeepSeek Coder
@ -55,8 +52,8 @@ We recommend configuring **DeepSeek Coder** as your autocomplete model.
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -67,7 +64,7 @@ We recommend configuring **DeepSeek Coder** as your autocomplete model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model

View file

@ -3,19 +3,17 @@ title: Gemini
slug: ../gemini
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [Google AI Studio](https://aistudio.google.com/).
:::
<Info>
You can get an API key from the [Google AI
Studio](https://aistudio.google.com/).
</Info>
## Chat model
We recommend configuring **Gemini 2.0 Flash** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Gemini 2.0 Flash
@ -23,8 +21,8 @@ We recommend configuring **Gemini 2.0 Flash** as your chat model.
model: gemini-2.0-flash
apiKey: <YOUR_GEMINI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -37,7 +35,7 @@ We recommend configuring **Gemini 2.0 Flash** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -50,8 +48,8 @@ Gemini currently does not offer any autocomplete models.
We recommend configuring **text-embedding-004** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Gemini Embeddings
@ -61,8 +59,8 @@ We recommend configuring **text-embedding-004** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -72,7 +70,7 @@ We recommend configuring **text-embedding-004** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -3,27 +3,25 @@ title: Inception
slug: ../inception
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [Inception Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
:::
<Info>
You can get an API key from the [Inception
Dashboard](https://platform.inceptionlabs.ai/dashboard/api-keys).
</Info>
## Chat model
We recommend configuring **Mercury Coder Small** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- uses: inceptionlabs/mercury-coder-small
with:
INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -36,23 +34,23 @@ We recommend configuring **Mercury Coder Small** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We also recommend configuring **Mercury Coder Small** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- uses: inceptionlabs/mercury-coder-small
with:
INCEPTION_API_KEY: ${{ secrets.INCEPTION_API_KEY }}
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": [
@ -65,7 +63,7 @@ We also recommend configuring **Mercury Coder Small** as your autocomplete model
]
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model

View file

@ -3,19 +3,21 @@ title: Mistral
slug: ../mistral
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
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`.
:::
<Info>
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`.
</Info>
## Chat model
We recommend configuring **Mistral Large** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Mistral Large
@ -25,8 +27,8 @@ We recommend configuring **Mistral Large** as your chat model.
roles:
- chat
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -39,15 +41,15 @@ We recommend configuring **Mistral Large** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Codestral** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Codestral
@ -57,8 +59,8 @@ We recommend configuring **Codestral** as your autocomplete model.
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -69,15 +71,15 @@ We recommend configuring **Codestral** as your autocomplete model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **Mistral Embed** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Mistral Embed
@ -88,8 +90,8 @@ We recommend configuring **Mistral Embed** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -100,7 +102,7 @@ We recommend configuring **Mistral Embed** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -3,25 +3,22 @@ title: Ollama
slug: ../ollama
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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
We recommend configuring **Llama3.1 8B** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama3.1 8B
provider: ollama
model: llama3.1:8b
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -33,15 +30,15 @@ We recommend configuring **Llama3.1 8B** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Qwen2.5-Coder 1.5B
@ -50,8 +47,8 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
roles:
- autocomplete
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -61,15 +58,15 @@ We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **Nomic Embed Text** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Nomic Embed Text
@ -78,8 +75,8 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -88,7 +85,7 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
@ -101,8 +98,8 @@ Ollama currently does not offer any reranking models.
To configure a remote instance of Ollama, add the `"apiBase"` property to your model in config.json:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Llama3.1 8B
@ -110,8 +107,8 @@ To configure a remote instance of Ollama, add the `"apiBase"` property to your m
model: llama3.1:8b
apiBase: http://<my endpoint>:11434
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -124,5 +121,5 @@ To configure a remote instance of Ollama, add the `"apiBase"` property to your m
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -3,19 +3,17 @@ title: OpenAI
slug: ../openai
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [OpenAI console](https://platform.openai.com/account/api-keys)
:::
<Info>
You can get an API key from the [OpenAI
console](https://platform.openai.com/account/api-keys)
</Info>
## Chat model
We recommend configuring **GPT-4o** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: GPT-4o
@ -23,8 +21,8 @@ We recommend configuring **GPT-4o** as your chat model.
model: gpt-4o
apiKey: <YOUR_OPENAI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -37,7 +35,7 @@ We recommend configuring **GPT-4o** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
@ -50,8 +48,8 @@ OpenAI currently does not offer any autocomplete models.
We recommend configuring **text-embedding-3-large** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: OpenAI Embeddings
@ -61,8 +59,8 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -72,7 +70,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model
@ -101,8 +99,8 @@ OpenAI compatible APIs
If you are using an OpenAI compatible server / API, you can change the `apiBase` like this:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: OpenAI-compatible server / API
@ -111,8 +109,8 @@ If you are using an OpenAI compatible server / API, you can change the `apiBase`
apiBase: http://localhost:8000/v1
apiKey: <YOUR_CUSTOM_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -126,13 +124,13 @@ If you are using an OpenAI compatible server / API, you can change the `apiBase`
]
}
```
</TabItem>
</Tab>
</Tabs>
To force usage of `chat/completions` instead of `completions` endpoint you can set:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: OpenAI-compatible server / API
@ -141,8 +139,8 @@ To force usage of `chat/completions` instead of `completions` endpoint you can s
apiBase: http://localhost:8000/v1
useLegacyCompletionsEndpoint: true
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -156,5 +154,5 @@ To force usage of `chat/completions` instead of `completions` endpoint you can s
]
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -3,19 +3,19 @@ title: Vertex AI
slug: ../vertexai
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
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).
:::
<Info>
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).
</Info>
## Chat model
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.5 Sonnet
@ -25,8 +25,8 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
projectId: <PROJECT_ID>
region: us-east5
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -40,15 +40,15 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model
We recommend configuring **Codestral** or **code-gecko** as your autocomplete model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Codestral (Vertex AI)
@ -61,8 +61,8 @@ We recommend configuring **Codestral** or **code-gecko** as your autocomplete mo
region: us-central1
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"tabAutocompleteModel": {
@ -74,15 +74,15 @@ We recommend configuring **Codestral** or **code-gecko** as your autocomplete mo
}
}
```
</TabItem>
</Tab>
</Tabs>
## Embeddings model
We recommend configuring **text-embedding-004** as your embeddings model.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Text Embedding-004
@ -94,8 +94,8 @@ We recommend configuring **text-embedding-004** as your embeddings model.
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -106,7 +106,7 @@ We recommend configuring **text-embedding-004** as your embeddings model.
}
}
```
</TabItem>
</Tab>
</Tabs>
## Reranking model

View file

@ -3,22 +3,19 @@ title: xAI
slug: ../xai
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
You can get an API key from the [xAI console](https://console.x.ai/)
:::
<Info>
You can get an API key from the [xAI console](https://console.x.ai/)
</Info>
## Chat model
We recommend configuring **grok-2-latest** as your chat model. For information on other available models, visit [xAI Documentation](https://docs.x.ai/docs/models).
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Config">
<Tabs>
<Tab title="Config">
Add the [xAI Grok 2 model block](https://hub.continue.dev/xai/grok-2) on the hub.
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Grok 2
@ -26,8 +23,8 @@ We recommend configuring **grok-2-latest** as your chat model. For information o
model: grok-2-latest
apiKey: <YOUR_XAI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -40,7 +37,7 @@ We recommend configuring **grok-2-latest** as your chat model. For information o
]
}
```
</TabItem>
</Tab>
</Tabs>
## Autocomplete model

View file

@ -0,0 +1,60 @@
---
title: "Model roles"
sidebarTitle: Overview
icon: "circle-info"
---
<CardGroup>
<Card title="Introduction" href="/customize/model-roles" icon="file-lines" horizontal >
Apply model role
</Card>
<Card
title="Chat Role"
href="/customize/model-roles/chat"
icon="file-lines"
horizontal
>
Chat model role
</Card>
<Card
title="Autocomplete Role"
href="/customize/model-roles/autocomplete"
icon="file-lines"
horizontal
>
Autocomplete model role
</Card>
<Card
title="Edit Role"
href="/customize/model-roles/edit"
icon="file-lines"
horizontal
>
Edit model role
</Card>
<Card
title="Apply Role"
href="/customize/model-roles/apply"
icon="file-lines"
horizontal
>
Apply model role
</Card>
<Card
title="Embeddings Role"
href="/customize/model-roles/embeddings"
icon="file-lines"
horizontal
>
Embeddings model role
</Card>
<Card title="Rerank Role" href="/customize/model-roles/reranking" icon="file-lines" horizontal >
Rerank model role
</Card>
</CardGroup>

View file

@ -6,9 +6,6 @@ sidebar_position: 0
sidebar_label: Introduction
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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
@ -26,6 +23,7 @@ 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)
:::info
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
:::
<Info>
`roles` are not explicitly defined within `config.json` (deprecated) - they
are infered by the top level keys like `embeddingsProvider`
</Info>

View file

@ -13,9 +13,10 @@ 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.
:::info
Explore all apply models in [the Hub](https://hub.continue.dev/explore/models?roles=apply)
:::
<Info>
Explore all apply models in [the
Hub](https://hub.continue.dev/explore/models?roles=apply)
</Info>
## Prompt templating

View file

@ -5,9 +5,6 @@ keywords: [chat, model, role]
sidebar_position: 1
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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.
@ -22,11 +19,11 @@ For the best overall Chat experience, you will want to use a 400B+ parameter mod
Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-providers/top-level/anthropic.mdx).
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
View the [Claude 3.7 Sonnet model block](https://hub.continue.dev/anthropic/claude-3-7-sonnet) on the hub.
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Claude 3.7 Sonnet
@ -34,8 +31,8 @@ Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-pr
model: claude-3-7-sonnet-latest
apiKey: <YOUR_ANTHROPIC_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -48,35 +45,35 @@ Our current top recommendation is Claude 3.7 Sonnet from [Anthropic](../model-pr
]
}
```
</TabItem>
</Tab>
</Tabs>
### Gemma from Google DeepMind
If you prefer to use an open-weight model, then the Gemma family of Models from Google DeepMind is a good choice. You will need to decide if you use it through a SaaS model provider, e.g. [Together](../model-providers/more/together.mdx), or self-host it, e.g. [Ollama](../model-providers/top-level/ollama.mdx).
<Tabs groupId="config-example">
<TabItem value="hub" label="Hub">
<Tabs groupId="providers">
<TabItem value="Ollama">
<Tabs>
<Tab title="Hub">
<Tabs>
<Tab title="Ollama">
Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub
</TabItem>
<TabItem value="Together">
</Tab>
<Tab title="Together">
Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub
</TabItem>
</Tab>
</Tabs>
</TabItem>
<TabItem value="yaml" label="YAML">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab>
<Tab title="YAML">
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
models:
- name: "Gemma 3 27B"
provider: "ollama"
model: "gemma3:27b"
```
</TabItem>
<TabItem value="Together">
</Tab>
<Tab title="Together">
```yaml title="config.yaml"
models:
- name: "Gemma 3 27B"
@ -84,12 +81,12 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
model: "google/gemma-2-27b-it"
apiKey: <YOUR_TOGETHER_API_KEY>
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
<TabItem value="json" label="JSON">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
@ -101,8 +98,8 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
]
}
```
</TabItem>
<TabItem value="Together">
</Tab>
<Tab title="Together">
```json title="config.json"
{
"models": [
@ -115,20 +112,20 @@ If you prefer to use an open-weight model, then the Gemma family of Models from
]
}
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
</Tab>
</Tabs>
### GPT-4o from OpenAI
If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.mdx), then we recommend GPT-4o.
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: GPT-4o
@ -136,8 +133,8 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.m
model: ''
apiKey: <YOUR_OPENAI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -150,18 +147,18 @@ If you prefer to use a model from [OpenAI](../model-providers/top-level/openai.m
]
}
```
</TabItem>
</Tab>
</Tabs>
### Grok-2 from xAI
If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), then we recommend Grok-2.
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Grok-2
@ -169,8 +166,8 @@ If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), t
model: grok-2-latest
apiKey: <YOUR_XAI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -183,18 +180,18 @@ If you prefer to use a model from [xAI](../model-providers/top-level/xAI.mdx), t
]
}
```
</TabItem>
</Tab>
</Tabs>
### Gemini 2.0 Flash from Google
If you prefer to use a model from [Google](../model-providers/top-level/gemini.mdx), then we recommend Gemini 2.0 Flash.
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
Add the [Gemini 2.0 Flash block](https://hub.continue.dev/google/gemini-2.0-flash) from the hub
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Gemini 2.0 Flash
@ -202,8 +199,8 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini.m
model: gemini-2.0-flash
apiKey: <YOUR_GEMINI_API_KEY>
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"models": [
@ -216,7 +213,7 @@ If you prefer to use a model from [Google](../model-providers/top-level/gemini.m
]
}
```
</TabItem>
</Tab>
</Tabs>
## Local, offline experience
@ -227,49 +224,49 @@ For the best local, offline Chat experience, you will want to use a model that i
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../model-providers/top-level/ollama.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs groupId="providers">
<TabItem value="ollama" label="Ollama">
<Tabs>
<Tab title="Hub">
<Tabs>
<Tab title="Ollama">
Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub
</TabItem>
</Tab>
{/* HUB_TODO nonexistent block */}
{/* <TabItem value="lmstudio" label="LM Studio">
{/* <Tab title="LM Studio">
Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub
</TabItem> */}
</Tab> */}
</Tabs>
</TabItem>
<TabItem value="yaml" label="YAML">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab>
<Tab title="YAML">
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
models:
- name: Llama 3.1 8B
provider: ollama
model: llama3.1:8b
```
</TabItem>
<TabItem value="LM Studio">
</Tab>
<Tab title="LM Studio">
```yaml title="config.yaml"
models:
- name: Llama 3.1 8B
provider: lmstudio
model: llama3.1:8b
```
</TabItem>
<TabItem value="Msty">
</Tab>
<Tab title="Msty">
```yaml title="config.yaml"
models:
- name: Llama 3.1 8B
provider: msty
model: llama3.1:8b
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
<TabItem value="json" label="JSON">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
@ -281,8 +278,8 @@ If your local machine can run an 8B parameter model, then we recommend running L
]
}
```
</TabItem>
<TabItem value="LM Studio">
</Tab>
<Tab title="LM Studio">
```json title="config.json"
{
"models": [
@ -294,8 +291,8 @@ If your local machine can run an 8B parameter model, then we recommend running L
]
}
```
</TabItem>
<TabItem value="Msty">
</Tab>
<Tab title="Msty">
```json title="config.json"
{
"models": [
@ -307,58 +304,58 @@ If your local machine can run an 8B parameter model, then we recommend running L
]
}
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
</Tab>
</Tabs>
### DeepSeek Coder 2 16B
If your local machine can run a 16B parameter model, then we recommend running DeepSeek Coder 2 16B (e.g. using [Ollama](../model-providers/top-level/ollama.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
<Tabs groupId="config-example">
<Tabs>
{/* HUB_TODO nonexistent blocks */}
{/* <TabItem value="hub" label="Hub">
<Tabs groupId="providers">
<TabItem value="ollama" label="Ollama">
{/* <Tab title="Hub">
<Tabs>
<Tab title="Ollama">
Add the [Ollama Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
</TabItem>
<TabItem value="lmstudio" label="LM Studio">
</Tab>
<Tab title="LM Studio">
Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
</TabItem>
</Tab>
</Tabs>
</TabItem> */}
<TabItem value="yaml" label="YAML">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab> */}
<Tab title="YAML">
<Tabs>
<Tab title="Ollama">
```yaml title="config.yaml"
models:
- name: DeepSeek Coder 2 16B
provider: ollama
model: deepseek-coder-v2:16b
```
</TabItem>
<TabItem value="LM Studio">
</Tab>
<Tab title="LM Studio">
```yaml title="config.yaml"
models:
- name: DeepSeek Coder 2 16B
provider: lmstudio
model: deepseek-coder-v2:16b
```
</TabItem>
<TabItem value="Msty">
</Tab>
<Tab title="Msty">
```yaml title="config.yaml"
models:
- name: DeepSeek Coder 2 16B
provider: msty
model: deepseek-coder-v2:16b
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
<TabItem value="json" label="JSON">
<Tabs groupId="providers">
<TabItem value="Ollama">
</Tab>
<Tab title="JSON">
<Tabs>
<Tab title="Ollama">
```json title="config.json"
{
"models": [
@ -371,8 +368,8 @@ If your local machine can run a 16B parameter model, then we recommend running D
]
}
```
</TabItem>
<TabItem value="LM Studio">
</Tab>
<Tab title="LM Studio">
```json title="config.json"
{
"models": [
@ -384,8 +381,8 @@ If your local machine can run a 16B parameter model, then we recommend running D
]
}
```
</TabItem>
<TabItem value="Msty">
</Tab>
<Tab title="Msty">
```json title="config.json"
{
"models": [
@ -397,9 +394,9 @@ If your local machine can run a 16B parameter model, then we recommend running D
]
}
```
</TabItem>
</Tab>
</Tabs>
</TabItem>
</Tab>
</Tabs>
## Other experiences

View file

@ -5,15 +5,12 @@ keywords: [edit, editing, model, role]
sidebar_position: 3
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
Use model roles.
```yaml title="config.yaml"
models:
@ -24,8 +21,8 @@ In Continue, you can add `edit` to a model's roles to specify that it can be use
roles:
- edit
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
Set the `experimental.modelRoles.inlineEdit` property in `config.json`.
```json title="config.json"
{
@ -42,7 +39,7 @@ In Continue, you can add `edit` to a model's roles to specify that it can be use
}
}
```
</TabItem>
</Tab>
</Tabs>
Explore edit models in [the hub](https://hub.continue.dev/explore/models?roles=edit). Generally, our recommendations for Edit overlap with recommendations for Chat.

View file

@ -5,18 +5,17 @@ keywords: [embedding, model, role, embeddings]
sidebar_position: 5
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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.
:::info[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.
:::
<Info>
[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.
</Info>
## Recommended embedding models
@ -28,11 +27,11 @@ If you want to generate embeddings locally, we recommend using `nomic-embed-text
After obtaining an API key from [here](https://www.voyageai.com/), you can configure like this:
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
[Voyage Code 3 Embedder Block](https://hub.continue.dev/voyageai/voyage-code-3)
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Voyage Code 3
@ -42,8 +41,8 @@ After obtaining an API key from [here](https://www.voyageai.com/), you can confi
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -53,7 +52,7 @@ After obtaining an API key from [here](https://www.voyageai.com/), you can confi
}
}
```
</TabItem>
</Tab>
</Tabs>
### Ollama
@ -64,8 +63,8 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
[Transformers.js](https://huggingface.co/docs/transformers.js/index) is a JavaScript port of the popular [Transformers](https://huggingface.co/transformers/) library. It allows embeddings to be calculated entirely locally. The model used is `all-MiniLM-L6-v2`, which is shipped alongside the Continue extension.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
<Tabs>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: default-transformers
@ -73,8 +72,8 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
roles:
- embed
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -82,19 +81,19 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
}
}
```
</TabItem>
</Tab>
</Tabs>
### Text Embeddings Inference
[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own embeddings endpoint. You can configure embeddings to use your endpoint as follows:
<Tabs groupId="config-example">
<Tabs>
{/* HUB_TODO nonexistent block */}
{/* <TabItem value="hub" label="Hub">
{/* <Tab title="Hub">
[HuggingFace Text Embedder Block](https://hub.continue.dev/)
</TabItem> */}
<TabItem value="yaml" label="YAML">
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Huggingface TEI Embedder
@ -103,8 +102,8 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
apiKey: <YOUR_TEI_API_KEY>
roles: [embed]
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"embeddingsProvider": {
@ -114,7 +113,7 @@ See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instruc
}
}
```
</TabItem>
</Tab>
</Tabs>
### OpenAI

View file

@ -0,0 +1,30 @@
---
title: "Intro to Roles"
description: "Models in Continue can be configured to be used for various roles in the extension."
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
These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](/reference#models) for more details.
## Selecting model roles
You can control which of the models in your assistant for a given role will be currently used for that role. Above the main input, click the 3 dots and then the cube icon to expand the `Models` section. Then you can use the dropdowns to select an active model for each role.
<Frame>
<img src="/images/settings-model-roles-5e5f8a6bd9137b70cf94178a7e45847c.png" />
</Frame>
<Note>
### INFO
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
</Note>

View file

@ -5,9 +5,6 @@ keywords: [rerank, reranking, model, role]
sidebar_position: 6
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
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.
@ -20,11 +17,11 @@ If you have the ability to use any model, we recommend `rerank-2` by Voyage AI,
Voyage AI offers the best reranking model for code with their `rerank-2` model. After obtaining an API key from [here](https://www.voyageai.com/), you can configure a reranker as follows:
<Tabs groupId="hub-config-example">
<TabItem value="hub" label="Hub">
<Tabs>
<Tab title="Hub">
[Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2)
</TabItem>
<TabItem value="yaml" label="YAML">
</Tab>
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: My Voyage Reranker
@ -34,8 +31,8 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model.
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -47,19 +44,19 @@ Voyage AI offers the best reranking model for code with their `rerank-2` model.
}
}
```
</TabItem>
</Tab>
</Tabs>
### Cohere
See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rerank-2).
<Tabs groupId="config-example">
<Tabs>
{/* HUB_TODO block doesn't exist */}
{/* <TabItem value="hub" label="Hub">
{/* <Tab title="Hub">
[Cohere Reranker English v3](https://hub.continue.dev/)
</TabItem> */}
<TabItem value="yaml" label="YAML">
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Cohere Reranker
@ -69,8 +66,8 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -82,19 +79,19 @@ See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rer
}
}
```
</TabItem>
</Tab>
</Tabs>
### LLM
If you only have access to a single LLM, then you can use it as a reranker. This is discouraged unless truly necessary, because it will be much more expensive and still less accurate than any of the above models trained specifically for the task. Note that this will not work if you are using a local model, for example with Ollama, because too many parallel requests need to be made.
<Tabs groupId="config-example">
<Tabs>
{/* HUB_TODO block doesn't exist */}
{/* <TabItem value="hub" label="Hub">
{/* <Tab title="Hub">
[GPT-4o LLM Reranker Block](https://hub.continue.dev/)
</TabItem> */}
<TabItem value="yaml" label="YAML">
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: LLM Reranker
@ -103,8 +100,8 @@ If you only have access to a single LLM, then you can use it as a reranker. This
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -115,7 +112,7 @@ If you only have access to a single LLM, then you can use it as a reranker. This
}
}
```
</TabItem>
</Tab>
</Tabs>
The `"modelTitle"` field must match one of the models in your "models" array in config.json.
@ -124,12 +121,12 @@ The `"modelTitle"` field must match one of the models in your "models" array in
[Hugging Face Text Embeddings Inference](https://huggingface.co/docs/text-embeddings-inference/en/index) enables you to host your own [reranker endpoint](https://huggingface.github.io/text-embeddings-inference/#/Text%20Embeddings%20Inference/rerank). You can configure your reranker as follows:
<Tabs groupId="config-example">
<Tabs>
{/* HUB_TODO */}
{/* <TabItem value="hub" label="Hub">
{/* <Tab title="Hub">
[HuggingFace TEI Reranker block](https://hub.continue.dev/)
</TabItem> */}
<TabItem value="yaml" label="YAML">
</Tab> */}
<Tab title="YAML">
```yaml title="config.yaml"
models:
- name: Huggingface-tei Reranker
@ -139,8 +136,8 @@ The `"modelTitle"` field must match one of the models in your "models" array in
roles:
- rerank
```
</TabItem>
<TabItem value="json" label="JSON">
</Tab>
<Tab title="JSON">
```json title="config.json"
{
"reranker": {
@ -152,5 +149,5 @@ The `"modelTitle"` field must match one of the models in your "models" array in
}
}
```
</TabItem>
</Tab>
</Tabs>

View file

@ -0,0 +1,50 @@
---
title: "Overview"
description: "Explore Continue's advanced capabilities for power users and complex development scenarios."
---
## Context Providers[​](#context-providers "Direct link to Context Providers")
Master how Continue understands your codebase with powerful context providers for code, documentation, and more.
[Explore Context Providers →](/customize/custom-providers)
## Context Integration[​](#context-integration "Direct link to Context Integration")
Specialized context features for codebase understanding and documentation integration.
[Browse Context Features →](/customization/overview#codebase-context)
## Deep Dives[​](#deep-dives "Direct link to Deep Dives")
Detailed technical explanations of Continue's internal workings and advanced configuration options.
[Read Deep Dives →](/customization/overview#configuration)
## Model Providers[​](#model-providers "Direct link to Model Providers")
Configure and optimize different AI model providers for your specific needs and infrastructure.
[Configure Providers →](/customization/models#openai)
## Model Roles[​](#model-roles "Direct link to Model Roles")
Understand how different models can be assigned specific roles in your development workflow.
[Learn Model Roles →](/customize/model-roles)
## Reference[​](#reference "Direct link to Reference")
Complete configuration reference and API documentation.
[View Reference →](/reference)
## Troubleshooting[​](#troubleshooting "Direct link to Troubleshooting")
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.

View file

@ -0,0 +1,41 @@
---
title: "User Settings Page"
description: "Reference for Adjusting User-Specific Settings"
keywords: [config, settings, configuration, customize, customization, sidebar]
---
The **User Settings page** can be accessed by clicking the gear icon in the header of the Continue sidebar and then selecting the "Settings" tab.
![settings](/images/settings-header.png)
Which takes you to this page (select the "Settings" tab):
![User Settings Page](/images/settings-page.png)
Below that, the following settings which are not part of a configuration file are available:
- **Show Session Tabs**: If on, displays tabs above the chat as an alternative way to organize and access your sessions. Off by default
- **Wrap Codeblocks**: If on, enables text wrapping in code blocks. Off by default
- **Show Chat Scrollbar**: If on, enables a scrollbar in the chat window. Off by default
- **Text-to-Speech Output**: If on, reads LLM responses aloud with TTS. Off by default
- **Enable Session Titles**: If on, generates summary titles for each chat session after the first message, using the current Chat model. On by default
- **Format Markdown**: If off, shows responses as raw text. On by default
- **Allow Anonymous Telemetry**: If on, allows Continue to send anonymous telemetry. **On** by default
- **Enable Indexing**: Enables indexing of the codebase for the @codebase and @code context providers. **On** by default
- **Font Size**: Specifies base font size for UI elements
- **Multiline Autocompletions**: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
- **Autocomplete timeout**: Maximum time in milliseconds for autocomplete request/retrieval. Defaults to 150
- **Autocomplete debounce**: Minimum time in milliseconds to trigger an autocomplete request after a change. Defaults to 250
- **Disable autocomplete in files**: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., `**/*.{txt,md}`
## Experimental settings
At the bottom of the User Settings page there is an "Experimental Settings" section which contains new or otherwise experimental settings, including:
<Warning>
**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.
</Warning>

Some files were not shown because too many files have changed in this diff Show more