Class: Revox::Models::AssistantUpdateParams::LlmModel::UnionMember2

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/assistant_update_params.rb,
sig/revox/models/assistant_update_params.rbs

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

#initializeObject



747
# File 'sig/revox/models/assistant_update_params.rbs', line 747

def initialize: (

Instance Attribute Details

#api_keyString

API key sent as Bearer token to the custom endpoint.

Parameters:

  • value (String)

Returns:

  • (String)


907
# File 'lib/revox/models/assistant_update_params.rb', line 907

required :api_key, String

#api_urlString

Base URL for the OpenAI-compatible API, e.g. https://api.together.xyz/v1

Parameters:

  • value (String)

Returns:

  • (String)


913
# File 'lib/revox/models/assistant_update_params.rb', line 913

required :api_url, String

#model_nameString

Model name as expected by the provider, e.g. meta-llama/llama-3-70b

Parameters:

  • value (String)

Returns:

  • (String)


919
# File 'lib/revox/models/assistant_update_params.rb', line 919

required :model_name, String

#typeSymbol, :custom

OpenAI-compatible chat completions API (bring your own endpoint and key).

Parameters:

  • value (:custom)

Returns:

  • (Symbol, :custom)


925
# File 'lib/revox/models/assistant_update_params.rb', line 925

required :type, const: :custom

Instance Method Details

#to_hash{

Returns:

  • ({)


754
# File 'sig/revox/models/assistant_update_params.rbs', line 754

def to_hash: -> {