Skip to content

Commit fa70786

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

1 file changed

Lines changed: 37 additions & 9 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 37 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5545,6 +5545,7 @@ components:
55455545
moderation: '#/components/schemas/ModerationPlugin'
55465546
pareto-router: '#/components/schemas/ParetoRouterPlugin'
55475547
response-healing: '#/components/schemas/ResponseHealingPlugin'
5548+
switchyard-router: '#/components/schemas/SwitchyardRouterPlugin'
55485549
web: '#/components/schemas/WebSearchPlugin'
55495550
web-fetch: '#/components/schemas/WebFetchPlugin'
55505551
propertyName: 'id'
@@ -5559,6 +5560,7 @@ components:
55595560
- $ref: '#/components/schemas/ContextCompressionPlugin'
55605561
- $ref: '#/components/schemas/ParetoRouterPlugin'
55615562
- $ref: '#/components/schemas/FusionPlugin'
5563+
- $ref: '#/components/schemas/SwitchyardRouterPlugin'
55625564
type: 'array'
55635565
prediction:
55645566
$ref: '#/components/schemas/Prediction'
@@ -14892,6 +14894,7 @@ components:
1489214894
moderation: '#/components/schemas/ModerationPlugin'
1489314895
pareto-router: '#/components/schemas/ParetoRouterPlugin'
1489414896
response-healing: '#/components/schemas/ResponseHealingPlugin'
14897+
switchyard-router: '#/components/schemas/SwitchyardRouterPlugin'
1489514898
web: '#/components/schemas/WebSearchPlugin'
1489614899
web-fetch: '#/components/schemas/WebFetchPlugin'
1489714900
propertyName: 'id'
@@ -14906,6 +14909,7 @@ components:
1490614909
- $ref: '#/components/schemas/ContextCompressionPlugin'
1490714910
- $ref: '#/components/schemas/ParetoRouterPlugin'
1490814911
- $ref: '#/components/schemas/FusionPlugin'
14912+
- $ref: '#/components/schemas/SwitchyardRouterPlugin'
1490914913
type: 'array'
1491014914
provider:
1491114915
$ref: '#/components/schemas/ProviderPreferences'
@@ -24817,6 +24821,7 @@ components:
2481724821
moderation: '#/components/schemas/ModerationPlugin'
2481824822
pareto-router: '#/components/schemas/ParetoRouterPlugin'
2481924823
response-healing: '#/components/schemas/ResponseHealingPlugin'
24824+
switchyard-router: '#/components/schemas/SwitchyardRouterPlugin'
2482024825
web: '#/components/schemas/WebSearchPlugin'
2482124826
web-fetch: '#/components/schemas/WebFetchPlugin'
2482224827
propertyName: 'id'
@@ -24831,6 +24836,7 @@ components:
2483124836
- $ref: '#/components/schemas/ContextCompressionPlugin'
2483224837
- $ref: '#/components/schemas/ParetoRouterPlugin'
2483324838
- $ref: '#/components/schemas/FusionPlugin'
24839+
- $ref: '#/components/schemas/SwitchyardRouterPlugin'
2483424840
type: 'array'
2483524841
presence_penalty:
2483624842
format: 'double'
@@ -26609,6 +26615,28 @@ components:
2660926615
required:
2661026616
- 'suspended'
2661126617
type: 'object'
26618+
SwitchyardRouterPlugin:
26619+
example:
26620+
algorithm: 'stage'
26621+
id: 'switchyard-router'
26622+
properties:
26623+
algorithm:
26624+
description: 'Routing algorithm for this request. "capability" calls a small judge model to rate how demanding the task is, then picks the efficient or capable candidate. "stage" reads the tool-result history (errors, repeated failures, edits landing) and calls the judge only when those signals are undecided. "auto" is "stage" without the judge call. "random" picks one candidate at random. "composite" keeps the tier chosen on the last human turn and re-evaluates tool turns with the stage signals. "passthrough" serves the eligible candidates in the order OpenRouter already ranked them, with no routing decision and no judge call. Omit this field to use the platform default, capability.'
26625+
enum:
26626+
- 'capability'
26627+
- 'stage'
26628+
- 'auto'
26629+
- 'random'
26630+
- 'composite'
26631+
- 'passthrough'
26632+
type: 'string'
26633+
id:
26634+
enum:
26635+
- 'switchyard-router'
26636+
type: 'string'
26637+
required:
26638+
- 'id'
26639+
type: 'object'
2661226640
TaskClassificationItem:
2661326641
example:
2661426642
category_token_share: 0.48
@@ -36645,13 +36673,13 @@ paths:
3664536673
example:
3664636674
error:
3664736675
code: 409
36648-
message: 'The intern is not in a state that allows this operation'
36676+
message: 'Another operation holds the intern, retry once it settles'
3664936677
metadata:
3665036678
reason: 'intern_busy'
36651-
retryable: false
36679+
retryable: true
3665236680
schema:
3665336681
$ref: '#/components/schemas/InternLifecycleError'
36654-
description: 'The intern is not in a state that allows this operation.'
36682+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
3665536683
'413':
3665636684
content:
3665736685
application/json:
@@ -37293,13 +37321,13 @@ paths:
3729337321
example:
3729437322
error:
3729537323
code: 409
37296-
message: 'The intern is not in a state that allows this operation'
37324+
message: 'Another operation holds the intern, retry once it settles'
3729737325
metadata:
3729837326
reason: 'intern_busy'
37299-
retryable: false
37327+
retryable: true
3730037328
schema:
3730137329
$ref: '#/components/schemas/InternLifecycleError'
37302-
description: 'The intern is not in a state that allows this operation.'
37330+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
3730337331
'413':
3730437332
content:
3730537333
application/json:
@@ -37445,13 +37473,13 @@ paths:
3744537473
example:
3744637474
error:
3744737475
code: 409
37448-
message: 'The intern is not in a state that allows this operation'
37476+
message: 'Another operation holds the intern, retry once it settles'
3744937477
metadata:
3745037478
reason: 'intern_busy'
37451-
retryable: false
37479+
retryable: true
3745237480
schema:
3745337481
$ref: '#/components/schemas/InternLifecycleError'
37454-
description: 'The intern is not in a state that allows this operation.'
37482+
description: 'The intern is not in a state that allows this operation. `metadata.reason` says whether to try again: `intern_busy` means another operation still holds the intern and carries `metadata.retryable: true`, so the same request may be sent again once it settles. A duplicate delete of an intern already being deleted is not a conflict and is accepted with 202.'
3745537483
'413':
3745637484
content:
3745737485
application/json:

0 commit comments

Comments
 (0)