mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 18:54:30 +00:00
add UnsupportedParamsError to litellm exceptions
This commit is contained in:
parent
11512c057d
commit
8ea4b73c27
1 changed files with 1 additions and 11 deletions
|
@ -129,6 +129,7 @@ from .exceptions import (
|
|||
ServiceUnavailableError,
|
||||
Timeout,
|
||||
UnprocessableEntityError,
|
||||
UnsupportedParamsError,
|
||||
)
|
||||
from .proxy._types import KeyManagementSystem
|
||||
from .types.llms.openai import (
|
||||
|
@ -225,17 +226,6 @@ last_fetched_at_keys = None
|
|||
# }
|
||||
|
||||
|
||||
class UnsupportedParamsError(Exception):
|
||||
def __init__(self, status_code, message):
|
||||
self.status_code = status_code
|
||||
self.message = message
|
||||
self.request = httpx.Request(method="POST", url=" https://openai.api.com/v1/")
|
||||
self.response = httpx.Response(status_code=status_code, request=self.request)
|
||||
super().__init__(
|
||||
self.message
|
||||
) # Call the base class constructor with the parameters it needs
|
||||
|
||||
|
||||
############################################################
|
||||
def print_verbose(
|
||||
print_statement,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue