Class: LlmCostTracker::UnknownPricing

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

Class Method Summary collapse

Class Method Details

.handle!(model) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/llm_cost_tracker/unknown_pricing.rb', line 8

def handle!(model)
  model = normalized_model_name(model)

  case behavior
  when :ignore
    nil
  when :warn
    warn_missing(model)
  when :raise
    raise UnknownPricingError.new(model: model)
  end
end