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

This commit is contained in:
erio
2026-02-09 20:08:00 +08:00
parent 7d66f7ff0d
commit 4a84ca9a02
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
}