Add configurable LLM gateway with ordered failover and durable retries
This commit is contained in:
1 parent
50b9d6e021
commit
b2b77c7723
22 files changed
+1413
-2
No files matched your search
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user