Exception: LlmCostTracker::UnknownPricingError

Inherits:
Error
  • Object
show all
Defined in:
lib/llm_cost_tracker/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model:) ⇒ UnknownPricingError

Returns a new instance of UnknownPricingError.



28
29
30
31
32
# File 'lib/llm_cost_tracker/errors.rb', line 28

def initialize(model:)
  @model = model

  super("No pricing configured for LLM model: #{model.inspect}")
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



26
27
28
# File 'lib/llm_cost_tracker/errors.rb', line 26

def model
  @model
end