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
style: apply black formatting to opentelemetry.py
Aneesh-Fiddlere70b0c97a4c8
diff --git a/litellm/integrations/opentelemetry.py b/litellm/integrations/opentelemetry.pyindex b26850657d3..664aeadc7c2 100644--- a/litellm/integrations/opentelemetry.py+++ b/litellm/integrations/opentelemetry.py@@ -1770,10 +1770,8 @@ class OpenTelemetry(CustomLogger):# list instead of "choices". Each item with# type="message" contains a "content" list of# OutputText objects (type="output_text").- output_messages = (- self._transform_responses_api_output_to_otel(- response_obj.get("output")- )+ output_messages = self._transform_responses_api_output_to_otel(+ response_obj.get("output"))if output_messages:self.safe_set_attribute(@@ -1886,9 +1884,7 @@ class OpenTelemetry(CustomLogger):transformed.append(transformed_msg)return transformed- def _transform_responses_api_output_to_otel(- self, output: List[dict]- ) -> List[dict]:+ def _transform_responses_api_output_to_otel(self, output: List[dict]) -> List[dict]:"""Transform Responses API output items into OTEL GenAI 1.38 format.