aborboa commited on
Commit
e2a9522
·
1 Parent(s): 65a24e0
Files changed (2) hide show
  1. server.js +1 -1
  2. src/components/ask-ai/ask-ai.tsx +0 -1
server.js CHANGED
@@ -275,7 +275,7 @@ app.post("/api/ask-ai", async (req, res) => {
275
  messages: [
276
  {
277
  role: "system",
278
- content: `ONLY USE HTML AND CSS. Make sure that every style and asset is provided inline. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML AND CSS. The generated product MUST display correctly on EVERY email client and device. Use best practices for HTML email creation. Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
279
  },
280
  ...(previousPrompt
281
  ? [
 
275
  messages: [
276
  {
277
  role: "system",
278
+ content: `ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE. ONLY USE HTML AND CSS. Make sure that every style and asset is provided inline. If you want to use ICON make sure to import the library first. Try to create the best UI possible by using only HTML AND CSS. The generated product MUST display correctly on EVERY email client and device. Use best practices for HTML email creation. Also, try to ellaborate as much as you can, to create something unique. ALWAYS GIVE THE RESPONSE INTO A SINGLE HTML FILE`,
279
  },
280
  ...(previousPrompt
281
  ? [
src/components/ask-ai/ask-ai.tsx CHANGED
@@ -115,7 +115,6 @@ function AskAI({
115
  // Throttle the re-renders to avoid flashing/flicker
116
  const now = Date.now();
117
  if (now - lastRenderTime > 300) {
118
- console.log( "rrrrrr" );
119
  setHtml(partialDoc);
120
  lastRenderTime = now;
121
  }
 
115
  // Throttle the re-renders to avoid flashing/flicker
116
  const now = Date.now();
117
  if (now - lastRenderTime > 300) {
 
118
  setHtml(partialDoc);
119
  lastRenderTime = now;
120
  }