From ec85ab283b6f01c4460b759a3f43abad5295cac5 Mon Sep 17 00:00:00 2001 From: robert-j-y <212159665+robert-j-y@users.noreply.github.com> Date: Wed, 13 May 2026 14:58:31 -0700 Subject: [PATCH] chore: update OpenAPI spec from monorepo (#244) Co-authored-by: OpenRouter SDK Bot --- .speakeasy/in.openapi.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 85ec720..1a309c7 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -280,6 +280,9 @@ components: - type type: object AnthropicCacheControlDirective: + description: >- + Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints + to the last cacheable block in the request. Currently supported for Anthropic Claude models. example: type: ephemeral properties: @@ -3927,11 +3930,7 @@ components: temperature: 0.7 properties: cache_control: - allOf: - - $ref: '#/components/schemas/AnthropicCacheControlDirective' - - description: >- - Enable automatic prompt caching. When set, the system automatically applies cache breakpoints to the - last cacheable block in the request. Currently supported for Anthropic Claude models. + $ref: '#/components/schemas/AnthropicCacheControlDirective' debug: $ref: '#/components/schemas/ChatDebugOptions' frequency_penalty: @@ -14013,6 +14012,8 @@ components: background: nullable: true type: boolean + cache_control: + $ref: '#/components/schemas/AnthropicCacheControlDirective' frequency_penalty: format: double nullable: true