From 27e45cd855c833d26300132c1f2dd1b0d6ae516e Mon Sep 17 00:00:00 2001 From: "ZOU Yi (BD/SWD-WDE1)" Date: Tue, 28 Jul 2026 18:54:34 +0800 Subject: [PATCH] style(sap): satisfy ruff format while keeping LIT001 suppression on param line --- litellm/llms/sap/chat/handler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/litellm/llms/sap/chat/handler.py b/litellm/llms/sap/chat/handler.py index 91cf53dfab7..db8973815b7 100755 --- a/litellm/llms/sap/chat/handler.py +++ b/litellm/llms/sap/chat/handler.py @@ -48,7 +48,9 @@ class _StreamParser: """Normalize orchestration streaming events into OpenAI-like chunks.""" @staticmethod - def _validate_chunk(payload: dict) -> OpenAIChatCompletionChunk: # mutable-ok: normalizes the raw SSE dict in place (pops empty logprobs) before validation + def _validate_chunk( + payload: dict, # mutable-ok: normalized in place (pops empty logprobs) before validation + ) -> OpenAIChatCompletionChunk: """ Validate an OpenAI-shaped dict into a chunk, normalizing fields that would otherwise break downstream serialization: