Skip to content

Commit 9bc209b

Browse files
authored
fix(welcome): stable model list (#1949)
1 parent 84e0dc3 commit 9bc209b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

core/config/backend_config.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"math/rand"
88
"os"
99
"path/filepath"
10+
"sort"
1011
"strings"
1112
"sync"
1213

@@ -455,6 +456,11 @@ func (cl *BackendConfigLoader) GetAllBackendConfigs() []BackendConfig {
455456
for _, v := range cl.configs {
456457
res = append(res, v)
457458
}
459+
460+
sort.SliceStable(res, func(i, j int) bool {
461+
return res[i].Name < res[j].Name
462+
})
463+
458464
return res
459465
}
460466

0 commit comments

Comments
 (0)