Skip to content

Commit

Permalink
feat: Sort available models alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
boukeversteegh committed Sep 13, 2024
1 parent e3b1ef5 commit ac3e524
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ai.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"regexp"
"runtime"
"runtime/debug"
"sort"
"strings"
)

Expand Down Expand Up @@ -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() {
Expand Down

0 comments on commit ac3e524

Please sign in to comment.