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 issues
Sameer Kankute5413f584f5e8
diff --git a/litellm/litellm_core_utils/prompt_templates/common_utils.py b/litellm/litellm_core_utils/prompt_templates/common_utils.pyindex e588ca13834..b1c2d0a52f5 100644--- a/litellm/litellm_core_utils/prompt_templates/common_utils.py+++ b/litellm/litellm_core_utils/prompt_templates/common_utils.py@@ -543,10 +543,6 @@ def update_responses_tools_with_model_file_ids(model_file_id_mapping: Dictionary mapping litellm file IDs to provider file IDsFormat: {"litellm_file_id": {"model_id": "provider_file_id"}}"""- from litellm.proxy.openai_files_endpoints.common_utils import (- _is_base64_encoded_unified_file_id,- )-if not tools or not isinstance(tools, list):return toolsdiff --git a/litellm/llms/openai/common_utils.py b/litellm/llms/openai/common_utils.pyindex d8107a9ce90..ce470f04aca 100644--- a/litellm/llms/openai/common_utils.py+++ b/litellm/llms/openai/common_utils.py@@ -15,7 +15,6 @@ if TYPE_CHECKING:from aiohttp import ClientSessionimport litellm-from litellm._logging import verbose_loggerfrom litellm.llms.base_llm.chat.transformation import BaseLLMExceptionfrom litellm.llms.custom_httpx.http_handler import (_DEFAULT_TTL_FOR_HTTPX_CLIENTS,