feat: add pricing page

This commit is contained in:
CaIon
2024-05-13 23:02:35 +08:00
parent 9d3cd2e1f0
commit 97acc9e5c4
16 changed files with 481 additions and 68 deletions
+7
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"