async function makeEmailBlast() {
let prompt = `write an email blast for the following real estate listing\ndetails: ${propertyDetails}`;
// console.log(prompt);
const response = await openai.createCompletion({
model: "text-davinci-003",
prompt: prompt,
temperature: 0.5,
max_tokens: 100,
top_p: 1,
frequency_penalty: 0,
presence_penalty: 0,
});
console.log(response.data.choices[0].text);
}
I call this function with the given parameters but the answer keeps cutting off, first I thought it was \n (newline) problem that somehow a newline made the data cut off but no that wasn’t it, so I am just clueless on how to fix this problem? can it be parameter tuning problem?