Home Explore Blog CI



zed

1st chunk of `docs/src/ai/edit-prediction.md`
49f9c7a2dcaa15d894c50e07c68fd06e5f849a46b7f294d30000000100000549
# Edit Prediction

Edit Prediction is Zed's native mechanism for predicting the code you want to write through AI.
Each keystroke sends a new request to our [open source, open dataset Zeta model](https://huggingface.co/zed-industries/zeta) and it returns with individual or multi-line suggestions that can be quickly accepted by pressing `tab`.

## Configuring Zeta

Zed's Edit Prediction was initially introduced via a banner on the title bar.
Clicking on it would take you to a modal with a button ("Enable Edit Prediction") that sets `zed` as your `edit_prediction_provider`.



But, if you haven't come across the banner, Zed's Edit Prediction is the default edit prediction provider and you should see it right away in your status bar.

### Switching Modes {#switching-modes}

Zed's Edit Prediction comes with two different display modes:

1. `eager` (default): predictions are displayed inline as long as it doesn't conflict with language server completions
2. `subtle`: predictions only appear inline when holding a modifier key (`alt` by default)

Toggle between them via the `mode` key:

```json
"edit_predictions": {
  "mode": "eager" | "subtle"
},
```

Or directly via the UI through the status bar menu:


Title: Zed Edit Prediction: Configuration and Modes
Summary
Zed's Edit Prediction feature uses the Zeta model to predict code. It's enabled by default, and users can switch between 'eager' (inline) and 'subtle' (modifier key) display modes via the configuration file or the status bar menu.