Class: Cadenya::Types::AIProviderConfig_OpenaiCompatible
- Inherits:
-
Object
- Object
- Cadenya::Types::AIProviderConfig_OpenaiCompatible
- Defined in:
- lib/cadenya/types.rb
Instance Attribute Summary collapse
-
#openai_compatible ⇒ Object
readonly
Returns the value of attribute openai_compatible.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type: nil, openai_compatible: nil) ⇒ AIProviderConfig_OpenaiCompatible
constructor
A new instance of AIProviderConfig_OpenaiCompatible.
- #to_h ⇒ Object
Constructor Details
#initialize(type: nil, openai_compatible: nil) ⇒ AIProviderConfig_OpenaiCompatible
Returns a new instance of AIProviderConfig_OpenaiCompatible.
9348 9349 9350 9351 |
# File 'lib/cadenya/types.rb', line 9348 def initialize(type: nil, openai_compatible: nil) @type = type @openai_compatible = openai_compatible end |
Instance Attribute Details
#openai_compatible ⇒ Object (readonly)
Returns the value of attribute openai_compatible.
9346 9347 9348 |
# File 'lib/cadenya/types.rb', line 9346 def openai_compatible @openai_compatible end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
9346 9347 9348 |
# File 'lib/cadenya/types.rb', line 9346 def type @type end |
Class Method Details
.from_json(data) ⇒ Object
9353 9354 9355 9356 9357 9358 |
# File 'lib/cadenya/types.rb', line 9353 def self.from_json(data) new( type: data["type"], openai_compatible: data["openaiCompatible"].nil? ? nil : Types::OpenAICompatibleConfig.from_json(data["openaiCompatible"]), ) end |