chore: update OpenAPI spec from monorepo (#306)

Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
robert-j-y
2026-06-11 12:10:20 -07:00
committed by GitHub
co-authored by OpenRouter SDK Bot
parent 70c8757fc0
commit e3dc2e6f4c
+27
View File
@@ -1202,6 +1202,8 @@ components:
allOf: allOf:
- $ref: '#/components/schemas/AnthropicBaseUsageIteration' - $ref: '#/components/schemas/AnthropicBaseUsageIteration'
- properties: - properties:
model:
type: string
type: type:
enum: enum:
- message - message
@@ -10760,6 +10762,20 @@ components:
- type - type
- error - error
type: object type: object
MessagesFallbackParam:
additionalProperties:
nullable: true
description: >-
Fallback model to try when the primary model fails or refuses. Only the `model` field is supported; per-attempt
overrides are rejected.
example:
model: claude-opus-4-8
properties:
model:
type: string
required:
- model
type: object
MessagesMessageParam: MessagesMessageParam:
description: Anthropic message with OpenRouter extensions description: Anthropic message with OpenRouter extensions
example: example:
@@ -11105,6 +11121,17 @@ components:
type: object type: object
type: array type: array
type: object type: object
fallbacks:
description: >-
Fallback models to try if the primary model fails or refuses, in order. Handled by OpenRouter multi-model
routing rather than Anthropic server-side fallbacks; cannot be combined with `models`. Each entry accepts
only `model`. Maximum of 3 entries.
example:
- model: claude-opus-4-8
items:
$ref: '#/components/schemas/MessagesFallbackParam'
nullable: true
type: array
max_tokens: max_tokens:
type: integer type: integer
messages: messages: