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

Michael Sloan created

Couldn't find mistral cloud pricing for open-codestral-mamba on the
mistral site, but codestral-latest is newer and appears to be cheaper
based on
https://sdk.vercel.ai/playground/mistral:codestral-mamba-latest,mistral:codestral-2501

Release Notes:

- N/A

Change summary

crates/mistral/src/mistral.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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")]