Files
instructor/instructor/exceptions.py
T
2023-12-15 11:10:23 -05:00

9 lines
322 B
Python

class IncompleteOutputException(Exception):
"""Exception raised when the output from LLM is incomplete due to max tokens limit reached."""
def __init__(
self, message="The output is incomplete due to a max_tokens length limit."
):
self.message = message
super().__init__(self.message)