Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
assistant panel: Show provider name in model selector (#15523)
Thorsten Balld8f7322725ca
diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rsindex 3138f0257ff..4a4646d3b8d 100644--- a/crates/assistant/src/assistant_panel.rs+++ b/crates/assistant/src/assistant_panel.rs@@ -2787,7 +2787,13 @@ impl Render for ContextEditorToolbarItem {Label::new(LanguageModelRegistry::read_global(cx).active_model()- .map(|model| model.name().0)+ .map(|model| {+ format!(+ "{}: {}",+ model.provider_name().0,+ model.name().0+ )+ }).unwrap_or_else(|| "No model selected".into()),).size(LabelSize::Small)