Skip to content

Commit d2ba1fe

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

1 file changed

Lines changed: 124 additions & 3 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 124 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11100,6 +11100,16 @@ components:
1110011100
- 'type'
1110111101
- 'instructions'
1110211102
type: 'object'
11103+
DecisionsRefusalAnswer:
11104+
description: 'The provider declined to answer this question; no value or probabilities are returned. Other questions in the same request can still have answers.'
11105+
properties:
11106+
type:
11107+
enum:
11108+
- 'refusal'
11109+
type: 'string'
11110+
required:
11111+
- 'type'
11112+
type: 'object'
1110311113
DecisionsRequest:
1110411114
properties:
1110511115
assets:
@@ -11154,21 +11164,28 @@ components:
1115411164
type: 'object'
1115511165
DecisionsResponse:
1115611166
properties:
11167+
annotations:
11168+
description: 'Sources for the request as a whole, when the provider returns them. Not attributed to individual answers.'
11169+
items:
11170+
$ref: '#/components/schemas/DecisionsUrlCitationAnnotation'
11171+
type: 'array'
1115711172
answers:
1115811173
additionalProperties:
11159-
description: 'A Decisions answer using a boolean, choice, score, or image bounding-box evaluation.'
11174+
description: 'A Decisions answer using a boolean, choice, score, or image bounding-box evaluation, or a refusal of that question.'
1116011175
discriminator:
1116111176
mapping:
1116211177
box: '#/components/schemas/DecisionsBoxAnswer'
1116311178
choice: '#/components/schemas/DecisionsChoiceAnswer'
1116411179
noul: '#/components/schemas/DecisionsNoulAnswer'
11180+
refusal: '#/components/schemas/DecisionsRefusalAnswer'
1116511181
score: '#/components/schemas/DecisionsScoreAnswer'
1116611182
propertyName: 'type'
1116711183
oneOf:
1116811184
- $ref: '#/components/schemas/DecisionsNoulAnswer'
1116911185
- $ref: '#/components/schemas/DecisionsChoiceAnswer'
1117011186
- $ref: '#/components/schemas/DecisionsScoreAnswer'
1117111187
- $ref: '#/components/schemas/DecisionsBoxAnswer'
11188+
- $ref: '#/components/schemas/DecisionsRefusalAnswer'
1117211189
type: 'object'
1117311190
id:
1117411191
type: 'string'
@@ -11257,6 +11274,28 @@ components:
1125711274
- 'instructions'
1125811275
- 'criteria'
1125911276
type: 'object'
11277+
DecisionsUrlCitationAnnotation:
11278+
description: 'A web source the provider used for this request. Applies to the whole request, not to a specific answer.'
11279+
properties:
11280+
type:
11281+
enum:
11282+
- 'url_citation'
11283+
type: 'string'
11284+
url_citation:
11285+
properties:
11286+
content:
11287+
type: 'string'
11288+
title:
11289+
type: 'string'
11290+
url:
11291+
type: 'string'
11292+
required:
11293+
- 'url'
11294+
type: 'object'
11295+
required:
11296+
- 'type'
11297+
- 'url_citation'
11298+
type: 'object'
1126011299
DecisionsUsageInputTokensDetails:
1126111300
description: 'Of `input_tokens`, those the provider served from its prompt cache.'
1126211301
properties:
@@ -31333,8 +31372,13 @@ components:
3133331372
example: 'mistralai/voxtral-mini-tts-2603'
3133431373
type: 'string'
3133531374
provider:
31336-
description: 'Provider configuration: data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options'
31375+
description: 'Provider configuration: provider routing preferences (`order`, `only`, `ignore`, `allow_fallbacks`), data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options'
3133731376
properties:
31377+
allow_fallbacks:
31378+
description: "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n"
31379+
type:
31380+
- 'boolean'
31381+
- 'null'
3133831382
data_collection:
3133931383
description: "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data."
3134031384
enum:
@@ -31346,8 +31390,44 @@ components:
3134631390
type:
3134731391
- 'string'
3134831392
- 'null'
31393+
ignore:
31394+
description: 'List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.'
31395+
example:
31396+
- 'openai'
31397+
- 'anthropic'
31398+
items:
31399+
anyOf:
31400+
- $ref: '#/components/schemas/ProviderName'
31401+
- type: 'string'
31402+
type:
31403+
- 'array'
31404+
- 'null'
31405+
only:
31406+
description: 'List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.'
31407+
example:
31408+
- 'openai'
31409+
- 'anthropic'
31410+
items:
31411+
anyOf:
31412+
- $ref: '#/components/schemas/ProviderName'
31413+
- type: 'string'
31414+
type:
31415+
- 'array'
31416+
- 'null'
3134931417
options:
3135031418
$ref: '#/components/schemas/ProviderOptions'
31419+
order:
31420+
description: 'An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.'
31421+
example:
31422+
- 'openai'
31423+
- 'anthropic'
31424+
items:
31425+
anyOf:
31426+
- $ref: '#/components/schemas/ProviderName'
31427+
- type: 'string'
31428+
type:
31429+
- 'array'
31430+
- 'null'
3135131431
zdr:
3135231432
description: 'Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.'
3135331433
example: true
@@ -31944,8 +32024,13 @@ components:
3194432024
example: 'openai/whisper-large-v3'
3194532025
type: 'string'
3194632026
provider:
31947-
description: 'Provider configuration: data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options'
32027+
description: 'Provider configuration: provider routing preferences (`order`, `only`, `ignore`, `allow_fallbacks`), data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options'
3194832028
properties:
32029+
allow_fallbacks:
32030+
description: "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n"
32031+
type:
32032+
- 'boolean'
32033+
- 'null'
3194932034
data_collection:
3195032035
description: "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data."
3195132036
enum:
@@ -31957,8 +32042,44 @@ components:
3195732042
type:
3195832043
- 'string'
3195932044
- 'null'
32045+
ignore:
32046+
description: 'List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request.'
32047+
example:
32048+
- 'openai'
32049+
- 'anthropic'
32050+
items:
32051+
anyOf:
32052+
- $ref: '#/components/schemas/ProviderName'
32053+
- type: 'string'
32054+
type:
32055+
- 'array'
32056+
- 'null'
32057+
only:
32058+
description: 'List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request.'
32059+
example:
32060+
- 'openai'
32061+
- 'anthropic'
32062+
items:
32063+
anyOf:
32064+
- $ref: '#/components/schemas/ProviderName'
32065+
- type: 'string'
32066+
type:
32067+
- 'array'
32068+
- 'null'
3196032069
options:
3196132070
$ref: '#/components/schemas/ProviderOptions'
32071+
order:
32072+
description: 'An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message.'
32073+
example:
32074+
- 'openai'
32075+
- 'anthropic'
32076+
items:
32077+
anyOf:
32078+
- $ref: '#/components/schemas/ProviderName'
32079+
- type: 'string'
32080+
type:
32081+
- 'array'
32082+
- 'null'
3196232083
zdr:
3196332084
description: 'Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used.'
3196432085
example: true

0 commit comments

Comments
 (0)