Module: LlmCostTracker::Providers::Anthropic::TierClassification

Defined in:
lib/llm_cost_tracker/providers/anthropic/tier_classification.rb

Constant Summary collapse

DATA_RESIDENCY_GEOS =
%w[us].freeze
STANDARD_EQUIVALENT_SERVICE_TIERS =
%w[standard standard_only priority].freeze

Class Method Summary collapse

Class Method Details

.data_residency_geo?(geo) ⇒ Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/llm_cost_tracker/providers/anthropic/tier_classification.rb', line 12

def data_residency_geo?(geo)
  DATA_RESIDENCY_GEOS.include?(geo.to_s.downcase)
end

.standard_equivalent_tier?(service_tier) ⇒ Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/llm_cost_tracker/providers/anthropic/tier_classification.rb', line 16

def standard_equivalent_tier?(service_tier)
  STANDARD_EQUIVALENT_SERVICE_TIERS.include?(service_tier.to_s)
end