Skip to content

Commit 5a26ef7

Browse files
committed
no nul lvalues
1 parent 889ffd9 commit 5a26ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eval_protocol/cli_commands/create_rft.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _maybe_transform_dataset_jsonl_via_adapter(
103103
dir=output_dir,
104104
) as f:
105105
for row in eval_rows:
106-
f.write(json.dumps(row.model_dump(mode="json"), ensure_ascii=False) + "\n")
106+
f.write(json.dumps(row.model_dump(mode="json", exclude_none=True), ensure_ascii=False) + "\n")
107107
out_path = os.path.abspath(f.name)
108108
try:
109109
rel = os.path.relpath(out_path, project_root)

0 commit comments

Comments
 (0)