Module: LlmCostTracker::Pricing::Matcher
- Defined in:
- lib/llm_cost_tracker/pricing/matcher.rb
Defined Under Namespace
Classes: Match
Class Method Summary collapse
Class Method Details
.lookup(provider:, model:) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/llm_cost_tracker/pricing/matcher.rb', line 13 def lookup(provider:, model:) provider_name = provider.to_s.presence model_name = model.to_s return nil if model_name.empty? lookup_match(provider_name: provider_name, model_name: model_name) end |