mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-30 12:20:57 +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
|
summary: auto
|
||||||
nullable: true
|
nullable: true
|
||||||
properties:
|
properties:
|
||||||
|
context:
|
||||||
|
$ref: '#/components/schemas/ReasoningContext'
|
||||||
effort:
|
effort:
|
||||||
$ref: '#/components/schemas/ReasoningEffort'
|
$ref: '#/components/schemas/ReasoningEffort'
|
||||||
mode:
|
mode:
|
||||||
@@ -10408,6 +10410,8 @@ components:
|
|||||||
text: Hello, how can I help you?
|
text: Hello, how can I help you?
|
||||||
type: input_text
|
type: input_text
|
||||||
properties:
|
properties:
|
||||||
|
prompt_cache_breakpoint:
|
||||||
|
$ref: '#/components/schemas/PromptCacheBreakpoint'
|
||||||
text:
|
text:
|
||||||
type: string
|
type: string
|
||||||
type:
|
type:
|
||||||
@@ -15595,6 +15599,9 @@ components:
|
|||||||
type: integer
|
type: integer
|
||||||
input_tokens_details:
|
input_tokens_details:
|
||||||
properties:
|
properties:
|
||||||
|
cache_write_tokens:
|
||||||
|
nullable: true
|
||||||
|
type: integer
|
||||||
cached_tokens:
|
cached_tokens:
|
||||||
type: integer
|
type: integer
|
||||||
required:
|
required:
|
||||||
@@ -18011,6 +18018,40 @@ components:
|
|||||||
required:
|
required:
|
||||||
- type
|
- type
|
||||||
type: object
|
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:
|
PromptInjectionScanScope:
|
||||||
description: >-
|
description: >-
|
||||||
Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults
|
Which message roles to scan for prompt injection. Only applies to the regex-prompt-injection builtin. Defaults
|
||||||
@@ -19367,6 +19408,19 @@ components:
|
|||||||
example:
|
example:
|
||||||
enabled: true
|
enabled: true
|
||||||
summary: auto
|
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:
|
ReasoningDeltaEvent:
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: '#/components/schemas/BaseReasoningDeltaEvent'
|
- $ref: '#/components/schemas/BaseReasoningDeltaEvent'
|
||||||
@@ -19976,6 +20030,8 @@ components:
|
|||||||
prompt_cache_key:
|
prompt_cache_key:
|
||||||
nullable: true
|
nullable: true
|
||||||
type: string
|
type: string
|
||||||
|
prompt_cache_options:
|
||||||
|
$ref: '#/components/schemas/PromptCacheOptions'
|
||||||
provider:
|
provider:
|
||||||
$ref: '#/components/schemas/ProviderPreferences'
|
$ref: '#/components/schemas/ProviderPreferences'
|
||||||
reasoning:
|
reasoning:
|
||||||
|
|||||||
Reference in New Issue
Block a user