mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-25 10:44:24 +00:00
fix(databricks/chat/transformation.py): handle empty headers case
This commit is contained in:
parent
a771d17794
commit
af9db827fc
2 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ class DatabricksBase:
|
|||
custom_endpoint: Optional[bool],
|
||||
headers: Optional[dict],
|
||||
) -> Tuple[str, dict]:
|
||||
if api_key is None and headers is None:
|
||||
if api_key is None and not headers: # handle empty headers
|
||||
if custom_endpoint is not None:
|
||||
raise DatabricksException(
|
||||
status_code=400,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue