model types -> model roles

This commit is contained in:
Dallin Romney 2025-02-25 12:55:33 -08:00
parent 9c2e4000c2
commit 081bfd016e
52 changed files with 147 additions and 101 deletions

View file

@ -18,7 +18,7 @@ export async function retrieveContextItemsFromEmbeddings(
// void extras.ide.showToast(
// "warning",
// "Set up an embeddings model to use this feature. Visit the docs to learn more: " +
// "https://docs.continue.dev/customize/model-types/embeddings",
// "https://docs.continue.dev/customize/model-roles/embeddings",
// );
// return [];
// }

View file

@ -442,7 +442,7 @@ export class Core {
// .then((userSelection) => {
// if (userSelection === toastOption) {
// void this.ide.openUrl(
// "https://docs.continue.dev/customize/model-types/embeddings",
// "https://docs.continue.dev/customize/model-roles/embeddings",
// );
// }
// });

View file

@ -729,7 +729,7 @@ export default class DocsService {
void this.ide.showToast(
"error",
"Set up an embeddings model to use the @docs context provider. See: " +
"https://docs.continue.dev/customize/model-types/embeddings",
"https://docs.continue.dev/customize/model-roles/embeddings",
);
return [];
}

View file

@ -112,4 +112,4 @@ When using a remote instance you need to set the `"apiBase"` value in the config
## Other experiences
There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-types/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.mdx)
There are many more models and providers you can use with Autocomplete. Check them out [here](../customize/model-roles/autocomplete.md). You can also see more examples of Autocomplete configuration [here](../customize/deep-dives/autocomplete.mdx)

View file

@ -43,4 +43,4 @@ You can include all of the changes you've made to your current branch by typing
## Other context
You can see a full list of built-in context providers [here](../customize/context-providers.mdx) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.md).
You can see a full list of built-in context providers [here](../customize/context-providers.mdx) and how to create your own custom context provider [here](../customize/tutorials/build-your-own-context-provider.mdx).

View file

@ -11,5 +11,5 @@ There are a number of different ways to customize Chat
- You can configure [`@Codebase`](../customize/deep-dives/codebase.mdx)
- You can create your own [custom code RAG](../customize/tutorials/custom-code-rag.mdx)
- You can configure [`@Docs`](../customize/deep-dives/docs.mdx)
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.md)
- You can [build your own context provider](../customize/tutorials/build-your-own-context-provider.mdx)
- You can configure and create custom [tools](../customize/tools.mdx)

View file

@ -360,4 +360,4 @@ If your local machine can run a 16B parameter model, then we recommend running D
## Other experiences
There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../customize/model-types/chat.md)
There are many more models and providers you can use with Chat beyond those mentioned above. Read more [here](../customize/model-roles/chat.md)

View file

@ -11,7 +11,7 @@ import Tabs from "@theme/Tabs";
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-types/embeddings.mdx).
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.

View file

@ -125,7 +125,7 @@ Indexing will re-sync upon saving the configuration file.
### Using Your Embeddings Provider
If you have set up an [embeddings provider](../model-types/embeddings.mdx), @docs will use your embeddings provider. Switching embeddings providers will trigger a re-index of all documentation sites in your configuration.
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
@ -282,7 +282,7 @@ The following configuration example works out of the box for VS Code. This uses
### Jetbrains minimal setup
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-types/embeddings.mdx). Pre-indexed docs will _not_ be accessible.
Here is the equivalent minimal example for Jetbrains, which requires setting up an [embeddings provider](../model-roles/embeddings.mdx). Pre-indexed docs will _not_ be accessible.
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">

View file

@ -39,7 +39,7 @@ We recommend configuring **Command-R Plus** as your chat model.
Cohere currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model

View file

@ -2,8 +2,8 @@
title: NVIDIA
---
import Tabs from "@theme/Tabs";
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.
@ -43,7 +43,7 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
NVIDIA currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model
@ -78,4 +78,4 @@ We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings m
NVIDIA currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -46,7 +46,7 @@ We recommend configuring **Qwen2.5-Coder-32B-Instruct** as your chat model.
Scaleway currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model

View file

@ -100,6 +100,6 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
## Reranking model
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[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)

View file

