Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .speakeasy/in.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2772,6 +2772,40 @@ components:
- 'data'
- 'meta'
type: 'object'
AutoBetaRouterPlugin:
example:
allowed_models:
- 'anthropic/*'
- 'openai/gpt-4o'
cost_quality_tradeoff: 7
enabled: true
id: 'auto-beta-router'
properties:
allowed_models:
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.'
example:
- 'anthropic/*'
- 'openai/gpt-4o'
- 'google/*'
items:
type: 'string'
type: 'array'
cost_quality_tradeoff:
description: '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 7.'
example: 7
maximum: 10
minimum: 0
type: 'integer'
enabled:
description: 'Set to false to disable the auto-beta-router plugin for this request. Defaults to true.'
type: 'boolean'
id:
enum:
- 'auto-beta-router'
type: 'string'
required:
- 'id'
type: 'object'
AutoRouterPlugin:
example:
allowed_models:
Expand Down Expand Up @@ -5020,6 +5054,7 @@ components:
items:
discriminator:
mapping:
auto-beta-router: '#/components/schemas/AutoBetaRouterPlugin'
auto-router: '#/components/schemas/AutoRouterPlugin'
context-compression: '#/components/schemas/ContextCompressionPlugin'
file-parser: '#/components/schemas/FileParserPlugin'
Expand All @@ -5032,6 +5067,7 @@ components:
propertyName: 'id'
oneOf:
- $ref: '#/components/schemas/AutoRouterPlugin'
- $ref: '#/components/schemas/AutoBetaRouterPlugin'
- $ref: '#/components/schemas/ModerationPlugin'
- $ref: '#/components/schemas/WebSearchPlugin'
- $ref: '#/components/schemas/WebFetchPlugin'
Expand Down Expand Up @@ -12465,6 +12501,7 @@ components:
items:
discriminator:
mapping:
auto-beta-router: '#/components/schemas/AutoBetaRouterPlugin'
auto-router: '#/components/schemas/AutoRouterPlugin'
context-compression: '#/components/schemas/ContextCompressionPlugin'
file-parser: '#/components/schemas/FileParserPlugin'
Expand All @@ -12477,6 +12514,7 @@ components:
propertyName: 'id'
oneOf:
- $ref: '#/components/schemas/AutoRouterPlugin'
- $ref: '#/components/schemas/AutoBetaRouterPlugin'
- $ref: '#/components/schemas/ModerationPlugin'
- $ref: '#/components/schemas/WebSearchPlugin'
- $ref: '#/components/schemas/WebFetchPlugin'
Expand Down Expand Up @@ -20416,6 +20454,7 @@ components:
items:
discriminator:
mapping:
auto-beta-router: '#/components/schemas/AutoBetaRouterPlugin'
auto-router: '#/components/schemas/AutoRouterPlugin'
context-compression: '#/components/schemas/ContextCompressionPlugin'
file-parser: '#/components/schemas/FileParserPlugin'
Expand All @@ -20428,6 +20467,7 @@ components:
propertyName: 'id'
oneOf:
- $ref: '#/components/schemas/AutoRouterPlugin'
- $ref: '#/components/schemas/AutoBetaRouterPlugin'
- $ref: '#/components/schemas/ModerationPlugin'
- $ref: '#/components/schemas/WebSearchPlugin'
- $ref: '#/components/schemas/WebFetchPlugin'
Expand Down
Loading