mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
refactor(bedrock_mantle): drop unneeded mutable-ok suppressions
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
37a1b859d7
commit
eb2ce87cb3
1 changed files with 3 additions and 7 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue