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(utils): import get_secret at runtime (#28014)
Sameer Kankute2f041a5224c0
diff --git a/litellm/_lazy_imports_registry.py b/litellm/_lazy_imports_registry.pyindex 3531e8d96b9..e3656b340fa 100644--- a/litellm/_lazy_imports_registry.py+++ b/litellm/_lazy_imports_registry.py@@ -376,7 +376,6 @@ UTILS_MODULE_NAMES = ("HTTPHandler","get_num_retries_from_retry_policy","reset_retry_policy",- "get_secret","get_coroutine_checker","get_litellm_logging_class","get_set_callbacks",@@ -1284,7 +1283,6 @@ _UTILS_MODULE_IMPORT_MAP = {"litellm.router_utils.get_retry_from_policy","reset_retry_policy",),- "get_secret": ("litellm.secret_managers.main", "get_secret"),"get_coroutine_checker": ("litellm.litellm_core_utils.cached_imports","get_coroutine_checker",diff --git a/litellm/utils.py b/litellm/utils.pyindex 796547cb042..cefd348078b 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -351,7 +351,6 @@ if TYPE_CHECKING:get_num_retries_from_retry_policy,reset_retry_policy,)- from litellm.secret_managers.main import get_secret# Type stubs for lazy-loaded config classes and typesfrom litellm.llms.base_llm.batches.transformation import BaseBatchesConfig@@ -384,6 +383,8 @@ if TYPE_CHECKING:)from litellm.types.router import LiteLLM_Params+from litellm.secret_managers.main import get_secret+from litellm.llms.base_llm.chat.transformation import BaseConfigfrom litellm.llms.base_llm.completion.transformation import BaseTextCompletionConfigfrom litellm.llms.base_llm.evals.transformation import BaseEvalsAPIConfig