working build
This commit is contained in:
parent
0a1cd05c94
commit
3905bbfc72
143 changed files with 837 additions and 10836 deletions
193
docs/.continue/rules/copy.md
Normal file
193
docs/.continue/rules/copy.md
Normal file
|
|
@ -0,0 +1,193 @@
|
|||
---
|
||||
description: copywriting
|
||||
name: docs copy
|
||||
---
|
||||
|
||||
# Copywriting Guidelines
|
||||
|
||||
## Keep It Clear and Concise
|
||||
|
||||
- Avoid unnecessary words. Get straight to the point.
|
||||
- **Example:** Instead of *"Your cluster will start as soon as possible,"* say **"Launch instantly."**
|
||||
|
||||
## No Fluff or Marketing Speak
|
||||
|
||||
- Avoid phrases that sound overly promotional or vague.
|
||||
- **Example:** Instead of *"Unlock the power of GPUs,"* say **"Deploy an H100 GPU cluster."**
|
||||
|
||||
## Action-Oriented Language
|
||||
|
||||
- Focus on what the user needs to do, not generic descriptions.
|
||||
- **Example:** Instead of *"You will need the SF Compute CLI and kubectl,"* say **"Install @SF Compute CLI and @kubectl to access your cluster."**
|
||||
|
||||
## Consistent Formatting & Terminology
|
||||
|
||||
- Use the same terms across the app (e.g., **"Cluster Duration"** instead of sometimes saying **"Run Time"**).
|
||||
- Use numerals for numbers (**"8 GPUs"**, not **"eight GPUs"**).
|
||||
|
||||
## Be Precise About Technical Details
|
||||
|
||||
- If something requires installation, say so.
|
||||
- If a feature is unavailable, specify when it’s coming or provide an alternative.
|
||||
|
||||
## No Redundant Information
|
||||
|
||||
- Don't repeat what the user already knows.
|
||||
- **Example:** Instead of *"You are placing an order for a K8s cluster,"* just tell them what they need to do next.
|
||||
|
||||
## Make Buttons and Actions Clear
|
||||
|
||||
- **"Place Order"** → **"Confirm Order"** (if payment isn’t immediate).
|
||||
- **"Make Changes"** → **"Edit Order"** (for clarity).
|
||||
- Buttons should be title casing
|
||||
|
||||
## Use a Neutral, Professional Tone
|
||||
|
||||
- Avoid overly casual language unless intentional.
|
||||
- **Example:** Instead of *"Almost there! Just install this tool,"* say **"Install @SF Compute CLI and @kubectl to access your cluster."**
|
||||
|
||||
## Anticipate User Questions
|
||||
|
||||
- If something might be unclear, preemptively address it.
|
||||
- **Example:** If persistent storage isn’t available yet, say **"Persistent storage (Coming soon). Contact us for alternatives."**
|
||||
|
||||
## Ensure UI Copy Feels Integrated
|
||||
|
||||
- Help text shouldn’t feel disconnected from the main UI.
|
||||
- **Example:** If help text is too far from the relevant section, move it closer or embed it as a bullet point.
|
||||
|
||||
## Avoid Ambiguous Timeframes
|
||||
|
||||
- Be **precise** about when something will happen.
|
||||
- **Example:** Instead of *"Your cluster will start shortly,"* say **"Your cluster will be ready in under 60 seconds."**
|
||||
|
||||
## Use User-Centered Language
|
||||
|
||||
- Focus on what **the user** needs, not what the system does.
|
||||
- **Example:** Instead of *"The system will allocate GPUs,"* say **"Your cluster will have dedicated GPUs."**
|
||||
|
||||
## Don't Assume Prior Knowledge
|
||||
|
||||
- If using technical terms, **briefly explain or link to docs**.
|
||||
- **Example:** Instead of *"Use InfiniBand networking,"* say **"Use InfiniBand networking (high-speed data transfer between nodes)."**
|
||||
|
||||
## Default to Positive Language
|
||||
|
||||
- Frame messages in an **encouraging, problem-solving way**, even for errors.
|
||||
- **Example:** Instead of *"Your order failed,"* say **"Something went wrong—try again or contact support."**
|
||||
|
||||
## Minimize Distractions in Critical Actions
|
||||
|
||||
- During checkout or confirmations, **keep the user focused** by avoiding extra links or unnecessary text.
|
||||
- **Example:** Instead of:
|
||||
> "You're about to place an order for a cluster. Did you know we also offer persistent storage? Contact us for more info."
|
||||
Use:
|
||||
> "Review your order details, then confirm your cluster setup."
|
||||
|
||||
## Write Error Messages That Guide Users
|
||||
|
||||
- Don’t just state **what went wrong—tell them how to fix it**.
|
||||
- **Example:** Instead of *"Invalid API key,"* say **"Your API key is incorrect or expired. Generate a new key in your account settings."**
|
||||
|
||||
## Keep Confirmation Messages Clear & Reassuring
|
||||
|
||||
- After an action, let users know **what happens next**.
|
||||
- **Example:** Instead of *"Your order was placed,"* say **"Your cluster is being deployed. You’ll receive access details shortly."**
|
||||
|
||||
## Keep Form Labels and Inputs Simple
|
||||
|
||||
- Labels should be **short and clear**.
|
||||
- Placeholder text should **not repeat labels**.
|
||||
- **Example:**
|
||||
- Bad *"Please enter your email address below:"*
|
||||
- Good **Label:** "Email" → **Input Placeholder:** "<you@example.com>"
|
||||
|
||||
## Ensure All Call-to-Action (CTA) Buttons Are Specific
|
||||
|
||||
- Every button should **describe the action it triggers**.
|
||||
- **Example:**
|
||||
- Bad "Submit"
|
||||
- Good "Deploy Cluster"
|
||||
|
||||
## Keep It Short, but Not Cryptic
|
||||
|
||||
- Use the **fewest words possible** without losing clarity.
|
||||
- **Example:** Instead of *"Your cluster is now being provisioned and will be available shortly,"* say **"Provisioning your cluster…"**
|
||||
- Avoid unnecessary explanations—**the UI should guide users, not overwhelm them**.
|
||||
|
||||
## Prioritize Clarity Over Cleverness
|
||||
|
||||
- Avoid jargon unless your audience **already understands it**.
|
||||
- **Example:** Instead of *"GPU nodes are booting up,"* say **"Your GPUs are starting up."**
|
||||
- Don’t use technical terms **just to sound impressive**—only when they’re necessary.
|
||||
|
||||
## Show, Don’t Tell
|
||||
|
||||
- If an action **is already obvious from the UI**, **don’t repeat it**.
|
||||
- **Example:** If there’s a "Deploy" button, **no need to add text saying "Click deploy to start your app."**
|
||||
- Let **labels, buttons, and structure** guide the user instead of over-explaining.
|
||||
|
||||
## Use Sentence Case Everywhere
|
||||
|
||||
- Except for Buttons and Links.
|
||||
- **Example:**
|
||||
- Bad *"Confirm Your Order"*
|
||||
- Good **"Confirm your order"**
|
||||
|
||||
## Error Messages Should Be Helpful, Not Alarming
|
||||
|
||||
- **Example:** Instead of *"Error 503: Something went wrong,"* say **"Server is temporarily unavailable. Try again in a few minutes."**
|
||||
- Keep it **calm and constructive**—users shouldn’t feel like they broke something.
|
||||
|
||||
## CTA Buttons Should Be Actionable
|
||||
|
||||
- Buttons should **describe the action** clearly.
|
||||
- **Example:**
|
||||
- Bad *"Submit"*
|
||||
- Good **"Deploy Cluster"**
|
||||
- Good **"Generate API Key"**
|
||||
- Avoid vague labels like **"OK"** or **"Done"** if they can be more specific.
|
||||
|
||||
## Use Progressive Disclosure for Complex Information
|
||||
|
||||
- **Don’t overload users with details upfront.**
|
||||
- Show advanced settings **only when needed**.
|
||||
- **Example:** Instead of displaying **all API settings** immediately, add a **"Show advanced settings"** toggle.
|
||||
|
||||
## Default to a Professional, Neutral Tone
|
||||
|
||||
- Avoid sounding too **robotic** or too **casual**.
|
||||
- **Example:** Instead of *"Oops! Something went wrong 😢,"* say **"We couldn't complete your request. Try again in a moment."**
|
||||
- Keep personality **subtle**—Vercel and Linear add warmth through **clean design**, not excessive humor.
|
||||
|
||||
## Confirm Actions with Context
|
||||
|
||||
- **When users take an important action, confirm it.**
|
||||
- **Example:** After deploying, instead of just closing the modal, show:
|
||||
> **"Your app has been deployed. View it live at @yourdomain.com."**
|
||||
- This reassures users **something actually happened**.
|
||||
|
||||
## Avoid Passive Voice
|
||||
|
||||
- Make copy **direct and active**.
|
||||
- **Example:**
|
||||
- Bad *"Your order has been placed."*
|
||||
- Good **"You placed your order."**
|
||||
- Bad *"Clusters are being deployed."*
|
||||
- Good **"Deploying your cluster…"**
|
||||
|
||||
## Keep the UI Copy Consistent
|
||||
|
||||
- If you call it **"Cluster Size"** in one place, **don’t call it "GPU Count" elsewhere**.
|
||||
- Consistency builds **trust and usability**.
|
||||
|
||||
## Assume the User Knows What They’re Doing
|
||||
|
||||
- Don’t over-explain concepts **developers already understand**.
|
||||
- **Example:** Instead of *"A Kubernetes cluster is a set of machines that…"*, just **link to docs**.
|
||||
- Keep in-product copy **focused on action, not education**.
|
||||
|
||||
## If It’s Not Necessary, Remove It
|
||||
|
||||
- Every extra word **adds friction**.
|
||||
- **Example:** Instead of *"Your cluster setup is now complete and you can start using it,"* say **"Your cluster is ready."**
|
||||
|
|
@ -19,7 +19,7 @@ from [the Hub](https://hub.continue.dev/explore/assistants) or locally
|
|||
- in your workspace in a `/.continue/assistants` folder, with the same naming convention
|
||||
|
||||
:::info
|
||||
Config YAML replaces [`config.json`](./json-reference.md), which is deprecated. View the **[Migration Guide](./yaml-migration.md)**.
|
||||
Config YAML replaces `config.json`, which is deprecated. View the **[Migration Guide](./yaml-migration)**.
|
||||
:::
|
||||
|
||||
An assistant is made up of:
|
||||
|
|
@ -191,9 +191,9 @@ chat, editing, and summarizing.
|
|||
provider and model. Supported capabilities include `tool_use` and `image_input`.
|
||||
- `maxStopWords`: Maximum number of stop words allowed, to avoid API errors with extensive lists.
|
||||
- `promptTemplates`: Can be used to override the default prompt templates for different model roles. Valid values are
|
||||
`chat`, [`edit`](./advanced/model-roles/edit.mdx#prompt-templating), [
|
||||
`apply`](./advanced/model-roles/apply.mdx#prompt-templating) and [
|
||||
`autocomplete`](./advanced/model-roles/autocomplete.md#prompt-templating). The `chat` property must be a
|
||||
`chat`, [`edit`](./model-roles/edit#prompt-templating), [
|
||||
`apply`](./model-roles/apply#prompt-templating) and [
|
||||
`autocomplete`](./model-roles/autocomplete#prompt-templating). The `chat` property must be a
|
||||
valid template name, such as `llama3` or `anthropic`.
|
||||
- `chatOptions`: If the model includes role `chat`, these settings apply for Chat and Agent mode:
|
||||
- `baseSystemMessage`: Can be used to override the default system prompt for **Chat** mode.
|
||||
|
|
@ -295,8 +295,8 @@ context:
|
|||
### `rules`
|
||||
|
||||
List of rules that the LLM should follow. These are concatenated into the system message for
|
||||
all [Chat](./chat/how-to-use-it.md), [Edit](./edit/how-to-use-it.md), and [Agent](./agent/how-to-use-it.md) requests.
|
||||
See the [rules deep dive](./advanced/deep-dives/rules.mdx) for details.
|
||||
all [Chat](../features/chat/quick-start), [Edit](../features/edit/quick-start), and [Agent](../features/agent/quick-start) requests.
|
||||
See the [rules deep dive](../customization/rules) for details.
|
||||
|
||||
Explicit rules can either be simple text or an object with the following properties:
|
||||
|
||||
|
|
@ -400,7 +400,7 @@ mcpServers:
|
|||
|
||||
### `data`
|
||||
|
||||
Destinations to which [development data](./advanced/deep-dives/development-data.md) will be sent.
|
||||
Destinations to which [development data](./deep-dives/development-data) will be sent.
|
||||
|
||||
**Properties:**
|
||||
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ To view prompt logs/analytics, you can enable the Continue Console.
|
|||
3. Reload the window
|
||||
4. Open the Continue Console by using the command palette (<kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd>) and searching for "Continue: Focus on Continue Console View"
|
||||
|
||||

|
||||

|
||||
|
||||
### JetBrains
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ Some JetBrains-related logs may also be found by clicking "Help" > "Show Log in
|
|||
|
||||
We are constantly making fixes and improvements to Continue, but the latest changes remain in a "pre-release" version for roughly a week so that we can test their stability. If you are experiencing issues, you can try the pre-release by going to the Continue extension page in VS Code and selecting "Switch to Pre-Release" as shown below.
|
||||
|
||||

|
||||

|
||||
|
||||
### JetBrains
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
title: Context selection
|
||||
description: How context can be selected for Chat
|
||||
keywords: [context]
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
You can use the same [methods to manually add context as Chat](../chat/context-selection.md).
|
||||
|
||||
In addition, tool call responses are automatically included as context items.
|
||||
|
||||
This enables Agent mode to see the result of the previous action and decide what to do next.
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
title: How it works
|
||||
description: How Agent works
|
||||
keywords: [how, agent, works]
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
Agent offers the same functionality as Chat, while also including tools in the request to the model and an interface for handling tool calls and responses.
|
||||
|
||||
## The tool handshake
|
||||
|
||||
Tools provide a flexible, powerful way for models to interface with the external world. They are provided to the model as a JSON object with a name and an arguments schema. For example, a `read_file` tool with a `filepath` argument will give the model the ability to request the contents of a specific file.
|
||||
|
||||
The following handshake describes how Agent uses tools:
|
||||
|
||||
1. In Agent mode, available tools are sent along with `user` chat requests
|
||||
2. The model can choose to include a tool call in its response
|
||||
3. The user gives permission. This step is skipped if the policy for that tool is set to `Automatic`
|
||||
4. Continue calls the tool using built-in functionality or the MCP server that offers that particular tool
|
||||
5. Continue sends the result back to the model
|
||||
6. The model responds, potentially with another tool call and step 2 begins again
|
||||
|
||||
:::info
|
||||
In [Chat mode](../chat/how-to-use-it.md), tools are **not** included in the request to the model.
|
||||
:::
|
||||
|
||||
## Built-in tools
|
||||
|
||||
Continue includes several built-in tools which provide the model access to IDE functionality:
|
||||
|
||||
- **Read file** (`builtin_read_file`): read the contents of a file within the project
|
||||
- **Read currently open file** (`builtin_read_currently_open_file`): read the contents of the currently open file
|
||||
- **Create new file** (`builtin_create_new_file`): Create a new file within the project, with path and contents specified by the model
|
||||
- **Exact search** (`builtin_exact_search`): perform a `ripgrep` search within the project
|
||||
- **Glob search** (`builtin_file_glob_search`): perform a glob search on files in the project. Currently limits to 100 output and warns the Agent if limit reached.
|
||||
- **Run terminal command** (`builtin_run_terminal_command`): run a terminal command from the workspace root
|
||||
- **Search web** (`builtin_search_web`): Perform a web search to get top results
|
||||
- **View diff** (`builtin_view_diff`): View the current working git diff
|
||||
- **View repo map** (`builtin_view_repo_map`): request a copy of the repository map—same as the [Repo Map Context Provider](../advanced/context-integration/custom-providers#repository-map)
|
||||
- **View subdirectory** (`builtin_view_subdirectory`): request a copy of a repo map for a specific directory within the project
|
||||
- **Create Rule Block** (`builtin_create_rule_block`): creates a new rule block in `.continue/rules` based on the contents of the conversation
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
---
|
||||
title: How to customize
|
||||
description: How to customize Chat
|
||||
keywords: [customize, chat]
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
## Add Rules Blocks
|
||||
|
||||
Adding Rules can be done in your assistant locally or in the Hub.
|
||||
|
||||
[Explore Rules on the Hub](https://hub.continue.dev/explore/rules) and see the [Rules deep dive](../advanced/deep-dives/rules.mdx) for more details and tips on creating rules.
|
||||
|
||||
## Add MCP tools
|
||||
|
||||
You can add MCP servers to your assistant to give Agent access to more tools. [Explore MCP Servers on the Hub](https://hub.continue.dev/explore/mcp) and see the [MCP guide](../advanced/deep-dives/mcp.mdx) for more details.
|
||||
|
||||
## Tool policies
|
||||
|
||||
You can adjust Agent's usage behavior for each tool in your assistant to one of these options:
|
||||
|
||||
- **Ask First (default)** - request permission from the user; show the `Cancel` and `Continue` buttons
|
||||
- **Automatic** - do not request permission, automatically call the tool and feed the response back to the model
|
||||
- **Excluded** - do not send this tool to the model
|
||||
|
||||
:::warning
|
||||
Be careful setting any tools to `automatic` if their behavior is not read-only.
|
||||
:::
|
||||
|
||||
First, open `Tool Policies` by clicking the tools icon in the input toolbar
|
||||
|
||||

|
||||
|
||||
Then, you can view and change tool policies. To change a policy, click on the policy text ("Excluded", etc.) to toggle it. You can also turn groups of tools (e.g. all Built-in tools or all tools from a specific MCP server) off using the section toggles.
|
||||
|
||||

|
||||
|
||||
Tool policies are stored locally per user.
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
title: Agent
|
||||
description: How to use Agent
|
||||
sidebar_label: How to use it
|
||||
keywords: [how, use, agent]
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||

|
||||
|
||||
## How to use it
|
||||
|
||||
Agent equips the Chat model with the tools needed to handle a wide range of coding tasks, allowing the model to make decisions and save you the work of manually finding context and performing actions.
|
||||
|
||||
### Use Agent
|
||||
|
||||
You can switch to `Agent` in the mode selector below the chat input box.
|
||||
|
||||

|
||||
|
||||
:::info
|
||||
If Agent is disabled with a `Not Supported` message, the selected model or provider doesn't support tools, or Continue doesn't yet support tools with it. See [Model Setup](./model-setup.mdx) for more information.
|
||||
:::
|
||||
|
||||
### Chat with Agent
|
||||
|
||||
Agent lives within the same interface as [Chat](../chat/how-it-works.md), so the same [input](../chat/how-to-use-it.md#type-a-request-and-press-enter) is used to send messages and you can still use the same manual methods of providing context, such as [`@` context providers](../chat/how-to-use-it.md#reference-context-with-the--symbol) or adding [highlighted code from the editor](../chat/how-to-use-it.md#highlight-a-code-section-to-include-as-context).
|
||||
|
||||
#### Use natural language
|
||||
|
||||
With Agent, you can provide natural language instruction and let the model do the work. As an example, you might say
|
||||
|
||||
> Set the @typescript-eslint/naming-convention rule to "off" for all eslint configurations in this project
|
||||
|
||||
Agent will then decide which tools to use to get the job done.
|
||||
|
||||
## Give Agent permission
|
||||
|
||||
By default, Agent will ask permission when it wants to use a tool. Click `Continue` to allow Agent mode to proceed with the tool call or `Cancel` to reject it.
|
||||
|
||||

|
||||
|
||||
You can use tool policies to exclude or make usage automatic for specific tools. See [How to Customize](./how-to-customize.md) for more background.
|
||||
|
||||
## View Tool Responses
|
||||
|
||||
Any data returned from a tool call is automatically fed back into the model as a context item. Most errors are also caught and returned, so that Agent mode can decide how to proceed.
|
||||
|
||||

|
||||
|
|
@ -1,18 +0,0 @@
|
|||
---
|
||||
title: Model setup
|
||||
description: Models for Continue Agent
|
||||
keywords: [model, agent]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
Agent can be used with models that support tool use through Continue.
|
||||
|
||||
For the best Agent experience we recommend Claude Sonnet 4 from Anthropic. Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-4-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys).
|
||||
|
||||
Currently the following models are recommended:
|
||||
|
||||
- [Anthropic](../advanced/model-providers/top-level/anthropic.mdx) - we recommend [Claude Sonnet 4](https://hub.continue.dev/anthropic/claude-4-sonnet)
|
||||
- [OpenAI](../advanced/model-providers/top-level/openai.mdx) - we recommend [GPT-4o](https://hub.continue.dev/openai/gpt-4o)
|
||||
- [Gemini](../advanced/model-providers/top-level/gemini.mdx) - we recommend [Gemini 2.5 Pro](https://hub.continue.dev/google/gemini-2.5-pro)
|
||||
|
||||
The best chat models generally support tool use. See [recommended chat models](../advanced/model-roles/chat.mdx#recommended-chat-models) for more.
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
title: Context selection
|
||||
description: Autocomplete context selection
|
||||
keywords: [context, autocomplete, lsp, recent]
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
Autocomplete will automatically determine context based on the current cursor position. We use the following techniques to determine what to include in the prompt:
|
||||
|
||||
### File prefix/suffix
|
||||
|
||||
We will always include the code from your file prior to and after the cursor position.
|
||||
|
||||
### Definitions from the Language Server Protocol
|
||||
|
||||
Similar to how you can use <kbd>cmd/ctrl</kbd> + `click` in your editor, we use the same tool (the LSP) to power "go to definition". For example, if you are typing out a function call, we will include the function definition. Or, if you are writing code inside of a method, we will include the type definitions for any parameters or the return type.
|
||||
|
||||
### Imported files
|
||||
|
||||
Because there are often many imports, we can't include all of them. Instead, we look for symbols around your cursor that have matching imports and use that as context.
|
||||
|
||||
### Recent files
|
||||
|
||||
We automatically consider recently opened or edited files and include snippets that are relevant to the current completion.
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
title: How it works
|
||||
description: How Autocomplete works
|
||||
keywords: [how, autocomplete, context]
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
Autocomplete is a [compound AI system](https://bair.berkeley.edu/blog/2024/02/18/compound-ai-systems/) that uses a combination of retrieval methods and response processing techniques. The system can be understood in roughly three parts.
|
||||
|
||||
## Timing
|
||||
|
||||
In order to display suggestions quickly, without sending too many requests, we do the following:
|
||||
|
||||
- Debouncing: If you are typing quickly, we won't make a request on each keystroke. Instead, we wait until you have finished.
|
||||
- Caching: If your cursor is in a position that we've already generated a completion for, this completion is reused. For example, if you backspace, we'll be able to immediately show the suggestion you saw before.
|
||||
|
||||
## Context
|
||||
|
||||
As explained on the [context selection](./context-selection.md) page, Continue uses a number of retrieval methods to find relevant snippets from your codebase to include in the prompt.
|
||||
|
||||
## Filtering
|
||||
|
||||
Language models aren't perfect, but can be made much closer by adjusting their output. We do extensive post-processing on responses before displaying a suggestion, including:
|
||||
|
||||
- filtering out special tokens
|
||||
- stopping early when re-generating code
|
||||
- fixing indentation
|
||||
|
||||
We will also occasionally entirely filter out responses if they are bad. This is often due to extreme repetition.
|
||||
|
||||
You can learn more about how it works in the [Autocomplete deep dive](../advanced/deep-dives/autocomplete.mdx).
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
---
|
||||
title: How to customize
|
||||
description: How to customize Autocomplete
|
||||
keywords: [customize]
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
Continue offers a handful of settings to customize autocomplete behavior. Visit the [User Settings Page](../advanced/deep-dives/settings.md) to manage these settings.
|
||||
|
||||
For a comprehensive guide on all configuration options and their impacts, see the [Autocomplete deep dive](../advanced/deep-dives/autocomplete.mdx).
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
---
|
||||
title: Autocomplete
|
||||
description: Autocomplete \- how to use it
|
||||
sidebar_label: How to use it
|
||||
keywords: [autocomplete]
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||

|
||||
|
||||
## How to use it
|
||||
|
||||
Autocomplete provides inline code suggestions as you type. To enable it, simply click the "Continue" button in the status bar at the bottom right of your IDE or ensure the "Enable Tab Autocomplete" option is checked in your IDE settings.
|
||||
|
||||
### Accepting a full suggestion
|
||||
|
||||
Accept a full suggestion by pressing <kbd>Tab</kbd>
|
||||
|
||||
### Rejecting a full suggestion
|
||||
|
||||
Reject a full suggestion with <kbd>Esc</kbd>
|
||||
|
||||
### Partially accepting a suggestion
|
||||
|
||||
For more granular control, use <kbd>cmd/ctrl</kbd> + <kbd>→</kbd> 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>**.
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
---
|
||||
title: Model setup
|
||||
description: Autocomplete \-model setup
|
||||
keywords: [model, autocomplete]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
For the best autocomplete experience we recommend Codestral from Mistral.
|
||||
|
||||
Add Codestral to your assistant from the hub [here](https://hub.continue.dev/mistral/codestral). Visit the [Mistral Platform](https://console.mistral.ai/codestral) to get a Codestral API key.
|
||||
|
||||
For a fully local autocomplete experience, we recommend [Qwen 2.5 Coder 1.5B on Ollama](https://hub.continue.dev/ollama/qwen2.5-coder-1.5b).
|
||||
|
||||
For more details about setup and recommended models, visit the [autocomplete deep dive](../advanced/deep-dives/autocomplete.mdx).
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
title: Context Blocks
|
||||
sidebar_label: Context
|
||||
description: Determine what internal information your AI assistant can access
|
||||
keywords: [context, blocks, repositories, integration, knowledge base]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
These blocks determine what internal information your AI assistant can access:
|
||||
|
||||
- **Connect to source repositories** and issues, CI/CD systems, wikis, and knowledge bases
|
||||
- **Determine the scope** of what the AI can "see" when providing assistance
|
||||
- **Customize** to match your specific development environment
|
||||
- **Include proprietary code patterns** unique to your organization
|
||||
- **Integrate data sources** to connect to any internal system with valuable context
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Learn more about context providers [here](../advanced/reference#context), and check out [this guide](../advanced/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider.
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
---
|
||||
title: Data Blocks
|
||||
sidebar_label: Data
|
||||
description: Help organizations capture and analyze AI assistant usage data
|
||||
keywords: [data, blocks, analytics, metrics, storage, compliance]
|
||||
sidebar_position: 7
|
||||
---
|
||||
|
||||
These help organizations capture and analyze AI assistant usage data:
|
||||
|
||||
- **Analytics Integration**: Export metrics to observability platforms like Splunk or New Relic
|
||||
- **Cloud Storage**: Store development data in S3/Azure Blob for model fine-tuning and auditing
|
||||
- **Impact Measurement**: Track acceptance rates and productivity outcomes for ROI calculation
|
||||
- **Compliance Reporting**: Generate audit trails for security and governance requirements
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
You can read more about development data [here](../advanced/deep-dives/development-data.md). Data destinations are configured in the [`data`](../advanced/reference#data) section of `config.yaml`.
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
---
|
||||
title: Docs Blocks
|
||||
sidebar_label: Docs
|
||||
description: Bring your documentation directly into the IDE
|
||||
keywords: [docs, blocks, documentation, guidance, flow]
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
This is how Continue brings your documentation directly into the IDE:
|
||||
|
||||
- **Provide just-in-time guidance** without context switching
|
||||
- **Reduce support burden** by making information discoverable
|
||||
- **Keep developers in flow** by eliminating searches through multiple systems
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Learn more in the [@Docs deep dive](../advanced/deep-dives/docs.mdx), and view [`docs`](../advanced/reference#docs) in the YAML Reference for more details.
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
---
|
||||
title: MCP Blocks
|
||||
sidebar_label: MCP
|
||||
description: Model Context Protocol servers provide specialized functionality
|
||||
keywords: [mcp, blocks, model context protocol, integrations, tools]
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
Model Context Protocol servers provide specialized functionality:
|
||||
|
||||
- **Enable integration** with external tools and systems
|
||||
- **Create extensible interfaces** for custom capabilities
|
||||
- **Support complex interactions** with your development environment
|
||||
- **Allow partners** to contribute specialized functionality
|
||||
- **Connect to databases** to understand schema and data models during development
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](../advanced/reference#mcpservers) in the YAML Reference for more details.
|
||||
description: Model Context Protocol servers provide specialized functionality
|
||||
keywords: [mcp, blocks, model context protocol, integrations, tools]
|
||||
sidebar_position: 4
|
||||
|
||||
---
|
||||
|
||||
Model Context Protocol servers provide specialized functionality:
|
||||
|
||||
- Enable integration with external tools and systems
|
||||
- Create extensible interfaces for custom capabilities
|
||||
- Support more complex interactions with your development environment
|
||||
- Allow partners to contribute specialized functionality
|
||||
- Database Connectors: Understand schema and data models during development
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Learn more in the [MCP deep dive](../advanced/deep-dives/mcp.mdx), and view [`mcpServers`](../advanced/reference#mcpservers) in the YAML Reference for more details.
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
title: Model Blocks
|
||||
sidebar_label: Model
|
||||
description: Foundation of the entire assistant experience offering specialized capabilities
|
||||
keywords: [model, blocks, chat, edit, apply, autocomplete, embedding, reranker]
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||
These blocks form the foundation of the entire assistant experience, offering different specialized capabilities:
|
||||
|
||||
- **[Chat](../advanced/model-roles/chat.mdx)**: Power conversational interactions about code and provide detailed guidance
|
||||
- **[Edit](../advanced/model-roles/edit.mdx)**: Handle complex code transformations and refactoring tasks
|
||||
- **[Apply](../advanced/model-roles/apply.mdx)**: Execute targeted code modifications with high accuracy
|
||||
- **[Autocomplete](../advanced/model-roles/autocomplete.md)**: Provide real-time suggestions as developers type
|
||||
- **[Embedding](../advanced/model-roles/embeddings.mdx)**: Transform code into vector representations for semantic search
|
||||
- **[Reranker](../advanced/model-roles/reranking.mdx)**: Improve search relevance by ordering results based on semantic meaning
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Continue supports [many model providers](../advanced/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have various roles like `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`.
|
||||
|
||||
Read more about roles [here](../advanced/model-roles/intro.mdx) and view [`models`](../advanced/reference#models) in the YAML Reference.
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
title: Prompt Blocks
|
||||
sidebar_label: Prompt
|
||||
description: Specialized instructions that shape how models respond
|
||||
keywords: [prompts, blocks, instructions, guidance, code review]
|
||||
sidebar_position: 6
|
||||
---
|
||||
|
||||
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
|
||||
|
||||

|
||||
|
||||
## Learn More
|
||||
|
||||
Prompt blocks have the same syntax as [prompt files](../advanced/deep-dives/prompts.md). The `config.yaml` spec for `prompts` can be found [here](../advanced/reference#prompts).
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
---
|
||||
title: Rules Blocks
|
||||
sidebar_label: Rules
|
||||
description: Guardrails for your AI coding assistants
|
||||
keywords: [rules, blocks, standards, practices, guardrails]
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
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
|
||||
|
||||
Your assistant detects rule blocks and applies the specified rules while in [Agent](../agent/how-to-use-it), [Chat](../chat/how-to-use-it), and [Edit](../edit/how-to-use-it) modes.
|
||||
|
||||
## Learn More
|
||||
|
||||
Learn more in the [rules deep dive](../advanced/deep-dives/rules.mdx), and view [`rules`](../advanced/reference#rules) in the YAML Reference for more details.
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
---
|
||||
title: Context selection
|
||||
description: How context can be selected for Chat
|
||||
keywords: [context]
|
||||
sidebar_position: 3
|
||||
---
|
||||
|
||||
## Input
|
||||
|
||||
Typing a question or instructions into the input box is the only required context. All of the other methods to select and include additional context listed below are optional.
|
||||
|
||||
## Highlighted code
|
||||
|
||||
The highlighted code you’ve selected by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) will be included in your prompt alongside the input you provide. This is the only section of code that will be provided to the model unless you highlight additional sections or use one of the other selection methods below.
|
||||
|
||||
## Active file
|
||||
|
||||
You can include the currently open file as context by pressing <kbd>opt</kbd> + <kbd>enter</kbd> (Mac) or <kbd>alt</kbd> + <kbd>enter</kbd> (Windows) when you send your request at Chat window(Prompt can't be empty).
|
||||
|
||||
## Specific file
|
||||
|
||||
You can include a specific file in your current workspace as context by typing [`@Files`](../advanced/context-integration/custom-providers#file) and selecting the file.
|
||||
|
||||
## Specific folder
|
||||
|
||||
You can include a folder in your current workspace as context by typing [`@Folder`](../advanced/context-integration/custom-providers#folder) and selecting the directory. It [works like `@Codebase`](../advanced/deep-dives/codebase.mdx) but only includes the files in the selected folder.
|
||||
|
||||
## Codebase search
|
||||
|
||||
You can automatically include relevant files from your codebase as context by typing [`@Codebase`](../advanced/context-integration/custom-providers#codebase). You can learn about how @Codebase works [here](../advanced/deep-dives/codebase.mdx).
|
||||
|
||||
## Documentation site
|
||||
|
||||
You can include a documentation site as context by typing [`@Docs`](../advanced/context-integration/custom-providers#docs) and selecting the documentation site. You can learn about how @Docs works [here](../advanced/deep-dives/docs.mdx).
|
||||
|
||||
## Terminal contents
|
||||
|
||||
You can include the contents of the terminal in your IDE as context by typing [`@Terminal`](../advanced/context-integration/custom-providers#terminal).
|
||||
|
||||
## Git diff
|
||||
|
||||
You can include all of the changes you've made to your current branch by typing [`@Git Diff`](../advanced/context-integration/custom-providers#git-diff).
|
||||
|
||||
## Other context
|
||||
|
||||
You can see a full list of built-in context providers [here](../advanced/context-integration/custom-providers) and how to create your own custom context provider [here](../advanced/tutorials/build-your-own-context-provider.mdx).
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
title: How it works
|
||||
description: How Chat works
|
||||
keywords: [how, chat, works]
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
Using any selected code sections, all context that you have selected with @, and your input instructions, we prompt the model to provide a response in the sidebar. If you are asking a follow-up, then all earlier session context is also included. No other additional context is provided to the model.
|
||||
|
||||
The model response is then streamed directly back to the sidebar. Each code section included in the response will be placed into its own code block, which gives you buttons to either “Apply to current file”, “Insert at cursor”, or “Copy” for each section. When you press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) at the end of a session, all context is cleared and a new session is started, so that you can begin a new task.
|
||||
|
||||
If you would like to view the exact prompt that is sent to the model during Chat, you can [view this in the prompt logs](../advanced/troubleshooting#llm-prompt-logs).
|
||||
|
||||
You can learn more about how `@Codebase` works [here](../advanced/deep-dives/codebase.mdx) and `@Docs` [here](../advanced/deep-dives/docs.mdx).
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
---
|
||||
title: How to customize
|
||||
description: How to customize Chat
|
||||
keywords: [customize, chat]
|
||||
sidebar_position: 5
|
||||
---
|
||||
|
||||
There are a number of different ways to customize Chat:
|
||||
|
||||
- You can add a [`rules` block](../hub/blocks/block-types.md#rules) to your assistant to give the model persistent instructions through the system prompt. See the [rules deep dive](../advanced/deep-dives/rules.mdx) for more information.
|
||||
- You can configure [`@Codebase`](../advanced/deep-dives/codebase.mdx)
|
||||
- You can configure [`@Docs`](../advanced/deep-dives/docs.mdx)
|
||||
- You can [build your own context provider](../advanced/tutorials/build-your-own-context-provider.mdx)
|
||||
- You can create your own [custom code RAG](../advanced/tutorials/custom-code-rag.mdx)
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
---
|
||||
title: Chat
|
||||
description: How to use Chat
|
||||
sidebar_label: How to use it
|
||||
keywords: [how, use, chat]
|
||||
sidebar_position: 1
|
||||
---
|
||||
|
||||

|
||||
|
||||
## 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 <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) to send it to the LLM, and then ask for it to be explained to you or request it to be refactored in some way.
|
||||
|
||||
## 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](context-selection.md).
|
||||
|
||||
## 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 <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) to begin a new session, ensuring only relevant context for the next task is provided to the LLM.
|
||||
|
||||
## Switch between different models
|
||||
|
||||
If you have configured multiple models, you can switch between models using the dropdown or by pressing <kbd>cmd/ctrl</kbd> + <kbd>’</kbd>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
title: Model setup
|
||||
description: How to set up a Chat model
|
||||
keywords: [model]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
For the best chat experience we recommend Claude 3.7 Sonnet from Anthropic.
|
||||
|
||||
Add Claude 3.7 Sonnet to your assistant from the hub [here](https://hub.continue.dev/anthropic/claude-3-7-sonnet). You can get an API key from the [Anthropic console](https://console.anthropic.com/settings/keys).
|
||||
|
||||
Other recommended chat models include:
|
||||
|
||||
- [GPT-4o from OpenAI](https://hub.continue.dev/openai/gpt-4o)
|
||||
- [Grok-2 from xAI](https://hub.continue.dev/xai/grok-2)
|
||||
- [Gemini 2.0 Flash from Google](https://hub.continue.dev/google/gemini-2.0-flash)
|
||||
- [Llama 3.1 8b from Meta on Ollama](https://hub.continue.dev/ollama/llama3.1-8b) for a fully local experience
|
||||
{/* HUB_TODO nonexistent blocks */}
|
||||
{/* - Deepseek Coder 2 from deepseek on [Ollama](https://hub.continue.dev/explore/models) or [LM Studio](https://hub.continue.dev/explore/models) */}
|
||||
|
||||
For more details about setup and recommended models, see [here](../advanced/model-roles/chat.mdx).
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
---
|
||||
title: Overview
|
||||
title: Customization Overview
|
||||
description: Introduction to customizing Continue
|
||||
keywords: [customize, configure, config]
|
||||
---
|
||||
|
|
@ -1,13 +0,0 @@
|
|||
---
|
||||
title: Continue Changelog
|
||||
description: Redirecting to our Changelog
|
||||
hide_table_of_contents: true
|
||||
---
|
||||
|
||||
# Redirecting to Changelog
|
||||
|
||||
If you are not redirected automatically, follow this [link to the changelog](https://changelog.continue.dev).
|
||||
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;url=https://changelog.continue.dev" />
|
||||
</head>
|
||||
File diff suppressed because it is too large
Load diff
|
|
@ -1,16 +0,0 @@
|
|||
---
|
||||
description: Learn how to use the Apply feature
|
||||
keywords: [apply, speculative]
|
||||
toc_max_heading_level: 5
|
||||
---
|
||||
|
||||
<!-- This is a work in progress and excluded by prefixing the file name with an underscore -->
|
||||
|
||||
# Apply
|
||||
|
||||
## Instant Diff Apply
|
||||
|
||||
If you have large files (exeeding the output token of your model) the edit apply will delete all lines that exceed the model window. To mitigate you can instead of applying the changes directly, ask the chat LLM to "generate a unified diff".
|
||||
The resulting diff (if the LLM has not made a mistake) can be instantly applied, changing only the lines that need to change.
|
||||
|
||||
Explainer Video: https://youtu.be/b7Xxsot4gyw
|
||||
|
|
@ -1,162 +0,0 @@
|
|||
---
|
||||
title: Autocomplete
|
||||
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">
|
||||
[Mistral Codestral model block](https://hub.continue.dev/mistral/codestral)
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiKey: <YOUR_CODESTRAL_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiKey": "<YOUR_CODESTRAL_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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`.
|
||||
:::
|
||||
|
||||
### Setting up with Ollama (default)
|
||||
|
||||
If you'd like to run your autocomplete model locally, we recommend using Ollama. To do this, first download the latest version of Ollama from [here](https://ollama.ai). Then, run the following command to download our recommended model:
|
||||
|
||||
```bash
|
||||
ollama run qwen2.5-coder:1.5b
|
||||
```
|
||||
|
||||
Then, add the model to your configuration:
|
||||
|
||||
<Tabs groupId="hub-config-example">
|
||||
<TabItem value="hub" label="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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen 1.5b Autocomplete Model
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen 1.5b Autocomplete Model",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b",
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Once the model has been downloaded, you should begin to see completions in VS Code.
|
||||
|
||||
## Configuration Options
|
||||
|
||||
### Hub Autocomplete models
|
||||
|
||||
Explore autocomplete model configurations on [the hub](https://hub.continue.dev/explore/models?roles=autocomplete)
|
||||
|
||||
### Autocomplete User Settings
|
||||
|
||||
{/* - `Use autocomplete cache`: If on, caches completions */}
|
||||
The following settings can be configured for autocompletion in the IDE extension [User Settings Page](./settings.md):
|
||||
|
||||
- `Multiline Autocompletions`: Controls multiline completions for autocomplete. Can be set to `always`, `never`, or `auto`. Defaults to `auto`
|
||||
- `Disable autocomplete in files`: List of comma-separated glob pattern to disable autocomplete in matching files. E.g., "\_/.md, \*/.txt"
|
||||
|
||||
### `config.json` Configuration
|
||||
|
||||
The `config.json` configuration format (deprecated) offers further configuration options through `tabAutocompleteOptions`. See the [JSON Reference](../../json-reference.md#tabautocompleteoptions) for more details.
|
||||
|
||||
## FAQs
|
||||
|
||||
### I want better completions, should I use GPT-4?
|
||||
|
||||
Perhaps surprisingly, the answer is no. The models that we suggest for autocomplete are trained with a highly specific prompt format, which allows them to respond to requests for completing code (see examples of these prompts [here](https://github.com/continuedev/continue/blob/main/core/autocomplete/templating/AutocompleteTemplate.ts)). Some of the best commercial models like GPT-4 or Claude are not trained with this prompt format, which means that they won't generate useful completions. Luckily, a huge model is not required for great autocomplete. Most of the state-of-the-art autocomplete models are no more than 10b parameters, and increasing beyond this does not significantly improve performance.
|
||||
|
||||
### I'm not seeing any completions
|
||||
|
||||
Follow these steps to ensure that everything is set up correctly:
|
||||
|
||||
1. Make sure you have the "Enable Tab Autocomplete" setting checked (in VS Code, you can toggle by clicking the "Continue" button in the status bar, and in JetBrains by going to Settings -> Tools -> Continue).
|
||||
2. Make sure you have downloaded Ollama.
|
||||
3. Run `ollama run qwen2.5-coder:1.5b` to verify that the model is downloaded.
|
||||
4. Make sure that any other completion providers are disabled (e.g. Copilot), as they may interfere.
|
||||
5. Check the output of the logs to find any potential errors: <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>P</kbd> -> "Toggle Developer Tools" -> "Console" tab in VS Code, ~/.continue/logs/core.log in JetBrains.
|
||||
6. Check VS Code settings to make sure that `"editor.inlineSuggest.enabled"` is set to `true` (use <kbd>cmd/ctrl</kbd> + <kbd>,</kbd> then search for this and check the box)
|
||||
7. If you are still having issues, please let us know in our [Discord](https://discord.gg/vapESyrFmJ) and we'll help as soon as possible.
|
||||
|
||||
### Completions are only ever single-line
|
||||
|
||||
To ensure that you receive multi-line completions, you can set `"multilineCompletions": "always"` in `tabAutocompleteOptions`. By default, it is `"auto"`. If you still find that you are only seeing single-line completions, this may be because some models tend to produce shorter completions when starting in the middle of a file. You can try temporarily moving text below your cursor out of your active file, or switching to a larger model.
|
||||
|
||||
### Can I configure a "trigger key" for autocomplete?
|
||||
|
||||
Yes, in VS Code, if you don't want to be shown suggestions automatically you can:
|
||||
|
||||
1. Set `"editor.inlineSuggest.enabled": false` in VS Code settings to disable automatic suggestions
|
||||
2. Open "Keyboard Shortcuts" (cmd/ctrl+k, cmd/ctrl+s) and search for `editor.action.inlineSuggest.trigger`
|
||||
3. Click the "+" icon to add a new keybinding
|
||||
4. Press the key combination you want to use to trigger suggestions (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>)
|
||||
5. Now whenever you want to see a suggestion, you can press your key binding (e.g. <kbd>cmd/ctrl</kbd> + <kbd>space</kbd>) to trigger suggestions manually
|
||||
|
||||
### Is there a shortcut to accept one line at a time?
|
||||
|
||||
This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code:
|
||||
|
||||
1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page.
|
||||
2. Search for `editor.action.inlineSuggest.acceptNextLine`.
|
||||
3. Set the key binding to `Tab`.
|
||||
4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`.
|
||||
This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`.
|
||||
If you need to apply all the code, just press `Tab` multiple times.
|
||||
|
||||
### How to turn off autocomplete
|
||||
|
||||
#### VS Code
|
||||
|
||||
Click the "Continue" button in the status panel at the bottom right of the screen. The checkmark will become a "cancel" symbol and you will no longer see completions. You can click again to turn it back on.
|
||||
|
||||
Alternatively, open VS Code settings, search for "Continue" and uncheck the box for "Enable Tab Autocomplete".
|
||||
|
||||
You can also use the default shortcut to disable autocomplete directly using a chord: press and hold <kbd>ctrl/cmd</kbd> + <kbd>K</kbd> (continue holding <kbd>ctrl/cmd</kbd>) and press <kbd>ctrl/cmd</kbd> + <kbd>A</kbd>. This will turn off autocomplete without navigating through settings.
|
||||
|
||||
#### JetBrains
|
||||
|
||||
Open Settings -> Tools -> Continue and uncheck the box for "Enable Tab Autocomplete".
|
||||
|
||||
#### Feedback
|
||||
|
||||
If you're turning off autocomplete, we'd love to hear how we can improve! Please let us know in our [Discord](https://discord.gg/vapESyrFmJ) or file an issue on GitHub.
|
||||
|
|
@ -1,99 +0,0 @@
|
|||
---
|
||||
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).
|
||||
:::
|
||||
|
||||
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.
|
||||
|
||||
Here are some common use cases where it can be useful:
|
||||
|
||||
- Asking high-level questions about your codebase
|
||||
- "How do I add a new endpoint to the server?"
|
||||
- "Do we use VS Code's CodeLens feature anywhere?"
|
||||
- "Is there any code written already to convert HTML to markdown?"
|
||||
- Generate code using existing samples as reference
|
||||
- "Generate a new React component with a date picker, using the same patterns as existing components"
|
||||
- "Write a draft of a CLI application for this project using Python's argparse"
|
||||
- "Implement the `foo` method in the `bar` class, following the patterns seen in other subclasses of `baz`.
|
||||
- Use `@Folder` to ask questions about a specific folder, increasing the likelihood of relevant results
|
||||
- "What is the main purpose of this folder?"
|
||||
- "How do we use VS Code's CodeLens API?"
|
||||
- Or any of the above examples, but with `@Folder` instead of `@Codebase`
|
||||
|
||||
Here are use cases where it is not useful:
|
||||
|
||||
- When you need the LLM to see _literally every_ file in your codebase
|
||||
- "Find everywhere where the `foo` function is called"
|
||||
- "Review our codebase and find any spelling mistakes"
|
||||
- Refactoring
|
||||
- "Add a new parameter to the `bar` function and update usages"
|
||||
|
||||
## Configuration
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: codebase
|
||||
params:
|
||||
nRetrieve: 25
|
||||
nFinal: 5
|
||||
useReranking: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "codebase",
|
||||
"params": {
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### `nRetrieve`
|
||||
|
||||
Number of results to initially retrieve from vector database (default: 25)
|
||||
|
||||
### `nFinal`
|
||||
|
||||
Final number of results to use after re-ranking (default: 5)
|
||||
|
||||
### `useReranking`
|
||||
|
||||
Whether to use re-ranking, which will allow initial selection of `nRetrieve` results, then will use an LLM to select the top `nFinal` results (default: true)
|
||||
|
||||
## Ignore files during indexing
|
||||
|
||||
Continue respects `.gitignore` files in order to determine which files should not be indexed. If you'd like to exclude additional files, you can add them to a `.continueignore` file, which follows the exact same rules as `.gitignore`.
|
||||
|
||||
Continue also supports a **global** `.continueignore` file that will be respected for all workspaces, which can be created at `~/.continue/.continueignore`.
|
||||
|
||||
If you want to see exactly what files Continue has indexed, the metadata is stored in `~/.continue/index/index.sqlite`. You can use a tool like [DB Browser for SQLite](https://sqlitebrowser.org/) to view the `tag_catalog` table within this file.
|
||||
|
||||
If you need to force a refresh of the index, reload the VS Code window with <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>p</kbd> + "Reload Window".
|
||||
|
||||
## Repository map
|
||||
|
||||
Models in the Claude 3, Llama 3.1/3.2, Gemini 1.5, and GPT-4o families will automatically use a [repository map](../context-providers.mdx#repository-map) during codebase retrieval, which allows the model to understand the structure of your codebase and use it to answer questions. Currently, the repository map only contains the filepaths in the codebase.
|
||||
|
|
@ -1,86 +0,0 @@
|
|||
---
|
||||
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.
|
||||
|
||||

|
||||
|
||||
## Hub Assistants
|
||||
|
||||
Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
|
||||
|
||||
## YAML Config
|
||||
|
||||
Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
|
||||
|
||||
- `~/.continue/config.yaml` (MacOS / Linux)
|
||||
- `%USERPROFILE%\.continue\config.yaml` (Windows)
|
||||
|
||||
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`.
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||
See the full reference for `config.yaml` [here](../../advanced/reference).
|
||||
|
||||
## Deprecated configuration methods
|
||||
|
||||
:::info
|
||||
View the `config.json` migration guide [here](../../yaml-migration.md)
|
||||
:::
|
||||
|
||||
- [`config.json`](../../json-reference.md) - The original configuration format which is stored in a file at the same location as `config.yaml`
|
||||
- [`.continuerc.json`](#continuercjson) - Workspace-level configuration
|
||||
- [`config.ts`](#configts) - Advanced configuration (probably unnecessary) - a TypeScript file in your home directory that can be used to programmatically modify (_merged_) the `config.json` schema:
|
||||
- `~/.continue/config.ts` (MacOS / Linux)
|
||||
- `%USERPROFILE%\.continue\config.ts` (Windows)
|
||||
|
||||
### `.continuerc.json`
|
||||
|
||||
The format of `.continuerc.json` is the same as `config.json`, plus one _additional_ property `mergeBehavior`, which can be set to either "merge" or "overwrite". If set to "merge" (the default), `.continuerc.json` will be applied on top of `config.json` (arrays and objects are merged). If set to "overwrite", then every top-level property of `.continuerc.json` will overwrite that property from `config.json`.
|
||||
|
||||
Example
|
||||
|
||||
```json title=".continuerc.json"
|
||||
{
|
||||
"tabAutocompleteOptions": {
|
||||
"disable": true
|
||||
},
|
||||
"mergeBehavior": "overwrite"
|
||||
}
|
||||
```
|
||||
|
||||
### `config.ts`
|
||||
|
||||
`config.yaml` or `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically extend Continue configuration, you can use a `config.ts` file, placed at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
|
||||
|
||||
`config.ts` must export a `modifyConfig` function, like:
|
||||
|
||||
```ts title="config.ts"
|
||||
export function modifyConfig(config: Config): Config {
|
||||
config.slashCommands?.push({
|
||||
name: "commit",
|
||||
description: "Write a commit message",
|
||||
run: async function* (sdk) {
|
||||
// The getDiff function takes a boolean parameter that indicates whether
|
||||
// to include unstaged changes in the diff or not.
|
||||
const diff = await sdk.ide.getDiff(false); // Pass false to exclude unstaged changes
|
||||
for await (const message of sdk.llm.streamComplete(
|
||||
`${diff}\n\nWrite a commit message for the above changes. Use no more than 20 tokens to give a brief description in the imperative mood (e.g. 'Add feature' not 'Added feature'):`,
|
||||
new AbortController().signal,
|
||||
{
|
||||
maxTokens: 20,
|
||||
},
|
||||
)) {
|
||||
yield message;
|
||||
}
|
||||
},
|
||||
});
|
||||
return config;
|
||||
}
|
||||
```
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
title: Development Data
|
||||
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)
|
||||
|
||||
## Custom Data Destinations
|
||||
|
||||
You can also configure custom destinations for your data, including remote HTTP endpoints and local file directories.
|
||||
|
||||
For hub assistants, data destinations are configured in `data` blocks. Visit the hub to [explore example data blocks](https://hub.continue.dev/explore/data) or [create your own](https://hub.continue.dev/new?type=block&blockType=data).
|
||||
|
||||
See more details about adding `data` blocks to your configuration files in the [YAML specification](../../advanced/reference#data)
|
||||
|
||||
When sending development data to your own HTTP endpoint, it will receive an event JSON blob at the given `schema` version. You can view event names, schema versions, and fields [here in the source code](https://github.com/continuedev/continue/tree/main/packages/config-yaml/src/schemas/data).
|
||||
|
|
@ -1,408 +0,0 @@
|
|||
---
|
||||
description: Learn how to access and search your project's documentation directly within Continue
|
||||
keywords:
|
||||
[
|
||||
documentation,
|
||||
indexing,
|
||||
context provider,
|
||||
embeddings,
|
||||
docs,
|
||||
embedder,
|
||||
embeddings provider,
|
||||
documentation,
|
||||
]
|
||||
toc_max_heading_level: 5
|
||||
---
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# @Docs
|
||||
|
||||
The [`@Docs` context provider](advanced/context-integration/custom-providers#docs) allows you to efficiently reference documentation directly within Continue.
|
||||
|
||||
## Enabling the `@Docs` context provider
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## How It Works
|
||||
|
||||
The `@Docs` context provider works by
|
||||
|
||||
1. Crawling specified documentation sites
|
||||
2. Generating embeddings for the chunked content
|
||||
3. Storing the embeddings locally on your machine
|
||||
4. Embedding chat input to include similar documentation chunks as context
|
||||
|
||||
## Indexing Your Own Documentation
|
||||
|
||||
### Hub `docs` Blocks
|
||||
|
||||
@Docs uses [`docs` blocks](../../hub/blocks/block-types.md#docs) in Assistants from the hub. Visit the hub to [explore `docs` blocks](https://hub.continue.dev/explore/docs) or [create your own](https://hub.continue.dev/new?type=block&blockType=docs).
|
||||
|
||||
### Through the `@Docs` Context Provider
|
||||
|
||||
To add a single documentation site, we recommend using the **Add Documentation** Form within the GUI. This can be accessed
|
||||
|
||||
- from the `@Docs` context provider - type `@Docs` in the chat, hit `Enter`, and search for `Add Docs`
|
||||
- from the `More` page (three dots icon) in the `@docs indexes` section
|
||||
the `@Docs` context provider.
|
||||
|
||||
In the **Add Documentation** Form, enter a `Title` and `Start URL` for the site.
|
||||
|
||||
- `Title`: The name of the documentation site, used for identification in the UI.
|
||||
- `Start URL`: The URL where the indexing process should begin.
|
||||
|
||||
Indexing will begin upon submission. Progress can be viewed in the form or later in the `@docs indexes` section of the `More` page.
|
||||
|
||||
Documentation sources may be suggested based on package files in your repo. This currently works for Python `requirements.txt` files and Node.js (Javascript/Typescript) `package.json` files.
|
||||
|
||||
- Packages with a valid documentation URL (with a `+` icon) can be clicked to immediately kick off indexing
|
||||
- Packages with partial information (with a pen icon) can be clicked to fill the form with the available information
|
||||
- Note that you can hover over the information icon to see where the package suggestion was found.
|
||||
|
||||

|
||||
|
||||
### In a configuration file
|
||||
|
||||
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">
|
||||
```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">
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
"faviconUrl": "https://docs.nestjs.com/favicon.ico"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
See [the config reference](../../reference) for all documentation site configuration options.
|
||||
|
||||
Indexing will re-sync upon saving the configuration file.
|
||||
|
||||
## Configuration
|
||||
|
||||
### Using Your Embeddings Provider
|
||||
|
||||
If you have set up an [embeddings provider](../model-roles/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
|
||||
|
||||
### Reranking
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
nRetrieve: 25 # The number of docs to retrieve from the embeddings query
|
||||
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">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"nRetrieve": 25, // The number of docs to retrieve from the embeddings query
|
||||
"nFinal": 5, // The number of docs chunks to return IF reranking
|
||||
"useReranking": true // use reranking if a reranker is configured (defaults to true)
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
githubToken: <GITHUB_TOKEN>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_..."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Local Crawling
|
||||
|
||||
By default, Continue crawls documentation sites using a specialized crawling service that provides the best experience for most users and documentation sites.
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
docs:
|
||||
- title: My Private Docs
|
||||
startUrl: http://10.2.1.2/docs
|
||||
faviconUrl: http://10.2.1.2/docs/assets/favicon.ico,
|
||||
useLocalCrawling: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"docs": [
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"useLocalCrawling": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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. */}
|
||||
:::
|
||||
|
||||
Further notes:
|
||||
|
||||
- If the site is only locally accessible, the default crawler will fail anyways and fall back to the local crawler. `useLocalCrawling` is especially useful if the URL itself is confidential.
|
||||
- For GitHub Repos this has no effect because only the GitHub Crawler will be used, and if the repo is private it can only be accessed with a priveleged GitHub token anyways.
|
||||
|
||||
## Managing your docs indexes
|
||||
|
||||
You can view indexing statuses and manage your documentation sites from the `@docs indexes` section of the `More` page (three dots)
|
||||
|
||||
- Continue does not automatically re-index your docs. Use `Click to re-index` to trigger a reindex for a specific source
|
||||
- While a site is indexing, click `Cancel indexing` to cancel the process
|
||||
- Failed indexing attempts will show an error status bar and icon
|
||||
- Delete a documentation site from your configuration using the trash icon
|
||||
|
||||

|
||||
|
||||
You can also view the overall status of currently indexing docs from a hideable progress bar at the bottom of the chat page
|
||||
|
||||

|
||||
|
||||
You can also use the following IDE command to force a re-index of all docs: `Continue: Docs Force Re-Index`.
|
||||
|
||||
## Examples
|
||||
|
||||
### VS Code minimal setup
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
context:
|
||||
- provider: docs
|
||||
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LMStudio embedder
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
context:
|
||||
- provider: docs
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/",
|
||||
},
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Full-power setup (VS Code or Jetbrains)
|
||||
|
||||
The following configuration example includes:
|
||||
|
||||
- Examples of both public and private documentation sources
|
||||
- A custom embeddings provider
|
||||
- A reranker model available, with reranking parameters customized
|
||||
- A GitHub token to enable GitHub crawling
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LMStudio Nomic Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
- name: Voyage Rerank-2
|
||||
provider: voyage
|
||||
apiKey: <VOYAGE_API_KEY>
|
||||
model: rerank-2
|
||||
roles:
|
||||
- rerank
|
||||
context:
|
||||
- provider: docs
|
||||
params:
|
||||
githubToken: <GITHUB_TOKEN>
|
||||
nRetrieve: 25
|
||||
nFinal: 5
|
||||
useReranking: true
|
||||
docs:
|
||||
- title: Nest.js
|
||||
startUrl: https://docs.nestjs.com/
|
||||
- title: My Private Docs
|
||||
startUrl: http://10.2.1.2/docs
|
||||
faviconUrl: http://10.2.1.2/docs/assets/favicon.ico
|
||||
maxDepth: 4
|
||||
useLocalCrawling: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"contextProviders": [
|
||||
{
|
||||
"name": "docs",
|
||||
"params": {
|
||||
"githubToken": "github_...",
|
||||
"nRetrieve": 25,
|
||||
"nFinal": 5,
|
||||
"useReranking": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"docs": [
|
||||
{
|
||||
"title": "Nest.js",
|
||||
"startUrl": "https://docs.nestjs.com/"
|
||||
},
|
||||
{
|
||||
"title": "My Private Docs",
|
||||
"startUrl": "http://10.2.1.2/docs",
|
||||
"faviconUrl": "http://10.2.1.2/docs/assets/favicon.ico",
|
||||
"maxDepth": 4,
|
||||
"useLocalCrawling": true
|
||||
}
|
||||
],
|
||||
"reranker": {
|
||||
"name": "voyage",
|
||||
"params": {
|
||||
"model": "rerank-2",
|
||||
"apiKey": "<YOUR_VOYAGE_API_KEY>"
|
||||
}
|
||||
},
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
{/* This could also involve enabling Chromium as a backup for local documentation the [User Settings Page](../deep-dives/settings.md). */}
|
||||
|
|
@ -1,181 +0,0 @@
|
|||
---
|
||||
title: MCP
|
||||
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
|
||||
can't access real-time information or specialized tools. The [Model Context
|
||||
Protocol](https://modelcontextprotocol.io/introduction) (MCP) fixes this by
|
||||
letting AI models connect with outside data sources, tools, and environments.
|
||||
This allows smooth sharing of information and abilities between AI systems and
|
||||
the wider digital world. This standard, created by Anthropic to bring together
|
||||
prompts, context, and tool use, is key for building truly useful AI experiences
|
||||
that can be set up with custom tools.
|
||||
|
||||
## How it works
|
||||
|
||||
Currently custom tools can be configured using the Model Context
|
||||
Protocol standard to unify prompts, context, and tool use.
|
||||
|
||||
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.
|
||||
:::
|
||||
|
||||
## Quick Start
|
||||
|
||||
Below is a quick example of setting up a new MCP server for use in your assistant:
|
||||
|
||||
1. Create a folder called `.continue/mcpServers` at the top level of your workspace
|
||||
2. Add a file called `playwright-mcp.yaml` to this folder.
|
||||
3. Write the following contents to `playwright-mcp.yaml` and save.
|
||||
|
||||
```yaml title=".continue/mcpServers/playwright-mcp.yaml"
|
||||
name: Playwright mcpServer
|
||||
version: 0.0.1
|
||||
schema: v1
|
||||
mcpServers:
|
||||
- name: Browser search
|
||||
command: npx
|
||||
args:
|
||||
- "@playwright/mcp@latest"
|
||||
```
|
||||
|
||||
Now test your MCP server by prompting the following command:
|
||||
|
||||
```
|
||||
Open the browser and navigate Hacker News. Save the top 10 headlines in a hn.txt file.
|
||||
```
|
||||
|
||||
The result will be a generated file called `hn.txt` in the current working directory.
|
||||
|
||||

|
||||
|
||||
## Using MCP Servers
|
||||
|
||||
To set up your own MCP server, read the [MCP
|
||||
quickstart](https://modelcontextprotocol.io/quickstart) and then [create an
|
||||
`mcpServers`
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
mcpServers:
|
||||
- name: SQLite MCP
|
||||
command: npx
|
||||
args:
|
||||
- "-y"
|
||||
- "mcp-sqlite"
|
||||
- "/path/to/your/database.db"
|
||||
|
||||
````
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"experimental": {
|
||||
"modelContextProtocolServers": [
|
||||
{
|
||||
"transport": {
|
||||
"type": "stdio",
|
||||
"command": "uvx",
|
||||
"args": ["mcp-server-sqlite", "--db-path", "/path/to/your/database.db"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
````
|
||||
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Syntax
|
||||
|
||||
MCP blocks follow the established syntax for blocks, with a few additional properties specific to MCP servers.
|
||||
|
||||
- `name` (**required**): A display name for the MCP server.
|
||||
- `command` (**required**): The command to run to start the MCP server.
|
||||
- `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.
|
||||
|
||||
### Transport Types
|
||||
|
||||
MCP now supports remote server connections through HTTP-based transports, expanding beyond the traditional local stdio transport method. This enables integration with cloud-hosted MCP servers and distributed architectures.
|
||||
|
||||
#### Server-Sent Events (SSE) Transport
|
||||
|
||||
For real-time streaming communication, use the SSE transport:
|
||||
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: Name
|
||||
type: sse
|
||||
url: https://....
|
||||
```
|
||||
|
||||
#### Standard Input/Output (stdio)
|
||||
|
||||
For local MCP servers that communicate via standard input and output:
|
||||
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: Name
|
||||
type: stdio
|
||||
command: npx
|
||||
args:
|
||||
- "@modelcontextprotocol/server-sqlite"
|
||||
- "/path/to/your/database.db"
|
||||
```
|
||||
|
||||
#### Streamable HTTP Transport
|
||||
|
||||
For standard HTTP-based communication with streaming capabilities:
|
||||
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: Name
|
||||
type: streamable-http
|
||||
url: https://....
|
||||
```
|
||||
|
||||
These remote transport options allow you to connect to MCP servers hosted on remote infrastructure, enabling more flexible deployment architectures and shared server resources across multiple clients.
|
||||
|
||||
For detailed information about transport mechanisms and their use cases, refer to the official MCP documentation on [transports](https://modelcontextprotocol.io/docs/concepts/transports#server-sent-events-sse).
|
||||
|
||||
### Working with Secrets
|
||||
|
||||
With some MCP servers you will need to use API keys or other secrets. You can leverage locally stored environments secrets
|
||||
as well as access hosted secrets in the Continue Hub. To leverage Hub secrets, you can use the `inputs` property in your MCP env block instead of `secrets`.
|
||||
|
||||
```yaml
|
||||
mcpServers:
|
||||
- name: Supabase MCP
|
||||
command: npx
|
||||
args:
|
||||
- -y
|
||||
- "@supabase/mcp-server-supabase@latest"
|
||||
- --access-token
|
||||
- ${{ secrets.SUPABASE_TOKEN }}
|
||||
env:
|
||||
SUPABASE_TOKEN: ${{ secrets.SUPABASE_TOKEN }}
|
||||
- name: GitHub
|
||||
command: npx
|
||||
args:
|
||||
- "-y"
|
||||
- "@modelcontextprotocol/server-github"
|
||||
env:
|
||||
GITHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_PERSONAL_ACCESS_TOKEN }}
|
||||
```
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
---
|
||||
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.
|
||||
:::
|
||||
|
||||
### Quick Start
|
||||
|
||||
Below is a quick example of setting up a prompt file:
|
||||
|
||||
1. Create a folder called `.continue/rules` at the top level of your workspace
|
||||
2. Add a file called `review-prompt.md` to this folder.
|
||||
3. Write the following contents to `review-prompt.md` and save.
|
||||
|
||||
```md title="review-prompt.md"
|
||||
---
|
||||
name: Redux best practices review
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
Review the currently open file for adherence to Redux best practices, as explained in their style guide at https://redux.js.org/style-guide/.
|
||||
```
|
||||
|
||||
Now to use this prompt, you can open Chat, type <kbd>/</kbd>, select the prompt, and type out any additional instructions you'd like to add.
|
||||
|
||||
## Further Examples
|
||||
|
||||
Below are more examples to get you started. You can also visit the Hub to [explore prompts](https://hub.continue.dev/explore/prompts) or [create your own](https://hub.continue.dev/new?type=block&blockType=prompts).
|
||||
|
||||
### Security review
|
||||
|
||||
```md title="security-review.md"
|
||||
---
|
||||
name: Security best practices review
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
Review the changes in the current git diff for these security best practices:
|
||||
|
||||
- Does the architecture follow security-by-design principles?
|
||||
- Are there potential security vulnerabilities in the system design?
|
||||
- Is sensitive data handled appropriately throughout the lifecycle?
|
||||
```
|
||||
|
||||
### Pull in commonly used files for tasks
|
||||
|
||||
```md title="typeorm-entity-generator.md"
|
||||
---
|
||||
name: Generate a new TypeORM entity
|
||||
alwaysApply: false
|
||||
---
|
||||
|
||||
Referencing `src/db/dataSource.ts` and `src/db/entity/SampleEntity.ts`, generate a new TypeORM entity based on the following requirements:
|
||||
```
|
||||
|
|
@ -1,189 +0,0 @@
|
|||
---
|
||||
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](../../chat/how-to-use-it.md), [Edit](../../edit/how-to-use-it.md), and [Agent](../../agent/how-to-use-it.md) requests.
|
||||
|
||||
:::info Rules are not included in [autocomplete](./autocomplete.mdx) or [apply](../model-roles/apply.mdx).
|
||||
:::
|
||||
|
||||
## How it works
|
||||
|
||||
You can view the current rules by clicking the pen icon above the main toolbar:
|
||||
|
||||

|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||
## Creating `rules` blocks
|
||||
|
||||
Rules can be added locally using the "Add Rules" button while viewing the Local Assistant's rules.
|
||||
|
||||

|
||||
|
||||
:::info Automatically create local rule blocks
|
||||
When in Agent mode, you can prompt the agent to create a rule for you using the `builtin_create_rule_block` tool if enabled.
|
||||
|
||||
For example, you can say "Create a rule for this", and a rule will be created for you in `.continue/rules` based on your conversation.
|
||||
:::
|
||||
|
||||
Rules can also be added to an Assistant on the Continue Hub.
|
||||
|
||||
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.
|
||||
|
||||
:::
|
||||
|
||||
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 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"
|
||||
---
|
||||
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
|
||||
|
||||
````
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="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
|
||||
````
|
||||
|
||||
</TabItem>
|
||||
|
||||
</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.
|
||||
|
||||
```md title=".continue/rules/new-rule.md"
|
||||
---
|
||||
name: New rule
|
||||
---
|
||||
|
||||
Always give concise responses
|
||||
```
|
||||
|
||||
This is also done when selecting "Add Rule" in the Assistant settings. This will create a new folder in `.continue/rules` with a default file named `new-rule.md`.
|
||||
|
||||
### Examples
|
||||
|
||||
If you want concise answers:
|
||||
|
||||
```md title=".continue/rules/concise-rule.md"
|
||||
---
|
||||
name: Always give concise answers
|
||||
---
|
||||
|
||||
Please provide concise answers. Don't explain obvious concepts.
|
||||
You can assume that I am knowledgable about most programming topics.
|
||||
```
|
||||
|
||||
If you want to ensure certain practices are followed, for example in React:
|
||||
|
||||
```md title=".continue/rules/functional-rule.md"
|
||||
---
|
||||
name: Always use functional components
|
||||
---
|
||||
|
||||
Whenever you are writing React code, make sure to
|
||||
|
||||
- use functional components instead of class components
|
||||
- use hooks for state management
|
||||
- define an interface for your component props
|
||||
- use Tailwind CSS for styling
|
||||
- modularize components into smaller, reusable pieces
|
||||
```
|
||||
|
||||
### Chat System Message
|
||||
|
||||
Continue includes a simple default system message for [Chat](../../chat/how-to-use-it.md) and [Agent](../../agent/how-to-use-it.md) requests, to help the model provide reliable codeblock formats in its output.
|
||||
|
||||
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](../../advanced/reference#models).
|
||||
|
||||
### `.continuerules`
|
||||
|
||||
:::warning
|
||||
|
||||
`.continuerules` will be deprecated in a future release. Please use the `.continue/rules` folder instead.
|
||||
|
||||
:::
|
||||
|
||||
You can create project-specific rules by adding a `.continuerules` file to the root of your project. This file is raw text and its full contents will be used as rules.
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
---
|
||||
title: User Settings Page
|
||||
description: Reference for Adjusting User-Specific Settings
|
||||
keywords: [config, settings, configuration, customize, customization, sidebar]
|
||||
---
|
||||
|
||||
# The User Settings Page
|
||||
|
||||
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.
|
||||
|
||||

|
||||
|
||||
Which takes you to this page (select the "Settings" tab):
|
||||
|
||||

|
||||
|
||||
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/retreival. 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:
|
||||
|
||||
- `Auto-Accept Agent Edits`: **CAUTION: Be very careful with this setting. When turned on, Agent mode's edit tool can make changes to files with no manual review or guaranteed stopping point. If on, diffs generated by the edit tool are automatically accepted and Agent proceeds with the next conversational turn.** Off by default.
|
||||
|
||||
<!-- - `Use autocomplete cache`: If on, caches completions. -->
|
||||
<!-- - `Use Chromium for Docs Crawling`: Use Chromium to crawl docs locally. Useful if the default Cheerio crawler fails on sites that require JavaScript rendering. Downloads and installs Chromium to ~/.continue/.utils. Off by default -->
|
||||
<!-- - `Codeblock Actions Position`: Sets the position for the actions that show when hovering over codeblocks. Defaults to `top` -->
|
||||
<!-- - `Workspace prompts path`: Where to find Prompt Files in a workspace - replaces the default .continue/prompts -->
|
||||
|
|
@ -1,33 +0,0 @@
|
|||
---
|
||||
title: Slash commands
|
||||
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";
|
||||
|
||||

|
||||
|
||||
## 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 can be combined with additional instructions, including [context providers](../context-providers.mdx) or [highlighted code](../../edit/context-selection#highlighted-code).
|
||||
|
||||
## Prompts
|
||||
|
||||
### Assistant prompt blocks
|
||||
|
||||
The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../chat/how-it-works.md).
|
||||
|
||||
### Prompt files
|
||||
|
||||
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
|
||||
|
||||
Learn more about prompt files [here](./prompts.md)
|
||||
|
||||
### MCP Server prompts
|
||||
|
||||
Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp.mdx) for more details.
|
||||
|
|
@ -1,49 +0,0 @@
|
|||
---
|
||||
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
|
||||
:::
|
||||
|
||||
To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
|
||||
|
||||
## Quick actions
|
||||
|
||||
Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompts.md) to perform custom actions.
|
||||
|
||||

|
||||
|
||||
By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
|
||||
|
||||
## Right click actions
|
||||
|
||||
Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
|
||||
|
||||
The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
|
||||
|
||||
Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../edit/how-it-works.md).
|
||||
|
||||

|
||||
|
||||
## Debug action
|
||||
|
||||
The debug action is a special built-in keyboard shortcut in the VS Code extension. Use <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>R</kbd> to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
|
||||
|
||||
```
|
||||
I got the following error, can you please help explain how to fix it?
|
||||
|
||||
[ERROR_MESSAGE]
|
||||
```
|
||||
|
||||
## Quick fixes
|
||||
|
||||
Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
|
||||
|
||||
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]”.
|
||||
|
||||

|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 858 KiB |
|
|
@ -1,34 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# SambaNova Cloud
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: SambaNova Llama 4 Scout
|
||||
provider: sambanova
|
||||
model: Llama-4-Scout-17B-16E-Instruct
|
||||
apiKey: <YOUR_SAMBANOVA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "SambaNova Llama 4 Scout",
|
||||
"provider": "sambanova",
|
||||
"model": "Llama-4-Scout-17B-16E-Instruct",
|
||||
"apiKey": "<YOUR_SAMBANOVA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/SambaNova.ts)
|
||||
|
|
@ -1,91 +0,0 @@
|
|||
# Ask Sage
|
||||
|
||||
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)
|
||||
:::
|
||||
|
||||
## Configuration
|
||||
|
||||
To use the Ask Sage models, you can use the following
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4 gov
|
||||
provider: askSage
|
||||
model: gpt4-gov
|
||||
apiBase: https://api.asksage.ai/server/
|
||||
apiKey: <YOUR_ASK_SAGE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4 gov",
|
||||
"provider": "askSage",
|
||||
"model": "gpt4-gov",
|
||||
"apiBase": "https://api.asksage.ai/server/",
|
||||
"apiKey": "<YOUR_ASK_SAGE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The `apiBase` will be listed on the Ask Sage platform when you generate an `API key`. You will see context as shown below:
|
||||
|
||||
> Server API for query/training etc.:
|
||||
>
|
||||
> - Documentation: https://app.swaggerhub.com/apis-docs/NICOLASCHAILLAN_1/server_ask-sage_api/1.0
|
||||
> - URL for this API is: https://api.asksage.ai/server/
|
||||
|
||||
## Usage
|
||||
|
||||
Currently, the setup for the models provided by Ask Sage is to support the following two functionalities provided by Continue.Dev:
|
||||
|
||||
- `Chat` to understand and iterate on code in the sidebar
|
||||
- `Edit` to modify code without leaving your current file
|
||||
|
||||
More models, functionalities and documentation will be added in the future for Ask Sage Integration.
|
||||
|
||||
> We recommend to utilize the `OpenAI` or `Anthropic` models for the best performance and results for the `Chat` and `Edit` functionalities.
|
||||
|
||||
## Ask Sage Documentation
|
||||
|
||||
Ask Sage documentation is not available with Continue.Dev, so if you have any questions or need help with Ask Sage type `@ask` and select the `Ask Sage` option in the chat. Then procced to ask your question about Ask Sage.
|
||||
|
||||
## Current Models From Ask Sage Supported
|
||||
|
||||
The current Models available provided by Ask Sage are:
|
||||
|
||||
| Index | Model | Added |
|
||||
| ----- | --------------------- | ----- |
|
||||
| 1 | GPT-4 Gov | ✅ |
|
||||
| 2 | GPT-4o Gov | ✅ |
|
||||
| 3 | GPT-4o-mini Gov | ✅ |
|
||||
| 4 | GPT-3.5-Turbo Gov | ✅ |
|
||||
| 5 | GPT-4o | ✅ |
|
||||
| 6 | GPT-4o-mini | ✅ |
|
||||
| 7 | GPT-4 | ✅ |
|
||||
| 8 | GPT-4-32K | ✅ |
|
||||
| 9 | GPT-o1 | ✅ |
|
||||
| 10 | GPT-o1-mini | ✅ |
|
||||
| 10 | GPT-o3-mini | ✅ |
|
||||
| 11 | GPT-3.5-turbo | ✅ |
|
||||
| 12 | Claude 3.5 Sonnet Gov | ✅ |
|
||||
| 13 | Claude 3 Opus | ✅ |
|
||||
| 14 | Claude 3 Sonet | ✅ |
|
||||
| 15 | Claude 3.5 Sonnet | ✅ |
|
||||
| 16 | Grok (xAI) | ✅ |
|
||||
| 17 | Groq Llama 3.3 | ✅ |
|
||||
| 18 | Groq 70B | ✅ |
|
||||
| 19 | Gemini Pro | ✅ |
|
||||
| 20 | llama 3 | ✅ |
|
||||
| 21 | Mistral Large | ✅ |
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
# Cerebras Inference
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
Cerebras Inference uses specialized silicon to provides fast inference.
|
||||
|
||||
1. Create an account in the portal [here](https://cloud.cerebras.ai/).
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cerebras Llama 3.1 70B
|
||||
provider: cerebras
|
||||
model: llama3.1-70b
|
||||
apiKey: <YOUR_CEREBRAS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Cerebras Llama 3.1 70B",
|
||||
"provider": "cerebras",
|
||||
"model": "llama3.1-70b",
|
||||
"apiKey": "<YOUR_CEREBRAS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,87 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Cloudflare Workers AI
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3 8B
|
||||
provider: cloudflare
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@cf/meta/llama-3-8b-instruct"
|
||||
contextLength: 2400
|
||||
defaultCompletionOptions:
|
||||
maxTokens: 500
|
||||
roles:
|
||||
- chat
|
||||
env:
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
- name: DeepSeek Coder 6.7b Instruct
|
||||
provider: cloudflare
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
|
||||
contextLength: 2400
|
||||
defaultCompletionOptions:
|
||||
maxTokens: 500
|
||||
roles:
|
||||
- chat
|
||||
env:
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
- name: DeepSeek 7b
|
||||
provider: cloudflare
|
||||
apiKey: <YOUR_CLOUDFARE_API_KEY>
|
||||
model: "@hf/thebloke/deepseek-coder-6.7b-base-awq"
|
||||
roles:
|
||||
- autocomplete
|
||||
env:
|
||||
accountId: YOUR CLOUDFLARE ACCOUNT ID
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3 8B",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@cf/meta/llama-3-8b-instruct"
|
||||
},
|
||||
{
|
||||
"title": "DeepSeek Coder 6.7b Instruct",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"contextLength": 2400,
|
||||
"completionOptions": {
|
||||
"maxTokens": 500
|
||||
},
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-instruct-awq"
|
||||
}
|
||||
],
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek 7b",
|
||||
"provider": "cloudflare",
|
||||
"accountId": "YOUR CLOUDFLARE ACCOUNT ID",
|
||||
"apiKey": "YOUR CLOUDFLARE API KEY",
|
||||
"model": "@hf/thebloke/deepseek-coder-6.7b-base-awq"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Visit the [Cloudflare dashboard](https://dash.cloudflare.com/) to [create an API key](https://developers.cloudflare.com/fundamentals/api/get-started/create-token/).
|
||||
|
||||
Review [available models](https://developers.cloudflare.com/workers-ai/models/) on Workers AI
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Cloudflare.ts)
|
||||
|
|
@ -1,102 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Cohere
|
||||
|
||||
Before using Cohere, visit the [Cohere dashboard](https://dashboard.cohere.com/api-keys) to create an API key.
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Command A** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Command A 03-2025
|
||||
provider: cohere
|
||||
model: command-a-03-2025
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Command A 03-2025",
|
||||
"provider": "cohere",
|
||||
"model": "command-a-03-2025",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Cohere currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **embed-v4.0** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cohere Embed v4.0
|
||||
provider: cohere
|
||||
model: embed-v4.0
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "cohere",
|
||||
"model": "embed-v4.0",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring **rerank-v3.5** as your reranking model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cohere Rerank v3.5
|
||||
provider: cohere
|
||||
model: rerank-v3.5
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "cohere",
|
||||
"params": {
|
||||
"model": "rerank-v3.5",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepInfra
|
||||
provider: deepinfra
|
||||
model: mistralai/Mixtral-8x7B-Instruct-v0.1
|
||||
apiKey: <YOUR_DEEP_INFRA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "deepinfra",
|
||||
"title": "DeepInfra",
|
||||
"model": "mistralai/Mixtral-8x7B-Instruct-v0.1",
|
||||
"apiKey": "<YOUR_DEEP_INFRA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/DeepInfra.ts)
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Flowise
|
||||
provider: flowise
|
||||
model: <MODEL>
|
||||
apiBase: <API_BASE>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "flowise",
|
||||
"title": "Flowise",
|
||||
"model": "<MODEL>",
|
||||
"apiBase": "<API_BASE>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Flowise.ts)
|
||||
|
|
@ -1,116 +0,0 @@
|
|||
---
|
||||
title: Function Network
|
||||
slug: ../function-network
|
||||
---
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Function Network
|
||||
|
||||
> Private, Affordable User-Owned AI
|
||||
|
||||
:::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).
|
||||
|
||||
:::
|
||||
|
||||
## 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 70b
|
||||
provider: function-network
|
||||
model: meta/llama-3.1-70b-instruct
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 70b",
|
||||
"provider": "function-network",
|
||||
"model": "meta/llama-3.1-70b-instruct",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/chat-and-code-completion) to see a list of chat model providers.
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Deepseek Coder 6.7b
|
||||
provider: function-network
|
||||
model: thebloke/deepseek-coder-6.7b-base-awq
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Deepseek Coder 6.7b",
|
||||
"provider": "function-network",
|
||||
"model": "thebloke/deepseek-coder-6.7b-base-awq",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BGE Base En
|
||||
provider: function-network
|
||||
model: baai/bge-base-en-v1.5
|
||||
apiKey: <YOUR_FUNCTION_NETWORK_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "function-network",
|
||||
"model": "baai/bge-base-en-v1.5",
|
||||
"apiKey": "<YOUR_FUNCTION_NETWORK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[Click here](https://docs.function.network/models-supported/embeddings) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Function Network currently does not offer any reranking models.
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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.
|
||||
:::
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.3 70b Versatile
|
||||
provider: groq
|
||||
model: llama-3.3-70b-versatile
|
||||
apiKey: <YOUR_GROQ_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.3 70b Versatile",
|
||||
"provider": "groq",
|
||||
"model": "llama-3.3-70b-versatile",
|
||||
"apiKey": "<YOUR_GROQ_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Hugging Face Inference API
|
||||
provider: huggingface-inference-api
|
||||
model: MODEL_NAME
|
||||
apiKey: <YOUR_HF_TOKEN>
|
||||
apiBase: <YOUR_HF_INFERENCE_API_ENDPOINT_URL>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Hugging Face Inference API",
|
||||
"provider": "huggingface-inference-api",
|
||||
"model": "MODEL_NAME",
|
||||
"apiKey": "<YOUR_HF_TOKEN>",
|
||||
"apiBase": "<YOUR_HF_INFERENCE_API_ENDPOINT_URL>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/HuggingFaceInferenceAPI.ts)
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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.
|
||||
:::
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: IPEX-LLM
|
||||
provider: ollama
|
||||
model: AUTODETECT
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: IPEX-LLM
|
||||
provider: ollama
|
||||
model: AUTODETECT
|
||||
apiBase: http://your-ollama-service-ip:11434
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "IPEX-LLM",
|
||||
"provider": "ollama",
|
||||
"model": "AUTODETECT",
|
||||
"apiBase": "http://your-ollama-service-ip:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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.
|
||||
:::
|
||||
|
|
@ -1,69 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: kindo
|
||||
model: claude-3-5-sonnet
|
||||
apiKey: <YOUR_KINDO_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "kindo",
|
||||
"model": "claude-3-5-sonnet",
|
||||
"apiKey": "<YOUR_KINDO_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Tab Autocomplete Config Example
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: WhiteRabbitNeo
|
||||
provider: kindo
|
||||
model: /models/WhiteRabbitNeo-33B-DeepSeekCoder
|
||||
apiKey: <YOUR_KINDO_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": [
|
||||
{
|
||||
"title": "WhiteRabbitNeo",
|
||||
"provider": "kindo",
|
||||
"model": "/models/WhiteRabbitNeo-33B-DeepSeekCoder",
|
||||
"apiKey": "<YOUR_KINDO_API_KEY>",
|
||||
"template": "none"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Security
|
||||
|
||||
To update your organization's model access, adjust the controls in [security settings](https://app.kindo.ai/security-settings).
|
||||
|
|
@ -1,40 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# LlamaCpp
|
||||
|
||||
Run the llama.cpp server binary to start the API server. If running on a remote server, be sure to set host to 0.0.0.0:
|
||||
|
||||
```bash
|
||||
.\server.exe -c 4096 --host 0.0.0.0 -t 16 --mlock -m models\meta\llama\codellama-7b-instruct.Q8_0.gguf
|
||||
```
|
||||
|
||||
After it's up and running, change `~/.continue/config.json` to look like this:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama CPP
|
||||
provider: llama.cpp
|
||||
model: MODEL_NAME
|
||||
apiBase: http://localhost:8080
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama CPP",
|
||||
"provider": "llama.cpp",
|
||||
"model": "MODEL_NAME",
|
||||
"apiBase": "http://localhost:8080"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LlamaCpp.ts)
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llamafile
|
||||
provider: llamafile
|
||||
model: mistral-7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llamafile",
|
||||
"provider": "llamafile",
|
||||
"model": "mistral-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Llamafile.ts)
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LM Studio
|
||||
provider: lmstudio
|
||||
model: llama2-7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "LM Studio",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama2-7b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: lmstudio
|
||||
model: nomic-ai/nomic-embed-text-v1.5-GGUF
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "lmstudio",
|
||||
"model": "nomic-ai/nomic-embed-text-v1.5-GGUF"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
This `apiBase` will now be used instead of the default `http://localhost:1234/v1`.
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/LMStudio.ts)
|
||||
|
|
@ -1,94 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Moonshot
|
||||
|
||||
[Moonshot AI](https://platform.moonshot.cn/) provides high-quality large language model services with competitive pricing and excellent performance.
|
||||
|
||||
## Configuration
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Moonshot
|
||||
provider: moonshot
|
||||
model: moonshot-v1-8k
|
||||
apiKey: <YOUR_MOONSHOT_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "<YOUR_MOONSHOT_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Available Models
|
||||
|
||||
Moonshot AI currently provides the following models:
|
||||
|
||||
- `moonshot-v1-8k`: Base model with 8K context window
|
||||
- `moonshot-v1-32k`: Base model with 32K context window
|
||||
- `moonshot-v1-128k`: Base model with 128K context window
|
||||
|
||||
## Configuration Options
|
||||
|
||||
| Option | Description | Default |
|
||||
| --------- | ----------------- | ----------------------------- |
|
||||
| `apiKey` | Moonshot API key | Required |
|
||||
| `apiBase` | API base URL | `https://api.moonshot.cn/v1/` |
|
||||
| `model` | Model name to use | `moonshot-v1-8k` |
|
||||
|
||||
## Example
|
||||
|
||||
Here's a complete configuration example:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Moonshot-8K
|
||||
provider: moonshot
|
||||
model: moonshot-v1-8k
|
||||
apiKey: <YOUR_MOONSHOT_API_KEY>
|
||||
defaultCompletionOptions:
|
||||
temperature: 0.7
|
||||
topP: 0.95
|
||||
maxTokens: 2048
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Moonshot-8K",
|
||||
"provider": "moonshot",
|
||||
"model": "moonshot-v1-8k",
|
||||
"apiKey": "<YOUR_MOONSHOT_API_KEY>",
|
||||
"completionOptions": {
|
||||
"temperature": 0.7,
|
||||
"topP": 0.95,
|
||||
"maxTokens": 2048
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,112 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- uses: morphllm/morph-v0
|
||||
with:
|
||||
MORPH_API_KEY: ${{ secrets.MORPH_API_KEY }}
|
||||
```
|
||||
or
|
||||
```yaml title="config.yaml"
|
||||
- name: Morph Fast Apply
|
||||
provider: openai
|
||||
model: morph-v2
|
||||
apiKey: <YOUR_MORPH_API_KEY>
|
||||
apiBase: https://api.morphllm.com/v1/
|
||||
roles:
|
||||
- apply
|
||||
promptTemplates:
|
||||
apply: "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Morph Fast Apply",
|
||||
"provider": "openai",
|
||||
"model": "morph-v2",
|
||||
"apiKey": "<YOUR_MORPH_API_KEY>",
|
||||
"apiBase": "https://api.morphllm.com/v1/",
|
||||
"roles": ["apply"],
|
||||
"promptTemplates": {
|
||||
"apply": "<code>{{{ original_code }}}</code>\n<update>{{{ new_code }}}</update>"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **morph-embedding-v2** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Morph Embeddings
|
||||
provider: openai
|
||||
model: morph-embedding-v2
|
||||
apiKey: <YOUR_MORPH_API_KEY>
|
||||
apiBase: https://api.morphllm.com/v1/
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "openai",
|
||||
"model": "morph-embedding-v2",
|
||||
"apiKey": "<YOUR_MORPH_API_KEY>",
|
||||
"apiBase": "https://api.morphllm.com/v1/"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
We recommend configuring **morph-rerank-v2** as your reranking model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Morph Reranker
|
||||
provider: cohere
|
||||
model: morph-rerank-v2
|
||||
apiKey: <YOUR_MORPH_API_KEY>
|
||||
apiBase: https://api.morphllm.com/v1/
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "cohere",
|
||||
"params": {
|
||||
"model": "morph-rerank-v2",
|
||||
"apiKey": "<YOUR_MORPH_API_KEY>",
|
||||
"apiBase": "https://api.morphllm.com/v1/"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Msty
|
||||
provider: msty
|
||||
model: deepseek-coder:6.7b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Completion Options
|
||||
|
||||
In addition to the model type, you can also configure some of the parameters that Msty uses to run the model.
|
||||
|
||||
- temperature: options.temperature - This is a parameter that controls the randomness of the generated text. Higher values result in more creative but potentially less coherent outputs, while lower values lead to more predictable and focused outputs.
|
||||
- top_p: options.topP - This sets a threshold (between 0 and 1) to control how diverse the predicted tokens should be. The model generates tokens that are likely according to their probability distribution, but also considers the top-k most probable tokens.
|
||||
- top_k: options.topK - This parameter limits the number of unique tokens to consider when generating the next token in the sequence. Higher values increase the variety of generated sequences, while lower values lead to more focused outputs.
|
||||
- num_predict: options.maxTokens - This determines the maximum number of tokens (words or characters) to generate for the given input prompt.
|
||||
- num_thread: options.numThreads - This is the multi-threading configuration option that controls how many threads the model uses for parallel processing. Higher values may lead to faster generation times but could also increase memory usage and complexity. Set this to one or two lower than the number of threads your CPU can handle to leave some for your GUI when running the model locally.
|
||||
- use_mmap: options.useMmap - For Ollama, this parameter allows the model to be mapped into memory. If disabled can enhance response time on low end devices but will slow down the stream.
|
||||
|
||||
## Authentication
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Msty
|
||||
provider: msty
|
||||
model: deepseek-coder:6.7b
|
||||
requestOptions:
|
||||
headers:
|
||||
Authorization: Bearer xxx
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Msty",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder:6.7b",
|
||||
"requestOptions": {
|
||||
"headers": {
|
||||
"Authorization": "Bearer xxx"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Msty.ts)
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Ncompass Gemma 3 Coder
|
||||
provider: ncompass
|
||||
model: google/gemma-3-27b-it
|
||||
apiKey: <YOUR_NCOMPASS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Ncompass Gemma 3 Coder",
|
||||
"provider": "ncompass",
|
||||
"model": "google/gemma-3-27b-it",
|
||||
"apiKey": "<YOUR_NCOMPASS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/NCompass.ts)
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Nebius AI Studio
|
||||
|
||||
You can get an API key from the [Nebius AI Studio API keys page](https://studio.nebius.ai/settings/api-keys)
|
||||
|
||||
## Availible models
|
||||
|
||||
Available models can be found on the [Nebius AI Studio models page](https://studio.nebius.ai/models/text2text)
|
||||
|
||||
## Chat model
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek R1
|
||||
provider: nebius
|
||||
model: deepseek-ai/DeepSeek-R1
|
||||
apiKey: <YOUR_NEBIUS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek R1",
|
||||
"provider": "nebius",
|
||||
"model": "deepseek-ai/DeepSeek-R1",
|
||||
"apiKey": "<YOUR_NEBIUS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BAAI Embedder
|
||||
provider: nebius
|
||||
model: BAAI/bge-en-icl
|
||||
apiKey: <YOUR_NEBIUS_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nebius",
|
||||
"model": "BAAI/bge-en-icl",
|
||||
"apiKey": "<YOUR_NEBIUS_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: novita
|
||||
model: meta-llama/llama-3.1-8b-instruct
|
||||
apiKey: <YOUR_NOVITA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "novita",
|
||||
"model": "meta-llama/llama-3.1-8b-instruct",
|
||||
"apiKey": "<YOUR_NOVITA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Novita.ts)
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
---
|
||||
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.
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nemotron-4-340B-Instruct
|
||||
provider: nvidia
|
||||
model: nvidia-nemotron-4-340b-instruct
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Nemotron-4-340B-Instruct",
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia-nemotron-4-340b-instruct",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
NVIDIA currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nvidia Embedder
|
||||
provider: nvidia
|
||||
model: nvidia/nv-embedqa-mistral-7b-v2
|
||||
apiKey: <YOUR_NVIDIA_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "nvidia",
|
||||
"model": "nvidia/nv-embedqa-mistral-7b-v2",
|
||||
"apiKey": "<YOUR_NVIDIA_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
NVIDIA currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,74 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenRouter LLaMA 70 8B
|
||||
provider: openrouter
|
||||
model: meta-llama/llama-3-70b-instruct
|
||||
apiBase: https://openrouter.ai/api/v1
|
||||
apiKey: <YOUR_OPEN_ROUTER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenRouter LLaMA 70 8B",
|
||||
"provider": "openrouter",
|
||||
"model": "meta-llama/llama-3-70b-instruct",
|
||||
"apiBase": "https://openrouter.ai/api/v1",
|
||||
"apiKey": "<YOUR_OPEN_ROUTER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Example Model
|
||||
provider: exampleProvider
|
||||
model: example-model
|
||||
requestOptions:
|
||||
extraBodyProperties:
|
||||
transforms: []
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Example Model",
|
||||
"provider": "exampleProvider",
|
||||
"model": "example-model",
|
||||
"requestOptions": {
|
||||
"extraBodyProperties": {
|
||||
"transforms": []
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Learn more about available settings [here](https://openrouter.ai/docs).
|
||||
|
|
@ -1,29 +0,0 @@
|
|||
# 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.
|
||||
:::
|
||||
|
||||
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.
|
||||
|
||||
Example configuration once OVMS is launched:
|
||||
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OVMS CodeLlama-7b-Instruct-hf
|
||||
provider: openai
|
||||
model: codellama/CodeLlama-7b-Instruct-hf
|
||||
apiKey: unused
|
||||
apiBase: http://localhost:5555/v3
|
||||
roles:
|
||||
- chat
|
||||
- edit
|
||||
- apply
|
||||
- name: OVMS Qwen2.5-Coder-1.5B
|
||||
provider: openai
|
||||
model: Qwen/Qwen2.5-Coder-1.5B
|
||||
apiKey: unused
|
||||
apiBase: http://localhost:5555/v3
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
|
|
@ -1,72 +0,0 @@
|
|||
---
|
||||
title: OVHcloud AI Endpoints
|
||||
---
|
||||
|
||||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
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/).
|
||||
:::
|
||||
|
||||
## 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder-32B-Instruct
|
||||
provider: ovhcloud
|
||||
model: qwen2.5-coder-32b
|
||||
apiKey: <YOUR_AIENDPOINTS_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen2.5-Coder-32B-Instruct",
|
||||
"provider": "ovhcloud",
|
||||
"model": "qwen2.5-coder-32b",
|
||||
"apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **bge-multilingual-gemma2** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BGE Multilingual Gemma2
|
||||
provider: ovhcloud
|
||||
model: bge-multilingual-gemma2
|
||||
apiKey: <YOUR_AIENDPOINTS_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "ovhcloud",
|
||||
"model": "bge-multilingual-gemma2",
|
||||
"apiKey": "<YOUR_AIENDPOINTS_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,38 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# 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">
|
||||
```yaml title="Package or config.yaml"
|
||||
models:
|
||||
- name: Relace Fast Apply
|
||||
provider: relace
|
||||
model: Fast-Apply
|
||||
apiKey: <YOUR_RELACE_API_KEY>
|
||||
roles:
|
||||
- apply
|
||||
promptTemplates:
|
||||
apply: "{{{ new_code }}}"
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Relace Fast Apply",
|
||||
"provider": "relace",
|
||||
"model": "Fast-Apply",
|
||||
"apiKey": "<YOUR_RELACE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Relace.ts)
|
||||
|
|
@ -1,36 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# ReplicateLLM
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Replicate CodeLLama
|
||||
provider: replicate
|
||||
model: codellama-13b
|
||||
apiKey: <YOUR_REPLICATE_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Replicate CodeLLama",
|
||||
"provider": "replicate",
|
||||
"model": "codellama-13b",
|
||||
"apiKey": "<YOUR_REPLICATE_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
If you don't specify the `model` parameter, it will default to `replicate/llama-2-70b-chat:58d078176e02c219e11eb4da5a02a7830a283b14cf8f94537af893ccff5ee781`.
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Replicate.ts)
|
||||
|
|
@ -1,57 +0,0 @@
|
|||
import Tabs from "@theme/Tabs";
|
||||
import TabItem from "@theme/TabItem";
|
||||
|
||||
# AWS 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: deepseek-6.7b-instruct
|
||||
provider: sagemaker
|
||||
model: lmi-model-deepseek-coder-xxxxxxx
|
||||
region: us-west-2
|
||||
roles:
|
||||
- chat
|
||||
- name: mxbai-embed
|
||||
provider: sagemaker
|
||||
model: mxbai-embed-large-v1-endpoint
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "deepseek-6.7b-instruct",
|
||||
"provider": "sagemaker",
|
||||
"model": "lmi-model-deepseek-coder-xxxxxxx",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
],
|
||||
"embeddingsProvider": {
|
||||
"provider": "sagemaker",
|
||||
"model": "mxbai-embed-large-v1-endpoint"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The value in model should be the SageMaker endpoint name you deployed.
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a profile called "sagemaker".
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[sagemaker]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
|
@ -1,78 +0,0 @@
|
|||
---
|
||||
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/).
|
||||
:::
|
||||
|
||||
## 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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder-32B-Instruct
|
||||
provider: scaleway
|
||||
model: qwen2.5-coder-32b-instruct
|
||||
apiKey: <YOUR_SCALEWAY_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen2.5-Coder-32B-Instruct",
|
||||
"provider": "scaleway",
|
||||
"model": "qwen2.5-coder-32b-instruct",
|
||||
"apiKey": "<YOUR_SCALEWAY_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Scaleway currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **BGE-Multilingual-Gemma2** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: BGE Multilingual Gemma2
|
||||
provider: scaleway
|
||||
model: bge-multilingual-gemma2
|
||||
apiKey: <YOUR_SCALEWAY_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "scaleway",
|
||||
"model": "bge-multilingual-gemma2",
|
||||
"apiKey": "<YOUR_SCALEWAY_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,88 +0,0 @@
|
|||
---
|
||||
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).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Qwen/Qwen2.5-Coder-32B-Instruct** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen
|
||||
provider: siliconflow
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_SILICONFLOW_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen
|
||||
provider: siliconflow
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_SILICONFLOW_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
]
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen",
|
||||
"provider": "siliconflow",
|
||||
"model": "Qwen/Qwen2.5-Coder-7B-Instruct",
|
||||
"apiKey": "<YOUR_SILICONFLOW_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
SiliconFlow provide some embeddings models. [Click here](https://siliconflow.cn/models) to see a list of embeddings models.
|
||||
|
||||
## Reranking model
|
||||
|
||||
SiliconFlow provide some reranking models. [Click here](https://siliconflow.cn/models) to see a list of reranking models.
|
||||
|
|
@ -1,32 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# TextGenWebUI
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Text Generation WebUI
|
||||
provider: text-gen-webui
|
||||
apiBase: http://localhost:5000/v1
|
||||
model: MODEL_NAME
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Text Generation WebUI",
|
||||
"provider": "text-gen-webui",
|
||||
"apiBase": "http://localhost:5000/v1",
|
||||
"model": "MODEL_NAME"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# Together
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Together Qwen2.5 Coder
|
||||
provider: together
|
||||
model: Qwen/Qwen2.5-Coder-32B-Instruct
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Together Qwen2.5 Coder",
|
||||
"provider": "together",
|
||||
"model": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
[View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Together.ts)
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
# Venice
|
||||
|
||||
Venice.AI is a privacy focused generative AI platform, allowing users to interact with open-source LLMs without storing any private user data. To get started with Venice's API, either purchase a pro account, stake $VVV to obtain daily inference allotments or fund your account with USD and head over to https://venice.ai/settings/api. Venice hosts state of the art open-source AI models and supports the OpenAI API standard, allowing users to easily interact with the platform. Learn more about the Venice API at https://venice.ai/api.
|
||||
|
||||
Change `~/.continue/config.json` to look like the following.
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"provider": "venice",
|
||||
"title": "Autodetect",
|
||||
"model": "AUTODETECT",
|
||||
"apiKey": "..."
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
To utilize features offered by the venice API that are not apart of the standard OpenAI API schema, include these as `venice_parameters`
|
||||
|
||||
For example, to use models with no system prompt, you can explicitly turn off the feature like so:
|
||||
|
||||
```json title="config.json"
|
||||
{
|
||||
"completionOptions": {
|
||||
"venice_parameters": {
|
||||
"include_venice_system_prompt" : false
|
||||
},
|
||||
...
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Learn more about available settings [here](https://docs.venice.ai/api-reference/api-spec).
|
||||
|
|
@ -1,107 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# vLLM
|
||||
|
||||
vLLM is an open-source library for fast LLM inference which typically is used to serve multiple users at the same time. It can also be used to run a large model on multiple GPU:s (e.g. when it doesn´t fit in a single GPU). Run their OpenAI-compatible server using `vllm serve`. See their [server documentation](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html) and the [engine arguments documentation](https://docs.vllm.ai/en/latest/usage/engine_args.html).
|
||||
|
||||
```shell
|
||||
vllm serve meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
```
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Llama3.1 8B** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B Instruct
|
||||
provider: vllm
|
||||
model: meta-llama/Meta-Llama-3.1-8B-Instruct
|
||||
apiBase: http://<vllm chat endpoint>/v1
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B Instruct",
|
||||
"provider": "vllm",
|
||||
"model": "meta-llama/Meta-Llama-3.1-8B-Instruct",
|
||||
"apiBase": "http://<vllm chat endpoint>/v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: vllm
|
||||
model: Qwen/Qwen2.5-Coder-1.5B
|
||||
apiBase: http://<vllm autocomplete endpoint>/v1
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"provider": "vllm",
|
||||
"model": "Qwen/Qwen2.5-Coder-1.5B",
|
||||
"apiBase": "http://<vllm autocomplete endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Nomic Embed Text** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: VLLM Nomad Embed Text
|
||||
provider: vllm
|
||||
model: nomic-ai/nomic-embed-text-v1
|
||||
apiBase: http://<vllm embed endpoint>/v1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "vllm",
|
||||
"model": "nomic-ai/nomic-embed-text-v1",
|
||||
"apiBase": "http://<vllm embed endpoint>/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Continue automatically handles vLLM's response format (which uses `results` instead of `data`).
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
The continue implementation uses [OpenAI](../top-level/openai.mdx) under the hood. [View the source](https://github.com/continuedev/continue/blob/main/core/llm/llms/Vllm.ts)
|
||||
|
|
@ -1,279 +0,0 @@
|
|||
import TabItem from "@theme/TabItem";
|
||||
import Tabs from "@theme/Tabs";
|
||||
|
||||
# IBM watsonx
|
||||
|
||||
watsonx, developed by IBM, offers a variety of pre-trained AI foundation models that can be used for natural language processing (NLP), computer vision, and speech recognition tasks.
|
||||
|
||||
## Setup
|
||||
|
||||
Accessing watsonx models can be done either through watsonx SaaS on IBM Cloud or using a dedicated watsonx.ai Software instance.
|
||||
|
||||
### watsonx.ai SaaS - IBM Cloud
|
||||
|
||||
To get started with watsonx SaaS, visit the [registration page](https://dataplatform.cloud.ibm.com/registration/stepone?context=wx). If you do not have an existing IBM Cloud account, you can sign up for a free trial.
|
||||
|
||||
To authenticate to watsonx.ai SaaS with Continue, you will need to create a project and [set up an API key](https://www.ibm.com/docs/en/mas-cd/continuous-delivery?topic=cli-creating-your-cloud-api-key). Then, in continue:
|
||||
|
||||
- Set **apiBase** to your watsonx SaaS endpoint, e.g. `https://us-south.ml.cloud.ibm.com` for US South region.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx API Key.
|
||||
|
||||
### watsonx.ai Software
|
||||
|
||||
To authenticate to your watsonx.ai Software instance with Continue, you can use either `username/password` or `ZenApiKey` method:
|
||||
|
||||
1. _Option 1_ (Recommended): using `ZenApiKey` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **apiKey** to your watsonx Zen API Key. To generate it:
|
||||
1. Log in to the CPD web client.
|
||||
2. From the toolbar, click your avatar.
|
||||
3. Click **Profile and settings**.
|
||||
4. Click **API key** > **Generate new key**.
|
||||
5. Click **Generate**.
|
||||
6. Click **Copy** and save your key somewhere safe. You cannot recover this key if you lose it.
|
||||
7. Generate your ZenApiKey by running the following command in your preferred terminal: `echo "<username>:<apikey>" | base64`, replacing `<username>` with your CPD username and `<apikey>` with the API Key you just created.
|
||||
2. _Option 2_: using `username/password` authentication:
|
||||
- Set **apiBase** to your watsonx software endpoint, e.g. `https://cpd-watsonx.apps.example.com`.
|
||||
- Set **projectId** to your watsonx project ID.
|
||||
- Set **API Key** to your watsonx Username and Password using `username:password` as format.
|
||||
|
||||
## Configuration
|
||||
|
||||
Add the following configuration:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: watsonx - Model Name
|
||||
provider: watsonx
|
||||
model: model ID
|
||||
apiBase: https://us-south.ml.cloud.ibm.com
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
env:
|
||||
projectId: PROJECT_ID
|
||||
apiVersion: 2024-03-14
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: watsonx - Model Name
|
||||
provider: watsonx
|
||||
model: model ID
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
env:
|
||||
apiVersion: 2024-03-14
|
||||
deploymentId: DEPLOYMENT_ID
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "model ID",
|
||||
"title": "watsonx - Model Name",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"deploymentId": "DEPLOYMENT_ID"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Configuration Options
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Granite Code 20b
|
||||
provider: watsonx
|
||||
model: ibm/granite-20b-code-instruct
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
template: granite
|
||||
defaultCompletionOptions:
|
||||
contextLength: 8000
|
||||
temperature: 0.1
|
||||
topP: 0.3
|
||||
topK: 20
|
||||
maxTokens: 2000
|
||||
frequencyPenalty: 1.1
|
||||
stop:
|
||||
- Question:
|
||||
- "\n\n\n"
|
||||
env:
|
||||
projectId: PROJECT_ID
|
||||
apiVersion: 2024-03-14
|
||||
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"model": "ibm/granite-20b-code-instruct",
|
||||
"title": "Granite Code 20b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"template": "granite",
|
||||
"contextLength": 8000,
|
||||
"completionOptions": {
|
||||
"temperature": 0.1,
|
||||
"topP": 0.3,
|
||||
"topK": 20,
|
||||
"maxTokens": 2000,
|
||||
"frequencyPenalty": 1.1,
|
||||
"stop": ["Question:", "\n\n\n"]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Granite Code 8b
|
||||
provider: watsonx
|
||||
model: ibm/granite-8b-code-instruct
|
||||
apiBase: watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"model": "ibm/granite-8b-code-instruct",
|
||||
"title": "Granite Code 8b",
|
||||
"provider": "watsonx",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14",
|
||||
"contextLength": 4000
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Watsonx Embedder
|
||||
provider: watsonx
|
||||
model: ibm/slate-30m-english-rtrvr-v2
|
||||
apiBase: https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "watsonx",
|
||||
"model": "ibm/slate-30m-english-rtrvr-v2",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranker
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Watsonx Reranker
|
||||
provider: watsonx
|
||||
model: cross-encoder/ms-marco-minilm-l-12-v2
|
||||
apiBase: https://us-south.ml.cloud.ibm.com
|
||||
projectId: PROJECT_ID
|
||||
apiKey: API_KEY/ZENAPI_KEY/USERNAME:PASSWORD
|
||||
apiVersion: 2024-03-14
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "watsonx",
|
||||
"params": {
|
||||
"model": "cross-encoder/ms-marco-minilm-l-12-v2",
|
||||
"apiBase": "watsonx endpoint e.g. https://us-south.ml.cloud.ibm.com",
|
||||
"projectId": "PROJECT_ID",
|
||||
"apiKey": "API_KEY/ZENAPI_KEY/USERNAME:PASSWORD",
|
||||
"apiVersion": "2024-03-14"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,109 +0,0 @@
|
|||
---
|
||||
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).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 4 Sonnet** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 4 Sonnet
|
||||
provider: anthropic
|
||||
model: claude-sonnet-4-20250514
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 4 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Anthropic currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Anthropic currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Anthropic currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## Prompt caching
|
||||
|
||||
Anthropic supports [prompt caching with Claude](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching), which allows Claude models to cache system messages and conversation history between requests to improve performance and reduce costs.
|
||||
|
||||
Prompt caching is generally available for:
|
||||
|
||||
- Claude 4 Sonnet
|
||||
- Claude 3.7 Sonnet
|
||||
- Claude 3.5 Sonnet
|
||||
- Claude 3.5 Haiku
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Anthropic
|
||||
provider: anthropic
|
||||
model: claude-sonnet-4-20250514
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
defaultCompletionOptions:
|
||||
promptCaching: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"cacheBehavior": {
|
||||
"cacheSystemMessage": true,
|
||||
"cacheConversation": true
|
||||
},
|
||||
"title": "Anthropic",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-sonnet-4-latest",
|
||||
"defaultCompletionOptions": {
|
||||
"promptCaching": true
|
||||
},
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,169 +0,0 @@
|
|||
---
|
||||
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
|
||||
|
||||
For details on OpenAI model setup, see [Azure OpenAI Service configuration](#azure-openai-service-configuration).
|
||||
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
provider: azure
|
||||
model: gpt-4o
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
apiKey: <YOUR_AZURE_API_KEY> # If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
env:
|
||||
deployment: <YOUR_DEPLOYMENT_NAME>
|
||||
apiType: azure-foundry # Or "azure-openai" if using OpenAI models
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [{
|
||||
"title": "GPT-4o",
|
||||
"provider": "azure",
|
||||
"model": "gpt-4o",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>", // If you use subscription key, try using Azure gateway to rename it apiKey
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
apiBase: https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest",
|
||||
"apiBase": "https://<YOUR_MODEL_NAME>.<YOUR_REGION>.models.ai.azure.com/v1",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-3-large** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Text Embedding-3 Large
|
||||
provider: azure
|
||||
model: text-embedding-3-large
|
||||
apiBase: <YOUR_DEPLOYMENT_BASE>
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
deployment: <YOUR_DEPLOYMENT_NAME>
|
||||
apiType: azure
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "azure",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiBase": "<YOUR_DEPLOYMENT_BASE>",
|
||||
"deployment": "<YOUR_DEPLOYMENT_NAME>",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-foundry" // Or "azure-openai" if using OpenAI models
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Azure OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking models.
|
||||
|
||||
## Privacy
|
||||
|
||||
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.
|
||||
:::
|
||||
|
||||
## Azure OpenAI Service configuration
|
||||
|
||||
Azure OpenAI Service requires a handful of additional parameters to be configured, such as a deployment name and API base URL.
|
||||
|
||||
To find this information in _Azure AI Foundry_, first select the model that you would like to connect. Then visit _Endpoint_ > _Target URI_.
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o Azure
|
||||
model: gpt-4o
|
||||
provider: azure
|
||||
apiBase: https://just-an-example.openai.azure.com
|
||||
apiKey: <YOUR_AZURE_API_KEY>
|
||||
env:
|
||||
apiVersion: 2023-03-15-preview
|
||||
deployment: gpt-4o-july
|
||||
apiType: azure-openai
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"title": "GPT-4o Azure",
|
||||
"model": "gpt-4o",
|
||||
"provider": "azure",
|
||||
"apiBase": "https://just-an-example.openai.azure.com",
|
||||
"deployment": "gpt-4o-july",
|
||||
"apiVersion": "2023-03-15-preview",
|
||||
"apiKey": "<YOUR_AZURE_API_KEY>",
|
||||
"apiType": "azure-openai"
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,234 +0,0 @@
|
|||
---
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
env:
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.7 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-7-sonnet-20250219-v1:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-5-sonnet-20241022-v2:0
|
||||
env:
|
||||
region: us-east-1
|
||||
profile: bedrock
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "bedrock",
|
||||
"model": "us.anthropic.claude-3-5-sonnet-20241022-v2:0",
|
||||
"region": "us-east-1",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolside](https://aws.amazon.com/bedrock/poolside/) will be supported in the near future.
|
||||
|
||||
In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete.md).
|
||||
|
||||
## Embeddings model
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Embeddings Model
|
||||
provider: bedrock
|
||||
model: amazon.titan-embed-text-v2:0
|
||||
env:
|
||||
region: us-west-2
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"title": "Embeddings Model",
|
||||
"provider": "bedrock",
|
||||
"model": "amazon.titan-embed-text-v2:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Bedrock Reranker
|
||||
provider: bedrock
|
||||
model: cohere.rerank-v3-5:0
|
||||
env:
|
||||
region: us-west-2
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "bedrock",
|
||||
"params": {
|
||||
"model": "cohere.rerank-v3-5:0",
|
||||
"region": "us-west-2"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Prompt caching
|
||||
|
||||
Bedrock allows Claude models to cache tool payloads, system messages, and chat
|
||||
messages between requests. Enable this behavior by adding
|
||||
`promptCaching: true` under `defaultCompletionOptions` in your model
|
||||
configuration.
|
||||
|
||||
Prompt caching is generally available for:
|
||||
|
||||
- Claude 3.7 Sonnet
|
||||
- Claude 3.5 Haiku
|
||||
- Amazon Nova Micro
|
||||
- Amazon Nova Lite
|
||||
- Amazon Nova Pro
|
||||
|
||||
Customers who were granted access to Claude 3.5 Sonnet v2 during the prompt
|
||||
caching preview will retain that access, but it cannot be enabled for new users
|
||||
on that model.
|
||||
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
provider: bedrock
|
||||
model: us.anthropic.claude-3-7-sonnet-20250219-v1:0
|
||||
defaultCompletionOptions:
|
||||
promptCaching: true
|
||||
```
|
||||
|
||||
Prompt caching is not supported in JSON configuration files, so use the YAML syntax above to enable it.
|
||||
|
||||
## Authentication
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
`~/.aws/credentials` under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
||||
## Custom Imported Models
|
||||
|
||||
To setup Bedrock using custom imported models, add the following to your config file:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: AWS Bedrock deepseek-coder-6.7b-instruct
|
||||
provider: bedrockimport
|
||||
model: deepseek-coder-6.7b-instruct
|
||||
modelArn: arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX
|
||||
region: us-west-2
|
||||
profile: bedrock
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "AWS Bedrock deepseek-coder-6.7b-instruct",
|
||||
"provider": "bedrockimport",
|
||||
"model": "deepseek-coder-6.7b-instruct",
|
||||
"modelArn": "arn:aws:bedrock:us-west-2:XXXXX:imported-model/XXXXXX",
|
||||
"region": "us-west-2",
|
||||
"profile": "bedrock"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
Authentication will be through temporary or long-term credentials in
|
||||
~/.aws/credentials under a configured profile (e.g. "bedrock").
|
||||
|
||||
```title="~/.aws/credentials
|
||||
[bedrock]
|
||||
aws_access_key_id = abcdefg
|
||||
aws_secret_access_key = hijklmno
|
||||
aws_session_token = pqrstuvwxyz # Optional: means short term creds.
|
||||
```
|
||||
|
|
@ -1,83 +0,0 @@
|
|||
---
|
||||
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/).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **DeepSeek Chat** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Chat
|
||||
provider: deepseek
|
||||
model: deepseek-chat
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Chat",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-chat",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **DeepSeek Coder** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder
|
||||
provider: deepseek
|
||||
model: deepseek-coder
|
||||
apiKey: <YOUR_DEEPSEEK_API_KEY>
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "DeepSeek Coder",
|
||||
"provider": "deepseek",
|
||||
"model": "deepseek-coder",
|
||||
"apiKey": "<YOUR_DEEPSEEK_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
DeepSeek currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
DeepSeek currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
---
|
||||
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/).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Gemini 2.0 Flash** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini 2.0 Flash
|
||||
provider: gemini
|
||||
model: gemini-2.0-flash
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 2.0 Flash",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-2.0-flash",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
Gemini currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-004** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini Embeddings
|
||||
provider: gemini
|
||||
model: models/text-embedding-004
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "gemini",
|
||||
"model": "models/text-embedding-004",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Gemini currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,81 +0,0 @@
|
|||
---
|
||||
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).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Mercury Coder Small** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="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">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Mercury Coder Small",
|
||||
"provider": "inception",
|
||||
"model": "mercury-coder-small",
|
||||
"apiKey": "<INCEPTION_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We also recommend configuring **Mercury Coder Small** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="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">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": [
|
||||
{
|
||||
"title": "Mercury Coder Small",
|
||||
"provider": "inception",
|
||||
"model": "mercury-coder-small",
|
||||
"apiKey": "<INCEPTION_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
Inception currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
Inception currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,110 +0,0 @@
|
|||
---
|
||||
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`.
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Mistral Large** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Mistral Large
|
||||
provider: mistral
|
||||
model: mistral-large-latest
|
||||
apiKey: <YOUR_MISTRAL_API_KEY>
|
||||
roles:
|
||||
- chat
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Mistral Large",
|
||||
"provider": "mistral",
|
||||
"model": "mistral-large-latest",
|
||||
"apiKey": "<YOUR_MISTRAL_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Codestral** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral
|
||||
provider: mistral
|
||||
model: codestral-latest
|
||||
# apiBase: https://codestral.mistral.ai/v1 # Do this if you are using a Codestral API key
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral",
|
||||
"provider": "mistral",
|
||||
"model": "codestral-latest"
|
||||
// "apiBase": "https://codestral.mistral.ai/v1" // Do this if you are using a Codestral API key
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Mistral Embed** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Mistral Embed
|
||||
provider: mistral
|
||||
model: mistral-embed
|
||||
apiKey: <YOUR_MISTRAL_API_KEY>
|
||||
apiBase: https://api.mistral.ai/v1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "mistral",
|
||||
"model": "mistral-embed",
|
||||
"apiKey": "<YOUR_MISTRAL_API_KEY>",
|
||||
"apiBase": "https://api.mistral.ai/v1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Mistral currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,128 +0,0 @@
|
|||
---
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Qwen2.5-Coder 1.5B** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Qwen2.5-Coder 1.5B
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b-base
|
||||
roles:
|
||||
- autocomplete
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Qwen2.5-Coder 1.5B",
|
||||
"provider": "ollama",
|
||||
"model": "qwen2.5-coder:1.5b-base"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **Nomic Embed Text** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Nomic Embed Text
|
||||
provider: ollama
|
||||
model: nomic-embed-text
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "ollama",
|
||||
"model": "nomic-embed-text"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Ollama currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## Using a remote instance
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama3.1 8B
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
apiBase: http://<my endpoint>:11434
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b",
|
||||
"apiBase": "http://<my endpoint>:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,160 +0,0 @@
|
|||
---
|
||||
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)
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **GPT-4o** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
provider: openai
|
||||
model: gpt-4o
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4o",
|
||||
"provider": "openai",
|
||||
"model": "gpt-4o",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
OpenAI currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-3-large** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI Embeddings
|
||||
provider: openai
|
||||
model: text-embedding-3-large
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "openai",
|
||||
"model": "text-embedding-3-large",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
OpenAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
||||
## OpenAI compatible servers / APIs
|
||||
|
||||
OpenAI compatible servers
|
||||
|
||||
- [KoboldCpp](https://github.com/lostruins/koboldcpp)
|
||||
- [text-gen-webui](https://github.com/oobabooga/text-generation-webui/tree/main/extensions/openai#setup--installation)
|
||||
- [FastChat](https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md)
|
||||
- [LocalAI](https://localai.io/basics/getting_started/)
|
||||
- [llama-cpp-python](https://github.com/abetlen/llama-cpp-python#web-server)
|
||||
- [TensorRT-LLM](https://github.com/NVIDIA/trt-llm-as-openai-windows?tab=readme-ov-file#examples)
|
||||
- [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html)
|
||||
- [BerriAI/litellm](https://github.com/BerriAI/litellm)
|
||||
|
||||
OpenAI compatible APIs
|
||||
|
||||
- [Anyscale Endpoints](https://github.com/continuedev/deploy-os-code-llm#others)
|
||||
- [Anyscale Private Endpoints](https://github.com/continuedev/deploy-os-code-llm#anyscale-private-endpoints)
|
||||
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI-compatible server / API
|
||||
provider: openai
|
||||
model: MODEL_NAME
|
||||
apiBase: http://localhost:8000/v1
|
||||
apiKey: <YOUR_CUSTOM_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenAI-compatible server / API",
|
||||
"provider": "openai",
|
||||
"model": "MODEL_NAME",
|
||||
"apiKey": "<YOUR_CUSTOM_API_KEY>",
|
||||
"apiBase": "http://localhost:8000/v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
To force usage of `chat/completions` instead of `completions` endpoint you can set:
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: OpenAI-compatible server / API
|
||||
provider: openai
|
||||
model: MODEL_NAME
|
||||
apiBase: http://localhost:8000/v1
|
||||
useLegacyCompletionsEndpoint: true
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "OpenAI-compatible server / API",
|
||||
"provider": "openai",
|
||||
"model": "MODEL_NAME",
|
||||
"apiBase": "http://localhost:8000/v1",
|
||||
"useLegacyCompletionsEndpoint": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,116 +0,0 @@
|
|||
---
|
||||
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).
|
||||
:::
|
||||
|
||||
## Chat model
|
||||
|
||||
We recommend configuring **Claude 3.5 Sonnet** as your chat model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: vertexai
|
||||
model: claude-3-5-sonnet-20240620
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-east5
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "vertexai",
|
||||
"model": "claude-3-5-sonnet-20240620",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-east5"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
We recommend configuring **Codestral** or **code-gecko** as your autocomplete model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Codestral (Vertex AI)
|
||||
provider: vertexai
|
||||
model: codestral
|
||||
roles:
|
||||
- autocomplete
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-central1
|
||||
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"tabAutocompleteModel": {
|
||||
"title": "Codestral (Vertex AI)",
|
||||
"provider": "vertexai",
|
||||
"model": "codestral",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-central1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Embeddings model
|
||||
|
||||
We recommend configuring **text-embedding-004** as your embeddings model.
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Text Embedding-004
|
||||
provider: vertexai
|
||||
model: text-embedding-004
|
||||
env:
|
||||
projectId: <PROJECT_ID>
|
||||
region: us-central1
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "vertexai",
|
||||
"model": "text-embedding-004",
|
||||
"projectId": "[PROJECT_ID]",
|
||||
"region": "us-central1"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Reranking model
|
||||
|
||||
Vertex AI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,62 +0,0 @@
|
|||
---
|
||||
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/)
|
||||
:::
|
||||
|
||||
## 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">
|
||||
Add the [xAI Grok 2 model block](https://hub.continue.dev/xai/grok-2) on the hub.
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Grok 2
|
||||
provider: xAI
|
||||
model: grok-2-latest
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok 2",
|
||||
"provider": "xAI",
|
||||
"model": "grok-2-latest",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Autocomplete model
|
||||
|
||||
xAI currently does not offer any autocomplete models.
|
||||
|
||||
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
|
||||
|
||||
## Embeddings model
|
||||
|
||||
xAI currently does not offer any embeddings models.
|
||||
|
||||
[Click here](../../model-roles/embeddings.mdx) to see a list of embeddings model providers.
|
||||
|
||||
## Reranking model
|
||||
|
||||
xAI currently does not offer any reranking models.
|
||||
|
||||
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
|
||||
|
|
@ -1,42 +0,0 @@
|
|||
---
|
||||
title: Apply Role
|
||||
description: Apply model role
|
||||
keywords: [apply, model, role]
|
||||
sidebar_position: 4
|
||||
---
|
||||
|
||||
When editing code, Chat and Edit model output often doesn't clearly align with existing code. A model with the `apply` role is used to generate a more precise diff to apply changes to a file.
|
||||
|
||||
## Recommended Apply models
|
||||
|
||||
We recommend [Morph Fast Apply](https://morphllm.com) or [Relace's Instant Apply model](https://hub.continue.dev/relace/instant-apply) for the fastest Apply experience. You can sign up for Morph's free tier [here](https://morphllm.com/dashboard) or get a Relace API key [here](https://app.relace.ai/settings/api-keys).
|
||||
|
||||
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)
|
||||
:::
|
||||
|
||||
## Prompt templating
|
||||
|
||||
You can customize the prompt template used for applying code changes by setting the `promptTemplates.apply` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
|
||||
|
||||
Available variables for the apply template:
|
||||
|
||||
- `{{{original_code}}}` - The original code before changes
|
||||
- `{{{new_code}}}` - The new code after changes
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: My Custom Apply Template
|
||||
provider: anthropic
|
||||
model: claude-3-5-sonnet-latest
|
||||
promptTemplates:
|
||||
apply: |
|
||||
Original: {{{original_code}}}
|
||||
New: {{{new_code}}}
|
||||
|
||||
Please generate the final code without any markers or explanations.
|
||||
```
|
||||
|
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
title: Autocomplete Role
|
||||
description: Autocomplete model role
|
||||
keywords: [autocomplete, model, role]
|
||||
sidebar_position: 2
|
||||
---
|
||||
|
||||
An "autocomplete model" is an LLM that is trained on a special format called fill-in-the-middle (FIM). This format is designed to be given the prefix and suffix of a code file and predict what goes between. This task is very specific, which on one hand means that the models can be smaller (even a 3B parameter model can perform well). On the other hand, this means that Chat models, though larger, will often perform poorly even with extensive prompting.
|
||||
|
||||
In Continue, autocomplete models are used to display inline [Autocomplete](../../autocomplete/how-to-use-it.md) suggestions as you type. Autocomplete models are designated by adding the `autocomplete` to the model's `roles` in `config.yaml`.
|
||||
|
||||
## Recommended Autocomplete models
|
||||
|
||||
Visit the [Autocomplete Deep Dive](../deep-dives/autocomplete.mdx) for recommended models and more details.
|
||||
|
||||
## Prompt templating
|
||||
|
||||
You can customize the prompt template used when autocomplete happens by setting the `promptTemplates.autocomplete` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
|
||||
|
||||
Available variables for the apply template:
|
||||
|
||||
- `{{{prefix}}}` - the code before your cursor
|
||||
- `{{{suffix}}}` - the code after your cursor
|
||||
- `{{{filename}}}` - the name of the file your cursor currently is
|
||||
- `{{{reponame}}}` - the name of the folder where the codebase is
|
||||
- `{{{language}}}` - the name of the programming language in full (ex. Typescript)
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: My Custom Autocomplete Template
|
||||
provider: ollama
|
||||
model: qwen2.5-coder:1.5b
|
||||
promptTemplates:
|
||||
autocomplete: |
|
||||
`
|
||||
globalThis.importantFunc = importantFunc
|
||||
<|fim_prefix|>{{{prefix}}}<|fim_suffix|>{{{suffix}}}<|fim_middle|>
|
||||
`
|
||||
```
|
||||
|
|
@ -1,407 +0,0 @@
|
|||
---
|
||||
title: Chat Role
|
||||
description: Chat model role
|
||||
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](../../chat/how-to-use-it.md) and [VS Code actions](../deep-dives/vscode-actions.md). The selected chat model will also be used for [Edit](../../edit/how-to-use-it.md) and [Apply](./apply.mdx) if no `edit` or `apply` models are specified, respectively.
|
||||
|
||||
## Recommended Chat models
|
||||
|
||||
## Best overall experience
|
||||
|
||||
For the best overall Chat experience, you will want to use a 400B+ parameter model or one of the frontier models.
|
||||
|
||||
### Claude Sonnet 3.7 from Anthropic
|
||||
|
||||
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">
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.7 Sonnet
|
||||
provider: anthropic
|
||||
model: claude-3-7-sonnet-latest
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
Add the [Ollama Gemma 3 27B block](https://hub.continue.dev/ollama/gemma3-27b) from the hub
|
||||
</TabItem>
|
||||
<TabItem value="Together">
|
||||
Add the [Together Gemma 2 27B Instruct block](https://hub.continue.dev/togetherai/gemma-2-instruct-27b) from the hub
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: "Gemma 3 27B"
|
||||
provider: "ollama"
|
||||
model: "gemma3:27b"
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Together">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: "Gemma 3 27B"
|
||||
provider: "together"
|
||||
model: "google/gemma-2-27b-it"
|
||||
apiKey: <YOUR_TOGETHER_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemma 3 27B",
|
||||
"provider": "ollama",
|
||||
"model": "gemma3:27b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Together">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemma 3 27B",
|
||||
"provider": "together",
|
||||
"model": "google/gemma-2-27b-it",
|
||||
"apiKey": "<YOUR_TOGETHER_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</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">
|
||||
Add the [OpenAI GPT-4o block](https://hub.continue.dev/openai/gpt-4o) from the hub
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: GPT-4o
|
||||
provider: openai
|
||||
model: ''
|
||||
apiKey: <YOUR_OPENAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "GPT-4o",
|
||||
"provider": "openai",
|
||||
"model": "",
|
||||
"apiKey": "<YOUR_OPENAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
Add the [xAI Grok-2 block](https://hub.continue.dev/xai/grok-2) from the hub
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Grok-2
|
||||
provider: xAI
|
||||
model: grok-2-latest
|
||||
apiKey: <YOUR_XAI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Grok-2",
|
||||
"provider": "xAI",
|
||||
"model": "grok-2-latest",
|
||||
"apiKey": "<YOUR_XAI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Gemini 2.0 Flash
|
||||
provider: gemini
|
||||
model: gemini-2.0-flash
|
||||
apiKey: <YOUR_GEMINI_API_KEY>
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Gemini 2.0 Flash",
|
||||
"provider": "gemini",
|
||||
"model": "gemini-2.0-flash",
|
||||
"apiKey": "<YOUR_GEMINI_API_KEY>"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Local, offline experience
|
||||
|
||||
For the best local, offline Chat experience, you will want to use a model that is large but fast enough on your machine.
|
||||
|
||||
### Llama 3.1 8B
|
||||
|
||||
If your local machine can run an 8B parameter model, then we recommend running Llama 3.1 8B on your machine (e.g. using [Ollama](../model-providers/top-level/ollama.mdx) or [LM Studio](../model-providers/more/lmstudio.mdx)).
|
||||
|
||||
<Tabs groupId="hub-config-example">
|
||||
<TabItem value="hub" label="Hub">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="ollama" label="Ollama">
|
||||
Add the [Ollama Llama 3.1 8b block](https://hub.continue.dev/ollama/llama3.1-8b) from the hub
|
||||
</TabItem>
|
||||
{/* HUB_TODO nonexistent block */}
|
||||
{/* <TabItem value="lmstudio" label="LM Studio">
|
||||
Add the [LM Studio Llama 3.1 8b block](https://hub.continue.dev/explore/models) from the hub
|
||||
</TabItem> */}
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: ollama
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: lmstudio
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Msty">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Llama 3.1 8B
|
||||
provider: msty
|
||||
model: llama3.1:8b
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "ollama",
|
||||
"model": "llama3.1:8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "lmstudio",
|
||||
"model": "llama3.1-8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Msty">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "Llama 3.1 8B",
|
||||
"provider": "msty",
|
||||
"model": "llama3.1-8b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</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">
|
||||
{/* HUB_TODO nonexistent blocks */}
|
||||
{/* <TabItem value="hub" label="Hub">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="ollama" label="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">
|
||||
Add the [LM Studio Deepseek Coder 2 16B block](https://hub.continue.dev/explore/models) from the hub
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem> */}
|
||||
<TabItem value="yaml" label="YAML">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder 2 16B
|
||||
provider: ollama
|
||||
model: deepseek-coder-v2:16b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder 2 16B
|
||||
provider: lmstudio
|
||||
model: deepseek-coder-v2:16b
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Msty">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: DeepSeek Coder 2 16B
|
||||
provider: msty
|
||||
model: deepseek-coder-v2:16b
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
<Tabs groupId="providers">
|
||||
<TabItem value="Ollama">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "ollama",
|
||||
"model": "deepseek-coder-v2:16b",
|
||||
"apiBase": "http://localhost:11434"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="LM Studio">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "lmstudio",
|
||||
"model": "deepseek-coder-v2:16b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="Msty">
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": [
|
||||
{
|
||||
"title": "DeepSeek Coder 2 16B",
|
||||
"provider": "msty",
|
||||
"model": "deepseek-coder-v2:16b"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
## Other experiences
|
||||
|
||||
There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../model-roles/chat.mdx)
|
||||
|
|
@ -1,82 +0,0 @@
|
|||
---
|
||||
title: Edit Role
|
||||
description: Edit model role
|
||||
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">
|
||||
Use model roles.
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Claude 3.5 Sonnet
|
||||
provider: anthropic
|
||||
model: claude-3-5-sonnet-latest
|
||||
apiKey: <YOUR_ANTHROPIC_API_KEY>
|
||||
roles:
|
||||
- edit
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
Set the `experimental.modelRoles.inlineEdit` property in `config.json`.
|
||||
```json title="config.json"
|
||||
{
|
||||
"models": {
|
||||
"name": "Claude 3.5 Sonnet",
|
||||
"provider": "anthropic",
|
||||
"model": "claude-3-5-sonnet-latest",
|
||||
"apiKey": "<YOUR_ANTHROPIC_API_KEY>"
|
||||
},
|
||||
"experimental": {
|
||||
"modelRoles": {
|
||||
"inlineEdit": "Claude 3.5 Sonnet",
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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.
|
||||
|
||||
## Prompt templating
|
||||
|
||||
You can customize the prompt template used for editing code by setting the `promptTemplates.edit` property in your model configuration. Continue uses [Handlebars syntax](https://handlebarsjs.com/guide/) for templating.
|
||||
|
||||
Available variables for the edit template:
|
||||
|
||||
- `{{{userInput}}}` - The user's edit request/instruction
|
||||
- `{{{language}}}` - The programming language of the code
|
||||
- `{{{codeToEdit}}}` - The code that's being edited
|
||||
- `{{{prefix}}}` - Content before the edit area
|
||||
- `{{{suffix}}}` - Content after the edit area
|
||||
- `{{{supportsCompletions}}}` - Whether the model supports completions API
|
||||
- `{{{supportsPrefill}}}` - Whether the model supports prefill capability
|
||||
|
||||
Example:
|
||||
|
||||
```yaml
|
||||
models:
|
||||
- name: My Custom Edit Template
|
||||
provider: openai
|
||||
model: gpt-4o
|
||||
promptTemplates:
|
||||
edit: |
|
||||
`Here is the code before editing:
|
||||
\`\`\`{{{language}}}
|
||||
{{{codeToEdit}}}
|
||||
\`\`\`
|
||||
|
||||
Here is the edit requested:
|
||||
"{{{userInput}}}"
|
||||
|
||||
Here is the code after editing:`
|
||||
```
|
||||
|
|
@ -1,154 +0,0 @@
|
|||
---
|
||||
title: Embed Role
|
||||
description: Embed model role
|
||||
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](../deep-dives/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.
|
||||
:::
|
||||
|
||||
## Recommended embedding models
|
||||
|
||||
If you have the ability to use any model, we recommend `voyage-code-3`, which is listed below along with the rest of the options for embeddings models.
|
||||
|
||||
If you want to generate embeddings locally, we recommend using `nomic-embed-text` with [Ollama](../model-providers/top-level/ollama.mdx#embeddings-model).
|
||||
|
||||
### Voyage AI
|
||||
|
||||
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">
|
||||
[Voyage Code 3 Embedder Block](https://hub.continue.dev/voyageai/voyage-code-3)
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Voyage Code 3
|
||||
provider: voyage
|
||||
model: voyage-code-3
|
||||
apiKey: <YOUR_VOYAGE_API_KEY>
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "voyage",
|
||||
"model": "voyage-code-3",
|
||||
"apiKey": "<YOUR_VOYAGE_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Ollama
|
||||
|
||||
See [here](../model-providers/top-level/ollama.mdx#embeddings-model) for instructions on how to use Ollama for embeddings.
|
||||
|
||||
### Transformers.js (currently VS Code only)
|
||||
|
||||
[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">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: default-transformers
|
||||
provider: transformers.js
|
||||
roles:
|
||||
- embed
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "transformers.js"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
{/* HUB_TODO nonexistent block */}
|
||||
{/* <TabItem value="hub" label="Hub">
|
||||
[HuggingFace Text Embedder Block](https://hub.continue.dev/)
|
||||
</TabItem> */}
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Huggingface TEI Embedder
|
||||
provider: huggingface-tei
|
||||
apiBase: http://localhost:8080
|
||||
apiKey: <YOUR_TEI_API_KEY>
|
||||
roles: [embed]
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"embeddingsProvider": {
|
||||
"provider": "huggingface-tei",
|
||||
"apiBase": "http://localhost:8080",
|
||||
"apiKey": "<YOUR_TEI_API_KEY>"
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### OpenAI
|
||||
|
||||
See [here](../model-providers/top-level/openai.mdx#embeddings-model) for instructions on how to use OpenAI for embeddings.
|
||||
|
||||
### Cohere
|
||||
|
||||
See [here](../model-providers/more/cohere.mdx#embeddings-model) for instructions on how to use Cohere for embeddings.
|
||||
|
||||
### Gemini
|
||||
|
||||
See [here](../model-providers/top-level/gemini.mdx#embeddings-model) for instructions on how to use Gemini for embeddings.
|
||||
|
||||
### Vertex
|
||||
|
||||
See [here](../model-providers/top-level/vertexai.mdx#embeddings-model) for instructions on how to use Vertex for embeddings.
|
||||
|
||||
### Mistral
|
||||
|
||||
See [here](../model-providers/top-level/mistral.mdx#embeddings-model) for instructions on how to use Mistral for embeddings.
|
||||
|
||||
### NVIDIA
|
||||
|
||||
See [here](../model-providers/more/nvidia.mdx#embeddings-model) for instructions on how to use NVIDIA for embeddings.
|
||||
|
||||
### Bedrock
|
||||
|
||||
See [here](../model-providers/top-level/bedrock.mdx#embeddings-model) for instructions on how to use Bedrock for embeddings.
|
||||
|
||||
### WatsonX
|
||||
|
||||
See [here](../model-providers/more/watsonx.mdx#embeddings-model) for instructions on how to use WatsonX for embeddings.
|
||||
|
||||
### LMStudio
|
||||
|
||||
See [here](../model-providers/more/lmstudio.mdx#embeddings-model) for instructions on how to use LMStudio for embeddings.
|
||||
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
title: Intro to Roles
|
||||
description: Apply model role
|
||||
keywords: [apply, model, role]
|
||||
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
|
||||
- [`autocomplete`](./autocomplete.md): Used for autocomplete code suggestions in the editor
|
||||
- [`edit`](./edit.mdx): Used to generate code based on edit prompts
|
||||
- [`apply`](./apply.mdx): Used to decide how to apply edits to a file
|
||||
- [`embed`](./embeddings.mdx): Used to generate embeddings used for vector search (@Codebase and @Docs context providers)
|
||||
- [`rerank`](./reranking.mdx): Used to rerank results from vector search
|
||||
|
||||
These roles can be specified for a `config.yaml` model block using `roles`. See the [YAML Specification](../../advanced/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.
|
||||
|
||||

|
||||
|
||||
:::info
|
||||
`roles` are not explicitly defined within `config.json` (deprecated) - they are infered by the top level keys like `embeddingsProvider`
|
||||
:::
|
||||
|
|
@ -1,156 +0,0 @@
|
|||
---
|
||||
title: Rerank Role
|
||||
description: Rerank model role
|
||||
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](../deep-dives/codebase.mdx) in order to select the most relevant code snippets after vector search.
|
||||
|
||||
## Recommended reranking models
|
||||
|
||||
If you have the ability to use any model, we recommend `rerank-2` by Voyage AI, which is listed below along with the rest of the options for rerankers.
|
||||
|
||||
### 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">
|
||||
[Voyage Rerank 2 Block](https://hub.continue.dev/voyageai/rerank-2)
|
||||
</TabItem>
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: My Voyage Reranker
|
||||
provider: voyage
|
||||
apiKey: <YOUR_VOYAGE_API_KEY>
|
||||
model: rerank-2
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "voyage",
|
||||
"params": {
|
||||
"model": "rerank-2",
|
||||
"apiKey": "<YOUR_VOYAGE_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
### Cohere
|
||||
|
||||
See Cohere's documentation for rerankers [here](https://docs.cohere.com/docs/rerank-2).
|
||||
|
||||
<Tabs groupId="config-example">
|
||||
{/* HUB_TODO block doesn't exist */}
|
||||
{/* <TabItem value="hub" label="Hub">
|
||||
[Cohere Reranker English v3](https://hub.continue.dev/)
|
||||
</TabItem> */}
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Cohere Reranker
|
||||
provider: cohere
|
||||
model: rerank-english-v3.0
|
||||
apiKey: <YOUR_COHERE_API_KEY>
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "cohere",
|
||||
"params": {
|
||||
"model": "rerank-english-v3.0",
|
||||
"apiKey": "<YOUR_COHERE_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</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">
|
||||
{/* HUB_TODO block doesn't exist */}
|
||||
{/* <TabItem value="hub" label="Hub">
|
||||
[GPT-4o LLM Reranker Block](https://hub.continue.dev/)
|
||||
</TabItem> */}
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: LLM Reranker
|
||||
provider: openai
|
||||
model: gpt-4o
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "llm",
|
||||
"params": {
|
||||
"modelTitle": "My Model Title"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
||||
The `"modelTitle"` field must match one of the models in your "models" array in config.json.
|
||||
|
||||
### Text Embeddings Inference
|
||||
|
||||
[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">
|
||||
{/* HUB_TODO */}
|
||||
{/* <TabItem value="hub" label="Hub">
|
||||
[HuggingFace TEI Reranker block](https://hub.continue.dev/)
|
||||
</TabItem> */}
|
||||
<TabItem value="yaml" label="YAML">
|
||||
```yaml title="config.yaml"
|
||||
models:
|
||||
- name: Huggingface-tei Reranker
|
||||
provider: huggingface-tei
|
||||
apiBase: http://localhost:8080
|
||||
apiKey: <YOUR_TEI_API_KEY>
|
||||
roles:
|
||||
- rerank
|
||||
```
|
||||
</TabItem>
|
||||
<TabItem value="json" label="JSON">
|
||||
```json title="config.json"
|
||||
{
|
||||
"reranker": {
|
||||
"name": "huggingface-tei",
|
||||
"params": {
|
||||
"apiBase": "http://localhost:8080",
|
||||
"apiKey": "<YOUR_TEI_API_KEY>"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
</TabItem>
|
||||
</Tabs>
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
---
|
||||
title: Overview
|
||||
description: Introduction to customizing Continue
|
||||
keywords: [customize, configure, config]
|
||||
---
|
||||
|
||||
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](../advanced/model-providers/).
|
||||
- **Select different models for specific tasks**. Different Continue features can use different models. We call these _model roles_. For example, you can use a different model for chat than you do for autocomplete. Learn more about [model roles](./model-roles/) .
|
||||
- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](./context-providers.mdx).
|
||||
- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](./deep-dives/slash-commands.mdx).
|
||||
- **Call external tools and functions**. Unchain your LLM with the power of tools using [Agent](../agent/how-to-use-it.md). Add custom tools using [MCP Servers](./deep-dives/mcp.mdx)
|
||||
|
||||
Whatever you choose, you'll probably start by editing your Assistant.
|
||||
|
||||
## 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.
|
||||
|
||||

|
||||
|
||||
- See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hub assistant
|
||||
- See the [Config Deep Dive](./deep-dives/configuration.md) for more details on configuring local assistants.
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 74 KiB |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue