Skip to content

Commit 085a2da

Browse files
author
OpenRouter SDK Bot
committed
chore: update OpenAPI spec [sdk-bot]
1 parent 02aecaf commit 085a2da

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

‎.speakeasy/in.openapi.yaml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32829,6 +32829,26 @@ components:
3282932829
- 'code'
3283032830
- 'message'
3283132831
type: 'object'
32832+
ResponsesContextManagement:
32833+
additionalProperties: {}
32834+
description: 'A server-side context management entry. With `compaction`, the provider compacts the conversation once input exceeds `compact_threshold` and returns a `compaction` output item; pass that item back in `input` on later turns.'
32835+
example:
32836+
compact_threshold: 200000
32837+
type: 'compaction'
32838+
properties:
32839+
compact_threshold:
32840+
description: 'Input token count at which server-side compaction is triggered.'
32841+
example: 200000
32842+
type:
32843+
- 'integer'
32844+
- 'null'
32845+
type:
32846+
description: 'The context management strategy. Currently only `compaction` is supported.'
32847+
example: 'compaction'
32848+
type: 'string'
32849+
required:
32850+
- 'type'
32851+
type: 'object'
3283232852
ResponsesErrorField:
3283332853
description: 'Error information returned from the API'
3283432854
example:
@@ -32930,6 +32950,16 @@ components:
3293032950
- 'null'
3293132951
cache_control:
3293232952
$ref: '#/components/schemas/AnthropicCacheControlDirective'
32953+
context_management:
32954+
description: 'Server-side context management (compaction). Supported for OpenAI models served by OpenAI or Azure, which return `compaction` output items. Providers translated to another API format drop it. Replay returned `compaction` items in `input` on later turns.'
32955+
example:
32956+
- compact_threshold: 200000
32957+
type: 'compaction'
32958+
items:
32959+
$ref: '#/components/schemas/ResponsesContextManagement'
32960+
type:
32961+
- 'array'
32962+
- 'null'
3293332963
debug:
3293432964
$ref: '#/components/schemas/ChatDebugOptions'
3293532965
deferred_tools:

0 commit comments

Comments
 (0)