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: add PolicyMatchContext to TYPE_CHECKING imports
Julio Quinteros Pro9e0af32d468a
diff --git a/litellm/proxy/litellm_pre_call_utils.py b/litellm/proxy/litellm_pre_call_utils.pyindex d211501ef97..0171b7efd79 100644--- a/litellm/proxy/litellm_pre_call_utils.py+++ b/litellm/proxy/litellm_pre_call_utils.py@@ -40,10 +40,12 @@ service_logger_obj = ServiceLogging() # used for tracking latency on OTELif TYPE_CHECKING:from litellm.proxy.proxy_server import ProxyConfig as _ProxyConfig+ from litellm.types.proxy.policy_engine import PolicyMatchContextProxyConfig = _ProxyConfigelse:ProxyConfig = Any+ PolicyMatchContext = Anydef parse_cache_control(cache_control):