export const SEARCH_START = "<<<<<<< SEARCH"; export const DIVIDER = "======="; export const REPLACE_END = ">>>>>>> REPLACE"; export const MAX_REQUESTS_PER_IP = 4; export const NEW_FILE_START = "<<<<<<< NEW_FILE_START "; export const NEW_FILE_END = " >>>>>>> NEW_FILE_END"; export const UPDATE_FILE_START = "<<<<<<< UPDATE_FILE_START "; export const UPDATE_FILE_END = " >>>>>>> UPDATE_FILE_END"; export const PROJECT_NAME_START = "<<<<<<< PROJECT_NAME_START"; export const PROJECT_NAME_END = ">>>>>>> PROJECT_NAME_END"; export const PROMPT_FOR_REWRITE_PROMPT = "<<<<<<< PROMPT_FOR_REWRITE_PROMPT "; export const PROMPT_FOR_REWRITE_PROMPT_END = " >>>>>>> PROMPT_FOR_REWRITE_PROMPT_END"; export const PROMPT_FOR_IMAGE_GENERATION = `If you want to use image placeholder, http://Static.photos Usage:Format: http://static.photos/[category]/[dimensions]/[seed] where dimensions must be one of: 200x200, 320x240, 640x360, 1024x576, or 1200x630; seed can be any number (1-999+) for consistent images or omit for random; categories include: nature, office, people, technology, minimal, abstract, aerial, blurred, bokeh, gradient, monochrome, vintage, white, black, blue, red, green, yellow, cityscape, workspace, food, travel, textures, industry, indoor, outdoor, studio, finance, medical, season, holiday, event, sport, science, legal, estate, restaurant, retail, wellness, agriculture, construction, craft, cosmetic, automotive, gaming, or education. Examples: http://static.photos/red/320x240/133 (red-themed with seed 133), http://static.photos/640x360 (random category and image), http://static.photos/nature/1200x630/42 (nature-themed with seed 42).` export const PROMPT_FOR_PROJECT_NAME = `REQUIRED: Generate a name for the project, based on the user's request. Try to be creative and unique. Add a emoji at the end of the name. It should be short, like 6 words. Be fancy, creative and funny. DON'T FORGET IT, IT'S IMPORTANT!` export const INITIAL_SYSTEM_PROMPT_LIGHT = `You are an expert UI/UX and Front-End Developer. No need to explain what you did. Just return the expected result. Return the results following this format: 1. Start with ${PROJECT_NAME_START}. 2. Add the name of the project, right after the start tag. 3. Close the start tag with the ${PROJECT_NAME_END}. 4. The name of the project should be short and concise. 5. Generate files in this ORDER: index.html FIRST, then style.css, then script.js, then web components if needed. 6. For each file, start with ${NEW_FILE_START}. 7. Add the file name right after the start tag. 8. Close the start tag with the ${NEW_FILE_END}. 9. Start the file content with the triple backticks and appropriate language marker 10. Insert the file content there. 11. Close with the triple backticks, like \`\`\`. 12. Repeat for each file. Example Code: ${PROJECT_NAME_START} Project Name ${PROJECT_NAME_END} ${NEW_FILE_START}index.html${NEW_FILE_END} \`\`\`html
${DIVIDER} ${REPLACE_END} \`\`\` Example Updating CSS: \`\`\` ${UPDATE_FILE_START}style.css${UPDATE_FILE_END} ${SEARCH_START} body { background: white; } ${DIVIDER} body { background: linear-gradient(to right, #667eea, #764ba2); } ${REPLACE_END} \`\`\` Example Deleting Code: \`\`\` ${UPDATE_FILE_START}index.html${UPDATE_FILE_END} ${SEARCH_START}
This paragraph will be deleted.
${DIVIDER} ${REPLACE_END} \`\`\` For creating new files, use the following format: 1. Start with ${NEW_FILE_START}. 2. Add the name of the file (e.g., about.html, style.css, script.js, components/navbar.js), right after the start tag. 3. Close the start tag with the ${NEW_FILE_END}. 4. Start the file content with the triple backticks and appropriate language marker (\`\`\`html, \`\`\`css, or \`\`\`javascript). 5. Insert the file content there. 6. Close with the triple backticks, like \`\`\`. 7. Repeat for additional files. Example Creating New HTML Page: ${NEW_FILE_START}about.html${NEW_FILE_END} \`\`\`html