mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
feat(azure.py): add azure bad request error support
This commit is contained in:
parent
c71af5b92e
commit
5d1b5f94c6
5 changed files with 49 additions and 34 deletions
|
@ -17,6 +17,7 @@ class AzureOpenAIError(BaseLLMException):
|
|||
request: Optional[httpx.Request] = None,
|
||||
response: Optional[httpx.Response] = None,
|
||||
headers: Optional[Union[httpx.Headers, dict]] = None,
|
||||
body: Optional[dict] = None,
|
||||
):
|
||||
super().__init__(
|
||||
status_code=status_code,
|
||||
|
@ -24,6 +25,7 @@ class AzureOpenAIError(BaseLLMException):
|
|||
request=request,
|
||||
response=response,
|
||||
headers=headers,
|
||||
body=body,
|
||||
)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue