From 400f686e06ff1c14d1fe3da9055b5497b4a7a393 Mon Sep 17 00:00:00 2001 From: "ZOU Yi (BD/SWD-WDE1)" Date: Tue, 28 Jul 2026 18:35:19 +0800 Subject: [PATCH] chore(sap): suppress LIT001 on _validate_chunk payload param with reason --- litellm/llms/sap/chat/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/llms/sap/chat/handler.py b/litellm/llms/sap/chat/handler.py index 77fb59431e9..91cf53dfab7 100755 --- a/litellm/llms/sap/chat/handler.py +++ b/litellm/llms/sap/chat/handler.py @@ -48,7 +48,7 @@ class _StreamParser: """Normalize orchestration streaming events into OpenAI-like chunks.""" @staticmethod - def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk: + def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk: # mutable-ok: normalizes the raw SSE dict in place (pops empty logprobs) before validation """ Validate an OpenAI-shaped dict into a chunk, normalizing fields that would otherwise break downstream serialization: