This repository was archived by the owner on Jul 22, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
lib/ai_bot/artifact_update_strategies Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,13 @@ def system_prompt
102102 4. ONLY include [HTML], [CSS], and [JavaScript] sections if they have changes
103103 5. Ensure search text matches EXACTLY - partial matches will fail
104104 6. Keep changes minimal and focused
105+ 7. HTML should not include <html>, <head>, or <body> tags, it is injected into a template
106+
107+ External libraries allowed only from:
108+ - unpkg.com
109+ - cdnjs.com
110+ - jsdelivr.net
111+ - ajax.googleapis.com
105112
106113 Reply Format:
107114 [HTML]
Original file line number Diff line number Diff line change @@ -71,6 +71,13 @@ def system_prompt
7171 5. NEVER EVER BE LAZY, always include ALL the source code with any update you make. If you are lazy you will break the artifact.
7272 6. Do not print out any reasoning, just the changed code, you will be parsed via a program.
7373 7. Sections must start and end with exact tags: [HTML] [/HTML], [CSS] [/CSS], [JavaScript] [/JavaScript]
74+ 8. HTML should not include <html>, <head>, or <body> tags, it is injected into a template
75+
76+ External libraries allowed only from:
77+ - unpkg.com
78+ - cdnjs.com
79+ - jsdelivr.net
80+ - ajax.googleapis.com
7481
7582 Always adhere to the format when replying:
7683
You can’t perform that action at this time.
0 commit comments