From 081bfd016ec7629bbe666a4ef2585ad6191612cf Mon Sep 17 00:00:00 2001 From: Dallin Romney Date: Tue, 25 Feb 2025 12:55:33 -0800 Subject: [PATCH] model types -> model roles --- core/context/retrieval/retrieval.ts | 2 +- core/core.ts | 2 +- core/indexing/docs/DocsService.ts | 2 +- docs/docs/autocomplete/model-setup.mdx | 2 +- docs/docs/chat/context-selection.md | 2 +- docs/docs/chat/how-to-customize.md | 2 +- docs/docs/chat/model-setup.mdx | 2 +- docs/docs/customize/deep-dives/codebase.mdx | 2 +- docs/docs/customize/deep-dives/docs.mdx | 4 +- .../customize/model-providers/more/cohere.mdx | 2 +- .../customize/model-providers/more/nvidia.mdx | 6 +- .../model-providers/more/scaleway.mdx | 2 +- .../customize/model-providers/more/vllm.mdx | 2 +- .../model-providers/top-level/anthropic.mdx | 6 +- .../model-providers/top-level/azure.mdx | 2 +- .../model-providers/top-level/bedrock.mdx | 4 +- .../model-providers/top-level/deepseek.mdx | 6 +- .../model-providers/top-level/gemini.mdx | 6 +- .../model-providers/top-level/mistral.mdx | 4 +- .../model-providers/top-level/ollama.mdx | 2 +- .../model-providers/top-level/openai.mdx | 6 +- .../model-providers/top-level/vertexai.mdx | 2 +- .../model-providers/top-level/xAI.mdx | 8 +- .../autocomplete.md | 0 .../{model-types => model-roles}/chat.md | 0 .../embeddings.mdx | 0 .../reranking.mdx | 0 docs/docs/customize/overview.md | 4 +- ...md => build-your-own-context-provider.mdx} | 82 ++++++++++++------- docs/docs/hub/blocks/block-types.md | 4 +- docs/docs/hub/getting-started.md | 4 + docs/docs/telemetry.md | 2 +- docs/docusaurus.config.js | 20 ++++- .../current/autocomplete/model-setup.md | 2 +- .../current/chat/model-setup.mdx | 4 +- .../customize/model-providers/more/cohere.md | 2 +- .../customize/model-providers/more/nvidia.md | 4 +- .../model-providers/top-level/anthropic.md | 6 +- .../model-providers/top-level/azure.md | 2 +- .../model-providers/top-level/bedrock.md | 4 +- .../model-providers/top-level/deepseek.md | 4 +- .../model-providers/top-level/gemini.md | 4 +- .../model-providers/top-level/mistral.md | 2 +- .../model-providers/top-level/ollama.md | 2 +- .../model-providers/top-level/openai.md | 4 +- .../model-providers/top-level/vertexai.md | 2 +- .../model-providers/top-level/xai.md | 6 +- .../autocomplete.md | 0 .../{model-types => model-roles}/chat.md | 0 .../embeddings.md | 0 .../{model-types => model-roles}/reranking.md | 0 docs/sidebars.js | 6 +- 52 files changed, 147 insertions(+), 101 deletions(-) rename docs/docs/customize/{model-types => model-roles}/autocomplete.md (100%) rename docs/docs/customize/{model-types => model-roles}/chat.md (100%) rename docs/docs/customize/{model-types => model-roles}/embeddings.mdx (100%) rename docs/docs/customize/{model-types => model-roles}/reranking.mdx (100%) rename docs/docs/customize/tutorials/{build-your-own-context-provider.md => build-your-own-context-provider.mdx} (83%) rename docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/{model-types => model-roles}/autocomplete.md (100%) rename docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/{model-types => model-roles}/chat.md (100%) rename docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/{model-types => model-roles}/embeddings.md (100%) rename docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/{model-types => model-roles}/reranking.md (100%) diff --git a/core/context/retrieval/retrieval.ts b/core/context/retrieval/retrieval.ts index f3d57f053..3b8e98427 100644 --- a/core/context/retrieval/retrieval.ts +++ b/core/context/retrieval/retrieval.ts @@ -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 []; // } diff --git a/core/core.ts b/core/core.ts index 28e3af79a..00d141117 100644 --- a/core/core.ts +++ b/core/core.ts @@ -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", // ); // } // }); diff --git a/core/indexing/docs/DocsService.ts b/core/indexing/docs/DocsService.ts index 93ae4a906..307e3c117 100644 --- a/core/indexing/docs/DocsService.ts +++ b/core/indexing/docs/DocsService.ts @@ -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 []; } diff --git a/docs/docs/autocomplete/model-setup.mdx b/docs/docs/autocomplete/model-setup.mdx index 1245b2498..8d2c162f6 100644 --- a/docs/docs/autocomplete/model-setup.mdx +++ b/docs/docs/autocomplete/model-setup.mdx @@ -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) diff --git a/docs/docs/chat/context-selection.md b/docs/docs/chat/context-selection.md index 65b76c72a..ee427cf0a 100644 --- a/docs/docs/chat/context-selection.md +++ b/docs/docs/chat/context-selection.md @@ -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). diff --git a/docs/docs/chat/how-to-customize.md b/docs/docs/chat/how-to-customize.md index 3fcb7376f..aad019940 100644 --- a/docs/docs/chat/how-to-customize.md +++ b/docs/docs/chat/how-to-customize.md @@ -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) diff --git a/docs/docs/chat/model-setup.mdx b/docs/docs/chat/model-setup.mdx index 607183f27..40430cdc4 100644 --- a/docs/docs/chat/model-setup.mdx +++ b/docs/docs/chat/model-setup.mdx @@ -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) diff --git a/docs/docs/customize/deep-dives/codebase.mdx b/docs/docs/customize/deep-dives/codebase.mdx index a500e80dc..24256672e 100644 --- a/docs/docs/customize/deep-dives/codebase.mdx +++ b/docs/docs/customize/deep-dives/codebase.mdx @@ -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. diff --git a/docs/docs/customize/deep-dives/docs.mdx b/docs/docs/customize/deep-dives/docs.mdx index 6748f375b..7a5be2263 100644 --- a/docs/docs/customize/deep-dives/docs.mdx +++ b/docs/docs/customize/deep-dives/docs.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/more/cohere.mdx b/docs/docs/customize/model-providers/more/cohere.mdx index bfd3353f8..352908e12 100644 --- a/docs/docs/customize/model-providers/more/cohere.mdx +++ b/docs/docs/customize/model-providers/more/cohere.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/more/nvidia.mdx b/docs/docs/customize/model-providers/more/nvidia.mdx index bc395cf0d..27fdc9041 100644 --- a/docs/docs/customize/model-providers/more/nvidia.mdx +++ b/docs/docs/customize/model-providers/more/nvidia.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/more/scaleway.mdx b/docs/docs/customize/model-providers/more/scaleway.mdx index f55c14d4d..299c6cc19 100644 --- a/docs/docs/customize/model-providers/more/scaleway.mdx +++ b/docs/docs/customize/model-providers/more/scaleway.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/more/vllm.mdx b/docs/docs/customize/model-providers/more/vllm.mdx index dcf5ac5a4..58431ec7d 100644 --- a/docs/docs/customize/model-providers/more/vllm.mdx +++ b/docs/docs/customize/model-providers/more/vllm.mdx @@ -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) diff --git a/docs/docs/customize/model-providers/top-level/anthropic.mdx b/docs/docs/customize/model-providers/top-level/anthropic.mdx index fe1bc05af..d7d1e325c 100644 --- a/docs/docs/customize/model-providers/top-level/anthropic.mdx +++ b/docs/docs/customize/model-providers/top-level/anthropic.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/top-level/azure.mdx b/docs/docs/customize/model-providers/top-level/azure.mdx index 96a23353c..b4bc33b8c 100644 --- a/docs/docs/customize/model-providers/top-level/azure.mdx +++ b/docs/docs/customize/model-providers/top-level/azure.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/top-level/bedrock.mdx b/docs/docs/customize/model-providers/top-level/bedrock.mdx index f472d42a5..1879df419 100644 --- a/docs/docs/customize/model-providers/top-level/bedrock.mdx +++ b/docs/docs/customize/model-providers/top-level/bedrock.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/top-level/deepseek.mdx b/docs/docs/customize/model-providers/top-level/deepseek.mdx index 0d15bb5f4..28f885192 100644 --- a/docs/docs/customize/model-providers/top-level/deepseek.mdx +++ b/docs/docs/customize/model-providers/top-level/deepseek.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/top-level/gemini.mdx b/docs/docs/customize/model-providers/top-level/gemini.mdx index 6911a14a0..2ccebf85d 100644 --- a/docs/docs/customize/model-providers/top-level/gemini.mdx +++ b/docs/docs/customize/model-providers/top-level/gemini.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/top-level/mistral.mdx b/docs/docs/customize/model-providers/top-level/mistral.mdx index dd584394d..df936fe54 100644 --- a/docs/docs/customize/model-providers/top-level/mistral.mdx +++ b/docs/docs/customize/model-providers/top-level/mistral.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/top-level/ollama.mdx b/docs/docs/customize/model-providers/top-level/ollama.mdx index 7a141b2b1..92759e2cb 100644 --- a/docs/docs/customize/model-providers/top-level/ollama.mdx +++ b/docs/docs/customize/model-providers/top-level/ollama.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/top-level/openai.mdx b/docs/docs/customize/model-providers/top-level/openai.mdx index 71a117850..8ed706213 100644 --- a/docs/docs/customize/model-providers/top-level/openai.mdx +++ b/docs/docs/customize/model-providers/top-level/openai.mdx @@ -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 diff --git a/docs/docs/customize/model-providers/top-level/vertexai.mdx b/docs/docs/customize/model-providers/top-level/vertexai.mdx index aff67f416..7477360a6 100644 --- a/docs/docs/customize/model-providers/top-level/vertexai.mdx +++ b/docs/docs/customize/model-providers/top-level/vertexai.mdx @@ -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. diff --git a/docs/docs/customize/model-providers/top-level/xAI.mdx b/docs/docs/customize/model-providers/top-level/xAI.mdx index 6fb459736..c5777cea3 100644 --- a/docs/docs/customize/model-providers/top-level/xAI.mdx +++ b/docs/docs/customize/model-providers/top-level/xAI.mdx @@ -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. diff --git a/docs/docs/customize/model-types/autocomplete.md b/docs/docs/customize/model-roles/autocomplete.md similarity index 100% rename from docs/docs/customize/model-types/autocomplete.md rename to docs/docs/customize/model-roles/autocomplete.md diff --git a/docs/docs/customize/model-types/chat.md b/docs/docs/customize/model-roles/chat.md similarity index 100% rename from docs/docs/customize/model-types/chat.md rename to docs/docs/customize/model-roles/chat.md diff --git a/docs/docs/customize/model-types/embeddings.mdx b/docs/docs/customize/model-roles/embeddings.mdx similarity index 100% rename from docs/docs/customize/model-types/embeddings.mdx rename to docs/docs/customize/model-roles/embeddings.mdx diff --git a/docs/docs/customize/model-types/reranking.mdx b/docs/docs/customize/model-roles/reranking.mdx similarity index 100% rename from docs/docs/customize/model-types/reranking.mdx rename to docs/docs/customize/model-roles/reranking.mdx diff --git a/docs/docs/customize/overview.md b/docs/docs/customize/overview.md index cc6936c07..2024673f9 100644 --- a/docs/docs/customize/overview.md +++ b/docs/docs/customize/overview.md @@ -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). diff --git a/docs/docs/customize/tutorials/build-your-own-context-provider.md b/docs/docs/customize/tutorials/build-your-own-context-provider.mdx similarity index 83% rename from docs/docs/customize/tutorials/build-your-own-context-provider.md rename to docs/docs/customize/tutorials/build-your-own-context-provider.mdx index 33ba4441a..3034d36cd 100644 --- a/docs/docs/customize/tutorials/build-your-own-context-provider.md +++ b/docs/docs/customize/tutorials/build-your-own-context-provider.mdx @@ -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: + + + + ```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 + ``` + + + ```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 + } + } + } + ``` + + + +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 ` 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 diff --git a/docs/docs/hub/blocks/block-types.md b/docs/docs/hub/blocks/block-types.md index b99a97d8e..57c39d3b4 100644 --- a/docs/docs/hub/blocks/block-types.md +++ b/docs/docs/hub/blocks/block-types.md @@ -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 diff --git a/docs/docs/hub/getting-started.md b/docs/docs/hub/getting-started.md index d4d31a4ad..f65928a5d 100644 --- a/docs/docs/hub/getting-started.md +++ b/docs/docs/hub/getting-started.md @@ -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 + + diff --git a/docs/docs/telemetry.md b/docs/docs/telemetry.md index e086d409d..4b27498c6 100644 --- a/docs/docs/telemetry.md +++ b/docs/docs/telemetry.md @@ -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). diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 026cce534..7899c2ce2 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -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", diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/model-setup.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/model-setup.md index a7d9c3173..ba803e149 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/model-setup.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/autocomplete/model-setup.md @@ -49,4 +49,4 @@ Codestral 的 API key 和通常的 Mistral API 是不同的。如果你使用 Co ## 其他体验 -有很多更多的模型或提供者可以用来补全。在 [这里](../customize/model-types/autocomplete.md) 查看它们。 +有很多更多的模型或提供者可以用来补全。在 [这里](../customize/model-roles/autocomplete.md) 查看它们。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx index b6360c8d3..f4e844f5e 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/chat/model-setup.mdx @@ -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) 了解更多。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/cohere.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/cohere.md index 274c1942d..e69029b00 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/cohere.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/cohere.md @@ -23,7 +23,7 @@ Cohere 当前没有提供任何自动补全模型。 -[点击这里](../../model-types/autocomplete.md) 查看自动补全模型提供者列表。 +[点击这里](../../model-roles/autocomplete.md) 查看自动补全模型提供者列表。 ## 嵌入模型 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/nvidia.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/nvidia.md index 049ff7754..6d8e1269b 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/nvidia.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/more/nvidia.md @@ -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. diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/anthropic.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/anthropic.md index 7380e7673..f419f0def 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/anthropic.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/anthropic.md @@ -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) 查看重排序模型提供者列表。 ## 提示词缓存 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/azure.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/azure.md index 6fa50faaa..3a5a48614 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/azure.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/azure.md @@ -57,7 +57,7 @@ slug: ../azure Azure OpenAI 当前没有提供任何重排序模型。 -[点击这里](../../model-types/reranking.md) 查看重排序模型列表。 +[点击这里](../../model-roles/reranking.md) 查看重排序模型列表。 ## 隐私 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/bedrock.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/bedrock.md index a1a4d6234..e13bc715d 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/bedrock.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/bedrock.md @@ -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) 查看重排序模型提供者列表。 ## 认证 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/deepseek.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/deepseek.md index 61e01e701..10c0baeb8 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/deepseek.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/deepseek.md @@ -42,10 +42,10 @@ slug: ../deepseek DeepSeek 当前没有提供任何嵌入模型。 -[点击这里](../../model-types/embeddings.md) 查看嵌入模型提供者列表。 +[点击这里](../../model-roles/embeddings.md) 查看嵌入模型提供者列表。 ## 重排序模型 DeepSeek 当前没有提供任何重排序模型。 -[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。 +[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/gemini.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/gemini.md index 13778e379..8caec3c1f 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/gemini.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/gemini.md @@ -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) 查看重排序模型提供者列表。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/mistral.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/mistral.md index 2e853affc..8b9963fbb 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/mistral.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/mistral.md @@ -57,4 +57,4 @@ slug: ../mistral Mistral 当前没有提供任何重排序模型。 -[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。 +[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/ollama.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/ollama.md index 9119116ef..69ea9752d 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/ollama.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/ollama.md @@ -50,4 +50,4 @@ slug: ../ollama Ollama 当前没有提供任何重排序模型。 -[点击这里](../../model-types/reranking.md) 查看重排序模型提供者列表。 +[点击这里](../../model-roles/reranking.md) 查看重排序模型提供者列表。 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/openai.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/openai.md index ba84723da..18f3312a7 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/openai.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/openai.md @@ -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 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/vertexai.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/vertexai.md index daf966d9e..0a280cda8 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/vertexai.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/vertexai.md @@ -62,4 +62,4 @@ We recommend configuring **text-embedding-004** as your embeddings model. +[Click here](../../model-roles/reranking.md) to see a list of reranking model providers. --> diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/xai.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/xai.md index c920114b0..866e7108d 100644 --- a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/xai.md +++ b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-providers/top-level/xai.md @@ -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 diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/autocomplete.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/autocomplete.md similarity index 100% rename from docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/autocomplete.md rename to docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/autocomplete.md diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/chat.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md similarity index 100% rename from docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/chat.md rename to docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/chat.md diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/embeddings.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/embeddings.md similarity index 100% rename from docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/embeddings.md rename to docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/embeddings.md diff --git a/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/reranking.md b/docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/reranking.md similarity index 100% rename from docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-types/reranking.md rename to docs/i18n/zh-CN/docusaurus-plugin-content-docs/current/customize/model-roles/reranking.md diff --git a/docs/sidebars.js b/docs/sidebars.js index 602229f4b..fc9c97a60 100644 --- a/docs/sidebars.js +++ b/docs/sidebars.js @@ -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", }, ], },