From 2c7677b76f61dca11e4c2e2dbb4f46a4b4e675b7 Mon Sep 17 00:00:00 2001 From: DJP Date: Fri, 10 Apr 2026 19:43:16 -0400 Subject: [PATCH] Fix tm_entries_cited type mismatch: accept list or dict The pipeline stores tm_entries_cited as a list[str] of seg_keys, but the Pydantic response schema expected dict[str, Any], causing a validation error when loading the output preview page. Co-Authored-By: Claude Opus 4.6 --- backend/app/schemas/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/schemas/output.py b/backend/app/schemas/output.py index 35f5ebd..1595372 100644 --- a/backend/app/schemas/output.py +++ b/backend/app/schemas/output.py @@ -33,7 +33,7 @@ class OutputRowResponse(BaseModel): option_3: str | None = None backtranslation_3: str | None = None rationale_3: str | None = None - tm_entries_cited: dict[str, Any] | None = None + tm_entries_cited: list[str] | dict[str, Any] | None = None winning_seg_key: str | None = None character_count_option_1: int | None = None character_count_option_2: int | None = None