From 4e2a871adbfeae4afb462b98cc8504aaa0781eb5 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 9 Sep 2026 18:24:17 +0530 Subject: [PATCH] fix(models): clear probe negative-cache entry on a successful probe --- hermes_cli/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hermes_cli/models.py b/hermes_cli/models.py index ab83fe7272..c082e776b7 100644 --- a/hermes_cli/models.py +++ b/hermes_cli/models.py @@ -2256,6 +2256,8 @@ def probe_api_models( data = _get_json(url, timeout=timeout, headers=headers, **_open_kwargs) except Exception: continue + if _neg_key is not None: + _probe_neg_cache.pop(_neg_key, None) return _probe_result( [m.get("id", "") for m in data.get("data", [])], url, candidate_base.rstrip("/"), alternate_base if alternate_base != candidate_base else normalized, is_fallback)