mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-05 08:07:05 +00:00
use is-not-None for clientside guard, clarify credential-not-found warning
This commit is contained in:
parent
e4aac594fb
commit
4ce7a644f6
1 changed files with 2 additions and 2 deletions
|
|
@ -1364,7 +1364,7 @@ def _apply_credential_overrides_from_model_config(
|
|||
6. Deployment default (no action needed)
|
||||
"""
|
||||
# Respect clientside credentials — highest precedence
|
||||
if data.get("api_base") or data.get("api_key"):
|
||||
if data.get("api_base") is not None or data.get("api_key") is not None:
|
||||
return
|
||||
|
||||
model_name = data.get("model")
|
||||
|
|
@ -1393,7 +1393,7 @@ def _apply_credential_overrides_from_model_config(
|
|||
credential_values = CredentialAccessor.get_credential_values(credential_name)
|
||||
if not credential_values:
|
||||
verbose_proxy_logger.warning(
|
||||
"model_config references credential '%s' but it was not found",
|
||||
"model_config references credential '%s' but it was not found or has no values",
|
||||
credential_name,
|
||||
)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue