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 cohere rerank provider (#10822)
Bryan Low8a880ccd2f07
diff --git a/litellm/utils.py b/litellm/utils.pyindex be5a526c49c..d2cf36f24cc 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -6489,7 +6489,10 @@ class ProviderConfigManager:api_base: Optional[str],present_version_params: List[str],) -> BaseRerankConfig:- if litellm.LlmProviders.COHERE == provider:+ if (+ litellm.LlmProviders.COHERE == provider+ or litellm.LlmProviders.COHERE_CHAT == provider+ ):if should_use_cohere_v1_client(api_base, present_version_params):return litellm.CohereRerankConfig()else: