diff --git a/src/providers/provider-pool-manager.js b/src/providers/provider-pool-manager.js index 1663bb3..cfd3c91 100644 --- a/src/providers/provider-pool-manager.js +++ b/src/providers/provider-pool-manager.js @@ -1755,7 +1755,7 @@ export class ProviderPoolManager { /** * Performs scheduled health checks on all providers. * This method is designed to be called periodically to proactively check provider health. - * It respects provider-level isDisabled and checkHealth flags. + * It respects provider-level isDisabled flag. */ async performScheduledHealthChecks() { const scheduledConfig = this.globalConfig?.SCHEDULED_HEALTH_CHECK; @@ -1817,7 +1817,7 @@ export class ProviderPoolManager { const displayName = customName || uuid.substring(0, 8); try { - // Perform health check (forceCheck=true to bypass per-instance checkHealth flag) + // Perform health check (health check is based on providerTypes configuration, not per-provider checkHealth flag) const result = await this._checkProviderHealth(providerType, provider.config); const checkDuration = Date.now() - checkStartTime; diff --git a/src/ui-modules/provider-api.js b/src/ui-modules/provider-api.js index 83ed8f8..c820e60 100644 --- a/src/ui-modules/provider-api.js +++ b/src/ui-modules/provider-api.js @@ -698,7 +698,7 @@ export async function handleHealthCheck(req, res, currentConfig, providerPoolMan logger.info(`[UI API] Starting health check for ${unhealthyProviders.length} unhealthy providers in ${providerType} (total: ${providers.length})`); - // 执行健康检测(强制检查,忽略 checkHealth 配置) + // 执行健康检测(检查所有未禁用的 unhealthy providers) const results = []; for (const providerStatus of unhealthyProviders) { const providerConfig = providerStatus.config;