Add configurable LLM gateway with ordered failover and durable retries

This commit is contained in:
Nico committed 2026-10-13 21:15:11 +02:00
1 parent 50b9d6e021
commit b2b77c7723
22 files changed
+1413 -2

No files matched your search

+7
View File
@@ -84,6 +84,13 @@ class CaseAssembler:
prior_refs = []
for _, checkpoint in reversed(chain):
details = checkpoint["details"]
if details.get("operation") == "llm-round":
for field in ("request_ref", "result_ref"):
ref = details.get(field)
if not isinstance(ref, str) or not ref.startswith("llm/operations/"):
raise CaseBuildError("PREVIOUS_CASE", "Invalid LLM artifact checkpoint")
require_file(reader, ref)
excluded.add(ref)
if details.get("operation") == "case-built" and details.get("builder_version") == "1":
for field in ("case_ref", "summary_ref"):
if not isinstance(details.get(field), str):