mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-08 07:35:01 +03:00
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
This commit is contained in:
parent
8e6af73784
commit
d8f7322725
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user