This commit is contained in:
@@ -229,7 +229,7 @@ class CodeReviewPipeline:
|
||||
|
||||
# ADR-027 Phase 2 N3:lazy resolve Hermes 主機(GCP 優先 / 111 備援),
|
||||
# 避開 import-time freeze。Phase 53:改用 services.ollama_service.get_provider_tag
|
||||
# 統一函式,支援 K8s Nginx Proxy(110:11435/11436)。
|
||||
# 統一函式,支援 110 Nginx Proxy(11435/11436)。
|
||||
hermes_url = get_hermes_url()
|
||||
from services.ollama_service import get_provider_tag
|
||||
provider_tag = get_provider_tag(hermes_url)
|
||||
|
||||
@@ -167,7 +167,7 @@ def resolve_ollama_host(primary: str = OLLAMA_HOST_PRIMARY,
|
||||
def get_host_label(host: str) -> str:
|
||||
"""將 IP/URL 轉換為易讀的主機標籤
|
||||
|
||||
Phase 53:支援 K8s 環境的 Nginx Proxy(110:11435/11436 → GCP)。
|
||||
Phase 53:支援 110 Nginx Proxy(11435/11436 → GCP)。
|
||||
判斷順序:直連 GCP IP > Nginx 轉發 port > 內網 IP > 本地。
|
||||
"""
|
||||
if not host:
|
||||
@@ -177,7 +177,7 @@ def get_host_label(host: str) -> str:
|
||||
return "GCP-SSD"
|
||||
if "34.21.145.224" in host:
|
||||
return "GCP-SSD-2"
|
||||
# Nginx Proxy 轉發(K8s 環境,110 跳板代理 GCP)
|
||||
# Nginx Proxy 轉發(110 跳板代理 GCP)
|
||||
if "192.168.0.110:11435" in host:
|
||||
return "GCP-SSD(via Nginx 110)"
|
||||
if "192.168.0.110:11436" in host:
|
||||
|
||||
Reference in New Issue
Block a user