Skip to content

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]

fix(otel v2): drop the redundant _ocr_choices docstring

yucheng5a63c932a4fa
diff --git a/litellm/integrations/otel/model/payloads.py b/litellm/integrations/otel/model/payloads.py
index 3164e0977b7..d3ad7234d93 100644
--- a/litellm/integrations/otel/model/payloads.py
+++ b/litellm/integrations/otel/model/payloads.py
@@ -753,7 +753,6 @@ def _responses_choices(response: Mapping[str, object]) -> tuple[_Choice, ...]:
def _ocr_choices(response: Mapping[str, object]) -> tuple[_Choice, ...]:
- """An ``OCRResponse`` ``pages`` list folded into one chat-shaped assistant choice."""
markdowns: Final = tuple(
text for page in _dicts(response.get("pages")) if (text := as_str(page.get("markdown"))) is not None
)