From 728e9a7a73f42e10cd9713e72166d8005d5107af Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Fri, 17 Jul 2026 14:34:31 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 40 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 61a97fd..d202c2a 100755 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -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: @@ -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' @@ -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' @@ -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' @@ -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' @@ -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' @@ -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'