#Why does the node package only return a partial response?

1 messages · Page 1 of 1 (latest)

quasi rampart
#

When running:
const prompt = A summary about Emmitt Smith the NFL running back.;

async function getText() {
const openai = new OpenAIApi(configuration);
const completion = await openai.createCompletion({
model: "text-davinci-003",
prompt: prompt,
});
I only get partial response like so:
[
{
text: ' Emmitt Smith is an NFL Hall of Fame running back who played for the Dallas',
index: 0,
logprobs: null,
finish_reason: 'length'
}
]

On the playground it's a full summary but on the node package I only get partial like above.