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 install on 3.8
Ishaan Jaff37ed201c5077
diff --git a/litellm/llms/cohere/rerank.py b/litellm/llms/cohere/rerank.pyindex 4ef523e3a14..a2a7476df87 100644--- a/litellm/llms/cohere/rerank.py+++ b/litellm/llms/cohere/rerank.py@@ -23,7 +23,7 @@ class CohereRerank(BaseLLM):model: str,api_key: str,query: str,- documents: list[Union[str, Dict[str, Any]]],+ documents: List[Union[str, Dict[str, Any]]],top_n: Optional[int] = None,rank_fields: Optional[List[str]] = None,return_documents: Optional[bool] = True,diff --git a/litellm/llms/togetherai/rerank.py b/litellm/llms/togetherai/rerank.pyindex 32a8cdcfdc6..5d905071c36 100644--- a/litellm/llms/togetherai/rerank.py+++ b/litellm/llms/togetherai/rerank.py@@ -23,7 +23,7 @@ class TogetherAIRerank(BaseLLM):model: str,api_key: str,query: str,- documents: list[Union[str, Dict[str, Any]]],+ documents: List[Union[str, Dict[str, Any]]],top_n: Optional[int] = None,rank_fields: Optional[List[str]] = None,return_documents: Optional[bool] = True,