From d86f499859653ee32bc6784d0a2ffc71857e7a39 Mon Sep 17 00:00:00 2001 From: OpenRouter SDK Bot Date: Wed, 18 Nov 2026 23:25:00 +0000 Subject: [PATCH] chore: update OpenAPI spec [sdk-bot] --- .speakeasy/in.openapi.yaml | 42 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index 470cb20f..9dbca422 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -29961,6 +29961,9 @@ components: image_urls: true max_completion_tokens: 16384 max_prompt_tokens: null + prompt_caching: + cache_control: false + prompt_cache_key: false quantization: 'bf16' reasoning: return_mechanism: 'reasoning' @@ -30226,6 +30229,24 @@ components: - 'prompt' - 'completion' type: 'object' + PrivateEndpointPromptCaching: + description: 'Prompt-caching controls for an OpenAI-compatible private endpoint. Accepted fields default on after validation; explicit owner settings override the defaults.' + example: + cache_control: false + prompt_cache_key: false + properties: + cache_control: + description: 'Forward top-level, message, and tool cache_control markers. Defaults on after endpoint validation accepts these fields; otherwise off. Set false to opt out, or true to declare support explicitly.' + example: false + type: 'boolean' + prompt_cache_key: + description: 'Send an OpenRouter-derived, customer-isolated prompt_cache_key, not the caller-supplied key. Defaults on after endpoint validation accepts the field; otherwise off. Set false to opt out, or true to declare support explicitly. HIPAA and unknown workspace posture withhold OpenRouter caching directives and the derived key; this does not control upstream retention.' + example: false + type: 'boolean' + required: + - 'cache_control' + - 'prompt_cache_key' + type: 'object' PrivateEndpointQuantization: description: 'Weight precision the deployment runs at; `unknown` when not stated.' enum: @@ -30279,6 +30300,9 @@ components: image_urls: true max_completion_tokens: 16384 max_prompt_tokens: null + prompt_caching: + cache_control: false + prompt_cache_key: false quantization: 'bf16' reasoning: return_mechanism: 'reasoning' @@ -30394,6 +30418,8 @@ components: type: - 'integer' - 'null' + prompt_caching: + $ref: '#/components/schemas/PrivateEndpointPromptCaching' quantization: $ref: '#/components/schemas/PrivateEndpointQuantization' reasoning: @@ -37361,6 +37387,20 @@ components: required: - 'is_filtered_model_catalog_enabled' type: 'object' + UpdatePrivateEndpointPromptCaching: + description: 'Change only the named prompt-caching flags; omitted flags keep their stored value.' + example: + cache_control: true + properties: + cache_control: + description: 'Forward top-level, message, and tool cache_control markers. Defaults on after endpoint validation accepts these fields; otherwise off. Set false to opt out, or true to declare support explicitly.' + example: false + type: 'boolean' + prompt_cache_key: + description: 'Send an OpenRouter-derived, customer-isolated prompt_cache_key, not the caller-supplied key. Defaults on after endpoint validation accepts the field; otherwise off. Set false to opt out, or true to declare support explicitly. HIPAA and unknown workspace posture withhold OpenRouter caching directives and the derived key; this does not control upstream retention.' + example: false + type: 'boolean' + type: 'object' UpdatePrivateEndpointRequest: description: 'Only the fields present change. `base_url` and `upstream_model_id` are accepted on a draft only; `declared_zdr` and `declared_region` on drafts and active endpoints; `pricing` and `declared_parameters` replace their value; `settings` is itself a partial update where `null` clears a limit or restores the provider default.' example: @@ -37516,6 +37556,8 @@ components: type: - 'integer' - 'null' + prompt_caching: + $ref: '#/components/schemas/UpdatePrivateEndpointPromptCaching' quantization: $ref: '#/components/schemas/PrivateEndpointQuantization' reasoning: