Skip to content

Commit bfba3f3

Browse files
committed
Add visual studio section
1 parent 529492b commit bfba3f3

File tree

1 file changed

+51
-16
lines changed

1 file changed

+51
-16
lines changed

docs/cody/capabilities/auto-edit.mdx

Lines changed: 51 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,12 @@ Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise u
5454

5555
Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings.
5656

57-
### Auto-edit access for Enterprise customers
57+
### Configure auto-edit access
5858

59-
Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. Enabling the feature requires two steps:
59+
Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps:
6060

61-
1. Site administrators must:
62-
- Ensure the feature flag `cody-autoedit-experiment-enabled-flag` is enabled (enabled by default)
63-
- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) (see below)
64-
2. Once enabled, auto-edit will become the default suggestion mode for all users
65-
3. Users can optionally switch back to autocomplete from the Cody extension settings
66-
4. Site admins can opt out of auto-edits using the `cody-autoedit-experiment-enabled-flag` feature flag
61+
- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled
62+
- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters)
6763

6864
The following example demonstrates how to add Fireworks as an allowed LLM provider:
6965

@@ -107,16 +103,55 @@ Site admins can opt their organization out of the auto-edit feature by disabling
107103

108104
![JetBrains-Cody-Settings-Editor](https://storage.googleapis.com/sourcegraph-assets/Docs/jb-cody-settings.png)
109105

110-
### Auto-edit access for Enterprise customers
106+
### Configure auto-edit access
111107

112-
Auto-edit is available for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. Enabling the feature requires two steps:
108+
Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps:
113109

114-
1. Site administrators must:
115-
- Ensure the feature flag `cody-autoedit-experiment-enabled-flag` is enabled from the settings editor
116-
- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters) (see below)
117-
2. Once enabled, auto-edit will become the default suggestion mode for all users
118-
3. Users can optionally switch back to autocomplete from the Cody extension settings
119-
4. Site admins can opt out of auto-edits using the `cody-autoedit-experiment-enabled-flag` feature flag
110+
- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled
111+
- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters)
112+
113+
The following example demonstrates how to add Fireworks as an allowed LLM provider:
114+
115+
```json
116+
117+
"cody.enabled": true,
118+
"modelConfiguration": {
119+
"sourcegraph": {
120+
"modelFilters": {
121+
// Only allow "beta" and "stable" models.
122+
// Not "experimental" or "deprecated".
123+
"statusFilter": ["beta", "stable"],
124+
125+
// Allow any models provided by Anthropic, OpenAI, Google and Fireworks.
126+
"allow": [
127+
"anthropic::*", // Anthropic models
128+
"openai::*", // OpenAI models
129+
"google::*", // Google Gemini models
130+
"fireworks::*", // Open source models hosted by Sourcegraph
131+
],
132+
}
133+
}
134+
}
135+
```
136+
137+
</Tab>
138+
139+
<Tab title="Visual Studio">
140+
141+
<Callout type="info">Visual Studio support auto-edit for versions 17.6 and above. It's available for Pro, Enterprise Starter, and Enterprise users on Cody Gateway. Auto-edit requires Fireworks to be enabled as a provider. Enterprise customers without Fireworks enabled can disable the feature flag.</Callout>
142+
143+
## Enabling auto-edit in Visual Studio
144+
145+
Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise users. You can opt out and switch back to autocomplete by selecting it from the suggestion mode in the Cody Visual Studio extension settings.
146+
147+
![Visual-Studio-Cody-Settings-Editor](https://storage.googleapis.com/sourcegraph-assets/Docs/visual-studio-auto-edit-settings.png)
148+
149+
### Configure auto-edit access
150+
151+
Auto-edit is available as default for Enterprise customers with [Sourcegraph Cody Gateway](/cody/core-concepts/cody-gateway#sourcegraph-cody-gateway) access. To **disable** or configure the auto-edit feature, site administrators must do the following steps:
152+
153+
- To disable auto-edit, turn off the feature flag `cody-autoedit-experiment-enabled-flag` as disabled
154+
- Add `fireworks::*` as an [allowed provider](https://sourcegraph.com/docs/cody/enterprise/model-configuration#model-filters)
120155

121156
The following example demonstrates how to add Fireworks as an allowed LLM provider:
122157

0 commit comments

Comments
 (0)