Skip to content

Commit f11307e

Browse files
committed
fix tests
1 parent dfea707 commit f11307e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/together/utils/files.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ def _check_conversation_type(messages: List[Dict[str, str | bool]], idx: int) ->
140140
for column in REQUIRED_COLUMNS_MESSAGE:
141141
if column not in message:
142142
raise InvalidFileFormatError(
143-
message=f"Missing required column '{column}' in message on line {idx + 1}.",
143+
message=f"Missing required column `{column}` in message on line {idx + 1}.",
144144
line_number=idx + 1,
145145
error_source="key_value",
146146
)
147147
if not isinstance(message[column], str):
148148
raise InvalidFileFormatError(
149-
message=f"Column '{column}' is not a string on line {idx + 1}. Found {type(message[column])}",
149+
message=f"Column `{column}` is not a string on line {idx + 1}. Found {type(message[column])}",
150150
line_number=idx + 1,
151151
error_source="text_field",
152152
)
@@ -218,7 +218,7 @@ def _check_message_role(
218218
"""
219219
if message["role"] not in POSSIBLE_ROLES_CONVERSATION:
220220
raise InvalidFileFormatError(
221-
message=f"Invalid role {message['role']} in conversation on line {idx + 1}. "
221+
message=f"Invalid role `{message['role']}` in conversation on line {idx + 1}. "
222222
f"Possible roles: {', '.join(POSSIBLE_ROLES_CONVERSATION)}",
223223
line_number=idx + 1,
224224
error_source="key_value",

0 commit comments

Comments
 (0)