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 <noreply@anthropic.com>
This commit is contained in:
DJP 2026-04-10 19:43:16 -04:00
parent ee3de41723
commit 2c7677b76f

View file

@ -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