Skip to content

Commit 237d732

Browse files
committed
Add links and hash links
1 parent e6c2576 commit 237d732

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

docs/cody/clients/enable-cody-enterprise.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
You can set up Cody for your Enterprise instance by two methods:
1212

13-
1. [Sourcegraph Cloud](#cody-on-sourcegraph-cloud)
14-
2. [Self-hosted Sourcegraph](#cody-on-self-hosted-sourcegraph-enterprise)
13+
1. Sourcegraph Cloud
14+
2. Self-hosted Sourcegraph
1515

1616
## Cody on Sourcegraph Cloud
1717

docs/cody/enterprise/model-config-examples.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
<p className="subtitle">This section includes examples about how to configure Cody to use Sourcegraph-provided models with `modelConfiguration`. These examples will use the following:</p>
44

5-
- [Minimal configuration](/cody/model-configuration#configure-sourcegraph-supplied-models)
6-
- [Using model filters](/cody/model-configuration#model-filters)
7-
- [Change default models](/cody/model-configuration#default-models)
5+
- [Minimal configuration](/cody/enterprise/model-configuration#configure-sourcegraph-provided-models)
6+
- [Using model filters](/cody/enterprise/model-configuration#model-filters)
7+
- [Change default models](/cody/enterprise/model-configuration#default-models)
88

99
## Sourcegraph-provided models and BYOK (Bring Your Own Key)
1010

@@ -69,7 +69,7 @@ In the configuration above, we:
6969
Below are configuration examples for setting up various LLM providers using BYOK. These examples are applicable whether or not you are using Sourcegraph-supported models.
7070

7171
- In this section, all configuration examples have Sourcegraph-provided models disabled. Please refer to the previous section to use a combination of Sourcegraph-provided models and BYOK.
72-
- Ensure that at least one model is available for each Cody feature ("chat" and "autocomplete"), regardless of the provider and model overrides configured. To verify this, [view the configuration](/cody/model-configuration#view-configuration) and confirm that appropriate models are listed in the `"defaultModels"` section.
72+
- Ensure that at least one model is available for each Cody feature ("chat" and "autocomplete"), regardless of the provider and model overrides configured. To verify this, [view the configuration](/cody/enterprise/model-configuration#view-configuration) and confirm that appropriate models are listed in the `"defaultModels"` section.
7373

7474
<Accordion title="Anthropic">
7575

@@ -586,15 +586,15 @@ Provider override `serverSideConfig` fields:
586586
| `endpoint` | For pay-as-you-go, set it to an AWS region code (e.g., `us-west-2`) when using a public Amazon Bedrock endpoint. For provisioned throughput, set it to the provisioned VPC endpoint for the bedrock-runtime API (e.g., `https://vpce-0a10b2345cd67e89f-abc0defg.bedrock-runtime.us-west-2.vpce.amazonaws.com`). |
587587
| `region` | The region to use when configuring API clients. This is necessary because the 'frontend' binary container cannot access environment variables from the host OS. |
588588

589-
Provisioned throughput for AWS Bedrock models can be configured using the `"awsBedrockProvisionedThroughput"` server-side configuration type. Refer to the [Model Overrides](/cody/model-configuration#model-overrides) section for more details.
589+
Provisioned throughput for AWS Bedrock models can be configured using the `"awsBedrockProvisionedThroughput"` server-side configuration type. Refer to the [Model Overrides](/cody/enterprise/model-configuration#model-overrides) section for more details.
590590

591591
</Accordion>
592592

593593
## Self-hosted models
594594

595595
<Callout type="note">Configuring self-hosted models can be nuanced and complex. Please reach out to Sourcegraph support for assistance with the setup.</Callout>
596596

597-
Please refer to the [self-hosted models](/cody/model-configuration#self-hosted-models) documentation for detailed information about configuring self-hosted models.
597+
Please refer to the [self-hosted models](/cody/enterprise/model-configuration#self-hosted-models) documentation for detailed information about configuring self-hosted models.
598598

599599
Example configuration:
600600

docs/cody/enterprise/model-configuration.mdx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ The model configuration for Cody is managed through the `"modelConfiguration"` f
1616

1717
| **Field** | **Description** |
1818
| ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
19-
| [`sourcegraph`](/cody/model-configuration#sourcegraph-supplied-models) | Configures access to Sourcegraph-provided models available through Cody Gateway. |
20-
| [`providerOverrides`](/cody/model-configuration#provider-overrides) | Configures model providers, allowing you to customize Cody's connection to model providers using your own API keys or self-hosted models. |
21-
| [`modelOverrides`](/cody/model-configuration#model-overrides) | Extends or modifies the list of models Cody recognizes and their configurations. |
22-
| [`selfHostedModels`](/cody/model-configuration#self-hosted-models) | Adds models to Cody’s recognized models list with default configurations provided by Sourcegraph. Only available for certain models; general models can be configured in `modelOverrides`. |
23-
| [`defaultModels`](/cody/model-configuration#default-models) | Specifies the models assigned to each Cody feature (chat, fast chat, autocomplete). |
19+
| [`sourcegraph`](/cody/enterprise/model-configuration#sourcegraph-provided-models) | Configures access to Sourcegraph-provided models available through Cody Gateway. |
20+
| [`providerOverrides`](/cody/enterprise/model-configuration#provider-overrides) | Configures model providers, allowing you to customize Cody's connection to model providers using your own API keys or self-hosted models. |
21+
| [`modelOverrides`](/cody/enterprise/model-configuration#model-overrides) | Extends or modifies the list of models Cody recognizes and their configurations. |
22+
| [`selfHostedModels`](/cody/enterprise/model-configuration#self-hosted-models) | Adds models to Cody’s recognized models list with default configurations provided by Sourcegraph. Only available for certain models; general models can be configured in `modelOverrides`. |
23+
| [`defaultModels`](/cody/enterprise/model-configuration#default-models) | Specifies the models assigned to each Cody feature (chat, fast chat, autocomplete). |
2424

2525
## Getting started with `modelConfiguration`
2626

2727
The recommended way to set up model configuration is using Sourcegraph-provided models through the Cody Gateway.
2828

29-
For a minimal configuration example, see [Configure Sourcegraph-supplied models](/cody/model-configuration#configure-sourcegraph-supplied-models).
29+
For a minimal configuration example, see [Configure Sourcegraph-supplied models](/cody/enterprise/model-configuration#configure-sourcegraph-provided-models).
3030

3131
## Sourcegraph-provided models
3232

@@ -79,7 +79,7 @@ There are three main settings for configuring Sourcegraph-provided LLM models:
7979
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ |
8080
| `endpoint` | (Optional) The URL for connecting to Cody Gateway. The default is set to the production instance. |
8181
| `accessToken` | (Optional) The access token for connecting to Cody Gateway defaults to the current license key. |
82-
| [`modelFilters`](/cody/model-configuration#model-filters) | (Optional) Filters specifying which models to include from Cody Gateway. |
82+
| [`modelFilters`](/cody/enterprise/model-configuration#model-filters) | (Optional) Filters specifying which models to include from Cody Gateway. |
8383

8484
### Model Filters
8585

@@ -166,7 +166,7 @@ In the example above:
166166
- Sourcegraph-provided models are enabled (`sourcegraph` is not set to `null`)
167167
- The `"openai"` provider configuration is overridden to be accessed using your own key, with the provider API accessed directly via the specified `endpoint` URL. In contrast, models from the `"anthropic"` provider are accessed through the Cody Gateway
168168

169-
Refer to the [examples page](/cody/model-configuration/examples) for additional examples.
169+
Refer to the [examples page](/cody/enterprise/model-config-examples) for additional examples.
170170

171171
### Server-side config
172172

@@ -176,8 +176,8 @@ Sourcegraph natively supports several types of LLM API providers. The current se
176176

177177
| **Provider type** | **Description** |
178178
| -------------------- | ----------------------------------------------------------------------------------------------------------- |
179-
| `"sourcegraph"` | [Cody Gateway](/cody/core-concepts/cody-gateway), offering access to various models from multiple services. |
180-
| `"openaicompatible"` | Any OpenAI-compatible API implementation. |
179+
| `"sourcegraph"` | [Cody Gateway](/cody/core-concepts/cody-gateway), offering access to various models from multiple services |
180+
| `"openaicompatible"` | Any OpenAI-compatible API implementation |
181181
| `"awsBedrock"` | [Amazon Bedrock](https://docs.aws.amazon.com/bedrock/) |
182182
| `"azureOpenAI"` | [Microsoft Azure OpenAI](https://azure.microsoft.com/en-us/products/ai-services/openai-service/) |
183183
| `"anthropic"` | [Anthropic](https://www.anthropic.com) |
@@ -188,7 +188,7 @@ Sourcegraph natively supports several types of LLM API providers. The current se
188188

189189
The configuration for `serverSideConfig` varies by provider type.
190190

191-
Refer to the [examples page](/cody/model-configuration/examples) for examples.
191+
Refer to the [examples page](/cody/enterprise/model-config-examples) for examples.
192192

193193
## Model Overrides
194194

@@ -284,7 +284,7 @@ In the example above:
284284
- Sourcegraph-provided models are used for `"chat"` and `"fastChat"` (accessed via Cody Gateway)
285285
- The newly configured model, `"huggingface-codellama::v1::CodeLlama-7b-hf"`, is used for `"autocomplete"` (connecting directly to Hugging Face’s OpenAI-compatible API)
286286

287-
Refer to the [examples page](/cody/model-configuration/examples) for additional examples.
287+
Refer to the [examples page](/cody/enterprise/model-config-examples) for additional examples.
288288

289289
## Self-hosted models
290290

@@ -305,7 +305,7 @@ This field is an array of items, each with the following fields:
305305
| `apiVersion` | (Optional) The API version to use. Defaults to `"v1"` if not specified. |
306306
| `model` | (Optional) Specifies which default model configuration to use. Sourcegraph provides default configurations for select models. For arbitrary models, use the `modelOverrides` section. Available options include: `"starcoder2-7b@v1"`, `"starcoder2-15b@v1"`, `"mistral-7b-instruct@v1"`, `"mixtral-8x7b-instruct@v1"`, `"mixtral-8x22b-instruct@v1"` |
307307

308-
Refer to the [examples page](/cody/model-configuration/examples#self-hosted-models) for examples.
308+
Refer to the [examples page](/cody/enterprise/model-config-examples#self-hosted-models) for examples.
309309

310310
## Default models
311311

0 commit comments

Comments
 (0)