cmd/tui: improve model picker UX (#14209)

This commit is contained in:
Parth Sareen
2026-02-11 14:36:54 -08:00
committed by GitHub
parent 0aaf6119ec
commit 77ba9404ac
7 changed files with 586 additions and 110 deletions

View File

@@ -160,6 +160,15 @@ func IntegrationModel(appName string) string {
return ic.Models[0]
}
// IntegrationModels returns all configured models for an integration, or nil.
func IntegrationModels(appName string) []string {
ic, err := loadIntegration(appName)
if err != nil || len(ic.Models) == 0 {
return nil
}
return ic.Models
}
// LastModel returns the last model that was run, or empty string if none.
func LastModel() string {
cfg, err := load()