From b60361fca1e5a445fbb74bf0d88688141c43384e Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Mon, 9 Sep 2024 16:20:47 -0700 Subject: [PATCH] fix otel test --- litellm/proxy/common_utils/callback_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)