Class: OpenAI::Models::Beta::Threads::ImageFileDelta
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::Threads::ImageFileDelta
- Defined in:
- lib/openai/models/beta/threads/image_file_delta.rb
Defined Under Namespace
Modules: Detail
Instance Attribute Summary collapse
-
#detail ⇒ Symbol, ...
Specifies the detail level of the image if specified by the user.
-
#file_id ⇒ String?
The [File](platform.openai.com/docs/api-reference/files) ID of the image in the message content.
Instance Method Summary collapse
-
#initialize(detail: nil, file_id: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see ImageFileDelta for more details.
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.
|
# File 'lib/openai/models/beta/threads/image_file_delta.rb', line 23
|
Instance Attribute Details
#detail ⇒ Symbol, ...
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_id ⇒ String?
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.
21 |
# File 'lib/openai/models/beta/threads/image_file_delta.rb', line 21 optional :file_id, String |