mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: update OpenAPI spec from monorepo (#417)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
This commit is contained in:
co-authored by
OpenRouter SDK Bot
parent
1281ae62da
commit
a2e9c97855
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user