You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d51cb87
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .speakeasy/out.openapi.yaml
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -18195,7 +18195,7 @@ components:
18195
18195
example:
18196
18196
enabled: true
18197
18197
id: 'pareto-router'
18198
-
min_coding_score: 0.8
18198
+
max_price: 5
18199
18199
price_source: 'prompt'
18200
18200
properties:
18201
18201
enabled:
@@ -18205,15 +18205,21 @@ components:
18205
18205
enum:
18206
18206
- 'pareto-router'
18207
18207
type: 'string'
18208
+
max_price:
18209
+
description: 'Maximum input price in USD per million tokens. When set, quality-tier selection (min_coding_score) is bypassed: the router computes the Pareto frontier over the top coding models and routes to the best-scoring frontier model priced at or below this cap, falling back through cheaper frontier models, then non-frontier models. Enforced against the price source given by price_source. Returns 404 when no candidate satisfies the cap.'
18210
+
example: 5
18211
+
format: 'double'
18212
+
minimum: 0
18213
+
type: 'number'
18208
18214
min_coding_score:
18209
-
description: 'Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66).'
18215
+
description: 'Minimum coding quality score between 0 and 1. Maps to internal quality tiers: >= 0.66 → high (top coding models), >= 0.33 → medium (strong modern flagships), < 0.33 → low (capable coders above the median). Omit to default to the highest tier (equivalent to >= 0.66). Not used when max_price is set (price-based selection takes over).'
18210
18216
example: 0.8
18211
18217
format: 'double'
18212
18218
maximum: 1
18213
18219
minimum: 0
18214
18220
type: 'number'
18215
18221
price_source:
18216
-
description: 'Price source for the Pareto frontier cost axis. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt".'
18222
+
description: 'Price source for the Pareto frontier cost axis and for enforcing max_price. "prompt" uses catalog list price (endpoint.pricing.prompt). "weighted_avg" uses traffic-weighted effective input price from ClickHouse, falling back to prompt price for models without traffic data. Defaults to "prompt".'
0 commit comments