Class: OpenAI::Models::Admin::Organization::UsageAudioSpeechesResponse::Data::Result::OrganizationUsageAudioTranscriptionsResult

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/openai/models/admin/organization/usage_audio_speeches_response.rb,
sig/openai/models/admin/organization/usage_audio_speeches_response.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initializeObject



390
# File 'sig/openai/models/admin/organization/usage_audio_speeches_response.rbs', line 390

def initialize: (

Instance Attribute Details

#api_key_idString?

When group_by=api_key_id, this field provides the API key ID of the grouped usage result.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


549
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 549

optional :api_key_id, String, nil?: true

#modelString?

When group_by=model, this field provides the model name of the grouped usage result.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


556
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 556

optional :model, String, nil?: true

#num_model_requestsInteger

The count of requests made to the model.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


531
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 531

required :num_model_requests, Integer

#objectSymbol, :"organization.usage.audio_transcriptions.result"

Parameters:

  • value (:"organization.usage.audio_transcriptions.result")

Returns:

  • (Symbol, :"organization.usage.audio_transcriptions.result")


536
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 536

required :object, const: :"organization.usage.audio_transcriptions.result"

#project_idString?

When group_by=project_id, this field provides the project ID of the grouped usage result.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


563
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 563

optional :project_id, String, nil?: true

#secondsInteger

The number of seconds processed.

Parameters:

  • value (Integer)

Returns:

  • (Integer)


542
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 542

required :seconds, Integer

#user_idString?

When group_by=user_id, this field provides the user ID of the grouped usage result.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


570
# File 'lib/openai/models/admin/organization/usage_audio_speeches_response.rb', line 570

optional :user_id, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


400
# File 'sig/openai/models/admin/organization/usage_audio_speeches_response.rbs', line 400

def to_hash: -> {