chore: commit pending gateway changes

This commit is contained in:
2026-05-10 22:34:15 +08:00
parent 53f8edfb67
commit d59756a27c
71 changed files with 15106 additions and 656 deletions
+7
View File
@@ -159,6 +159,13 @@ RETURNING `+pricingRuleSetColumns,
}
func (s *Store) DeletePricingRuleSet(ctx context.Context, id string) error {
var ruleSetKey string
if err := s.pool.QueryRow(ctx, `SELECT rule_set_key FROM model_pricing_rule_sets WHERE id = $1::uuid`, id).Scan(&ruleSetKey); err != nil {
return err
}
if ruleSetKey == "default-multimodal-v1" {
return ErrProtectedDefault
}
result, err := s.pool.Exec(ctx, `DELETE FROM model_pricing_rule_sets WHERE id = $1::uuid`, id)
if err != nil {
return err