From a020cf9924e8f71c7dae6cbe8ba0d0e8551a610f 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 ad2b0481b07..6e76d1b8c7a 100755 --- a/litellm/llms/sap/chat/handler.py +++ b/litellm/llms/sap/chat/handler.py @@ -47,7 +47,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: