Method: OpenAI::Model::Run#usage

Defined in:
lib/openai/models/run.rb

#usageString | nil (readonly)

Returns Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).

Returns:

  • (String | nil)

    Usage statistics related to the run. This value will be null if the run is not in a terminal state (i.e. in_progress, queued, etc.).



61
62
63
# File 'lib/openai/models/run.rb', line 61

def usage
  @usage
end