fix(ai): keep openclaw before gemini in alert fallback
This commit is contained in:
@@ -262,6 +262,14 @@ class OpenClawService:
|
||||
cloud_aliases.get(provider_name, provider_name)
|
||||
for provider_name in (cloud_provider_order or [])
|
||||
}
|
||||
try:
|
||||
from src.services.ai_control import is_provider_disabled
|
||||
if await is_provider_disabled("openclaw_nemo"):
|
||||
cloud_candidates.discard("openclaw_nemo")
|
||||
else:
|
||||
cloud_candidates.add("openclaw_nemo")
|
||||
except Exception as control_error:
|
||||
logger.warning("alert_openclaw_nemo_control_check_failed", error=str(control_error))
|
||||
# Gemini remains the final paid backup, but alert traffic should use
|
||||
# OpenClaw/Nemo first whenever the router control plane has not disabled it.
|
||||
cloud_candidates.add("gemini")
|
||||
|
||||
Reference in New Issue
Block a user