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
refactor(types): drop nonessential TypedDict docstrings
Devin AI8ee7591fc806
diff --git a/litellm/integrations/otel/logger.py b/litellm/integrations/otel/logger.pyindex 607611eb971..6b673967427 100644--- a/litellm/integrations/otel/logger.py+++ b/litellm/integrations/otel/logger.py@@ -142,7 +142,7 @@ def _request_trace_links(context: Context | None) -> tuple[Link, ...] | None:class _CustomLoggerOptions(TypedDict, total=False, extra_items=object):- """Keyword arguments forwarded untouched to ``CustomLogger`` and ``OpenTelemetryV2Config``."""+ passclass _LLMCallSpan:diff --git a/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py b/litellm/proxy/guardrails/guardrail_hooks/alice/alice.pyindex da97359b299..bcc35e7a22f 100644--- a/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py+++ b/litellm/proxy/guardrails/guardrail_hooks/alice/alice.py@@ -92,7 +92,7 @@ class AliceVerdict(TypedDict):class _CustomGuardrailOptions(TypedDict, total=False, extra_items=object):- """Base-class constructor options this guardrail forwards untouched to CustomGuardrail."""+ passclass AliceGuardrailMissingSecrets(Exception):diff --git a/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py b/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.pyindex 14f60ce09a0..cc3ed7172b6 100644--- a/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py+++ b/litellm/proxy/guardrails/guardrail_hooks/grayswan/grayswan.py@@ -39,7 +39,7 @@ class _GraySwanMonitorResponse(TypedDict):class _CustomGuardrailOptions(TypedDict, total=False, extra_items=object):- """Base-class constructor options this guardrail forwards untouched to CustomGuardrail."""+ passclass _GraySwanMonitorHTTPResponse(Protocol):diff --git a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.pyindex 5ab47dfc3e1..f51f59ab0d1 100644--- a/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py+++ b/litellm/proxy/guardrails/guardrail_hooks/promptguard/promptguard.py@@ -55,8 +55,6 @@ class PromptGuardHTTPView(TypedDict):class _CustomGuardrailOptions(ExtraItemsTypedDict, total=False, extra_items=object):- """Base-class constructor options this guardrail forwards untouched to CustomGuardrail."""-supported_event_hooks: ReadOnly[list[GuardrailEventHooks] | None]