nemo_relay.model_pricing
nemo_relay.model_pricing
Generated from python/nemo_relay/model_pricing.pyi.
Module nemo_relay.model_pricing.
Model pricing plugin configuration helpers.
Classes
ConfigDiagnostic(_ConfigDiagnosticRequired)
One model pricing validation diagnostic.
ConfigReport(TypedDict)
Validation report for model pricing configuration.
TokenPricingRates
Per-token model rates expressed per one million tokens.
Methods
TokenPricingRates
Create an instance.
to_dict
Serialize these rates to the canonical JSON object shape.
PromptCachePricing
Prompt-cache accounting settings for a model pricing entry.
Methods
PromptCachePricing
Create an instance.
to_dict
Serialize this prompt-cache config to the canonical JSON object shape.
TokenRateTier
One threshold tier in a token rate schedule.
Methods
TokenRateTier
Create an instance.
to_dict
Serialize this rate tier to the canonical JSON object shape.
PromptTokenThresholdRateSchedule
Rate schedule selected by full-request prompt token thresholds.
Methods
PromptTokenThresholdRateSchedule
Create an instance.
to_dict
Serialize this rate schedule to the canonical JSON object shape.
ModelPricing
One model pricing catalog entry.
Methods
ModelPricing
Create an instance.
to_dict
Serialize this catalog entry to the canonical JSON object shape.
PricingCatalog
Inline model pricing catalog payload.
Methods
PricingCatalog
Create an instance.
to_dict
Serialize this catalog to the canonical JSON object shape.
InlineSource
Pricing source backed by an inline catalog.
Methods
InlineSource
Create an instance.
to_dict
Serialize this source to the canonical JSON object shape.
FileSource
Pricing source backed by a JSON catalog file.
Methods
FileSource
Create an instance.
to_dict
Serialize this source to the canonical JSON object shape.
PricingConfig
Canonical config document for the top-level model pricing component.
Methods
PricingConfig
Create an instance.
to_dict
Serialize this model pricing config to the canonical JSON object shape.
ComponentSpec
Top-level model pricing component wrapper.
Methods
ComponentSpec
Create an instance.
to_dict
Serialize this component to the canonical plugin shape.
Functions
validate_config
Validate a model pricing config document without activating it.
Type Aliases And Constants
PRICING_PLUGIN_KIND