How can i add two line breaks(\n\n) at the start of every message response recieved from openai under the resume category?
Code:
const fs = require("fs");
const { Configuration, OpenAIApi } = require("openai");
let Chatgpt = {};
const mongoose = require("mongoose");
const config = require("../config.json");
const prompt = require("../../../prompt.json");
const ObjectId = require('mongodb').ObjectId;
// let conUser = mongoose.createConnection(config.mongo.dbUrl);
// console.log( process.env.DB_URL)
// let conUser = mongoose.createConnection(
//   "mongodb://3.132.60.39:27017/admin",
//   {
//     "auth": {
//       "authSource": "admin"
//     },
//     "user": "adminUser",
//     "pass": "adminUserTamara",
//   }
// );
let conUser = mongoose.createConnection(
  process.env.DB_URL,
  {
    "auth": {
      "authSource": "admin"
    },
    "user": process.env.DB_USERNAME,
    "pass": process.env.DB_PASSWORD,
  }
);

const CategorySchema = require("../../../Schema/Category");
const UserSchema = require("../../../Schema/User");
const HistorySchema = require("../../../Schema/History");
const SavedmessagesSchema = require("../../../Schema/Savedmessages");
const CategoryModel = conUser.model("CATEGORY", CategorySchema, "Category");
const UserModel = conUser.model("USER", UserSchema, "User");
const HistoryModel = conUser.model("HISTORY", HistorySchema, "History");
const SavedmessageModel = conUser.model("SAVEDMESSAGE", SavedmessagesSchema, "Savedmessage");

const configuration = new Configuration({
  apiKey: process.env.OPENAI_API_KEY,
});

const openai = new OpenAIApi(configuration);

function sleep(ms) {
  return new Promise((resolve) => {
    setTimeout(resolve, ms);
  });
}

