From 9a97969741f57cb2ca70e7dc599bc261a875f4b9 Mon Sep 17 00:00:00 2001 From: udbhav-shrinet Date: Fri, 23 Oct 2026 15:29:45 +0530 Subject: [PATCH] style: satisfy ruff SIM114 branch combine rule --- .../llm_response_utils/get_formatted_prompt.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py b/litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py index ec58573b92a..dd8b539e973 100644 --- a/litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py +++ b/litellm/litellm_core_utils/llm_response_utils/get_formatted_prompt.py @@ -57,10 +57,11 @@ def get_formatted_prompt( for m in data["input"]: if isinstance(m, str): prompt += m - elif call_type == "image_generation" or call_type == "aimage_generation": - prompt = data["prompt"] elif ( - call_type == "audio_transcription" or call_type == "transcription" or call_type == "atranscription" - ) and "prompt" in data: + call_type == "image_generation" + or call_type == "aimage_generation" + or (call_type == "audio_transcription" or call_type == "transcription" or call_type == "atranscription") + and "prompt" in data + ): prompt = data["prompt"] return prompt