Skip to content

Commit ed0643f

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#627)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 01dcebb commit ed0643f

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2936,7 +2936,7 @@ components:
29362936
id: 'auto-beta-router'
29372937
properties:
29382938
allowed_models:
2939-
description: 'List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list.'
2939+
description: 'List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.'
29402940
example:
29412941
- 'anthropic/*'
29422942
- 'openai/gpt-4o'
@@ -2946,13 +2946,13 @@ components:
29462946
type: 'array'
29472947
cost_quality_tradeoff:
29482948
deprecated: true
2949-
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9. Numeric cost_quality_tradeoff remains supported, retains ceiling behavior, and takes precedence over cost_tier when both are provided.'
2949+
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.'
29502950
example: 9
29512951
maximum: 10
29522952
minimum: 0
29532953
type: 'integer'
29542954
cost_tier:
2955-
description: 'Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Numeric cost_quality_tradeoff takes precedence and retains ceiling behavior.'
2955+
description: 'Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.'
29562956
enum:
29572957
- 'low'
29582958
- 'medium'
@@ -2984,15 +2984,15 @@ components:
29842984
allowed_models:
29852985
- 'anthropic/*'
29862986
- 'openai/*'
2987-
cost_tier: 'medium'
2987+
cost_tier: 'low'
29882988
enabled: true
29892989
excluded_models:
29902990
- 'openai/gpt-4o'
29912991
id: 'auto-router'
29922992
pin_model: false
29932993
properties:
29942994
allowed_models:
2995-
description: 'List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list.'
2995+
description: 'List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.'
29962996
example:
29972997
- 'anthropic/*'
29982998
- 'openai/gpt-4o'
@@ -3002,20 +3002,20 @@ components:
30023002
type: 'array'
30033003
cost_quality_tradeoff:
30043004
deprecated: true
3005-
description: 'Deprecated: Use cost_tier instead. Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. Numeric cost_quality_tradeoff remains supported and takes precedence over cost_tier when both are provided.'
3006-
example: 7
3005+
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.'
3006+
example: 9
30073007
maximum: 10
30083008
minimum: 0
30093009
type: 'integer'
30103010
cost_tier:
3011-
description: 'Shorthand for cost_quality_tradeoff. Higher tiers spend more on better models: low = 9, medium = 7, high = 5, xhigh = 3, and max = 1. Numeric cost_quality_tradeoff takes precedence when both are provided.'
3011+
description: 'Named cost/quality setting. Tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.'
30123012
enum:
30133013
- 'low'
30143014
- 'medium'
30153015
- 'high'
30163016
- 'xhigh'
30173017
- 'max'
3018-
example: 'medium'
3018+
example: 'low'
30193019
type: 'string'
30203020
enabled:
30213021
description: 'Set to false to disable the auto-router plugin for this request. Defaults to true.'

0 commit comments

Comments
 (0)