diff --git a/crates/assistant/src/assistant_settings.rs b/crates/assistant/src/assistant_settings.rs index 07d87961ec..95b3927ca6 100644 --- a/crates/assistant/src/assistant_settings.rs +++ b/crates/assistant/src/assistant_settings.rs @@ -326,6 +326,14 @@ impl AssistantSettingsContent { *model = Some(new_model); } } + Some(AssistantProviderContent::Ollama { + default_model: model, + .. + }) => { + if let LanguageModel::Ollama(new_model) = new_model { + *model = Some(new_model); + } + } provider => match new_model { LanguageModel::Cloud(model) => { *provider = Some(AssistantProviderContent::ZedDotDev {