mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
9 lines
322 B
Python
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)
|