Chatgpt.botreplyfirst = async(req, res) => {
  
  let data=req.body;
  let message = data.message;
  let category_key = data.category_key;
  let tone = data.tone;
  let replyIn = data.replyIn;
  let formality = data.formality;
  let promptfilter = data.promptfilter;
  let promtmessage = "";
  let promtvalue = 0;
  // let packType = 0;
  let userToken = 0;
  let purchaseTime =0;
  if(promptfilter == "1"){
    promptfilter ="Please fix grammer and punctuations {explain the mistakes at the end}"
  }
  if(promptfilter == "2"){
    promptfilter ="Provide improvement in phrases that enhance clarity"
  }
  if(promptfilter == "3"){
    promptfilter ="Improve my writing style and provide stylistic suggestions and examples"
  }
  if(promptfilter == "4"){
    promptfilter ="Assist me with choosing the right word"
  }
  if(promptfilter == "5"){
    promptfilter ="Offer sentence structure suggestions along {with examples}"
  }
  return new Promise(async (resolve, reject) => {
    try {
  if(!message){
    reject("Message is required");
    return;
  }
  if(!tone){
    tone = "Confident"
  }
  if(!replyIn){
    replyIn = "American English"
  }
  if(!formality){
    formality ="Formal"
  }
  if(!promptfilter){
    promptfilter =" "
  }else{
  //  promptfilter = promptfilter+' and '
   promptfilter = '['+promptfilter+']'
  }

  if(!category_key){
    reject("category_key required");
      return;
  }
  let userId = req.authUser ? req.authUser.userId : 0;
    if (!userId) {
      reject("login required");
      return;
    }


  let userdata = await UserModel.findOne({ _id: userId }).lean().exec();    
  let categorydata = await CategoryModel.findOne({ categorykey: category_key }).lean().exec();    
  
  if(category_key == 'social_media'){
    promtmessage = '{YOU ARE A SOCIAL MEDIA CONTENT WRITER}'+promptfilter+'Generate message on behalf of- '+userdata.name+'.'+' {you must reply in '+formality+' and '+tone+' tone, in language '+replyIn+'}'+' content-'+'"'+message+'".'
  }
  if(category_key == 'email'){

    promtmessage = `{YOU ARE ${userdata.name} WHOSE JOB IS TO DRAFT PROFESSIONAL EMAILS}. Perform the following actions on text delimited by triple dashes aand follow the instructions provided below: 1- Output a email format message contains minimum two paragraphs, subject should be relevant to the provided message in triple dashes. 2- Output should be as professional email writer format. 3- Output formailty should be in ${formality}. 4- Output tone should be ${tone}. 5- The output language should be ${replyIn}. ---${message}--- `
     
  if(category_key == 'messages'){
    promtmessage = `Plese respond to "${message}" on behalf of ${userdata.name} in ${formality} and ${tone} tone, in language ${replyIn}]${promptfilter}.`
  }  
  if(category_key == 'general'){
    promtmessage = promptfilter+' '+ ' for '+userdata.name  +'. '+' reply in '+formality+ ' and '+tone+' tone and  the reply language should be '+replyIn+' for:' +'"'+message+'".'
  }
  if(category_key == 'meeting_minute'){
    promtmessage = '{YOU MUST RESPOND IN PROFESSIONAL MINUTE MEETING FORMAT based on the given content. Please include agenda, discussions and action items}'+promptfilter+'. Meeting is draft by-'+userdata.name+'.'+' Reply in '+formality+' and '+tone+' tone and the response must be in '+replyIn+'. Content of the meeting:' +'"'+''+message+''+'".'
  }
  if(category_key == 'resume'){
    promtmessage = `[MUST START YOUR RESPONSE WITH TWO LINE BREAKS]{You are ${userdata.name}, YOU MUST RESPOND IN A PROFESSIONAL RESUME FORMAT with POINTS(strictly no paragraph)} +${promptfilter}. Reply in ${formality} and ${tone} tone and the response must be in ${replyIn}. Your description to be used to create your resume-"${message}"`
  }
  if(category_key == 'report'){
    promtmessage = '{You must response in a professional report format for the content:"'+message+'". Please note that the response format should not be anywhere near to email format it should be strickly a reporting format with all the key points described with the agendas and important points highlights, and should be more than 500 words long}'+promptfilter+', '+' reply in '+formality+' and '+tone+' tone and  the language of response must be in '+replyIn
  }
  
  if(userdata.promptToken != undefined){
    promtvalue = userdata.promptToken 
  }

      const response = await openai.createChatCompletion({
        model: "gpt-3.5-turbo",
        messages: [{"role": "system", "content": "You are a helpful assistant your name is tamara."}, {role: "user", content: promtmessage}],
      });
      console.log("promtmessage:-",response)
      await UserModel.findOneAndUpdate(
        { _id: userId },
        {
          $set: {
            promptToken:response.data.usage.prompt_tokens+promtvalue,
            // userToken:userToken-1,
            updatedAt: new Date()
          }
        },
        { new: true },
      );
	let userhistoryObject={
        message:message,
        message_from:"user",
        categorykey:category_key,
        categoryname:categorydata.name,
        user_id:userId,
        isLike: false,
        isDisLike: false,
        isSave: false,
        translator: false,
        status:1,
        createdAt: new Date()
      }
      await HistoryModel.collection.insertOne(userhistoryObject)
      await new Promise(resolve => setTimeout(resolve, 2000)); 

      let chatgpthistoryObject={
        // message:response.data.choices[0].text,
        message:response.data.choices[0].message.content,
        message_from:"chatgpt",
        categorykey:category_key,
        categoryname:categorydata.name,
        user_id:userId,
        isLike: false,
        isDisLike: false,
        isSave: false,
        translator: false,
        status:1,
        createdAt: new Date()
      }
     // code to make delay so that message sequence won't
      // await sleep(1000);
      await HistoryModel.collection.insertOne(chatgpthistoryObject)

      // response data...
    let findCase={user_id:userId};
    let historydataresp = await HistoryModel.find(findCase).sort({_id:-1}).limit(2)
    let chatgpt = historydataresp[0]
    let user = historydataresp[1]
      const data = {
        userMessage: {
          _id:  user._doc._id,
          message: user._doc.message,
          message_from: "user",
          createdAt:user._doc.createdAt,
          isLike: user._doc.isLike,
          isDisLike:  user._doc.isDisLike,
          isSave: user._doc.isSave,
          translator: user._doc.translator,
          user: {
            _id: userId,
            name:userdata.name,
            avatar: userdata.profilePicture,
          },
        },
        chatGPTMessage: {
          _id: chatgpt._doc._id,
          message: chatgpt._doc.message,
          message_from: "chatgpt",
          createdAt: chatgpt._doc.createdAt,
          isLike: chatgpt._doc.isLike,
          isDisLike:  chatgpt._doc.isDisLike,
          isSave: chatgpt._doc.isSave,
          translator: chatgpt._doc.translator,
          user: {
            _id: categorydata._id,
            name: categorydata.name,
            avatar: null,
          },
        }
        
      }
      resolve(data)

    } catch(error) {
      // Consider adjusting the error handling logic for your use case
      if (error.response) {
        console.error(error.response.status, error.response.data);
        reject(error.response)
      } else {
        console.error(`Error with OpenAI API request: ${error.message}`);
        reject('An error occurred during your request.')
      }
    }
  });
};

Chatgpt.botreply = (req, res) => {
  return new Promise(async (resolve, reject) => {
    try {
      const response = await openai.createChatCompletion({
        model: "gpt-3.5-turbo",
        messages: [{"role": "system", "content": "You are a helpful assistant your name is tamara."}, {role: "user", content: req.body.message}],
      });
      resolve(response.data.choices[0].text)
    } catch(error) {
      // Consider adjusting the error handling logic for your use case
      if (error.response) {
        console.error(error.response.status, error.response.data);
        reject(error.response)
      } else {
        console.error(`Error with OpenAI API request: ${error.message}`);
        reject('An error occurred during your request.')
      }
    }
  });
};

Chatgpt.categories = (req) => {
  return new Promise((resolve, reject) => {
    let findCase={visibility:true};

    CategoryModel.find(findCase, function (err, response) {
      if (err) {

        reject(err);
      } else {

        if (response.length > 0) {
          resolve(response)
        }else{
          reject("not found!!")
        }
      }
     });
  });
};