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.



23
24
25
26
27
# File 'lib/llm_cost_tracker/errors.rb', line 23

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.



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

def model
  @model
end