diff --git a/servers/fastapi/api/v1/ppt/endpoints/prompts.py b/servers/fastapi/api/v1/ppt/endpoints/prompts.py index 2fd20740..6f2985f0 100644 --- a/servers/fastapi/api/v1/ppt/endpoints/prompts.py +++ b/servers/fastapi/api/v1/ppt/endpoints/prompts.py @@ -22,6 +22,7 @@ Follow these rules strictly: - Replace brand icons with a circle of same size with "i" between. Generic icons like "email", "call", etc should remain same. - If there is a box/card enclosing a text, make it grow as well when the text grows, so that the text does not overflow the box/card. - Give out only HTML and Tailwind code. No other texts or explanations. +- Do not give entire HTML structure with head, body, etc. Just give the respective HTML and Tailwind code inside div with above classes. """ HTML_TO_REACT_SYSTEM_PROMPT = """ @@ -50,6 +51,7 @@ Convert given static HTML and Tailwind slide to a TSX React component so that it 13. Do not parse the slideData inside dynamicSlideLayout, just use it as it is. Do not use statements like `Schema.parse() ` anywhere. Instead directly use the data without validating or parsing. 14. Always complete the reference, do not give "slideData .? .cards" instead give "slideData?.cards". 15. Do not add anything other than code. Do not add "use client", "json", "typescript", "javascript" and other prefix or suffix, just give out code exactly formatted like example. +16. In schema, give default for all fields irrespective of their types, give defualt values for array and objects as well. For example: Input:
Effects of Global Warming

Global warming triggers a cascade of effects on our planet. These changes impact everything from our oceans to our ecosystems.
Rising Sea Levels
Rising sea levels threaten coastal communities and ecosystems due to melting glaciers and thermal expansion.
Intense Heatwaves
Heatwaves are becoming more frequent and intense, posing significant risks to human health and agriculture.
Changes in Precipitation
Altered precipitation patterns lead to increased droughts in some regions and severe flooding in others, affecting water resources.