Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
Use the Type field to determine which variant is active, then access the corresponding field:
switch preferredMinThroughput.Type { case components.PreferredMinThroughputTypeNumber: // preferredMinThroughput.Number is populated case components.PreferredMinThroughputTypePercentileThroughputCutoffs: // preferredMinThroughput.PercentileThroughputCutoffs is populated}
⌘I
Assistant
Responses are generated using AI and may contain mistakes.