fix(failover): 補 OllamaRoutingResult.health_188 optional 欄位(merge conflict 遺漏)
Some checks failed
CD Pipeline / build-and-deploy (push) Has been cancelled

stash pop 時 --theirs 覆蓋掉了 health_188 dataclass 欄位定義,
導致 to_dict() 拋出 AttributeError(health_188 只在方法內引用)。
補上 health_188: HealthReport | None = None,37 failover tests 

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Your Name
2026-04-27 20:04:49 +08:00
parent 877c2651bf
commit 277808758d
2 changed files with 1 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ class OllamaRoutingResult:
fallback_chain: list[OllamaEndpoint]
routing_reason: str
health_111: HealthReport
health_188: HealthReport | None = None # optional backward-compat188 不在路由鏈時為 None
def all_endpoints_in_order(self) -> list[OllamaEndpoint]:
"""返回完整的優先序端點列表primary 在前)"""