Hello,
I am using the demo code provided in the documnetation:
const completion = await openai.createCompletion({
model: "text-davinci-003",
prompt: generatePrompt(question),
temperature: 0.6,
});
I have updated the prompt to a more elaborate question, but the responses are always cut short.
When logging console.log(completion.data.choices)
I get the following output:
[
{
text: '\n\nGrilled Chicken and Cilantro Lime Rice\nIngredients:\n\n-',
index: 0,
logprobs: null,
finish_reason: 'length'
}
]
What is the reason the responses get cut off?