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
style(bedrock): apply ruff format to neutralize helper
Kente250e661e36f
diff --git a/litellm/llms/bedrock/chat/converse_transformation.py b/litellm/llms/bedrock/chat/converse_transformation.pyindex e44dece3a8b..33a77e8d346 100644--- a/litellm/llms/bedrock/chat/converse_transformation.py+++ b/litellm/llms/bedrock/chat/converse_transformation.py@@ -252,9 +252,7 @@ class AmazonConverseConfig(BaseConfig):# Tool results are externally controlled, so guard them wherever they# land in history; _convert_consecutive_user_messages_to_guarded_text# only covers the trailing user turn.- content: Final = (- [{"type": "guarded_text", "text": result_text}] if guardrail_active else result_text- )+ content: Final = [{"type": "guarded_text", "text": result_text}] if guardrail_active else result_textreturn ChatCompletionUserMessage(role="user", content=content)return message