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

Usage

The amount of tokens used with any GPT3 function.

public struct Usage: Codable 

Inheritance

Codable

Properties

promptTokens

The amount of tokens used by a prompt.

public let promptTokens: Int

completionTokens

The amount of tokens used by the completion.

public let completionTokens: Int

totalTokens

The total amount of tokens used by the request.

public let totalTokens: Int
Types
Global Functions
Clone this wiki locally