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): keep guardrail metadata helper accepting dicts
Devin AI6ba4c2e3399b
diff --git a/litellm/llms/base_llm/guardrail_translation/base_translation.py b/litellm/llms/base_llm/guardrail_translation/base_translation.pyindex ace5af8124f..89ad67f0485 100644--- a/litellm/llms/base_llm/guardrail_translation/base_translation.py+++ b/litellm/llms/base_llm/guardrail_translation/base_translation.py@@ -81,7 +81,7 @@ class BaseTranslation(ABC):@staticmethoddef transform_user_api_key_dict_to_metadata(- user_api_key_dict: Optional["UserAPIKeyAuth"],+ user_api_key_dict: Any | None,) -> dict[str, object]:"""Transform user_api_key_dict to a metadata dict with prefixed keys.