@ -44,19 +44,19 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
Anthropic currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[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-types/embeddings.mdx) to see a list of embeddings model providers.
[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-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
## Prompt caching

View file

@ -115,7 +115,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
Azure OpenAI currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking models.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking models.
## Privacy

View file

@ -3,8 +3,8 @@ title: Amazon Bedrock
slug: ../bedrock
---
import Tabs from "@theme/Tabs";
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.
@ -80,7 +80,7 @@ We recommend configuring **Claude 3.5 Sonnet** as your chat model.
Bedrock currently does not offer any autocomplete models. However, [Codestral from Mistral](https://mistral.ai/news/codestral-2501/) and [Point from Poolisde](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-types/autocomplete.md).
In the meantime, you can view a list of autocomplete model providers [here](../../model-roles/autocomplete.md).
## Embeddings model

View file

@ -3,8 +3,8 @@ title: DeepSeek
slug: ../deepseek
---
import Tabs from "@theme/Tabs";
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/).
@ -74,10 +74,10 @@ We recommend configuring **DeepSeek Coder** as your autocomplete model.
DeepSeek currently does not offer any embeddings models.
[Click here](../../model-types/embeddings.mdx) to see a list of embeddings model providers.
[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-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -3,8 +3,8 @@ title: Gemini
slug: ../gemini
---
import Tabs from "@theme/Tabs";
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/).
@ -44,7 +44,7 @@ We recommend configuring **Gemini 1.5 Pro** as your chat model.
Gemini currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model
@ -79,4 +79,4 @@ We recommend configuring **text-embedding-004** as your embeddings model.
Gemini currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -3,8 +3,8 @@ title: Mistral
slug: ../mistral
---
import Tabs from "@theme/Tabs";
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`.
@ -107,4 +107,4 @@ We recommend configuring **Mistral Embed** as your embeddings model.
Mistral currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -95,7 +95,7 @@ We recommend configuring **Nomic Embed Text** as your embeddings model.
Ollama currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
## Using a remote instance

View file

@ -3,8 +3,8 @@ title: OpenAI
slug: ../openai
---
import Tabs from "@theme/Tabs";
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)
@ -44,7 +44,7 @@ We recommend configuring **GPT-4o** as your chat model.
OpenAI currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model
@ -79,7 +79,7 @@ We recommend configuring **text-embedding-3-large** as your embeddings model.
OpenAI currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.
## OpenAI compatible servers / APIs

View file

@ -109,4 +109,4 @@ We recommend configuring **text-embedding-004** as your embeddings model.
Vertex AI currently does not offer any reranking models.
[Click here](../../model-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -3,8 +3,8 @@ title: xAI
slug: ../xai
---
import Tabs from "@theme/Tabs";
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/)
@ -44,16 +44,16 @@ We recommend configuring **grok-2-latest** as your chat model. For information o
xAI currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[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-types/embeddings.mdx) to see a list of embeddings model providers.
[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-types/reranking.mdx) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.mdx) to see a list of reranking model providers.

View file

@ -7,7 +7,7 @@ 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](../customize/model-providers/).
- **Select different model providers for each Compose feature**. Different Continue features can use different model providers. We call these _model types_. For example, you can use a different model provider for chat than you do for autocomplete. Learn more about [model types](../customize/model-types/) .
- **Select different model providers for each Compose feature**. Different Continue features can use different model providers. We call these _model types_. For example, you can use a different model provider for chat than you do for autocomplete. Learn more about [model types](../customize/model-roles/) .
- **Add a Context Provider**. Context providers allow you to add information to your prompts, giving your LLM additional context to work with. Context providers allow you to reference snippets from your codebase, or lookup relevant documentation, or use a search engine to find information and much more. Learn more about [context providers](/customize/context-providers).
- **Create a Slash Command**. Slash commands allow you to easily add custom functionality to Continue. You can use a slash command that allows you to generate a shell command from natural language, or perhaps generate a commit message, or create your own custom command to do whatever you want. Learn more about [slash commands](/customize/slash-commands).
- **Call external tools and functions**. Unchain your LLM with the power of _Tools_. You can call any external tool or function from your prompts. Currently only available with Anthropic. Learn more about [Tools](/customize/tools).
@ -47,4 +47,4 @@ If you'd like to scope certain settings to a particular workspace, you can add a
`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 configure Continue, you can use `config.ts`, which is located at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
For examples of how to use `config.ts`, see [writing custom slash commands](./tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](./tutorials/build-your-own-context-provider.md).
For examples of how to use `config.ts`, see [writing custom slash commands](./tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](./tutorials/build-your-own-context-provider.mdx).

View file

@ -2,14 +2,60 @@
title: Build your own context provider
---
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
# Build Your Own Context Provider
Continue offers several way to provide your custom context to the extension.
## HTTP Context Provider
Continue can retrieve context from a custom HTTP server that you create and serve. Add the `@HTTP` context provider to your configuration like this:
<Tabs groupId="config-example">
<TabItem value="yaml" label="YAML">
```yaml title="config.yaml"
context:
provider: http
params:
url: https://myserver.com/context-provider
title: http
displayTitle: My Custom Context
description: Gets things from my private list
options:
maxItems: 20
```
</TabItem>
<TabItem value="json" label="JSON">
```json title="config.json"
{
"name": "http",
"params": {
"url": "https://myserver.com/context-provider",
"title": "http",
"description": "Custom HTTP Context Provider",
"displayTitle": "My Custom Context",
"options": {
"maxItems": 20
}
}
}
```
</TabItem>
</Tabs>
Then, create a server that responds to requests as are made from [HttpContextProvider.ts](https://github.com/continuedev/continue/blob/main/core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](https://github.com/continuedev/continue/blob/main/core/context/providers/context_provider_server.py) for an example that uses FastAPI.
The `"options"` property can be used to send additional parameters to your endpoint, which will be included in the request body.
:::info
Custom context providers are added through `~/config.ts`. The [`YAML Config Format`](../../reference.md) is the new and preferred config format. We recommend looking into [Prompt Files](../deep-dives/prompt-files.md) and [MCP Servers](../context-providers.mdx#modelcontextprotocol) to achieve similar functionality.
The following methods for creating custom context providers are deprecated. We recommend using HTTP context providers, [MCP Servers](../context-providers.mdx#modelcontextprotocol), and [Prompt files](../deep-dives/prompt-files.md) where possible.
:::
## Introductory Example
## Using CustomContextProvider
To write your own context provider, you just have to implement the `CustomContextProvider`
interface:
Custom context providers can be implemented in a `config.ts` placed in your Continue global directory (`~/.continue` for MacOS, `%USERPROFILE%/.continue` for Windows). You can implement the `CustomContextProvider` interface in your `config.ts`
```typescript
interface CustomContextProvider {
@ -75,7 +121,7 @@ export function modifyConfig(config: Config): Config {
This is automatically appended to your configuration.
## Custom Context Providers with Submenu or Query
### Custom Context Providers with Submenu or Query
There are 3 types of context providers: "normal", "query", and "submenu". The "normal" type is the default, and is what we've seen so far.
@ -163,13 +209,13 @@ The flow of information in the above example is as follows:
3. The `id` of the chosen `ContextSubmenuItem` is passed to `getContextItems` as the `query` argument. In this case it is the filepath of the README.
4. The `getContextItems` function can then use the `query` to retrieve the full contents of the README and format the content before returning the context item which will be included in the prompt.
## Importing outside modules
### Importing outside modules
To include outside Node modules in your config.ts, run `npm install <module_name>` from the `~/.continue` directory, and then import them in config.ts.
Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.ts` and any dependencies into a single Javascript file. The exact configuration used can be found [here](https://github.com/continuedev/continue/blob/5c9874400e223bbc9786a8823614a2e501fbdaf7/extensions/vscode/src/ideProtocol.ts#L45-L52).
## `CustomContextProvider` Reference
### `CustomContextProvider` Reference
- `title`: An identifier for the context provider
- `displayTitle` (optional): The title displayed in the dropdown
@ -183,27 +229,7 @@ Continue will use [esbuild](https://esbuild.github.io/) to bundle your `config.t
- `extras.ide`: An instance of the `IDE` class, which lets you gather various sources of information from the IDE, including the contents of the terminal, the list of open files, or any warnings in the currently open file.
- `query`: (not currently used) A string representing the query
- `loadSubmenuItems` (optional): A function that returns a list of `ContextSubmenuItem`s to display in a submenu. It is given access to an `IDE`, the same that is passed to `getContextItems`.
## Writing Context Providers in Other Languages
If you'd like to write a context provider in a language other than TypeScript, you can use the "http" context provider to call a server that hosts your own code. Add the context provider to `config.json` like this:
```json title="config.json"
{
"name": "http",
"params": {
"url": "https://myserver.com/context-provider",
"title": "http",
"description": "Custom HTTP Context Provider",
"displayTitle": "My Custom Context",
"options": {}
}
}
```
Then, create a server that responds to requests as are made from [HttpContextProvider.ts](../../../../core/context/providers/HttpContextProvider.ts). See the `hello` endpoint in [context_provider_server.py](../../../../core/context/providers/context_provider_server.py) for an example that uses FastAPI.
The `"options"` property can be used to send additional parameters to your endpoint, which will be included in the request body.
.
## Extension API for VSCode

View file

@ -11,13 +11,13 @@ sidebar_label: Types
Models are blocks that let you specify Large Language Models (LLMs) and other deep learning models to be used for various roles in the Continue Extension, like Chat, Autocomplete, Edit, or @Codebase, and @Docs embeddings. Explore available models on [the hub](https://hub.continue.dev/explore/models).
Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-types). View [`models`](../../yaml-reference.md#models) in the YAML Reference for more details.
Continue supports [many model providers](../../customize/model-providers), including Anthropic, OpenAI, Gemini, Ollama, Amazon Bedrock, Azure, xAI, DeepSeek, and more. Models can have one or more of the following roles depending on its capabilities, including `chat`, `edit`, `apply`, `autocomplete`, `embed`, and `rerank`. Read more about roles [here](../../customize/model-roles). View [`models`](../../yaml-reference.md#models) in the YAML Reference for more details.
## Context
Context blocks define a context provider which can be referenced in Chat with `@` to pull in data from external sources such as files and folders, a URL, Jira or Confluence, and Github issues, among others. [Explore context provider blocks](https://hub.continue.dev/explore/context) on the hub.
Learn more about context providers [here](../../yaml-reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.md) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../yaml-reference.md#context).
Learn more about context providers [here](../../yaml-reference.md#context), and check out [this guide](../../customize/tutorials/build-your-own-context-provider.mdx) to creating your own custom context provider. The `config.yaml` spec for context can be found [`here`](../../yaml-reference.md#context).
## Docs

View file

@ -10,3 +10,7 @@ sidebar_label: Getting Started
![Continue Hub](/img/hub/models-page.png)
Continue's [hub](https://hub.continue.dev) makes it simple to create custom AI code [assistants](./assistants/intro.md), providing a registry for defining, managing, and sharing assistant [building blocks](./blocks/introduction.md). Assistants can contain several types of blocks, including models, rules, context, prompts, docs, data destinations, and MCP servers. Continue Hub offers [organization and admin governance](./governance/org-permissions.md) features, as well as a centralized place to store and configure [secrets](./secrets/secret-types.md) like API keys.
## Signing in
<!-- HUB_TODO -->

View file

@ -6,7 +6,7 @@ keywords: [telemetry, anonymous, usage info, opt out]
## Overview
Continue collects and reports **anonymous** usage information to help us improve our product. This data enables us to understand user interactions and optimize the user experience effectively. You can opt out of telemetry collection at any time if you prefer not to share your usage information.
The open-source Continue Extensions collect and report **anonymous** usage information to help us improve our product. This data enables us to understand user interactions and optimize the user experience effectively. You can opt out of telemetry collection at any time if you prefer not to share your usage information.
We utilize [Posthog](https://posthog.com/), an open-source platform for product analytics, to gather and store this data. For transparency, you can review the implementation code [here](https://github.com/continuedev/continue/blob/main/gui/src/hooks/CustomPostHogProvider.tsx) or read our [official privacy policy](https://continue.dev/privacy).

View file

@ -237,8 +237,24 @@ const config = {
// from: "/getting-started",
// },
{
to: "/customize/model-types",
from: "/setup/overview",
to: "/customize/model-roles",
from: ["/customize/model-types", "/setup/overview"],
},
{
to: "/customize/model-roles/embeddings",
from: "/customize/model-types/embeddings",
},
{
to: "/customize/model-roles/autocomplete",
from: "/customize/model-types/autocomplete",
},
{
to: "/customize/model-roles/chat",
from: "/customize/model-types/chat",
},
{
to: "/customize/model-roles/reranking",
from: "/customize/model-types/reranking",
},
{
to: "/getting-started/overview",

View file

@ -49,4 +49,4 @@ Codestral 的 API key 和通常的 Mistral API 是不同的。如果你使用 Co
## 其他体验
有很多更多的模型或提供者可以用来补全。在 [这里](../customize/model-types/autocomplete.md) 查看它们。
有很多更多的模型或提供者可以用来补全。在 [这里](../customize/model-roles/autocomplete.md) 查看它们。

View file

@ -5,8 +5,8 @@ keywords: [模型]
sidebar_position: 2
---
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import Tabs from "@theme/Tabs";
:::info
这个页面推荐聊天的模型和提供者。在 [这里](../json-reference.md) 了解更多关于如何设置你的 `config.json` 。
@ -193,4 +193,4 @@ import TabItem from "@theme/TabItem";
## 其他体验
除了以上提到的这些,还有更多的模型和提供者,你可以使用来聊天。在 [这里](../customize/model-types/chat.md) 了解更多。
除了以上提到的这些,还有更多的模型和提供者,你可以使用来聊天。在 [这里](../customize/model-roles/chat.md) 了解更多。

View file

@ -23,7 +23,7 @@
Cohere 当前没有提供任何自动补全模型。
[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。
[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。
## 嵌入模型

View file

@ -29,7 +29,7 @@ We recommend configuring **Nemotron-4-340B-Instruct** as your chat model.
NVIDIA currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[Click here](../../model-roles/autocomplete.md) to see a list of autocomplete model providers.
## Embeddings model
@ -49,4 +49,4 @@ We recommend configuring **NVIDIA Retrieval QA Mistral 7B** as your embeddings m
NVIDIA currently does not offer any reranking models.
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.md) to see a list of reranking model providers.

View file

@ -28,19 +28,19 @@ slug: ../anthropic
Anthropic 当前没有提供任何自动补全模型。
[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。
[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。
## 嵌入模型
Anthropic 当前没有提供任何嵌入模型。
[点击这里](../../model-types/embeddings.md) 查看嵌入模型提供者列表。
[点击这里](../../model-roles/embeddings.md) 查看嵌入模型提供者列表。
## 重排序模型
Anthropic 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。
## 提示词缓存

View file

@ -57,7 +57,7 @@ slug: ../azure
Azure OpenAI 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型列表。
## 隐私

View file

@ -25,7 +25,7 @@ slug: ../bedrock
Bedrock 当前不支持任何自动补全模型。
[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。
[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。
## 嵌入模型
@ -46,7 +46,7 @@ Bedrock 当前不支持任何自动补全模型。
Bedrock 当前没有任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。
## 认证

View file

@ -42,10 +42,10 @@ slug: ../deepseek
DeepSeek 当前没有提供任何嵌入模型。
[点击这里](../../model-types/embeddings.md) 查看嵌入模型提供者列表。
[点击这里](../../model-roles/embeddings.md) 查看嵌入模型提供者列表。
## 重排序模型
DeepSeek 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。

View file

@ -28,7 +28,7 @@ slug: ../gemini
Gemini 当前没有提供任何自动补全模型。
[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。
[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。
## 嵌入模型
@ -48,4 +48,4 @@ Gemini 当前没有提供任何自动补全模型。
Gemini 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。

View file

@ -57,4 +57,4 @@ slug: ../mistral
Mistral 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。

View file

@ -50,4 +50,4 @@ slug: ../ollama
Ollama 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。

View file

@ -28,7 +28,7 @@ slug: ../openai
OpenAI 当前没有提供任何自动补全模型。
[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。
[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。
## 嵌入模型
@ -48,7 +48,7 @@ OpenAI 当前没有提供任何自动补全模型。
OpenAI 当前没有提供任何重排序模型。
[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。
[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。
## OpenAI 兼容服务器 / API

View file

@ -62,4 +62,4 @@ We recommend configuring **text-embedding-004** as your embeddings model.
<!-- Vertex AI currently does not offer any reranking models.
[Click here](../../model-types/reranking.md) to see a list of reranking model providers. -->
[Click here](../../model-roles/reranking.md) to see a list of reranking model providers. -->

View file

@ -30,19 +30,19 @@ We recommend configuring **grok-beta** as your chat model.
xAI currently does not offer any autocomplete models.
[Click here](../../model-types/autocomplete.md) to see a list of autocomplete model providers.
[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-types/embeddings.md) to see a list of embeddings model providers.
[Click here](../../model-roles/embeddings.md) to see a list of embeddings model providers.
## Reranking model
xAI currently does not offer any reranking models.
[Click here](../../model-types/reranking.md) to see a list of reranking model providers.
[Click here](../../model-roles/reranking.md) to see a list of reranking model providers.
## Legacy Completions

View file

@ -96,15 +96,15 @@ const sidebars = {
},
{
type: "category",
label: "Model types",
label: "Model roles",
link: {
slug: "/customize/model-types",
slug: "/customize/model-roles",
type: "generated-index",
},
items: [
{
type: "autogenerated",
dirName: "customize/model-types",
dirName: "customize/model-roles",
},
],
},