Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/cody/clients/model-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ This requires site-admin privileges. To do so,
```json
{
// [...]
"cody.enabled": true
"cody.enabled": true,
"completions": {
"provider": "sourcegraph"
}
}
```

Expand Down Expand Up @@ -319,6 +322,7 @@ The simplest way to configure your Sourcegraph Enterprise would be to add the fo

```json
...
"cody.enabled": true,
"modelConfiguration": {
"sourcegraph": {}
},
Expand Down Expand Up @@ -360,6 +364,7 @@ The `"allow"` and `"deny"` fields, are arrays of [model references](#model-confi
The following examples illustrate how to use all these settings in conjunction:

```json
"cody.enabled": true,
"modelConfiguration": {
"sourcegraph": {
"modelFilters": {
Expand Down Expand Up @@ -390,6 +395,7 @@ The `"modelConfiguration"` setting also contains a `"defaultModels"` field that

```json
...
"cody.enabled": true,
"modelConfiguration": {
"defaultModels": {
"chat": "anthropic::2023-06-01::claude-3.5-sonnet",
Expand Down Expand Up @@ -421,6 +427,7 @@ By defining a provider override in your Sourcegraph site configuration, you are
The following configuration shippet defines a single provider override with the ID `"anthropic"`.

```json
"cody.enabled": true,
"modelConfiguration": {
// Do not use any Sourcegraph-supplied models.
"sourcegraph": null,
Expand Down Expand Up @@ -487,6 +494,7 @@ With a provider defined, we can now specify custom models using that provider by
The following configuration snippet defines a custom model, using the `"anthropic"` provider from the previous example.

```json
"cody.enabled": true,
"modelConfiguration": {
...
"modelOverrides": [
Expand Down
Loading