Skip to content

Commit f49eed1

Browse files
committed
Clean up cody for enterprise page
1 parent 81c10fc commit f49eed1

File tree

1 file changed

+3
-31
lines changed

1 file changed

+3
-31
lines changed

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

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,11 @@ With [Sourcegraph Cloud](/cloud/), you get Cody as a managed service, and you **
3131

3232
### Prerequisites
3333

34-
- You have Sourcegraph version `5.1.0` or more
3534
- A Sourcegraph Enterprise subscription with [Sourcegraph Model Provider (Cody Gateway)](/model-provider) or an account with a third-party LLM provider
3635

3736
### Enable Cody on your Sourcegraph instance
3837

39-
Site admins can only enable Cody on the Sourcegraph instance. To do so,
38+
Site admins can enable Cody on the Sourcegraph instance. To do so,
4039

4140
- First, configure your desired LLM provider either by [using Sourcegraph Model Provider (Cody Gateway)](/model-provider) or by directly using a third-party LLM provider
4241
- Next, go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
@@ -68,54 +67,27 @@ To turn Cody off:
6867

6968
## Enable Cody only for some users
7069

71-
How to enable Cody only for _some_ users depends on what version of Sourcegraph you are running.
72-
73-
### Sourcegraph v5.3+
74-
75-
In Sourcegraph v5.3+, access to Cody is managed via user roles. By default, all users have access.
70+
Access to Cody is managed via user roles. By default, all users have access.
7671

7772
First, ensure Cody is enabled in your site configuration. Go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
7873

7974
```json
8075
{
8176
// [...]
8277
"cody.enabled": true
83-
// Make sure cody.restrictUsersFeatureFlag is not in your configuration! If it is, remove it.
8478
}
8579
```
8680

8781
<Callout type="info">
8882
Ensure `cody.restrictUsersFeatureFlag` is **not** in your site
89-
configuration. If it is, remove it or else the old feature-flag approach
90-
from Sourcegraph 5.2 and earlier will be used.
83+
configuration. If it is, remove it.
9184
</Callout>
9285

9386
Next, go to **Site admin > Users & Auth > Roles** (`/site-admin/roles`) on your instance. On that page, you can:
9487

9588
- Control whether users **by default** have access to Cody (expand `User [System]` and toggle **Cody** > **Access** as desired)
9689
- Control whether groups of users have access to Cody (`+Create role` and enable the **Cody** > **Access** toggle as desired)
9790

98-
### Sourcegraph v5.2 and earlier
99-
100-
In Sourcegraph v5.2 and earlier, you should use the feature flag `cody` to turn Cody on selectively for some users. To do so:
101-
102-
- Go to **Site admin > Site configuration** (`/site-admin/configuration`) on your instance and set:
103-
104-
```json
105-
{
106-
// [...]
107-
"cody.enabled": true,
108-
"cody.restrictUsersFeatureFlag": true
109-
}
110-
```
111-
112-
- Next, go to **Site admin > Feature flags** (`/site-admin/feature-flags`)
113-
- Add a feature flag called `cody`
114-
- Select the `boolean` type and set it to `false`
115-
- Once added, click on the feature flag and use **add overrides** to pick users that will have access to Cody
116-
117-
![add-overrides](https://user-images.githubusercontent.com/25070988/235454594-9f1a6b27-6882-44d9-be32-258d6c244880.png)
118-
11991
## Configure Cody for LLM providers
12092

12193
Cody supports several LLM providers and models. You can access these models via the Cody Gateway, directly using your own model provider account or infrastructure.

0 commit comments

Comments
 (0)