forked from phoenix/litellm-mirror
fix(databricks.py): fix error handling
This commit is contained in:
parent
1affd4e2ca
commit
2a7ed84a23
1 changed files with 1 additions and 1 deletions
|
@ -333,7 +333,7 @@ class DatabricksChatCompletion(BaseLLM):
|
|||
except httpx.HTTPStatusError as e:
|
||||
raise DatabricksError(
|
||||
status_code=e.response.status_code,
|
||||
message=response.text if response else str(e),
|
||||
message=e.response.text,
|
||||
)
|
||||
except httpx.TimeoutException as e:
|
||||
raise DatabricksError(status_code=408, message="Timeout error occurred.")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue