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
Update litellm/llms/azure_ai/rerank/transformation.py
Emerson Gomes92763a14a9e1
diff --git a/litellm/llms/azure_ai/rerank/transformation.py b/litellm/llms/azure_ai/rerank/transformation.pyindex 085f36f74b8..376f4608260 100644--- a/litellm/llms/azure_ai/rerank/transformation.py+++ b/litellm/llms/azure_ai/rerank/transformation.py@@ -38,8 +38,12 @@ class AzureAIRerankConfig(CohereRerankConfig):if normalized_path.endswith("/v1/rerank") or normalized_path.endswith("/v2/rerank"):return str(original_url.copy_with(path=normalized_path or "/"))- # If callers pass just the version path (e.g. ".../v2"), append "/rerank"- if normalized_path.endswith("/v1") or normalized_path.endswith("/v2"):+ # If callers pass just the version path (e.g. ".../v2" or ".../providers/cohere/v2"), append "/rerank"+ if (+ normalized_path.endswith("/v1")+ or normalized_path.endswith("/v2")+ or normalized_path.endswith("/providers/cohere/v2")+ ):return _add_path_to_api_base(api_base=str(original_url.copy_with(path=normalized_path or "/")),ending_path="/rerank",