Module: LlmCostTracker::Pricing::Explainer
- Defined in:
- lib/llm_cost_tracker/pricing/explainer.rb
Class Method Summary collapse
Class Method Details
.call(provider:, model:, token_usage:, pricing_mode: nil) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/llm_cost_tracker/pricing/explainer.rb', line 36 def call(provider:, model:, token_usage:, pricing_mode: nil) match = Lookup.call(provider: provider, model: model) explanation( provider: provider, model: model, pricing_mode: pricing_mode, match: match, usage: token_usage ) end |