Class: Cadenya::Models::AIProviderKeySpec::Config::OpenAI

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/cadenya/models/ai_provider_key_spec.rb,
sig/cadenya/models/ai_provider_key_spec.rbs

Overview

See Also:

  • Cadenya::Models::AIProviderKeySpec::Config#openai

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



90
# File 'sig/cadenya/models/ai_provider_key_spec.rbs', line 90

def initialize: (

Instance Attribute Details

#organization_idString?

Sent as the OpenAI-Organization header when set.

Parameters:

  • (String)

Returns:

  • (String, nil)


86
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 86

optional :organization_id, String, api_name: :organizationId

#project_idString?

Sent as the OpenAI-Project header when set.

Parameters:

  • (String)

Returns:

  • (String, nil)


92
# File 'lib/cadenya/models/ai_provider_key_spec.rb', line 92

optional :project_id, String, api_name: :projectId

Instance Method Details

#to_hash{ organization_id: String, project_id: String }

Returns:

  • ({ organization_id: String, project_id: String })


95
# File 'sig/cadenya/models/ai_provider_key_spec.rbs', line 95

def to_hash: -> { organization_id: String, project_id: String }