From 5a5da0e3202eee06115e9b2417e39624e0bf6672 Mon Sep 17 00:00:00 2001 From: Ado Kukic Date: Tue, 5 Nov 2024 11:56:03 -0800 Subject: [PATCH 1/3] Hackathon - Cody Gateway --- docs/cody/core-concepts/cody-gateway.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/cody/core-concepts/cody-gateway.mdx b/docs/cody/core-concepts/cody-gateway.mdx index f86ab2085..42fbed2b2 100644 --- a/docs/cody/core-concepts/cody-gateway.mdx +++ b/docs/cody/core-concepts/cody-gateway.mdx @@ -1,3 +1,4 @@ +{/* Hackathon */} # Sourcegraph Cody Gateway

Learn how Cody Gateway powers the default Sourcegraph provider for completions to facilitate Cody features.

From 493239030bfe180d351d19b04f6298cbf278c486 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Fri, 15 Nov 2024 11:04:48 -0800 Subject: [PATCH 2/3] Add minor fixes --- docs/cody/core-concepts/cody-gateway.mdx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/docs/cody/core-concepts/cody-gateway.mdx b/docs/cody/core-concepts/cody-gateway.mdx index 42fbed2b2..f6ac54df2 100644 --- a/docs/cody/core-concepts/cody-gateway.mdx +++ b/docs/cody/core-concepts/cody-gateway.mdx @@ -1,17 +1,16 @@ -{/* Hackathon */} # Sourcegraph Cody Gateway -

Learn how Cody Gateway powers the default Sourcegraph provider for completions to facilitate Cody features.

+

Learn how Cody Gateway powers the default Sourcegraph provider for completions, enabling Cody features for Sourcegraph Enterprise customers.

-Cody Gateway is supported for Sourcegraph Enterprise customers on v5.1 or more. +Cody Gateway is available for Sourcegraph Enterprise customers using version 5.1 or more. -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. +Cody Gateway powers the default `"provider": "sourcegraph"` and Cody completions for Sourcegraph Enterprise users. It integrates with various upstream LLM providers, including [Anthropic](https://www.anthropic.com/) and [OpenAI](https://openai.com/), with rate limits, quotas, and model availability tied to your Sourcegraph Enterprise subscription. ## Supported Models -See our page on [Supported LLMs](/cody/capabilities/supported-models) for a current list of supported models and providers. +For a full list of supported models and providers, read our [Supported LLMs](/cody/capabilities/supported-models) docs. -## Using Cody Gateway in Sourcegraph Enterprise +## Setting Up Cody Gateway in Sourcegraph Enterprise 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): @@ -25,7 +24,7 @@ To enable completions provided by Cody Gateway on your Sourcegraph Enterprise in } ``` -After adding the license key, the default configuration and authentication will be automatically applied. +Once the license key is added, default configuration and authentication are automatically applied. For more details about configuring Cody, read the following resources: @@ -49,6 +48,6 @@ In addition to the above, we may throttle concurrent requests to Cody Gateway pe ## Privacy and security -Sourcegraph Cody Gateway does not retain sensitive data (prompt test and source code included in requests, etc.) from any traffic received. Only rate limit consumption per Sourcegraph Enterprise license and some high-level diagnostic data (error codes from upstream, numeric/enum request parameters, etc) are tracked. +Sourcegraph Cody Gateway does not retain sensitive data (prompt test and source code included in requests, etc.) from any traffic received. Only rate limit consumption per Sourcegraph Enterprise license and high-level diagnostic data (error codes from upstream, numeric/enum request parameters, etc) are tracked. For more details about Cody Gateway security practices, please reach out to your account manager. You can also refer to the [Cody usage and privacy notice](https://about.sourcegraph.com/terms/cody-notice) for more privacy details about Cody in general. From 95f4c7f3a950ef62da40b32ca3f51c0d089d0f12 Mon Sep 17 00:00:00 2001 From: Maedah Batool Date: Mon, 18 Nov 2024 11:59:02 -0800 Subject: [PATCH 3/3] Add improvements --- docs/cody/core-concepts/cody-gateway.mdx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/cody/core-concepts/cody-gateway.mdx b/docs/cody/core-concepts/cody-gateway.mdx index f6ac54df2..dc3a99f24 100644 --- a/docs/cody/core-concepts/cody-gateway.mdx +++ b/docs/cody/core-concepts/cody-gateway.mdx @@ -8,11 +8,11 @@ Cody Gateway powers the default `"provider": "sourcegraph"` and Cody completions ## Supported Models -For a full list of supported models and providers, read our [Supported LLMs](/cody/capabilities/supported-models) docs. +For a full list of supported models and providers, read our [Supported LLMs] (/Cody/capabilities/supported-models) docs. -## Setting Up Cody Gateway in Sourcegraph Enterprise +## Setting up Cody Gateway in Sourcegraph Enterprise -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): +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): ```jsonc { @@ -26,9 +26,7 @@ To enable completions provided by Cody Gateway on your Sourcegraph Enterprise in Once the license key is added, default configuration and authentication are automatically applied. -For more details about configuring Cody, read the following resources: - -- [Enabling Cody for Sourcegraph Enterprise](/cody/clients/enable-cody-enterprise) +For more details about configuring Cody, it's recommended to read about [Enabling Cody for Sourcegraph Enterprise](/cody/clients/enable-cody-enterprise). Cody Gateway is hosted at `cody-gateway.sourcegraph.com`. To use Cody Gateway, your Sourcegraph instance must be connected to the service in this domain. @@ -50,4 +48,4 @@ In addition to the above, we may throttle concurrent requests to Cody Gateway pe Sourcegraph Cody Gateway does not retain sensitive data (prompt test and source code included in requests, etc.) from any traffic received. Only rate limit consumption per Sourcegraph Enterprise license and high-level diagnostic data (error codes from upstream, numeric/enum request parameters, etc) are tracked. -For more details about Cody Gateway security practices, please reach out to your account manager. You can also refer to the [Cody usage and privacy notice](https://about.sourcegraph.com/terms/cody-notice) for more privacy details about Cody in general. +For more details about Cody Gateway security practices, please contact your account manager. For more privacy details about Cody in general, refer to the [Cody usage and privacy notice](https://about.sourcegraph.com/terms/cody-notice).