Keep embedding retry on GCP when 111 fallback disabled
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s

This commit is contained in:
OoO
2026-05-25 09:59:00 +08:00
parent f3a199434f
commit 3fd349c830
7 changed files with 44 additions and 5 deletions

View File

@@ -1056,8 +1056,15 @@ class OllamaService:
logger.warning("[Embed] 111 fallback disabled; ignoring EMBEDDING_HOST=%s", configured_host)
target_host = resolve_ollama_host().rstrip("/")
if not allow_111_fallback and _is_111_fallback_host(target_host):
logger.warning("[Embed] 111 fallback disabled; no approved GCP embedding host available")
break
next_host = next((candidate for candidate in allowed_hosts if candidate not in attempted_hosts), None)
if not next_host:
logger.warning("[Embed] 111 fallback disabled; no approved GCP embedding host available")
break
logger.warning(
"[Embed] 111 fallback disabled; forcing approved GCP embedding host=%s",
next_host,
)
target_host = next_host
if target_host in attempted_hosts:
next_host = None
if target_host in allowed_hosts: