mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
rm not used class
This commit is contained in:
@@ -2,6 +2,7 @@ class LLMContextLengthExceededException(Exception):
|
|||||||
CONTEXT_LIMIT_ERRORS = [
|
CONTEXT_LIMIT_ERRORS = [
|
||||||
"maximum context length",
|
"maximum context length",
|
||||||
"context length exceeded",
|
"context length exceeded",
|
||||||
|
"context_length_exceeded",
|
||||||
"context window full",
|
"context window full",
|
||||||
"too many tokens",
|
"too many tokens",
|
||||||
"input is too long",
|
"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