forked from phoenix/litellm-mirror
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,
|
ServiceUnavailableError,
|
||||||
Timeout,
|
Timeout,
|
||||||
UnprocessableEntityError,
|
UnprocessableEntityError,
|
||||||
|
UnsupportedParamsError,
|
||||||
)
|
)
|
||||||
from .proxy._types import KeyManagementSystem
|
from .proxy._types import KeyManagementSystem
|
||||||
from .types.llms.openai import (
|
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(
|
def print_verbose(
|
||||||
print_statement,
|
print_statement,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue