fix: move PLR0915 noqa to def line so ruff suppresses it

This commit is contained in:
sjhddh 2026-06-03 18:44:49 +02:00
parent 9ca3e41121
commit 3a91cf0fa1

View file

@ -968,8 +968,8 @@ class Logging(LiteLLMLoggingBaseClass):
self._get_masked_api_base(additional_args.get("api_base", ""))
)
def pre_call(self, input, api_key, model=None, additional_args=None):
additional_args = additional_args or {} # noqa: PLR0915
def pre_call(self, input, api_key, model=None, additional_args=None): # noqa: PLR0915
additional_args = additional_args or {}
# Log the exact input to the LLM API
litellm.error_logs["PRE_CALL"] = locals()
try: