From 3e86e2603be6e6bbcc6f833ea5d08ab7f0b96943 Mon Sep 17 00:00:00 2001 From: Robert Lin Date: Fri, 5 Sep 2025 18:27:54 -0700 Subject: [PATCH] cody: document long context for BYOK only Amp-Thread-ID: https://ampcode.com/threads/T-8e0b81d8-65e2-48dc-89c0-a18fa7c91fba Co-authored-by: Amp --- docs/cody/enterprise/model-configuration.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/cody/enterprise/model-configuration.mdx b/docs/cody/enterprise/model-configuration.mdx index 7ccf62fdb..fd7cce1af 100644 --- a/docs/cody/enterprise/model-configuration.mdx +++ b/docs/cody/enterprise/model-configuration.mdx @@ -42,6 +42,8 @@ For most administrators, relying on these models alone ensures access to high-qu The use of these models is controlled through the `"modelConfiguration.sourcegraph"` field in the site config. +Sourcegraph-provided models through Cody Gateway have context window limitations. To access models with extended context windows (such as Claude Sonnet 4's [1M token context](https://www.anthropic.com/news/1m-context)), configure BYOK (Bring Your Own Key) models using `providerOverrides` and suitable `contextWindow` configuration. See the [examples page](/cody/enterprise/model-config-examples) for BYOK configuration details. + ### Configure Sourcegraph-provided models The minimal configuration for Sourcegraph-provided models is: