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
test(guardrails): type the recorder hook's request_data as a Mapping
mateo-berri19d77e244260
diff --git a/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py b/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.pyindex fe97d597ca1..258226ae22c 100644--- a/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py+++ b/tests/test_litellm/llms/openai/chat/guardrail_translation/test_openai_guardrail_handler.py@@ -6,6 +6,7 @@ with guardrail transformations, including tool calls."""import json+from collections.abc import Mappingfrom typing import Any, Literal, Optionalimport pytest@@ -1390,7 +1391,7 @@ class TestOpenAIChatCompletionsHandlerStreamingOutput:async def apply_guardrail(self,inputs: GenericGuardrailAPIInputs,- request_data: dict,+ request_data: Mapping[str, object],input_type: Literal["request", "response"],logging_obj: object = None,) -> GenericGuardrailAPIInputs: