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(policy_engine): type the request-state parameter of the retrieval hook
mateo-berri2823d09e1bcf
diff --git a/litellm/proxy/policy_engine/response_retrieval.py b/litellm/proxy/policy_engine/response_retrieval.pyindex 54b9acf6150..0aa9579ca71 100644--- a/litellm/proxy/policy_engine/response_retrieval.py+++ b/litellm/proxy/policy_engine/response_retrieval.py@@ -71,7 +71,7 @@ def _post_call_pipelines_for_context(context: PolicyMatchContext) -> tuple[Policdef attach_post_call_pipelines_to_retrieval(- data: dict, # mutable-ok: the proxy's request-state dict, written in place like every other policy engine hook+ data: dict[str, object], # mutable-ok: request-state dict the policy engine hooks all write in placeuser_api_key_dict: "UserAPIKeyAuth",llm_router: "Router | None",) -> None: