Class: LiterLlm::ModelInfo
- Inherits:
-
Object
- Object
- LiterLlm::ModelInfo
- Defined in:
- sig/types.rbs
Instance Attribute Summary collapse
-
#cache_creation_input_token_cost ⇒ Float?
readonly
Returns the value of attribute cache_creation_input_token_cost.
-
#cache_read_input_token_cost ⇒ Float?
readonly
Returns the value of attribute cache_read_input_token_cost.
-
#input_cost_per_audio_token ⇒ Float?
readonly
Returns the value of attribute input_cost_per_audio_token.
-
#input_cost_per_token ⇒ Float
readonly
Returns the value of attribute input_cost_per_token.
-
#max_input_tokens ⇒ Integer?
readonly
Returns the value of attribute max_input_tokens.
-
#max_output_tokens ⇒ Integer?
readonly
Returns the value of attribute max_output_tokens.
-
#max_tokens ⇒ Integer?
readonly
Returns the value of attribute max_tokens.
-
#mode ⇒ String?
readonly
Returns the value of attribute mode.
-
#output_cost_per_audio_token ⇒ Float?
readonly
Returns the value of attribute output_cost_per_audio_token.
-
#output_cost_per_reasoning_token ⇒ Float?
readonly
Returns the value of attribute output_cost_per_reasoning_token.
-
#output_cost_per_token ⇒ Float
readonly
Returns the value of attribute output_cost_per_token.
-
#supports_audio_input ⇒ Boolean?
readonly
Returns the value of attribute supports_audio_input.
-
#supports_audio_output ⇒ Boolean?
readonly
Returns the value of attribute supports_audio_output.
-
#supports_function_calling ⇒ Boolean?
readonly
Returns the value of attribute supports_function_calling.
-
#supports_prompt_caching ⇒ Boolean?
readonly
Returns the value of attribute supports_prompt_caching.
-
#supports_reasoning ⇒ Boolean?
readonly
Returns the value of attribute supports_reasoning.
-
#supports_structured_output ⇒ Boolean?
readonly
Returns the value of attribute supports_structured_output.
-
#supports_vision ⇒ Boolean?
readonly
Returns the value of attribute supports_vision.
-
#tiers ⇒ Array[ModelTier]
readonly
Returns the value of attribute tiers.
Instance Method Summary collapse
-
#initialize ⇒ ModelInfo
constructor
A new instance of ModelInfo.
Constructor Details
#initialize ⇒ ModelInfo
Returns a new instance of ModelInfo.
853 |
# File 'sig/types.rbs', line 853
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_cost ⇒ Float? (readonly)
Returns the value of attribute cache_creation_input_token_cost.
836 837 838 |
# File 'sig/types.rbs', line 836 def cache_creation_input_token_cost @cache_creation_input_token_cost end |
#cache_read_input_token_cost ⇒ Float? (readonly)
Returns the value of attribute cache_read_input_token_cost.
835 836 837 |
# File 'sig/types.rbs', line 835 def cache_read_input_token_cost @cache_read_input_token_cost end |
#input_cost_per_audio_token ⇒ Float? (readonly)
Returns the value of attribute input_cost_per_audio_token.
837 838 839 |
# File 'sig/types.rbs', line 837 def input_cost_per_audio_token @input_cost_per_audio_token end |
#input_cost_per_token ⇒ Float (readonly)
Returns the value of attribute input_cost_per_token.
833 834 835 |
# File 'sig/types.rbs', line 833 def input_cost_per_token @input_cost_per_token end |
#max_input_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_input_tokens.
841 842 843 |
# File 'sig/types.rbs', line 841 def max_input_tokens @max_input_tokens end |
#max_output_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_output_tokens.
842 843 844 |
# File 'sig/types.rbs', line 842 def max_output_tokens @max_output_tokens end |
#max_tokens ⇒ Integer? (readonly)
Returns the value of attribute max_tokens.
840 841 842 |
# File 'sig/types.rbs', line 840 def max_tokens @max_tokens end |
#mode ⇒ String? (readonly)
Returns the value of attribute mode.
843 844 845 |
# File 'sig/types.rbs', line 843 def mode @mode end |
#output_cost_per_audio_token ⇒ Float? (readonly)
Returns the value of attribute output_cost_per_audio_token.
838 839 840 |
# File 'sig/types.rbs', line 838 def output_cost_per_audio_token @output_cost_per_audio_token end |
#output_cost_per_reasoning_token ⇒ Float? (readonly)
Returns the value of attribute output_cost_per_reasoning_token.
839 840 841 |
# File 'sig/types.rbs', line 839 def output_cost_per_reasoning_token @output_cost_per_reasoning_token end |
#output_cost_per_token ⇒ Float (readonly)
Returns the value of attribute output_cost_per_token.
834 835 836 |
# File 'sig/types.rbs', line 834 def output_cost_per_token @output_cost_per_token end |
#supports_audio_input ⇒ Boolean? (readonly)
Returns the value of attribute supports_audio_input.
848 849 850 |
# File 'sig/types.rbs', line 848 def supports_audio_input @supports_audio_input end |
#supports_audio_output ⇒ Boolean? (readonly)
Returns the value of attribute supports_audio_output.
849 850 851 |
# File 'sig/types.rbs', line 849 def supports_audio_output @supports_audio_output end |
#supports_function_calling ⇒ Boolean? (readonly)
Returns the value of attribute supports_function_calling.
845 846 847 |
# File 'sig/types.rbs', line 845 def supports_function_calling @supports_function_calling end |
#supports_prompt_caching ⇒ Boolean? (readonly)
Returns the value of attribute supports_prompt_caching.
850 851 852 |
# File 'sig/types.rbs', line 850 def supports_prompt_caching @supports_prompt_caching end |
#supports_reasoning ⇒ Boolean? (readonly)
Returns the value of attribute supports_reasoning.
846 847 848 |
# File 'sig/types.rbs', line 846 def supports_reasoning @supports_reasoning end |
#supports_structured_output ⇒ Boolean? (readonly)
Returns the value of attribute supports_structured_output.
847 848 849 |
# File 'sig/types.rbs', line 847 def supports_structured_output @supports_structured_output end |
#supports_vision ⇒ Boolean? (readonly)
Returns the value of attribute supports_vision.
844 845 846 |
# File 'sig/types.rbs', line 844 def supports_vision @supports_vision end |
#tiers ⇒ Array[ModelTier] (readonly)
Returns the value of attribute tiers.
851 852 853 |
# File 'sig/types.rbs', line 851 def tiers @tiers end |