Skip to content

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]

refactor(bedrock_mantle): drop unneeded mutable-ok suppressions

shivameb2ce87cb391
diff --git a/litellm/llms/bedrock_mantle/responses/transformation.py b/litellm/llms/bedrock_mantle/responses/transformation.py
index c43b03b2ba9..4710577aea0 100644
--- a/litellm/llms/bedrock_mantle/responses/transformation.py
+++ b/litellm/llms/bedrock_mantle/responses/transformation.py
@@ -214,15 +214,11 @@ class BedrockMantleResponsesAPIConfig(BedrockMantleAuthMixin, OpenAIResponsesAPI
summary,
sorted(_BEDROCK_MANTLE_OPENAI_PATH_SUPPORTED_REASONING_SUMMARIES),
)
- stripped: Final = { # mutable-ok: dynamic reasoning fields must remain a mutable dict
- key: value for key, value in reasoning.items() if key != "summary"
- }
+ stripped: Final = {key: value for key, value in reasoning.items() if key != "summary"}
return (
- {**params, "reasoning": stripped} # mutable-ok: downstream parameter filtering needs a mutable dict
+ {**params, "reasoning": stripped}
if stripped
- else { # mutable-ok: downstream parameter filtering needs a mutable dict
- key: value for key, value in params.items() if key != "reasoning"
- }
+ else {key: value for key, value in params.items() if key != "reasoning"}
)
def transform_responses_api_request(