Class: DatadogAPIClient::V2::AiGatewayModelAutomaticPricingRate

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb

Overview

One published price. Prices can differ by operation, mode, service tier, and input length.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



52
53
54
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 52

def additional_properties
  @additional_properties
end

#amount ⇒ Object

Exact decimal amount per unit, zero or greater, represented as a string to preserve precision. Supports fixed decimal and exponent notation.



25
26
27
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 25

def amount
  @amount
end

#component ⇒ Object

Token category priced, such as input, output, cache_read, or cache_write.



28
29
30
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 28

def component
  @component
end

#context_max_tokens ⇒ Object

Largest input length covered by this price. Omitted when there is no upper bound.



31
32
33
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 31

def context_max_tokens
  @context_max_tokens
end

#context_min_tokens ⇒ Object

Input length above which this price applies. Omitted for the base tier.



34
35
36
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 34

def context_min_tokens
  @context_min_tokens
end

#currency ⇒ Object

Currency of the price. The only supported value is USD.



37
38
39
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 37

def currency
  @currency
end

#mode ⇒ Object

Source mode name. standard is the base mode. Other values, such as fast, are source-defined and selected by mode_triggers.



41
42
43
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 41

def mode
  @mode
end

#operation ⇒ Object

Operation the price applies to. Omitted when it applies to every operation.



44
45
46
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 44

def operation
  @operation
end

#service_tier ⇒ Object

Provider service tier explicitly associated with this mode by the source. Omitted when unknown.



47
48
49
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 47

def service_tier
  @service_tier
end

#unit ⇒ Object

Unit of the quoted amount. The only supported value is million_tokens.



50
51
52
# File 'lib/datadog_api_client/v2/models/ai_gateway_model_automatic_pricing_rate.rb', line 50

def unit
  @unit
end