diff --git a/hermes_cli/doctor.py b/hermes_cli/doctor.py index 61381502511..df75ac68664 100644 --- a/hermes_cli/doctor.py +++ b/hermes_cli/doctor.py @@ -777,7 +777,33 @@ def run_doctor(args): except Exception: pass + _section("xAI Model Retirement (May 15, 2026)") + + try: + from hermes_cli.config import load_config + from hermes_cli.xai_retirement import ( + MIGRATION_GUIDE_URL, + find_retired_xai_refs, + format_issue, + ) + + _xai_cfg = load_config() + retired_refs = find_retired_xai_refs(_xai_cfg) + if not retired_refs: + check_ok("No retired xAI models in config") + else: + for ref in retired_refs: + check_warn(format_issue(ref)) + check_info(f"Migration guide: {MIGRATION_GUIDE_URL}") + manual_issues.append( + f"Update {len(retired_refs)} retired xAI model reference(s) " + f"in config.yaml — see {MIGRATION_GUIDE_URL}" + ) + except Exception as _xai_check_err: + check_warn("xAI retirement check skipped", f"({_xai_check_err})") + _section("Auth Providers") + try: from hermes_cli.auth import ( get_nous_auth_status,