From d08c0def85f1a77a442245529226af2bbf8150cc Mon Sep 17 00:00:00 2001 From: sauravniraula Date: Sun, 10 Aug 2025 17:57:07 +0545 Subject: [PATCH] fix(outline generation): adds instruction to not provide image in outlines --- .../fastapi/utils/llm_calls/generate_presentation_outlines.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/servers/fastapi/utils/llm_calls/generate_presentation_outlines.py b/servers/fastapi/utils/llm_calls/generate_presentation_outlines.py index 892b9cff..8abb3c64 100644 --- a/servers/fastapi/utils/llm_calls/generate_presentation_outlines.py +++ b/servers/fastapi/utils/llm_calls/generate_presentation_outlines.py @@ -4,10 +4,7 @@ from models.llm_message import LLMSystemMessage, LLMUserMessage from models.llm_tools import GetCurrentDatetimeTool, SearchWebTool from services.llm_client import LLMClient from utils.get_dynamic_models import get_presentation_outline_model_with_n_slides -from utils.get_env import get_web_grounding_env from utils.llm_provider import get_model -from utils.parsers import parse_bool_or_none -from utils.user_config import get_user_config system_prompt = """ You are an expert presentation creator. Generate structured presentations based on user requirements and format them according to the specified JSON schema with markdown content. @@ -16,6 +13,7 @@ system_prompt = """ - Make sure that flow of the presentation is logical and consistent. - Place greater emphasis on numerical data. - If Additional Information is provided, divide it into slides. + - Make sure no images are provided in the content. - Make sure that content follows language guidelines. """