mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
fix(router): add warning log and cleanup for credential resolution
- Add warning when credential name is not found in credential_list - Remove litellm_credential_name from credentials dict after resolution Addresses Greptile bot review comments on PR #21502
This commit is contained in:
parent
d477ddf591
commit
83c88d5ab1
1 changed files with 6 additions and 0 deletions
|
|
@ -6755,7 +6755,13 @@ class Router:
|
|||
credential_values = CredentialAccessor.get_credential_values(
|
||||
deployment.litellm_params.litellm_credential_name
|
||||
)
|
||||
if not credential_values:
|
||||
verbose_router_logger.warning(
|
||||
f"Credential '{deployment.litellm_params.litellm_credential_name}' not found in credential_list"
|
||||
)
|
||||
credentials.update(credential_values)
|
||||
# Remove the credential name since we've resolved it
|
||||
credentials.pop("litellm_credential_name", None)
|
||||
|
||||
# Add custom_llm_provider
|
||||
if deployment.litellm_params.custom_llm_provider:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue