Skip to content

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]

fix code quality qa

Sameer Kankutead87aa1926b5
diff --git a/litellm/llms/anthropic/batches/handler.py b/litellm/llms/anthropic/batches/handler.py
index 31f3e91f144..fd303e60afc 100644
--- a/litellm/llms/anthropic/batches/handler.py
+++ b/litellm/llms/anthropic/batches/handler.py
@@ -10,7 +10,6 @@ import httpx
from litellm.llms.custom_httpx.http_handler import (
get_async_httpx_client,
)
-from litellm.types.llms.openai import RetrieveBatchRequest
from litellm.types.utils import LiteLLMBatch, LlmProviders
if TYPE_CHECKING:
diff --git a/litellm/llms/anthropic/batches/transformation.py b/litellm/llms/anthropic/batches/transformation.py
index ec82e6cdaeb..750dd002ff9 100644
--- a/litellm/llms/anthropic/batches/transformation.py
+++ b/litellm/llms/anthropic/batches/transformation.py
@@ -21,7 +21,7 @@ else:
class AnthropicBatchesConfig(BaseBatchesConfig):
def __init__(self):
from ..chat.transformation import AnthropicConfig
- from ..common_utils import AnthropicError, AnthropicModelInfo
+ from ..common_utils import AnthropicModelInfo
self.anthropic_chat_config = AnthropicConfig() # initialize once
self.anthropic_model_info = AnthropicModelInfo()