Commit ee32a39
committed
fix(attempt): omit reverse_translation_outputs from report when not used
Fixes #1201
`Attempt.as_dict()` unconditionally included a `reverse_translation_outputs`
key in the serialized dict, even when no translation was configured. This
polluted every `report.jsonl` entry with a spurious empty list.
The field is now only emitted when `self.reverse_translation_outputs` is
non-empty, keeping reports clean for the common non-translation case.
Signed-off-by: Varun Nuthalapati <nuthalapativarun@gmail.com>1 parent 2e9b3f5 commit ee32a39
2 files changed
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
295 | 301 | | |
296 | 302 | | |
297 | 303 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
| |||
0 commit comments