mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: update OpenAPI spec from monorepo (#306)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
70c8757fc0
commit
e3dc2e6f4c
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user