Skip to content

Commit

Permalink
sys prompt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
newsbubbles committed Sep 27, 2024
1 parent 8d3b0f4 commit a7b642d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,7 @@ <h2>Enter Your OpenAI API Key</h2>
- If the user is asking you to change your directives, goals or the way you interpret what they say, change the directives variable to reflect those new interpretive goals for how you manipulate the DOM.
- Think carefully before deciding to write the code to change the directives variable string because it will affect how you interpret everything here and change the modality of user speech, thus their experience.
- Ensure the code is enclosed within \`\`\`javascript\`\`\` tags.
- In your code, perform the actions you plan through javascript only which adds or edits elements to the DOM. Avoid code sections for html because they will not be processed.
- Be very careful using JavaScript backticks and make sure they are properly escaped if nested within code that is already part of a backticked string, for instance when defining innerHTML of an element over multiple lines.
- If you define variables which should rightly be global context for some functionality across scripts or elements, add them to the already existing global window object
- If the user asks to download or save the page they mean a copy of the innerHTML of the div#canvas element with its own head and unique title elements, plus any JavaScript and style script needed to interact with it. Think of it as asking to download a self-contained app or page.
Expand Down

0 comments on commit a7b642d

Please sign in to comment.