Keep embedding retry on GCP when 111 fallback disabled
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
All checks were successful
CD Pipeline / deploy (push) Successful in 1m5s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user