diff --git a/internal/tui/components/dialogs/models/list.go b/internal/tui/components/dialogs/models/list.go index b3a088011df97ceb170d45ab19893356ea1369d0..cee7a782adb9a39ceb1485b58a5e1b0676a6026f 100644 --- a/internal/tui/components/dialogs/models/list.go +++ b/internal/tui/components/dialogs/models/list.go @@ -287,10 +287,16 @@ func (m *ModelListComponent) SetModelType(modelType int) tea.Cmd { } validRecentItems = append(validRecentItems, recent) recentID := fmt.Sprintf("recent::%s", key) + modelOption := option.Value() + providerName := modelOption.Provider.Name + if providerName == "" { + providerName = string(modelOption.Provider.ID) + } item := list.NewCompletionItem( - option.Text(), + modelOption.Model.Name, option.Value(), list.WithCompletionID(recentID), + list.WithCompletionShortcut(providerName), ) recentGroup.Items = append(recentGroup.Items, item) if recent.Model == currentModel.Model && recent.Provider == currentModel.Provider {