Class: Copilot::ModelVisionLimits

Inherits:
Struct
  • Object
show all
Defined in:
lib/copilot/types.rb

Overview

Model vision limits.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_prompt_image_sizeObject

Returns the value of attribute max_prompt_image_size

Returns:

  • (Object)

    the current value of max_prompt_image_size



371
372
373
# File 'lib/copilot/types.rb', line 371

def max_prompt_image_size
  @max_prompt_image_size
end

#max_prompt_imagesObject

Returns the value of attribute max_prompt_images

Returns:

  • (Object)

    the current value of max_prompt_images



371
372
373
# File 'lib/copilot/types.rb', line 371

def max_prompt_images
  @max_prompt_images
end

#supported_media_typesObject

Returns the value of attribute supported_media_types

Returns:

  • (Object)

    the current value of supported_media_types



371
372
373
# File 'lib/copilot/types.rb', line 371

def supported_media_types
  @supported_media_types
end

Class Method Details

.from_hash(h) ⇒ Object



375
376
377
378
379
380
381
# File 'lib/copilot/types.rb', line 375

def self.from_hash(h)
  new(
    supported_media_types: h["supported_media_types"],
    max_prompt_images: h["max_prompt_images"],
    max_prompt_image_size: h["max_prompt_image_size"]
  )
end