Choice
Represents a single completion choice.
Represents a single completion choice.
| Property | Type | Required | Description |
|---|---|---|---|
finish_reason | enum | Yes | The reason the model stopped generating tokens. One of: stop, length, content_filter. |
index | integer | Yes | The index of this choice in the list of choices. |
logprobs | LogProbs | null | No | Log probability information for the tokens. |
text | string | Yes | The generated text for this choice. |
We use cookies on our website. We use them to ensure proper functioning of the site and, if you agree, for purposes such as analytics, marketing, and targeting ads.