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
fix(azure-ocr): reject mixed bool+int in pages list validation
shivam089ca5fc0f00
diff --git a/litellm/llms/azure_ai/ocr/document_intelligence/transformation.py b/litellm/llms/azure_ai/ocr/document_intelligence/transformation.pyindex f2888b1cd2e..7eb47b03b48 100644--- a/litellm/llms/azure_ai/ocr/document_intelligence/transformation.py+++ b/litellm/llms/azure_ai/ocr/document_intelligence/transformation.py@@ -113,7 +113,7 @@ class AzureDocumentIntelligenceOCRConfig(BaseOCRConfig):if isinstance(pages, list):if len(pages) == 0:return ""- if all(isinstance(p, bool) for p in pages):+ if any(isinstance(p, bool) for p in pages):raise ValueError("`pages` must be integers, not booleans")if all(isinstance(p, int) for p in pages):if any(p < 0 for p in pages):