From 762f3236e2813b1887b83ec0089d4424d7eac0f4 Mon Sep 17 00:00:00 2001 From: holonic Date: Sat, 28 Sep 2024 11:47:39 +0100 Subject: [PATCH] better system prompt 2, styling and completeness --- index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index 6770b92..80b8720 100644 --- a/index.html +++ b/index.html @@ -360,6 +360,7 @@

Enter Your OpenAI API Key

\`\`\` ### Current Page Style +The innerHTML of the global styleElement variable: \`\`\`css ${pageStyle} \`\`\` @@ -428,7 +429,7 @@

Enter Your OpenAI API Key

- Only use generateImage if a user requests an image in their current request without specifying a URL. - When positioning and styling new Image elements, make sure to take into account the layout context around it to make it fit correctly. - If an image element already has a src URL from openai, avoid regenerating the image -- If the user does not specify any page styles, infer what style they want based on what you have been doing. Remember for visual clarity we need padding. Edit style by editing the global styleElement. +- If the user does not specify any page styles, infer what style they want based on what you are doing. Remember for visual clarity we need padding. If the current page style css is empty, add a suitable style. - Use built-in modals instead of alerts where applicable - Never clear the entire body, only the content within the canvas element - If you include JavaScript functionality for element events, this JS needs to be included in a