Skip to content

Commit

Permalink
adding content keys
Browse files Browse the repository at this point in the history
  • Loading branch information
gupta-abhay committed Aug 19, 2024
1 parent b81af3a commit 1bd5861
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llmfoundry/utils/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'ALLOWED_RESPONSE_KEYS',
'ALLOWED_PROMPT_KEYS',
'ALLOWED_MESSAGES_KEYS',
'ALLOWED_CONTENT_KEYS',
'MissingHuggingFaceURLSplitError',
'NotEnoughDatasetSamplesError',
'UnknownExampleTypeError',
Expand Down Expand Up @@ -35,6 +36,7 @@
ALLOWED_RESPONSE_KEYS = {'response', 'completion'}
ALLOWED_PROMPT_KEYS = {'prompt'}
ALLOWED_MESSAGES_KEYS = {'messages'}
ALLOWED_CONTENT_KEYS = {'content'}

FailureLocation = Union[Literal['TrainDataloader'], Literal['EvalDataloader']]
FailureAttribution = Union[Literal['UserError'], Literal['InternalError'],
Expand Down

0 comments on commit 1bd5861

Please sign in to comment.