mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-15 09:12:18 +00:00
chore: drop *-ok markers that suppress nothing (LIT013)
This commit is contained in:
parent
2269446d4d
commit
b31e48f95a
2 changed files with 3 additions and 3 deletions
|
|
@ -131,7 +131,7 @@ def _thawed(value: object) -> object:
|
|||
|
||||
|
||||
def thaw_mapping(mapping: Mapping[str, object]) -> dict[str, object]: # mutable-ok: JSON request body
|
||||
return {key: _thawed(item) for key, item in mapping.items()} # mutable-ok: JSON request body
|
||||
return {key: _thawed(item) for key, item in mapping.items()}
|
||||
|
||||
|
||||
def _map_thinking_to_extra_body(
|
||||
|
|
|
|||
|
|
@ -5231,12 +5231,12 @@ def _translate_thinking_in_params(
|
|||
{key: value for key, value in thinking_values.items() if value is not None}
|
||||
)
|
||||
return (
|
||||
{ # mutable-ok: get_optional_params keeps mutating passed_params downstream
|
||||
{
|
||||
**passed_params,
|
||||
**thinking_values,
|
||||
"extra_body": thaw_mapping(translated.extra_body),
|
||||
},
|
||||
{**untouched_non_default, **surviving_thinking_values}, # mutable-ok: _check_valid_arg pops unsupported keys
|
||||
{**untouched_non_default, **surviving_thinking_values},
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue