Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Switch from `open-codestral-mamba` to `codestral-latest` for default mistral model (#29104)

Michael Sloan0fb0059b5f14
diff --git a/crates/mistral/src/mistral.rs b/crates/mistral/src/mistral.rs
index 27de5fccc28..ac99f371000 100644
--- a/crates/mistral/src/mistral.rs
+++ b/crates/mistral/src/mistral.rs
@@ -46,6 +46,7 @@ impl From<Role> for String {
#[derive(Clone, Debug, Default, Serialize, Deserialize, PartialEq, EnumIter)]
pub enum Model {
#[serde(rename = "codestral-latest", alias = "codestral-latest")]
+ #[default]
CodestralLatest,
#[serde(rename = "mistral-large-latest", alias = "mistral-large-latest")]
MistralLargeLatest,
@@ -54,7 +55,6 @@ pub enum Model {
#[serde(rename = "open-mistral-nemo", alias = "open-mistral-nemo")]
OpenMistralNemo,
#[serde(rename = "open-codestral-mamba", alias = "open-codestral-mamba")]
- #[default]
OpenCodestralMamba,
#[serde(rename = "custom")]