mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-03 02:22:24 +00:00
chore: justify LIT002 stash dict with mutable-ok reason (gate delta)
This commit is contained in:
parent
96f0ab22a7
commit
6f9c6143d6
1 changed files with 1 additions and 1 deletions
|
|
@ -88,7 +88,7 @@ class OpenAILikeAnthropicMessagesConfig(AnthropicMessagesConfig):
|
|||
model the cost map does not know (see #40890). Pop them before the
|
||||
base transform so no drop warning fires, restore afterwards.
|
||||
"""
|
||||
stashed: dict = {}
|
||||
stashed: dict = {} # mutable-ok: transient pop/restore stash, never escapes the call
|
||||
for _key in ("thinking", "output_config", "temperature"):
|
||||
if _key in anthropic_messages_optional_request_params:
|
||||
stashed[_key] = anthropic_messages_optional_request_params.pop(_key)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue