From 6f6f78f20a474bc55c49c318221298bbbb20c0f2 Mon Sep 17 00:00:00 2001 From: thedragonsinn <98635854+thedragonsinn@users.noreply.github.com> Date: Tue, 18 Mar 2025 17:50:42 +0530 Subject: [PATCH] `ai`: lowercase PROMPT_MAP values --- app/plugins/ai/gemini_core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/plugins/ai/gemini_core.py b/app/plugins/ai/gemini_core.py index ab3ca6f..84fe74c 100644 --- a/app/plugins/ai/gemini_core.py +++ b/app/plugins/ai/gemini_core.py @@ -109,16 +109,16 @@ async def save_file(message: Message, check_size: bool = True) -> File | None: PROMPT_MAP = { - "Video": "Summarize video and audio from the file", - "Photo": "Summarize the image file", - "Voice": ( + "video": "Summarize video and audio from the file", + "photo": "Summarize the image file", + "voice": ( "\nDo not summarise." "\nTranscribe the audio file to english alphabets AS IS." "\nTranslate it only if the audio is not english." "\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(