mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
all fixes to linting
This commit is contained in:
parent
5e7d22512d
commit
1bb2aefea1
8 changed files with 44 additions and 34 deletions
|
@ -8,7 +8,7 @@ from openai.error import (
|
|||
)
|
||||
|
||||
|
||||
class AuthenticationError(AuthenticationError): # type: ignore
|
||||
class AuthenticationError(AuthenticationError): # type: ignore
|
||||
def __init__(self, message, llm_provider):
|
||||
self.status_code = 401
|
||||
self.message = message
|
||||
|
@ -18,7 +18,7 @@ class AuthenticationError(AuthenticationError): # type: ignore
|
|||
) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
class InvalidRequestError(InvalidRequestError): # type: ignore
|
||||
class InvalidRequestError(InvalidRequestError): # type: ignore
|
||||
def __init__(self, message, model, llm_provider):
|
||||
self.status_code = 400
|
||||
self.message = message
|
||||
|
@ -29,7 +29,7 @@ class InvalidRequestError(InvalidRequestError): # type: ignore
|
|||
) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
class RateLimitError(RateLimitError): # type: ignore
|
||||
class RateLimitError(RateLimitError): # type: ignore
|
||||
def __init__(self, message, llm_provider):
|
||||
self.status_code = 429
|
||||
self.message = message
|
||||
|
@ -39,7 +39,7 @@ class RateLimitError(RateLimitError): # type: ignore
|
|||
) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
class ServiceUnavailableError(ServiceUnavailableError): # type: ignore
|
||||
class ServiceUnavailableError(ServiceUnavailableError): # type: ignore
|
||||
def __init__(self, message, llm_provider):
|
||||
self.status_code = 500
|
||||
self.message = message
|
||||
|
@ -49,7 +49,7 @@ class ServiceUnavailableError(ServiceUnavailableError): # type: ignore
|
|||
) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
class OpenAIError(OpenAIError): # type: ignore
|
||||
class OpenAIError(OpenAIError): # type: ignore
|
||||
def __init__(self, original_exception):
|
||||
self.status_code = original_exception.http_status
|
||||
super().__init__(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue