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
1 changed files with 7 additions and 1 deletions
|
@ -2787,7 +2787,13 @@ impl Render for ContextEditorToolbarItem {
|
||||||
Label::new(
|
Label::new(
|
||||||
LanguageModelRegistry::read_global(cx)
|
LanguageModelRegistry::read_global(cx)
|
||||||
.active_model()
|
.active_model()
|
||||||
.map(|model| model.name().0)
|
.map(|model| {
|
||||||
|
format!(
|
||||||
|
"{}: {}",
|
||||||
|
model.provider_name().0,
|
||||||
|
model.name().0
|
||||||
|
)
|
||||||
|
})
|
||||||
.unwrap_or_else(|| "No model selected".into()),
|
.unwrap_or_else(|| "No model selected".into()),
|
||||||
)
|
)
|
||||||
.size(LabelSize::Small)
|
.size(LabelSize::Small)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue