From e3dc2e6f4c8eaa1ebf0345dd593e2bff3914e86f Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Thu, 11 Jun 2026 12:10:20 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#306) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 4b9a43c..6121a58 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -1202,6 +1202,8 @@ components: allOf: - $ref: '#/components/schemas/AnthropicBaseUsageIteration' - properties: + model: + type: string type: enum: - message @@ -10760,6 +10762,20 @@ components: - type - error 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: description: Anthropic message with OpenRouter extensions example: @@ -11105,6 +11121,17 @@ components: type: object type: array 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: type: integer messages: