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:
co-authored by
Bennet Bo Fenner
parent
821a4880bd
commit
a70f80df95
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user