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