Add support for changing the Codestral endpoint (#41116)

```json
  "edit_predictions": {
    "codestral": {
      "api_url": "https://codestral.mistral.ai",
      "model": "codestral-latest",
      "max_tokens": 150
    }
  },
```

Release Notes:

- Added support for changing the Codestral endpoint. This was discussed
at #34371.

---------

Co-authored-by: Bennet Bo Fenner <bennetbo@gmx.de>
This commit is contained in:
pedrxd
2025-10-27 16:00:27 +00:00
committed by GitHub
co-authored by Bennet Bo Fenner
parent 821a4880bd
commit a70f80df95
3 changed files with 17 additions and 1 deletions
@@ -142,6 +142,11 @@ pub struct CodestralSettingsContent {
/// Default: 150
#[serde(default)]
pub max_tokens: Option<u32>,
/// Api URL to use for completions.
///
/// Default: "https://codestral.mistral.ai"
#[serde(default)]
pub api_url: Option<String>,
}
/// The mode in which edit predictions should be displayed.