Skip to content
MarcoDotIO edited this page Dec 5, 2022 · 1 revision

Choice

The output completion / edit of the Completions and Edits endpoints.

public struct Choice: Codable 

Inheritance

Codable

Properties

text

The choice output itself.

public let text: String

index

The index of the choice within the data array.

public let index: Int

logprobs

The logprobs used for the choice.

public let logprobs: Int?

finishReason

The choice end reason.

public let finishReason: String?
Types
Global Functions
Clone this wiki locally