njerschow/openai-api

Extending the docs with an example response

porkbrain opened this issue · 4 comments

It'd be great to add an example successful response.data to the README.md.

{
    id: 'some-long-id',
    object: 'text_completion',
    created: 1616791508,
    model: 'davinci:2020-05-03',
    choices: [
        {
          text: " predicted text...",
          index: 0,
          logprobs: null,
          finish_reason: 'length'
        }
    ]
}

Alternatively, it'd be great to provide a link to the documentation and explain that the data object shown in the docs is equal to the data in the docs.

Noted, thanks!

added in v1.0.18