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.



21
22
23
24
25
# File 'lib/llm_cost_tracker/errors.rb', line 21

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.



19
20
21
# File 'lib/llm_cost_tracker/errors.rb', line 19

def model
  @model
end