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 code quality checks
Ishaan Jaff181072e15d11
diff --git a/litellm/llms/base_llm/responses/transformation.py b/litellm/llms/base_llm/responses/transformation.pyindex 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 ModelInfoif TYPE_CHECKING:from litellm.litellm_core_utils.litellm_logging import Logging as _LiteLLMLoggingObjdiff --git a/litellm/llms/custom_httpx/llm_http_handler.py b/litellm/llms/custom_httpx/llm_http_handler.pyindex 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, ResponsesAPIResponsefrom litellm.types.rerank import OptionalRerankParams, RerankResponsefrom litellm.types.router import GenericLiteLLMParamsfrom litellm.types.utils import EmbeddingResponse, FileTypes, TranscriptionResponsediff --git a/litellm/responses/main.py b/litellm/responses/main.pyindex 25e47dc5d9b..ce70292e962 100644--- a/litellm/responses/main.py+++ b/litellm/responses/main.py@@ -1,7 +1,7 @@import asyncioimport contextvarsfrom 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, Unionimport httpxdiff --git a/litellm/responses/streaming_iterator.py b/litellm/responses/streaming_iterator.pyindex cc8711c3e10..e0d9e292c65 100644--- a/litellm/responses/streaming_iterator.py+++ b/litellm/responses/streaming_iterator.py@@ -1,7 +1,7 @@import asyncioimport jsonfrom datetime import datetime-from typing import Any, AsyncIterator, Dict, Optional, Union+from typing import Optionalimport httpx