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]

remove unused iterator imports

harish876044d434b502d
diff --git a/litellm/files/main.py b/litellm/files/main.py
index 2c06f9459e4..8716cf3b0f9 100644
--- a/litellm/files/main.py
+++ b/litellm/files/main.py
@@ -10,7 +10,7 @@ import contextvars
import time
import uuid as uuid_module
from functools import partial
-from typing import Any, AsyncIterator, Coroutine, Dict, Iterator, Literal, Optional, Union, cast
+from typing import Any,Coroutine, Dict, Literal, Optional, Union, cast
import 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 600
if (
timeout is not None