pub struct ProviderModelOffering {
pub provider: ProviderId,
pub canonical_model: Option<ModelId>,
pub wire_model_id: WireModelId,
pub endpoint_key: String,
pub default_for_provider: bool,
pub limits: RouteLimits,
pub pricing: PricingSku,
}Expand description
One provider’s way of serving a (possibly canonical) model.
Eq is intentionally NOT derived: PricingSku::Token carries f64 rates,
so the offering is only PartialEq. No caller keys a set/map on offerings.
Fields§
§provider: ProviderIdProvider serving this offering.
canonical_model: Option<ModelId>Canonical model identity, if this offering maps to one.
wire_model_id: WireModelIdProvider-owned wire id sent on the request (verbatim).
endpoint_key: StringEndpoint key the offering is served on.
default_for_provider: boolWhether this is the provider’s default offering.
limits: RouteLimitsProvider/offering-scoped token limits, when known.
pricing: PricingSkuCoarse route-facing pricing meter for this offering (#3085).
Projected from the offering’s sourced cost at the layer that owns it
(CatalogOffering::to_offering → crate::pricing::route_pricing_sku).
The resolver carries this verbatim onto the candidate; it is
PricingSku::UnknownOrStale whenever no price was sourced — never a
fabricated zero (the #2608 / #3085 honesty rule).
Trait Implementations§
Source§impl Clone for ProviderModelOffering
impl Clone for ProviderModelOffering
Source§fn clone(&self) -> ProviderModelOffering
fn clone(&self) -> ProviderModelOffering
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProviderModelOffering
impl Debug for ProviderModelOffering
Source§impl PartialEq for ProviderModelOffering
impl PartialEq for ProviderModelOffering
Source§fn eq(&self, other: &ProviderModelOffering) -> bool
fn eq(&self, other: &ProviderModelOffering) -> bool
self and other values to be equal, and is used by ==.