# Add Codestral edit predictions provider \(\#34371\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/5fd187769d52481ab75348db8839824ccd54491d)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 5fd187769d52481ab75348db8839824ccd54491d

Requested commit: 5fd187769d52481ab75348db8839824ccd54491d

Commit: 5fd187769d52481ab75348db8839824ccd54491d

Tree: 7d34b58d1d914edac7a544e110284fe2b8f29d90

Author: David

Committer: GitHub

## Message

````
Add Codestral edit predictions provider (#34371)

Release Notes:

- Added Codestral edit predictions provider which can be enabled by adding an API key in the Mistral section of agent settings.

![2025-07-13 11 35
33](https://github.com/user-attachments/assets/8bf599d7-33c7-4556-b878-6c645d69661f)


## Config

Get API key from https://console.mistral.ai/codestral and add it in the Mistral section of the agent settings. 

```
  "features": {
    "edit_prediction_provider": "codestral"
  },
  "edit_predictions": {
    "codestral": {
      "model": "codestral-latest",
      "max_tokens": 150
    }
  },
```

---------

Co-authored-by: Michael Sloan <michael@zed.dev>
````

## Parents

- [096930817b81282fce639dd642fe72644f72d030](https://git.cafe/gitcafe/zed/commit/096930817b81282fce639dd642fe72644f72d030?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/5fd187769d52481ab75348db8839824ccd54491d?format=markdown)
