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: remove unused imports
Krrish Dholakia2469072c50da
diff --git a/litellm/llms/azure/audio_transcriptions.py b/litellm/llms/azure/audio_transcriptions.pyindex 69d0f5285cd..8baf5df1d53 100644--- a/litellm/llms/azure/audio_transcriptions.py+++ b/litellm/llms/azure/audio_transcriptions.py@@ -9,11 +9,7 @@ from litellm.litellm_core_utils.audio_utils.utils import get_audio_file_namefrom litellm.types.utils import FileTypesfrom litellm.utils import TranscriptionResponse, convert_to_model_response_object-from .azure import (- AzureChatCompletion,- get_azure_ad_token_from_oidc,- select_azure_base_url_or_endpoint,-)+from .azure import AzureChatCompletionclass AzureAudioTranscription(AzureChatCompletion):diff --git a/litellm/llms/azure/azure.py b/litellm/llms/azure/azure.pyindex caeef460d2c..6b42f8c68dc 100644--- a/litellm/llms/azure/azure.py+++ b/litellm/llms/azure/azure.py@@ -1,6 +1,5 @@import asyncioimport json-import osimport timefrom typing import Any, Callable, Dict, List, Literal, Optional, Uniondiff --git a/litellm/llms/azure/batches/handler.py b/litellm/llms/azure/batches/handler.pyindex 4d7410c4a01..1b93c526d5a 100644--- a/litellm/llms/azure/batches/handler.py+++ b/litellm/llms/azure/batches/handler.py@@ -6,7 +6,6 @@ from typing import Any, Coroutine, Optional, Union, castimport httpx-import litellmfrom litellm.llms.azure.azure import AsyncAzureOpenAI, AzureOpenAIfrom litellm.types.llms.openai import (Batch,diff --git a/litellm/llms/azure/chat/o_series_handler.py b/litellm/llms/azure/chat/o_series_handler.pyindex b1255e9e9bc..4464432faf8 100644--- a/litellm/llms/azure/chat/o_series_handler.py+++ b/litellm/llms/azure/chat/o_series_handler.py@@ -7,9 +7,7 @@ Written separately to handle faking streaming for o1 and o3 models.from typing import Any, Callable, Optional, Unionimport httpx-from openai import AsyncAzureOpenAI, AsyncOpenAI, AzureOpenAI, OpenAI-from litellm.types.llms.openai import Anyfrom litellm.types.utils import ModelResponsefrom ...openai.openai import OpenAIChatCompletiondiff --git a/litellm/router.py b/litellm/router.pyindex 70ad60f450a..629938158d2 100644--- a/litellm/router.py+++ b/litellm/router.py@@ -71,7 +71,6 @@ from litellm.router_utils.batch_utils import (_get_router_metadata_variable_name,replace_model_in_jsonl,)-from litellm.router_utils.client_initalization_utils import InitalizeOpenAISDKClientfrom litellm.router_utils.clientside_credential_handler import (get_dynamic_litellm_params,is_clientside_credential,diff --git a/litellm/router_utils/client_initalization_utils.py b/litellm/router_utils/client_initalization_utils.pyindex 80e0df5202e..4843b01e90e 100644--- a/litellm/router_utils/client_initalization_utils.py+++ b/litellm/router_utils/client_initalization_utils.py@@ -1,6 +1,5 @@import asyncio-import os-from typing import TYPE_CHECKING, Any, Callable, Optional+from typing import TYPE_CHECKING, Any, Optionalimport httpximport openai