diff --git a/litellm/constants.py b/litellm/constants.py index b2cac4702bc..705b56f7776 100644 --- a/litellm/constants.py +++ b/litellm/constants.py @@ -464,7 +464,6 @@ DD_TRACER_STREAMING_CHUNK_YIELD_RESOURCE: Final = os.getenv( LITELLM_HTTP_STATUS_CLIENT_DISCONNECTED: Final = 499 -LITELLM_LOGGING_CREDENTIAL_NAME_KEY: Final = "litellm_logging_credential_name" EMAIL_BUDGET_ALERT_TTL: Final = int(os.getenv("EMAIL_BUDGET_ALERT_TTL", 24 * 60 * 60)) # 24 hours in seconds EMAIL_BUDGET_ALERT_MAX_SPEND_ALERT_PERCENTAGE: Final = float( diff --git a/litellm/integrations/otel/presets/destinations.py b/litellm/integrations/otel/presets/destinations.py index b339262d6ce..db0e9bffa29 100644 --- a/litellm/integrations/otel/presets/destinations.py +++ b/litellm/integrations/otel/presets/destinations.py @@ -13,7 +13,6 @@ credential values only. import os from collections.abc import Callable, Mapping -from litellm.constants import LITELLM_LOGGING_CREDENTIAL_NAME_KEY from litellm.integrations.langfuse.langfuse_otel import ( LANGFUSE_CLOUD_US_ENDPOINT, LangfuseOtelLogger, @@ -21,8 +20,6 @@ from litellm.integrations.langfuse.langfuse_otel import ( from litellm.integrations.otel.model.destination import OtelDestination from litellm.integrations.weave.weave_otel import _get_weave_authorization_header -LOGGING_CREDENTIAL_NAME_KEY = LITELLM_LOGGING_CREDENTIAL_NAME_KEY - def _parse_header_string(raw: str) -> Mapping[str, str]: pairs = (item.split("=", 1) for item in raw.split(",") if "=" in item) diff --git a/litellm/proxy/credential_endpoints/endpoints.py b/litellm/proxy/credential_endpoints/endpoints.py index 93dc35973e0..ed0f73a5e73 100644 --- a/litellm/proxy/credential_endpoints/endpoints.py +++ b/litellm/proxy/credential_endpoints/endpoints.py @@ -287,8 +287,12 @@ def update_db_credential( merged_credential.credential_values.update(encrypted_params) + # update model info if encrypted_credential.credential_info: - merged_credential.credential_info = encrypted_credential.credential_info + """Update credential info""" + if "credential_info" not in merged_credential.credential_info: + merged_credential.credential_info = {} + merged_credential.credential_info.update(encrypted_credential.credential_info) return merged_credential