Skip to content

Commit 64578e9

Browse files
Update graphgen/bases/base_generator.py
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 2a87d57 commit 64578e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

graphgen/bases/base_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,15 @@ def format_generation_results(
7777
}
7878
)
7979
elif output_data_format == "ChatML":
80-
results.append(
80+
flat_results.append(
8181
{
8282
"messages": [
8383
{"role": "user", "content": question},
8484
{"role": "assistant", "content": answer},
8585
]
8686
}
8787
)
88+
)
8889
else:
8990
raise ValueError(
9091
f"Unknown output data format: {output_data_format}"

0 commit comments

Comments
 (0)