rm not used class

This commit is contained in:
Lorenze Jay
2024-08-01 11:59:34 -07:00
parent 98d139f66c
commit 7d3e01bf1b
2 changed files with 1 additions and 8 deletions

View File

@@ -2,6 +2,7 @@ class LLMContextLengthExceededException(Exception):
CONTEXT_LIMIT_ERRORS = [
"maximum context length",
"context length exceeded",
"context_length_exceeded",
"context window full",
"too many tokens",
"input is too long",

View File

@@ -1,8 +0,0 @@
class ContextLengthExceeded(Exception):
def __init__(self, exceptions):
self.exceptions = exceptions
super().__init__(self.__str__())
def __str__(self):
error_messages = [str(e) for e in self.exceptions]
return f"Multiple BadRequestExceptions occurred: {', '.join(error_messages)}"