ai: lowercase PROMPT_MAP values

This commit is contained in:
thedragonsinn
2025-03-18 17:50:42 +05:30
parent 9ae2b69762
commit 6f6f78f20a

View File

@@ -109,16 +109,16 @@ async def save_file(message: Message, check_size: bool = True) -> File | None:
PROMPT_MAP = { PROMPT_MAP = {
"Video": "Summarize video and audio from the file", "video": "Summarize video and audio from the file",
"Photo": "Summarize the image file", "photo": "Summarize the image file",
"Voice": ( "voice": (
"\nDo not summarise." "\nDo not summarise."
"\nTranscribe the audio file to english alphabets AS IS." "\nTranscribe the audio file to english alphabets AS IS."
"\nTranslate it only if the audio is not english." "\nTranslate it only if the audio is not english."
"\nIf the audio is in hindi: Transcribe it to hinglish without translating." "\nIf the audio is in hindi: Transcribe it to hinglish without translating."
), ),
} }
PROMPT_MAP["Audio"] = PROMPT_MAP["Voice"] PROMPT_MAP["audio"] = PROMPT_MAP["voice"]
async def create_prompts( async def create_prompts(