Class: LiterLlm::ModelInfo

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeModelInfo

Returns a new instance of ModelInfo.

Parameters:

  • input_cost_per_token: (Float)
  • output_cost_per_token: (Float)
  • cache_read_input_token_cost: (Float)
  • cache_creation_input_token_cost: (Float)
  • input_cost_per_audio_token: (Float)
  • output_cost_per_audio_token: (Float)
  • output_cost_per_reasoning_token: (Float)
  • max_tokens: (Integer)
  • max_input_tokens: (Integer)
  • max_output_tokens: (Integer)
  • mode: (String)
  • supports_vision: (Boolean)
  • supports_function_calling: (Boolean)
  • supports_reasoning: (Boolean)
  • supports_structured_output: (Boolean)
  • supports_audio_input: (Boolean)
  • supports_audio_output: (Boolean)
  • supports_prompt_caching: (Boolean)
  • tiers: (Array[ModelTier])


537
# File 'sig/types.rbs', line 537

def initialize: (?input_cost_per_token: Float, ?output_cost_per_token: Float, ?cache_read_input_token_cost: Float, ?cache_creation_input_token_cost: Float, ?input_cost_per_audio_token: Float, ?output_cost_per_audio_token: Float, ?output_cost_per_reasoning_token: Float, ?max_tokens: Integer, ?max_input_tokens: Integer, ?max_output_tokens: Integer, ?mode: String, ?supports_vision: bool, ?supports_function_calling: bool, ?supports_reasoning: bool, ?supports_structured_output: bool, ?supports_audio_input: bool, ?supports_audio_output: bool, ?supports_prompt_caching: bool, ?tiers: Array[ModelTier]) -> void

Instance Attribute Details

#cache_creation_input_token_costFloat? (readonly)

Returns the value of attribute cache_creation_input_token_cost.

Returns:

  • (Float, nil)


520
521
522
# File 'sig/types.rbs', line 520

def cache_creation_input_token_cost
  @cache_creation_input_token_cost
end

#cache_read_input_token_costFloat? (readonly)

Returns the value of attribute cache_read_input_token_cost.

Returns:

  • (Float, nil)


519
520
521
# File 'sig/types.rbs', line 519

def cache_read_input_token_cost
  @cache_read_input_token_cost
end

#input_cost_per_audio_tokenFloat? (readonly)

Returns the value of attribute input_cost_per_audio_token.

Returns:

  • (Float, nil)


521
522
523
# File 'sig/types.rbs', line 521

def input_cost_per_audio_token
  @input_cost_per_audio_token
end

#input_cost_per_tokenFloat (readonly)

Returns the value of attribute input_cost_per_token.

Returns:

  • (Float)


517
518
519
# File 'sig/types.rbs', line 517

def input_cost_per_token
  @input_cost_per_token
end

#max_input_tokensInteger? (readonly)

Returns the value of attribute max_input_tokens.

Returns:

  • (Integer, nil)


525
526
527
# File 'sig/types.rbs', line 525

def max_input_tokens
  @max_input_tokens
end

#max_output_tokensInteger? (readonly)

Returns the value of attribute max_output_tokens.

Returns:

  • (Integer, nil)


526
527
528
# File 'sig/types.rbs', line 526

def max_output_tokens
  @max_output_tokens
end

#max_tokensInteger? (readonly)

Returns the value of attribute max_tokens.

Returns:

  • (Integer, nil)


524
525
526
# File 'sig/types.rbs', line 524

def max_tokens
  @max_tokens
end

#modeString? (readonly)

Returns the value of attribute mode.

Returns:

  • (String, nil)


527
528
529
# File 'sig/types.rbs', line 527

def mode
  @mode
end

#output_cost_per_audio_tokenFloat? (readonly)

Returns the value of attribute output_cost_per_audio_token.

Returns:

  • (Float, nil)


522
523
524
# File 'sig/types.rbs', line 522

def output_cost_per_audio_token
  @output_cost_per_audio_token
end

#output_cost_per_reasoning_tokenFloat? (readonly)

Returns the value of attribute output_cost_per_reasoning_token.

Returns:

  • (Float, nil)


523
524
525
# File 'sig/types.rbs', line 523

def output_cost_per_reasoning_token
  @output_cost_per_reasoning_token
end

#output_cost_per_tokenFloat (readonly)

Returns the value of attribute output_cost_per_token.

Returns:

  • (Float)


518
519
520
# File 'sig/types.rbs', line 518

def output_cost_per_token
  @output_cost_per_token
end

#supports_audio_inputBoolean? (readonly)

Returns the value of attribute supports_audio_input.

Returns:

  • (Boolean, nil)


532
533
534
# File 'sig/types.rbs', line 532

def supports_audio_input
  @supports_audio_input
end

#supports_audio_outputBoolean? (readonly)

Returns the value of attribute supports_audio_output.

Returns:

  • (Boolean, nil)


533
534
535
# File 'sig/types.rbs', line 533

def supports_audio_output
  @supports_audio_output
end

#supports_function_callingBoolean? (readonly)

Returns the value of attribute supports_function_calling.

Returns:

  • (Boolean, nil)


529
530
531
# File 'sig/types.rbs', line 529

def supports_function_calling
  @supports_function_calling
end

#supports_prompt_cachingBoolean? (readonly)

Returns the value of attribute supports_prompt_caching.

Returns:

  • (Boolean, nil)


534
535
536
# File 'sig/types.rbs', line 534

def supports_prompt_caching
  @supports_prompt_caching
end

#supports_reasoningBoolean? (readonly)

Returns the value of attribute supports_reasoning.

Returns:

  • (Boolean, nil)


530
531
532
# File 'sig/types.rbs', line 530

def supports_reasoning
  @supports_reasoning
end

#supports_structured_outputBoolean? (readonly)

Returns the value of attribute supports_structured_output.

Returns:

  • (Boolean, nil)


531
532
533
# File 'sig/types.rbs', line 531

def supports_structured_output
  @supports_structured_output
end

#supports_visionBoolean? (readonly)

Returns the value of attribute supports_vision.

Returns:

  • (Boolean, nil)


528
529
530
# File 'sig/types.rbs', line 528

def supports_vision
  @supports_vision
end

#tiersArray[ModelTier] (readonly)

Returns the value of attribute tiers.

Returns:



535
536
537
# File 'sig/types.rbs', line 535

def tiers
  @tiers
end