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
refactor - use consistent file naming convention `AI21/` -> `ai21` (#7090)
Ishaan Jaff7d4a1cb4e2ed
diff --git a/litellm/__init__.py b/litellm/__init__.pyindex 6427206f1a0..8101e1a4991 100644--- a/litellm/__init__.py+++ b/litellm/__init__.py@@ -1065,8 +1065,8 @@ from .llms.predibase import PredibaseConfigfrom .llms.replicate import ReplicateConfigfrom .llms.cohere.completion import CohereConfigfrom .llms.clarifai import ClarifaiConfig-from .llms.AI21.completion import AI21Config-from .llms.AI21.chat import AI21ChatConfig+from .llms.ai21.completion import AI21Config+from .llms.ai21.chat import AI21ChatConfigfrom .llms.together_ai.chat import TogetherAIConfigfrom .llms.cloudflare import CloudflareConfigfrom .llms.palm import PalmConfig@@ -1158,7 +1158,7 @@ nvidiaNimEmbeddingConfig = NvidiaNimEmbeddingConfig()from .llms.cerebras.chat import CerebrasConfigfrom .llms.sambanova.chat import SambanovaConfig-from .llms.AI21.chat import AI21ChatConfig+from .llms.ai21.chat import AI21ChatConfigfrom .llms.fireworks_ai.chat.fireworks_ai_transformation import FireworksAIConfigfrom .llms.fireworks_ai.embed.fireworks_ai_transformation import (FireworksAIEmbeddingConfig,diff --git a/litellm/llms/AI21/chat.py b/litellm/llms/ai21/chat.pysimilarity index 100%rename from litellm/llms/AI21/chat.pyrename to litellm/llms/ai21/chat.pydiff --git a/litellm/llms/AI21/completion.py b/litellm/llms/ai21/completion.pysimilarity index 100%rename from litellm/llms/AI21/completion.pyrename to litellm/llms/ai21/completion.pydiff --git a/litellm/main.py b/litellm/main.pyindex 17e018c056d..3a8159c3f5d 100644--- a/litellm/main.py+++ b/litellm/main.py@@ -99,7 +99,7 @@ from .llms import (replicate,vllm,)-from .llms.AI21 import completion as ai21+from .llms.ai21 import completion as ai21from .llms.anthropic.chat import AnthropicChatCompletionfrom .llms.anthropic.completion import AnthropicTextCompletionfrom .llms.azure_ai.chat import AzureAIChatCompletiondiff --git a/tests/llm_translation/test_max_completion_tokens.py b/tests/llm_translation/test_max_completion_tokens.pyindex f0ea002a5f7..03eb638757b 100644--- a/tests/llm_translation/test_max_completion_tokens.py+++ b/tests/llm_translation/test_max_completion_tokens.py@@ -220,7 +220,7 @@ def test_all_model_configs():optional_params={},) == {"max_tokens": 10}- from litellm.llms.AI21.chat import AI21ChatConfig+ from litellm.llms.ai21.chat import AI21ChatConfigassert "max_completion_tokens" in AI21ChatConfig().get_supported_openai_params("jamba-1.5-mini@001"diff --git a/tests/local_testing/test_completion.py b/tests/local_testing/test_completion.pyindex 6f42d9a396d..e75f643d2ff 100644--- a/tests/local_testing/test_completion.py+++ b/tests/local_testing/test_completion.py@@ -24,7 +24,7 @@ from litellm import RateLimitError, Timeout, completion, completion_cost, embeddfrom litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandlerfrom litellm.llms.prompt_templates.factory import anthropic_messages_pt-# litellm.num_retries = 3+# litellm.num_retries=3litellm.cache = Nonelitellm.success_callback = []