feat: add pricing page

This commit is contained in:
CaIon
2024-05-13 23:02:35 +08:00
parent 21839ed13b
commit 5715fcf8fb
16 changed files with 481 additions and 68 deletions

View File

@@ -29,6 +29,13 @@ func GetGroupModels(group string) []string {
return models
}
func GetEnabledModels() []string {
var models []string
// Find distinct models
DB.Table("abilities").Where("enabled = ?", true).Distinct("model").Pluck("model", &models)
return models
}
func getPriority(group string, model string, retry int) (int, error) {
groupCol := "`group`"
trueVal := "1"