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]

cleanup

Alex Shoop93e127c2f375
diff --git a/litellm/utils.py b/litellm/utils.py
index 8b2b7bffb58..d4df9b206b5 100644
--- a/litellm/utils.py
+++ b/litellm/utils.py
@@ -59,12 +59,6 @@ import litellm.litellm_core_utils.json_validation_rule
import litellm.llms
import litellm.llms.gemini
from litellm._uuid import uuid
-# Import cached imports utilities
-from litellm.litellm_core_utils.cached_imports import (
- get_coroutine_checker,
- get_litellm_logging_class,
- get_set_callbacks,
-)
from litellm.caching._internal_lru_cache import lru_cache_wrapper
from litellm.caching.caching import DualCache
from litellm.caching.caching_handler import CachingHandlerResponse, LLMCachingHandler
@@ -87,6 +81,13 @@ from litellm.integrations.custom_logger import CustomLogger
from litellm.integrations.vector_store_integrations.base_vector_store import (
BaseVectorStore,
)
+
+# Import cached imports utilities
+from litellm.litellm_core_utils.cached_imports import (
+ get_coroutine_checker,
+ get_litellm_logging_class,
+ get_set_callbacks,
+)
from litellm.litellm_core_utils.core_helpers import (
map_finish_reason,
process_response_headers,