The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
check for typeddict
mubashir1osmanib3fea9e983f0
diff --git a/litellm/integrations/arize/arize_phoenix.py b/litellm/integrations/arize/arize_phoenix.pyindex 33f858cc421..93b5be6b1b9 100644--- a/litellm/integrations/arize/arize_phoenix.py+++ b/litellm/integrations/arize/arize_phoenix.py@@ -106,7 +106,7 @@ class ArizePhoenixLogger(OpenTelemetry):traces to different Phoenix projects dynamically."""standard_logging_payload = kwargs.get("standard_logging_object")- if standard_logging_payload is not None:+ if isinstance(standard_logging_payload, dict):metadata = standard_logging_payload.get("metadata")if isinstance(metadata, dict):project_name = metadata.get("phoenix_project_name")@@ -114,8 +114,11 @@ class ArizePhoenixLogger(OpenTelemetry):return str(project_name)# Also check litellm_params.metadata for SDK usage- litellm_params = kwargs.get("litellm_params") or {}- metadata = litellm_params.get("metadata") or {}+ litellm_params = kwargs.get("litellm_params")+ if isinstance(litellm_params, dict):+ metadata = litellm_params.get("metadata") or {}+ else:+ metadata = {}if isinstance(metadata, dict):project_name = metadata.get("phoenix_project_name")if project_name: