Merge pull request #532 from touwaeriol/fix/clear-model-rate-limits

fix: support clearing model-level rate limits from action menu and temp-unsched reset
This commit is contained in:
Wesley Liddick
2026-02-09 20:52:44 +08:00
committed by GitHub
2 changed files with 17 additions and 1 deletions

View File

@@ -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
}