Skip to content

Commit c320e7b

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

1 file changed

Lines changed: 126 additions & 3 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 126 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3586,6 +3586,7 @@ components:
35863586
- $ref: '#/components/schemas/OpenAIResponseCustomToolCallOutput'
35873587
- $ref: '#/components/schemas/ApplyPatchCallItem'
35883588
- $ref: '#/components/schemas/ApplyPatchCallOutputItem'
3589+
- $ref: '#/components/schemas/ConfigurationUpdateItem'
35893590
type: 'array'
35903591
- type: 'null'
35913592
example:
@@ -5972,6 +5973,20 @@ components:
59725973
name: 'Assistant Config'
59735974
role: 'system'
59745975
properties:
5976+
configuration_update:
5977+
additionalProperties: false
5978+
description: 'OpenRouter extension. Changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding turns. Place it on a content-less system message (`content: ""`) directly before the user message it should apply to, and keep it at that position in later requests. Equivalent to the OpenAI Responses `configuration_update` input item and the Anthropic Messages per-message `output_config.effort`.'
5979+
example:
5980+
reasoning:
5981+
effort: 'low'
5982+
properties:
5983+
reasoning:
5984+
$ref: '#/components/schemas/ConfigurationUpdateReasoning'
5985+
required:
5986+
- 'reasoning'
5987+
type:
5988+
- 'object'
5989+
- 'null'
59755990
content:
59765991
anyOf:
59775992
- type: 'string'
@@ -6630,6 +6645,48 @@ components:
66306645
- 'display_width'
66316646
- 'environment'
66326647
type: 'object'
6648+
ConfigurationUpdateItem:
6649+
description: 'Changes reasoning effort from this point in the conversation onward without invalidating the prompt cache for the preceding items. Place it before the user message it should apply to; it stays in effect until another configuration update. Two adjacent configuration updates are rejected. Only supported by models that accept mid-conversation effort changes.'
6650+
example:
6651+
reasoning:
6652+
effort: 'low'
6653+
type: 'configuration_update'
6654+
properties:
6655+
id:
6656+
type:
6657+
- 'string'
6658+
- 'null'
6659+
reasoning:
6660+
$ref: '#/components/schemas/ConfigurationUpdateReasoning'
6661+
type:
6662+
enum:
6663+
- 'configuration_update'
6664+
type: 'string'
6665+
required:
6666+
- 'type'
6667+
- 'reasoning'
6668+
type: 'object'
6669+
ConfigurationUpdateReasoning:
6670+
additionalProperties: false
6671+
description: 'Reasoning settings applied from this point in the conversation onward'
6672+
example:
6673+
effort: 'low'
6674+
properties:
6675+
effort:
6676+
description: 'Reasoning effort to apply from this point in the conversation onward'
6677+
enum:
6678+
- 'max'
6679+
- 'xhigh'
6680+
- 'high'
6681+
- 'medium'
6682+
- 'low'
6683+
- 'minimal'
6684+
- 'none'
6685+
example: 'low'
6686+
type: 'string'
6687+
required:
6688+
- 'effort'
6689+
type: 'object'
66336690
ConflictResponse:
66346691
description: 'Conflict - Resource conflict or concurrent modification'
66356692
example:
@@ -11660,6 +11717,7 @@ components:
1166011717
- $ref: '#/components/schemas/ItemReferenceItem'
1166111718
- $ref: '#/components/schemas/AdditionalToolsItem'
1166211719
- $ref: '#/components/schemas/AgentMessageItem'
11720+
- $ref: '#/components/schemas/ConfigurationUpdateItem'
1166311721
type: 'array'
1166411722
description: 'Input for a response request - can be a string or array of items'
1166511723
example:
@@ -12507,9 +12565,7 @@ components:
1250712565
arguments:
1250812566
type: 'string'
1250912567
error:
12510-
type:
12511-
- 'string'
12512-
- 'null'
12568+
$ref: '#/components/schemas/McpToolCallError'
1251312569
id:
1251412570
type: 'string'
1251512571
name:
@@ -12531,6 +12587,26 @@ components:
1253112587
- 'arguments'
1253212588
- 'server_label'
1253312589
type: 'object'
12590+
McpHttpError:
12591+
description: 'The MCP server request failed at the HTTP layer'
12592+
example:
12593+
code: 503
12594+
message: 'Service Unavailable'
12595+
type: 'http_error'
12596+
properties:
12597+
code:
12598+
type: 'integer'
12599+
message:
12600+
type: 'string'
12601+
type:
12602+
enum:
12603+
- 'http_error'
12604+
type: 'string'
12605+
required:
12606+
- 'type'
12607+
- 'code'
12608+
- 'message'
12609+
type: 'object'
1253412610
McpListToolsItem:
1253512611
description: 'List of available MCP tools from a server'
1253612612
example:
@@ -12582,6 +12658,26 @@ components:
1258212658
- 'server_label'
1258312659
- 'tools'
1258412660
type: 'object'
12661+
McpProtocolError:
12662+
description: 'The MCP server returned a protocol-level error'
12663+
example:
12664+
code: -32601
12665+
message: 'Method not found'
12666+
type: 'mcp_protocol_error'
12667+
properties:
12668+
code:
12669+
type: 'integer'
12670+
message:
12671+
type: 'string'
12672+
type:
12673+
enum:
12674+
- 'mcp_protocol_error'
12675+
type: 'string'
12676+
required:
12677+
- 'type'
12678+
- 'code'
12679+
- 'message'
12680+
type: 'object'
1258512681
McpServerTool:
1258612682
description: 'MCP (Model Context Protocol) tool configuration'
1258712683
example:
@@ -12661,6 +12757,32 @@ components:
1266112757
- 'type'
1266212758
- 'server_label'
1266312759
type: 'object'
12760+
McpToolCallError:
12761+
anyOf:
12762+
- type: 'string'
12763+
- $ref: '#/components/schemas/McpProtocolError'
12764+
- $ref: '#/components/schemas/McpToolExecutionError'
12765+
- $ref: '#/components/schemas/McpHttpError'
12766+
- type: 'null'
12767+
description: 'Error from an MCP tool call, either a plain message or a structured error'
12768+
example:
12769+
code: 503
12770+
message: 'Service Unavailable'
12771+
type: 'http_error'
12772+
McpToolExecutionError:
12773+
description: 'The MCP tool ran but reported a failure'
12774+
example:
12775+
content: 'Connection refused'
12776+
type: 'mcp_tool_execution_error'
12777+
properties:
12778+
content: {}
12779+
type:
12780+
enum:
12781+
- 'mcp_tool_execution_error'
12782+
type: 'string'
12783+
required:
12784+
- 'type'
12785+
type: 'object'
1266412786
MemberAssignment:
1266512787
example:
1266612788
assigned_by: 'user_abc123'
@@ -23001,6 +23123,7 @@ components:
2300123123
- 'failed_to_download_image'
2300223124
- 'image_file_not_found'
2300323125
- 'bio_policy'
23126+
- 'misalignment_policy_violation'
2300423127
- 'data_residency_mismatch'
2300523128
type: 'string'
2300623129
message:

0 commit comments

Comments
 (0)