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 checks

Ishaan Jaff181072e15d11
diff --git a/litellm/llms/base_llm/responses/transformation.py b/litellm/llms/base_llm/responses/transformation.py
index 6e27fd7a542..c41d63842b1 100644
--- a/litellm/llms/base_llm/responses/transformation.py
+++ b/litellm/llms/base_llm/responses/transformation.py
@@ -12,7 +12,6 @@ from litellm.types.llms.openai import (
ResponsesAPIStreamingResponse,
)
from litellm.types.router import GenericLiteLLMParams
-from litellm.types.utils import ModelInfo
if TYPE_CHECKING:
from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObj
diff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.py
index 6f7671c3694..6f8fd347c14 100644
--- a/litellm/llms/custom_httpx/llm_http_handler.py
+++ b/litellm/llms/custom_httpx/llm_http_handler.py
@@ -23,12 +23,7 @@ from litellm.responses.streaming_iterator import (
ResponsesAPIStreamingIterator,
SyncResponsesAPIStreamingIterator,
)
-from litellm.types.llms.openai import (
- ResponseInputParam,
- ResponsesAPIOptionalRequestParams,
- ResponsesAPIRequestParams,
- ResponsesAPIResponse,
-)
+from litellm.types.llms.openai import ResponseInputParam, ResponsesAPIResponse
from litellm.types.rerank import OptionalRerankParams, RerankResponse
from litellm.types.router import GenericLiteLLMParams
from litellm.types.utils import EmbeddingResponse, FileTypes, TranscriptionResponse
diff --git a/litellm/responses/main.py b/litellm/responses/main.py
index 25e47dc5d9b..ce70292e962 100644
--- a/litellm/responses/main.py
+++ b/litellm/responses/main.py
@@ -1,7 +1,7 @@
import asyncio
import contextvars
from functools import partial
-from typing import Any, Dict, Iterable, List, Literal, Optional, Union, get_type_hints
+from typing import Any, Dict, Iterable, List, Literal, Optional, Union
import httpx
diff --git a/litellm/responses/streaming_iterator.py b/litellm/responses/streaming_iterator.py
index cc8711c3e10..e0d9e292c65 100644
--- a/litellm/responses/streaming_iterator.py
+++ b/litellm/responses/streaming_iterator.py
@@ -1,7 +1,7 @@
import asyncio
import json
from datetime import datetime
-from typing import Any, AsyncIterator, Dict, Optional, Union
+from typing import Optional
import httpx