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]

ruff format

Tomer Bin6ebf11e4b301
diff --git a/litellm/proxy/guardrails/guardrail_hooks/aim.py b/litellm/proxy/guardrails/guardrail_hooks/aim.py
index 920d9161497..f062189b536 100644
--- a/litellm/proxy/guardrails/guardrail_hooks/aim.py
+++ b/litellm/proxy/guardrails/guardrail_hooks/aim.py
@@ -36,12 +36,8 @@ class AimGuardrailMissingSecrets(Exception):
class AimGuardrail(CustomGuardrail):
- def __init__(
- self, api_key: Optional[str] = None, api_base: Optional[str] = None, **kwargs
- ):
- self.async_handler = get_async_httpx_client(
- llm_provider=httpxSpecialProvider.GuardrailCallback
- )
+ def __init__(self, api_key: Optional[str] = None, api_base: Optional[str] = None, **kwargs):
+ self.async_handler = get_async_httpx_client(llm_provider=httpxSpecialProvider.GuardrailCallback)
self.api_key = api_key or os.environ.get("AIM_API_KEY")
if not self.api_key:
msg = (