Skip to content

ChatChoice

MarcoDotIO edited this page Mar 1, 2023 · 1 revision

ChatChoice

The output choice for the Chat Ednpoint.

public struct ChatChoice: Codable 

Inheritance

Codable

Properties

message

The choice output itself.

public let message: ChatMessage

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