const prompt = 'A summary of Emmitt Smith"
When I run the above in open ai play ground I get a full summary with details. When I run the node package like so:
const { Configuration, OpenAIApi } = require("openai");
async function getText() {
const openai = new OpenAIApi(configuration);
const completion = await openai.createCompletion({
model: "text-davinci-003",
prompt: prompt,
stop: ["input:"],
});
console.log(completion.data.choices)
}
getText();
This returns only partial response.
[
{
text: ' Emmitt Smith is an NFL Hall of Fame running back who played for the Dallas',
index: 0,
logprobs: null,
finish_reason: 'length'
}
]
What do I need to set to get a full summary response as opposed to one sentece?