diff --git a/litellm/proxy/common_utils/callback_utils.py b/litellm/proxy/common_utils/callback_utils.py index 4d0fd23030..2dd28c1f5f 100644 --- a/litellm/proxy/common_utils/callback_utils.py +++ b/litellm/proxy/common_utils/callback_utils.py @@ -35,7 +35,7 @@ def initialize_callbacks_on_proxy( from litellm.proxy import proxy_server _otel_settings = {} - if "otel" in callback_settings: + if isinstance(callback_settings, dict) and "otel" in callback_settings: _otel_settings = callback_settings["otel"] open_telemetry_logger = OpenTelemetry(**_otel_settings)