Skip to content

CompletionResponse

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

CompletionResponse

Completion Response from OpenAI

public struct CompletionResponse: 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

model

The model used for the Completion.

public let model: String

choices

The output of choices the model made.

public let choices: [Choice]

usage

The token usage of the Completion.

public let usage: Usage
Types
Global Functions

Clone this wiki locally