mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +08:00
chore: update OpenAPI spec from monorepo (#289)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
b9f588d84b
commit
b7d5098042
+18
-15
@@ -21370,10 +21370,12 @@ paths:
|
|||||||
modes.
|
modes.
|
||||||
operationId: sendChatCompletionRequest
|
operationId: sendChatCompletionRequest
|
||||||
parameters:
|
parameters:
|
||||||
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
|
- description: >-
|
||||||
|
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
|
||||||
|
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
|
||||||
example: enabled
|
example: enabled
|
||||||
in: header
|
in: header
|
||||||
name: X-OpenRouter-Experimental-Metadata
|
name: X-OpenRouter-Metadata
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/MetadataLevel'
|
$ref: '#/components/schemas/MetadataLevel'
|
||||||
@@ -21509,9 +21511,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/ForbiddenResponse'
|
$ref: '#/components/schemas/ForbiddenResponse'
|
||||||
description: >-
|
description: >-
|
||||||
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
||||||
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
|
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
|
||||||
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
|
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
|
||||||
details.
|
|
||||||
'404':
|
'404':
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -25228,10 +25229,12 @@ paths:
|
|||||||
thinking.
|
thinking.
|
||||||
operationId: createMessages
|
operationId: createMessages
|
||||||
parameters:
|
parameters:
|
||||||
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
|
- description: >-
|
||||||
|
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
|
||||||
|
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
|
||||||
example: enabled
|
example: enabled
|
||||||
in: header
|
in: header
|
||||||
name: X-OpenRouter-Experimental-Metadata
|
name: X-OpenRouter-Metadata
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/MetadataLevel'
|
$ref: '#/components/schemas/MetadataLevel'
|
||||||
@@ -25349,9 +25352,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/ForbiddenResponse'
|
$ref: '#/components/schemas/ForbiddenResponse'
|
||||||
description: >-
|
description: >-
|
||||||
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
||||||
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
|
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
|
||||||
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
|
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
|
||||||
details.
|
|
||||||
'404':
|
'404':
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
@@ -27601,10 +27603,12 @@ paths:
|
|||||||
description: Creates a streaming or non-streaming response using OpenResponses API format
|
description: Creates a streaming or non-streaming response using OpenResponses API format
|
||||||
operationId: createResponses
|
operationId: createResponses
|
||||||
parameters:
|
parameters:
|
||||||
- description: Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`.
|
- description: >-
|
||||||
|
Opt-in to surface routing metadata on the response under `openrouter_metadata`. Defaults to `disabled`. The
|
||||||
|
legacy header `X-OpenRouter-Experimental-Metadata` is also accepted for backward compatibility.
|
||||||
example: enabled
|
example: enabled
|
||||||
in: header
|
in: header
|
||||||
name: X-OpenRouter-Experimental-Metadata
|
name: X-OpenRouter-Metadata
|
||||||
required: false
|
required: false
|
||||||
schema:
|
schema:
|
||||||
$ref: '#/components/schemas/MetadataLevel'
|
$ref: '#/components/schemas/MetadataLevel'
|
||||||
@@ -27727,9 +27731,8 @@ paths:
|
|||||||
$ref: '#/components/schemas/ForbiddenResponse'
|
$ref: '#/components/schemas/ForbiddenResponse'
|
||||||
description: >-
|
description: >-
|
||||||
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
Forbidden - Authentication successful but insufficient permissions, or a guardrail blocked the request. When
|
||||||
guardrails block and the `X-OpenRouter-Experimental-Metadata: enabled` header is present, the response
|
guardrails block and the `X-OpenRouter-Metadata: enabled` header is present, the response includes
|
||||||
includes `openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage
|
`openrouter_metadata` with full routing context and a `pipeline` array containing guardrail stage details.
|
||||||
details.
|
|
||||||
'404':
|
'404':
|
||||||
content:
|
content:
|
||||||
application/json:
|
application/json:
|
||||||
|
|||||||
Reference in New Issue
Block a user