Skip to content

Commit b7d5098

Browse files
robert-j-yOpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#289)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent b9f588d commit b7d5098

1 file changed

Lines changed: 18 additions & 15 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21370,10 +21370,12 @@ paths:
2137021370
modes.
2137121371
operationId: sendChatCompletionRequest
2137221372
parameters:
21373-
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
21373+
- description: >-
21374+
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
21375+
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
2137421376
example: enabled
2137521377
in: header
21376-
name: X-OpenRouter-Experimental-Metadata
21378+
name: X-OpenRouter-Metadata
2137721379
required: false
2137821380
schema:
2137921381
$ref: '#/components/schemas/MetadataLevel'
@@ -21509,9 +21511,8 @@ paths:
2150921511
$ref: '#/components/schemas/ForbiddenResponse'
2151021512
description: >-
2151121513
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
21512-
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
21513-
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
21514-
details.
21514+
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
21515+
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
2151521516
'404':
2151621517
content:
2151721518
application/json:
@@ -25228,10 +25229,12 @@ paths:
2522825229
thinking.
2522925230
operationId: createMessages
2523025231
parameters:
25231-
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
25232+
- description: >-
25233+
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
25234+
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
2523225235
example: enabled
2523325236
in: header
25234-
name: X-OpenRouter-Experimental-Metadata
25237+
name: X-OpenRouter-Metadata
2523525238
required: false
2523625239
schema:
2523725240
$ref: '#/components/schemas/MetadataLevel'
@@ -25349,9 +25352,8 @@ paths:
2534925352
$ref: '#/components/schemas/ForbiddenResponse'
2535025353
description: >-
2535125354
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
25352-
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
25353-
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
25354-
details.
25355+
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
25356+
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
2535525357
'404':
2535625358
content:
2535725359
application/json:
@@ -27601,10 +27603,12 @@ paths:
2760127603
description: Creates a streaming or non-streaming response using OpenResponses API format
2760227604
operationId: createResponses
2760327605
parameters:
27604-
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
27606+
- description: >-
27607+
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
27608+
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
2760527609
example: enabled
2760627610
in: header
27607-
name: X-OpenRouter-Experimental-Metadata
27611+
name: X-OpenRouter-Metadata
2760827612
required: false
2760927613
schema:
2761027614
$ref: '#/components/schemas/MetadataLevel'
@@ -27727,9 +27731,8 @@ paths:
2772727731
$ref: '#/components/schemas/ForbiddenResponse'
2772827732
description: >-
2772927733
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
27730-
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
27731-
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
27732-
details.
27734+
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
27735+
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
2773327736
'404':
2773427737
content:
2773527738
application/json:

0 commit comments

Comments
 (0)