fix: support clearing model-level rate limits from action menu and temp-unsched reset

This commit is contained in:
erio committed 2026-02-09 20:08:00 +08:00
1 parent 3e3c015efa
commit 7e4637cd70
2 files changed
+17 -1

No files matched your search

@@ -623,6 +623,10 @@ func (s *RateLimitService) ClearTempUnschedulable(ctx context.Context, accountID
slog.Warn("temp_unsched_cache_delete_failed", "account_id", accountID, "error", err)
}
}
// 同时清除模型级别限流
if err := s.accountRepo.ClearModelRateLimits(ctx, accountID); err != nil {
slog.Warn("clear_model_rate_limits_on_temp_unsched_reset_failed", "account_id", accountID, "error", err)
}
return nil
}