Skip to content

Commit d65cce6

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

1 file changed

Lines changed: 86 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1532,6 +1532,27 @@ components:
15321532
- 'type'
15331533
- 'value'
15341534
type: 'object'
1535+
AnthropicInputTransformation:
1536+
additionalProperties: {}
1537+
description: 'A server-side transformation Anthropic applied to the request input'
1538+
example:
1539+
path: 'messages.1.content.0'
1540+
reason: 'prefix_binding_mismatch'
1541+
type: 'thinking_dropped'
1542+
properties:
1543+
path:
1544+
type:
1545+
- 'string'
1546+
- 'null'
1547+
reason:
1548+
type:
1549+
- 'string'
1550+
- 'null'
1551+
type:
1552+
type: 'string'
1553+
required:
1554+
- 'type'
1555+
type: 'object'
15351556
AnthropicIterationCacheCreation:
15361557
default: null
15371558
example:
@@ -1545,6 +1566,16 @@ components:
15451566
type:
15461567
- 'object'
15471568
- 'null'
1569+
AnthropicMessageOutputConfig:
1570+
additionalProperties: false
1571+
example:
1572+
effort: 'low'
1573+
properties:
1574+
effort:
1575+
$ref: '#/components/schemas/AnthropicOutputEffort'
1576+
type:
1577+
- 'object'
1578+
- 'null'
15481579
AnthropicMessagesErrorResponse:
15491580
description: 'Error response from the Anthropic Messages API'
15501581
example:
@@ -1618,6 +1649,18 @@ components:
16181649
input_tokens: 100
16191650
output_tokens: 50
16201651
type: 'message'
1652+
AnthropicOutputEffort:
1653+
enum:
1654+
- 'low'
1655+
- 'medium'
1656+
- 'high'
1657+
- 'xhigh'
1658+
- 'max'
1659+
- null
1660+
example: 'high'
1661+
type:
1662+
- 'string'
1663+
- 'null'
16211664
AnthropicOutputTokensDetails:
16221665
example:
16231666
thinking_tokens: 0
@@ -1774,6 +1817,14 @@ components:
17741817
type:
17751818
- 'string'
17761819
- 'null'
1820+
AnthropicSystemClearAt:
1821+
enum:
1822+
- 'next_user_message'
1823+
- null
1824+
example: 'next_user_message'
1825+
type:
1826+
- 'string'
1827+
- 'null'
17771828
AnthropicTextBlock:
17781829
example:
17791830
citations: null
@@ -2046,10 +2097,25 @@ components:
20462097
- 'thinking'
20472098
- 'signature'
20482099
type: 'object'
2100+
AnthropicThinkingBlockBinding:
2101+
additionalProperties: false
2102+
example:
2103+
prefix_mismatch_behavior: 'drop_block'
2104+
properties:
2105+
prefix_mismatch_behavior:
2106+
enum:
2107+
- 'drop_block'
2108+
type: 'string'
2109+
required:
2110+
- 'prefix_mismatch_behavior'
2111+
type:
2112+
- 'object'
2113+
- 'null'
20492114
AnthropicThinkingDisplay:
20502115
enum:
20512116
- 'summarized'
20522117
- 'omitted'
2118+
- 'updates'
20532119
- null
20542120
example: 'summarized'
20552121
type:
@@ -3528,6 +3594,12 @@ components:
35283594
type: 'array'
35293595
id:
35303596
type: 'string'
3597+
input_transformations:
3598+
items:
3599+
$ref: '#/components/schemas/AnthropicInputTransformation'
3600+
type:
3601+
- 'array'
3602+
- 'null'
35313603
model:
35323604
type: 'string'
35333605
role:
@@ -12933,6 +13005,8 @@ components:
1293313005
content: 'Hello, how are you?'
1293413006
role: 'user'
1293513007
properties:
13008+
clear_at:
13009+
$ref: '#/components/schemas/AnthropicSystemClearAt'
1293613010
content:
1293713011
anyOf:
1293813012
- type: 'string'
@@ -13098,6 +13172,8 @@ components:
1309813172
- $ref: '#/components/schemas/MessagesShellToolResultBlock'
1309913173
- $ref: '#/components/schemas/MessagesBashToolResultBlock'
1310013174
type: 'array'
13175+
output_config:
13176+
$ref: '#/components/schemas/AnthropicMessageOutputConfig'
1310113177
role:
1310213178
enum:
1310313179
- 'user'
@@ -13375,6 +13451,8 @@ components:
1337513451
thinking:
1337613452
oneOf:
1337713453
- properties:
13454+
block_binding:
13455+
$ref: '#/components/schemas/AnthropicThinkingBlockBinding'
1337813456
budget_tokens:
1337913457
type: 'integer'
1338013458
display:
@@ -13396,6 +13474,8 @@ components:
1339613474
- 'type'
1339713475
type: 'object'
1339813476
- properties:
13477+
block_binding:
13478+
$ref: '#/components/schemas/AnthropicThinkingBlockBinding'
1339913479
display:
1340013480
$ref: '#/components/schemas/AnthropicThinkingDisplay'
1340113481
type:
@@ -13833,6 +13913,12 @@ components:
1383313913
type: 'array'
1383413914
id:
1383513915
type: 'string'
13916+
input_transformations:
13917+
items:
13918+
$ref: '#/components/schemas/AnthropicInputTransformation'
13919+
type:
13920+
- 'array'
13921+
- 'null'
1383613922
model:
1383713923
type: 'string'
1383813924
provider:

0 commit comments

Comments
 (0)