diff --git a/ai.go b/ai.go index 6be9ac0..e138fb5 100644 --- a/ai.go +++ b/ai.go @@ -20,6 +20,7 @@ import ( "regexp" "runtime" "runtime/debug" + "sort" "strings" ) @@ -261,6 +262,7 @@ func getAvailableModels() ([]string, error) { for _, model := range modelList.Models { models = append(models, model.ID) } + sort.Strings(models) return models, nil } func main() {