Class: OpenAI::Models::Beta::ChatKit::ChatSessionFileUpload

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

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, meta_info, new_coerce_state, 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(enabled:, max_file_size:, max_files:) ⇒ Object

Upload permissions and limits applied to the session.

Parameters:

  • enabled (Boolean)

    Indicates if uploads are enabled for the session.

  • max_file_size (Integer, nil)

    Maximum upload size in megabytes.

  • max_files (Integer, nil)

    Maximum number of uploads allowed during the session.



# File 'lib/openai/models/beta/chatkit/chat_session_file_upload.rb', line 26

Instance Attribute Details

#enabledBoolean

Indicates if uploads are enabled for the session.

Returns:



12
# File 'lib/openai/models/beta/chatkit/chat_session_file_upload.rb', line 12

required :enabled, OpenAI::Internal::Type::Boolean

#max_file_sizeInteger?

Maximum upload size in megabytes.

Returns:

  • (Integer, nil)


18
# File 'lib/openai/models/beta/chatkit/chat_session_file_upload.rb', line 18

required :max_file_size, Integer, nil?: true

#max_filesInteger?

Maximum number of uploads allowed during the session.

Returns:

  • (Integer, nil)


24
# File 'lib/openai/models/beta/chatkit/chat_session_file_upload.rb', line 24

required :max_files, Integer, nil?: true