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:
parent
ee3de41723
commit
2c7677b76f
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue