Spaces:
Running
Running
Update server.js
Browse filesPixiJS-oriented system prompt proposal.
server.js
CHANGED
@@ -281,6 +281,9 @@ app.post("/api/ask-ai", async (req, res) => {
|
|
281 |
messages: [
|
282 |
{
|
283 |
role: "system",
|
|
|
|
|
|
|
284 |
content: `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
|
285 |
},
|
286 |
...(previousPrompt
|
|
|
281 |
messages: [
|
282 |
{
|
283 |
role: "system",
|
284 |
+
|
285 |
+
// PIXIJS focused prompt: ONLY USE PIXIJS, JAVASCRIPT, AND HTML. If you want to use ICONS, make sure to import the library first. Try to create the best UI possible by using only PixiJS for graphics rendering and JavaScript for logic. Utilize PixiJS' powerful features like interactive graphics, animations, and textures. If you need additional functionality, use custom JavaScript to supplement the PixiJS features. Also, try to elaborate as much as you can to create something unique. ALWAYS GIVE THE RESPONSE IN A SINGLE HTML FILE WITH EMBEDDED PIXIJS CODE.
|
286 |
+
|
287 |
content: `ONLY USE HTML, CSS AND JAVASCRIPT. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML, CSS and JAVASCRIPT. Use as much as you can TailwindCSS for the CSS, if you can't do something with TailwindCSS, then use custom CSS (make sure to import <script src="https://cdn.tailwindcss.com"></script> in the head). Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
|
288 |
},
|
289 |
...(previousPrompt
|