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