Class: OpenAI::Models::Beta::Threads::ImageFileDelta

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/threads/image_file_delta.rb

Defined Under Namespace

Modules: Detail

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, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

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

Constructor Details

#initialize(detail: nil, file_id: nil) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::Threads::ImageFileDelta for more details.

Parameters:



# File 'lib/openai/models/beta/threads/image_file_delta.rb', line 23

Instance Attribute Details

#detailSymbol, ...

Specifies the detail level of the image if specified by the user. ‘low` uses fewer tokens, you can opt in to high resolution using `high`.



13
# File 'lib/openai/models/beta/threads/image_file_delta.rb', line 13

optional :detail, enum: -> { OpenAI::Beta::Threads::ImageFileDelta::Detail }

#file_idString?

The [File](platform.openai.com/docs/api-reference/files) ID of the image in the message content. Set ‘purpose=“vision”` when uploading the File if you need to later display the file content.

Returns:

  • (String, nil)


21
# File 'lib/openai/models/beta/threads/image_file_delta.rb', line 21

optional :file_id, String