Skip to content

ChatResponse

MarcoDotIO edited this page Mar 1, 2023 · 1 revision

ChatResponse

public struct ChatResponse: Codable, Identifiable 

Inheritance

Codable, Identifiable

Properties

id

The ID of the Completion

public let id: String

object

The OpenAIObject type of the Completion

public let object: OpenAIObject

created

The creation date of the Completion

public let created: Int

choices

The output of choices the model made.

public let choices: [ChatChoice]

usage

The token usage of the Completion.

public let usage: Usage
Types
Global Functions
Clone this wiki locally