You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cody/core-concepts/cody-gateway.mdx
+7-19Lines changed: 7 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,10 @@
6
6
7
7
Sourcegraph Cody Gateway powers the default `"provider": "sourcegraph"` and Cody completions for Sourcegraph Enterprise users. It supports a variety of upstream LLM providers, such as [Anthropic](https://www.anthropic.com/) and [OpenAI](https://openai.com/), with rate limits, quotas, and model availability tied to your Sourcegraph Enterprise subscription.
8
8
9
+
## Supported Models
10
+
11
+
See our page on [Supported LLMs](/cody/capabilities/supported-models) for a current list of supported models and providers.
12
+
9
13
## Using Cody Gateway in Sourcegraph Enterprise
10
14
11
15
To enable completions provided by Cody Gateway on your Sourcegraph Enterprise instance, make sure your license key is set, and Cody is enabled in your [site configuration](/admin/config/site_config):
@@ -14,6 +18,9 @@ To enable completions provided by Cody Gateway on your Sourcegraph Enterprise in
14
18
{
15
19
"licenseKey":"<...>",
16
20
"cody.enabled":true,
21
+
"completions": {
22
+
"provider":"sourcegraph"
23
+
}
17
24
}
18
25
```
19
26
@@ -27,25 +34,6 @@ Cody Gateway is hosted at `cody-gateway.sourcegraph.com`. To use Cody Gateway, y
27
34
28
35
<Callouttype="warning">Sourcegraph Cody Gateway access must be included in your Sourcegraph Enterprise subscription. You can verify it by checking it with your account manager. If you are a [Sourcegraph Cloud](/cloud/) user, Cody is enabled by default on your instance starting with Sourcegraph 5.1.</Callout>
29
36
30
-
## Configuring custom models
31
-
32
-
To configure custom models for various Cody configurations (for example, `"completions"`), specify the desired model with the upstream provider as a prefix to the name of the model. For example, to use the `claude-2` model from Anthropic, you would configure:
The currently supported upstream providers for models are:
41
-
42
-
-[`anthropic/`](https://www.anthropic.com/)
43
-
-[`openai/`](https://openai.com/)
44
-
45
-
For Sourcegraph Enterprise customers, model availability depends on your Sourcegraph Enterprise subscription.
46
-
47
-
<Callouttype="warning">When using OpenAI models for completions, only chat completions will work - code completions are currently unsupported.</Callout>
48
-
49
37
## Rate limits and quotas
50
38
51
39
Rate limits, quotas, and model availability are tied to your Sourcegraph Enterprise license for Sourcegraph Enterprise instances.
0 commit comments