Class: LiterLlm::AssistantPartOutputImage
- Inherits:
-
Data
- Object
- Data
- LiterLlm::AssistantPartOutputImage
- Extended by:
- T::Sig
- Includes:
- AssistantPart
- Defined in:
- lib/liter_llm/native.rb
Overview
An image produced by the model (e.g. ‘gpt-image-1`, Gemini Imagen).
Instance Attribute Summary collapse
-
#image_url ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#image_url ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
389 390 391 |
# File 'lib/liter_llm/native.rb', line 389 def image_url @image_url end |
Class Method Details
.from_hash(hash) ⇒ Object
407 408 409 |
# File 'lib/liter_llm/native.rb', line 407 def self.from_hash(hash) new(image_url: hash[:image_url] || hash["image_url"]) end |
Instance Method Details
#output_audio? ⇒ Boolean
403 404 405 |
# File 'lib/liter_llm/native.rb', line 403 def output_audio? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#output_image? ⇒ Boolean
401 |
# File 'lib/liter_llm/native.rb', line 401 def output_image? = true |
#refusal? ⇒ Boolean
399 |
# File 'lib/liter_llm/native.rb', line 399 def refusal? = false |
#text? ⇒ Boolean
397 |
# File 'lib/liter_llm/native.rb', line 397 def text? = false |