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/capabilities/auto-edit.mdx
+51-16Lines changed: 51 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,16 +54,12 @@ Auto-edit is enabled by default for Cody Pro Enterprise Starter and Enterprise u
54
54
55
55
Site admins can opt their organization out of the auto-edit feature by disabling it from their config settings.
56
56
57
-
### Auto-edit access for Enterprise customers
57
+
### Configure auto-edit access
58
58
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:
60
60
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)
67
63
68
64
The following example demonstrates how to add Fireworks as an allowed LLM provider:
69
65
@@ -107,16 +103,55 @@ Site admins can opt their organization out of the auto-edit feature by disabling
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:
113
109
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
+
<Tabtitle="Visual Studio">
140
+
141
+
<Callouttype="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.
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)
120
155
121
156
The following example demonstrates how to add Fireworks as an allowed LLM provider:
0 commit comments