class

OpenAI::CreateEmbeddingResponseUsage

Inherits JSON::Serializable < Reference < Object

The usage information for the request.

Constructors

new(prompt_tokens : Int64 = 0, total_tokens : Int64 = 0)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

prompt_tokens

The number of tokens used by the prompt.

Source
prompt_tokens=(prompt_tokens : Int64)

The number of tokens used by the prompt.

Source
total_tokens

The total number of tokens used by the request.

Source
total_tokens=(total_tokens : Int64)

The total number of tokens used by the request.

Source