mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
refactor(azure.py): working azure completion calls with openai v1 sdk
This commit is contained in:
parent
d0bd932b3c
commit
39c2597c33
9 changed files with 70 additions and 58 deletions
|
@ -249,7 +249,7 @@ class OpenAIChatCompletion(BaseLLM):
|
|||
response = await client.post(api_base, json=data, headers=headers)
|
||||
response_json = response.json()
|
||||
if response.status_code != 200:
|
||||
raise OpenAIError(status_code=response.status_code, message=response.text)
|
||||
raise OpenAIError(status_code=response.status_code, message=response.text, request=response.request, response=response)
|
||||
|
||||
|
||||
## RESPONSE OBJECT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue