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
remove unused iterator imports
harish876044d434b502d
diff --git a/litellm/files/main.py b/litellm/files/main.pyindex 2c06f9459e4..8716cf3b0f9 100644--- a/litellm/files/main.py+++ b/litellm/files/main.py@@ -10,7 +10,7 @@ import contextvarsimport timeimport uuid as uuid_modulefrom functools import partial-from typing import Any, AsyncIterator, Coroutine, Dict, Iterator, Literal, Optional, Union, cast+from typing import Any,Coroutine, Dict, Literal, Optional, Union, castimport httpx@@ -1045,20 +1045,10 @@ def file_content_streaming("""try:optional_params = GenericLiteLLMParams(**kwargs)- litellm_params_dict = get_litellm_params(**kwargs)- client = kwargs.get("client")logging_obj = cast(Optional[LiteLLMLoggingObj], kwargs.get("litellm_logging_obj"))- try:- if model is not None:- _, custom_llm_provider, _, _ = get_llm_provider(- model, custom_llm_provider- )- except Exception:- pass-timeout = optional_params.timeout or kwargs.get("request_timeout", 600) or 600if (timeout is not None