From d8f7322725ca6497dc1158aae9713c0145a9949d Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 31 Jul 2024 11:05:16 +0200 Subject: [PATCH] assistant panel: Show provider name in model selector (#15523) With zed.dev provider becoming more popular, it helps alleviate confusion when showing not only the model name but also the provider name. Release Notes: - N/A --- crates/assistant/src/assistant_panel.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/assistant/src/assistant_panel.rs b/crates/assistant/src/assistant_panel.rs index 3138f0257f..4a4646d3b8 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)