Skip to content

Commit a2e9c97

Browse files
openrouter-docs-sync[bot]OpenRouter SDK Bot
andauthored
chore: update OpenAPI spec from monorepo (#417)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
1 parent 1281ae6 commit a2e9c97

1 file changed

Lines changed: 56 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3099,6 +3099,8 @@ components:
30993099
summary: auto
31003100
nullable: true
31013101
properties:
3102+
context:
3103+
$ref: '#/components/schemas/ReasoningContext'
31023104
effort:
31033105
$ref: '#/components/schemas/ReasoningEffort'
31043106
mode:
@@ -10408,6 +10410,8 @@ components:
1040810410
text: Hello, how can I help you?
1040910411
type: input_text
1041010412
properties:
10413+
prompt_cache_breakpoint:
10414+
$ref: '#/components/schemas/PromptCacheBreakpoint'
1041110415
text:
1041210416
type: string
1041310417
type:
@@ -15595,6 +15599,9 @@ components:
1559515599
type: integer
1559615600
input_tokens_details:
1559715601
properties:
15602+
cache_write_tokens:
15603+
nullable: true
15604+
type: integer
1559815605
cached_tokens:
1559915606
type: integer
1560015607
required:
@@ -18011,6 +18018,40 @@ components:
1801118018
required:
1801218019
- type
1801318020
type: object
18021+
PromptCacheBreakpoint:
18022+
description: >-
18023+
Marks an explicit prompt-cache boundary on this content block. Everything through the block carrying this marker
18024+
is part of the candidate cached prefix. Only supported by OpenAI GPT-5.6 and newer.
18025+
example:
18026+
mode: explicit
18027+
nullable: true
18028+
properties:
18029+
mode:
18030+
enum:
18031+
- explicit
18032+
type: string
18033+
required:
18034+
- mode
18035+
type: object
18036+
PromptCacheOptions:
18037+
description: >-
18038+
Request-level prompt-cache controls. `mode: "explicit"` disables OpenAI-managed breakpoints so only blocks
18039+
marked with `prompt_cache_breakpoint` are cached. Only supported by OpenAI GPT-5.6 and newer.
18040+
example:
18041+
mode: explicit
18042+
ttl: 30m
18043+
nullable: true
18044+
properties:
18045+
mode:
18046+
enum:
18047+
- explicit
18048+
type: string
18049+
ttl:
18050+
nullable: true
18051+
type: string
18052+
required:
18053+
- mode
18054+
type: object
1801418055
PromptInjectionScanScope:
1801518056
description: >-
1801618057
Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults
@@ -19367,6 +19408,19 @@ components:
1936719408
example:
1936819409
enabled: true
1936919410
summary: auto
19411+
ReasoningContext:
19412+
description: >-
19413+
Controls which reasoning is available to the model. `auto` uses the model default (same as omitting);
19414+
`all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn
19415+
only. Only supported by OpenAI GPT-5.6 and newer.
19416+
enum:
19417+
- auto
19418+
- all_turns
19419+
- current_turn
19420+
- null
19421+
example: all_turns
19422+
nullable: true
19423+
type: string
1937019424
ReasoningDeltaEvent:
1937119425
allOf:
1937219426
- $ref: '#/components/schemas/BaseReasoningDeltaEvent'
@@ -19976,6 +20030,8 @@ components:
1997620030
prompt_cache_key:
1997720031
nullable: true
1997820032
type: string
20033+
prompt_cache_options:
20034+
$ref: '#/components/schemas/PromptCacheOptions'
1997920035
provider:
1998020036
$ref: '#/components/schemas/ProviderPreferences'
1998120037
reasoning:

0 commit comments

Comments
 (0)