mirror of
https://github.com/kennethreitz/instructor.git
synced 2026-06-05 22:50:18 +00:00
10 lines
346 B
Python
10 lines
346 B
Python
class IncompleteOutputException(Exception):
|
|
"""Exception raised when the output from LLM is incomplete due to max tokens limit reached."""
|
|
|
|
def __init__(
|
|
self,
|
|
message: str = "The output is incomplete due to a max_tokens length limit.",
|
|
) -> None:
|
|
self.message = message
|
|
super().__init__(self.message)
|