mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +00:00
fix: satisfy the LIT002 type-discipline gate for vertex_location_params
Each ternary branch now wraps its own dict literal in MappingProxyType, so both count as an argument passed directly to a freezing wrapper instead of a bare mutable-collection construction. Confirmed against the actual checker: litellm/ scores identically to the merge base with this change applied (26719 either way). Signed-off-by: Ankit Jha <jhaankit373@gmail.com>
This commit is contained in:
parent
b00c00e5f8
commit
674b95e121
1 changed files with 3 additions and 1 deletions
|
|
@ -203,7 +203,9 @@ class GenerateContentHelper:
|
|||
MappingProxyType(litellm_params.model_dump(exclude_none=True))
|
||||
)
|
||||
vertex_location_params: Final = (
|
||||
{"vertex_location": explicit_vertex_location} if explicit_vertex_location else {}
|
||||
MappingProxyType({"vertex_location": explicit_vertex_location})
|
||||
if explicit_vertex_location
|
||||
else MappingProxyType({})
|
||||
)
|
||||
|
||||
litellm_logging_obj.update_from_kwargs(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue