From 1d39df918900b66e0ebc431ea7e0a8f655347b1c Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Thu, 9 Jul 2026 18:13:39 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 2200f9b..67f9439 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -3099,6 +3099,8 @@ components: summary: auto nullable: true properties: + context: + $ref: '#/components/schemas/ReasoningContext' effort: $ref: '#/components/schemas/ReasoningEffort' mode: @@ -10408,6 +10410,8 @@ components: text: Hello, how can I help you? type: input_text properties: + prompt_cache_breakpoint: + $ref: '#/components/schemas/PromptCacheBreakpoint' text: type: string type: @@ -15595,6 +15599,9 @@ components: type: integer input_tokens_details: properties: + cache_write_tokens: + nullable: true + type: integer cached_tokens: type: integer required: @@ -18011,6 +18018,40 @@ components: required: - type type: object + PromptCacheBreakpoint: + description: >- + Marks an explicit prompt-cache boundary on this content block. Everything through the block carrying this marker + is part of the candidate cached prefix. Only supported by OpenAI GPT-5.6 and newer. + example: + mode: explicit + nullable: true + properties: + mode: + enum: + - explicit + type: string + required: + - mode + type: object + PromptCacheOptions: + description: >- + Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks + marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer. + example: + mode: explicit + ttl: 30m + nullable: true + properties: + mode: + enum: + - explicit + type: string + ttl: + nullable: true + type: string + required: + - mode + type: object PromptInjectionScanScope: description: >- Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults @@ -19367,6 +19408,19 @@ components: example: enabled: true summary: auto + ReasoningContext: + description: >- + Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); + `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn + only. Only supported by OpenAI GPT-5.6 and newer. + enum: + - auto + - all_turns + - current_turn + - null + example: all_turns + nullable: true + type: string ReasoningDeltaEvent: allOf: - $ref: '#/components/schemas/BaseReasoningDeltaEvent' @@ -19976,6 +20030,8 @@ components: prompt_cache_key: nullable: true type: string + prompt_cache_options: + $ref: '#/components/schemas/PromptCacheOptions' provider: $ref: '#/components/schemas/ProviderPreferences' reasoning: