From d184087e6ee71cd91434981a4896435ad1503b5b Mon Sep 17 00:00:00 2001 From: Yamac Ay Date: Thu, 10 Sep 2026 10:27:36 +0200 Subject: [PATCH] lint: reformatted --- litellm/llms/sap/chat/transformation.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/litellm/llms/sap/chat/transformation.py b/litellm/llms/sap/chat/transformation.py index 92c7b695297..60d82845747 100755 --- a/litellm/llms/sap/chat/transformation.py +++ b/litellm/llms/sap/chat/transformation.py @@ -408,7 +408,7 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig): return response @staticmethod - def _normalize_reasoning_content(raw: dict[str, object]) -> dict[str, object]: # mutable-ok: generic types + def _normalize_reasoning_content(raw: dict[str, object]) -> dict[str, object]: # mutable-ok: generic types """Normalize list-shaped reasoning_content to the string field litellm expects. SAP AI Core forwards reasoning tokens from Gemini and other thinking models as: @@ -438,9 +438,7 @@ class GenAIHubOrchestrationConfig(OpenAIGPTConfig): new_msg = { **msg, "thinking_blocks": thinking_blocks, - "reasoning_content": ( - "\n".join(b["thinking"] for b in thinking_blocks if b["thinking"]) or None - ), + "reasoning_content": ("\n".join(b["thinking"] for b in thinking_blocks if b["thinking"]) or None), } new_choices.append({**choice, "message": new_msg}) return {**raw, "choices": new_choices}