mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
rm not used class
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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)}"
|
||||
Reference in New Issue
Block a user