We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49b8c28 commit 7529a38Copy full SHA for 7529a38
src/together/utils/files.py
@@ -142,6 +142,18 @@ def _check_jsonl(file: Path) -> Dict[str, Any]:
142
error_source="format",
143
)
144
145
+ # Check that there are not extra columns
146
+ for column in json_line:
147
+ if (
148
+ column
149
+ not in JSONL_REQUIRED_COLUMNS_MAP[possible_format]
150
+ ):
151
+ raise InvalidFileFormatError(
152
+ message=f"Found extra column {column} in the line {idx + 1}.",
153
+ line_number=idx + 1,
154
+ error_source="format",
155
+ )
156
+
157
if current_format is None:
158
raise InvalidFileFormatError(
159
message=(
0 commit comments