mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-16 09:22:22 +00:00
style: satisfy ruff SIM114 branch combine rule
This commit is contained in:
parent
39801f7d66
commit
9a97969741
1 changed files with 5 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue