Skip to content

Commit d3fb794

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.3.211 (#1410)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent d423a7b commit d3fb794

19 files changed

Lines changed: 349 additions & 40 deletions

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 37 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: 4d82e0bb28f8a6282dc30c8a4d83fca8
4+
docChecksum: 24bcc1c62d441e4d0bad468fe794bbe9
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.210
9-
configChecksum: f42f0088c32d2e902f3ea5cb772c09b3
8+
releaseVersion: 1.3.211
9+
configChecksum: 1d03c87037f0a61053584f4f1898d35f
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 743616bd-d6bf-4c14-b9f8-7cfb67a1565e
15-
pristine_commit_hash: 95e89e40d286461c627183111cc68fac71ced02b
16-
pristine_tree_hash: 928468581347d154ebedc08fa47d5c1f558e0ec5
14+
generation_id: 776f0be6-18d0-4185-84c5-bf1b105d0ec7
15+
pristine_commit_hash: aa8ac54fca166dc10eff9de5be098cff7bb91bfa
16+
pristine_tree_hash: bf19082dac7ae1ab6958d8625ed2e5b869b818e4
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -7806,14 +7806,18 @@ trackedFiles:
78067806
id: 3c69e8a7ccae
78077807
last_write_checksum: sha1:6740787193a5ef2ca33b52109b388e3dfc61367e
78087808
pristine_git_object: 7a781ae1ba333185a5fd94840aa26f84c2ac39f8
7809+
docs/components/responsescontextmanagement.mdx:
7810+
id: 275482e81655
7811+
last_write_checksum: sha1:b367e7b36270d251654bcfecd680bef346800bb8
7812+
pristine_git_object: 32daf0711c10bc3bf8b5d25b2a0dd4935627188d
78097813
docs/components/responsesinputtransformation.mdx:
78107814
id: 77d67090691f
78117815
last_write_checksum: sha1:70581e8d3b562237781babfef4c11c0983cfdda1
78127816
pristine_git_object: 5b83a005ce4c1dc70e6fa5984a83aa5bb5ce137e
78137817
docs/components/responsesrequest.mdx:
78147818
id: 0dbcef40a4b1
7815-
last_write_checksum: sha1:5e2b69aa6866361fc1f9d1269bc85565af5fd3c2
7816-
pristine_git_object: fba888a27d05a32874bedb6aaecbee22c19b9719
7819+
last_write_checksum: sha1:be69eb30b010dadbef9b63230f396904ea367054
7820+
pristine_git_object: 792ff894c62f518c5a2937f36b41ccdf915e6901
78177821
docs/components/responsesrequestaccessprograms.mdx:
78187822
id: 5601238f0623
78197823
last_write_checksum: sha1:50c603ddf87595ee886e479ca39ee53aa4e6cf2b
@@ -11728,8 +11732,8 @@ trackedFiles:
1172811732
pristine_git_object: cf7205ab21da2ead20d7e8ef594ccb0273b4c661
1172911733
docs/sdks/betaresponses/README.mdx:
1173011734
id: 8a1e987c9840
11731-
last_write_checksum: sha1:b6c877d4e4d77e6ea6ce093fbb4964b18e87fa48
11732-
pristine_git_object: 9874b1be23d8dbf7fd2d2d913a5900ec717a2323
11735+
last_write_checksum: sha1:ef45d7265c5a9cdf578567609ac76ef6538751cc
11736+
pristine_git_object: d9bc52fd3531312c1f9ee9ac58c82a36680b755a
1173311737
docs/sdks/byok/README.mdx:
1173411738
id: 17792f3b180d
1173511739
last_write_checksum: sha1:013102fa63e566eb650d3ab4151acd825f50bfb2
@@ -11812,8 +11816,8 @@ trackedFiles:
1181211816
pristine_git_object: 4762825df814e75d1f9c2c4067444270f4ec7b60
1181311817
docs/sdks/presets/README.mdx:
1181411818
id: eeb505928d52
11815-
last_write_checksum: sha1:45197a0baafd43d668d1b713eb1e17733282ea61
11816-
pristine_git_object: bbae48172a2146cb8b3cef449501f0c009665f07
11819+
last_write_checksum: sha1:ab5df86c3835d98f1152600d54841ac1ae45176c
11820+
pristine_git_object: 28c3e51a827054eb167e08eebd47ba6a3fd75f6b
1181711821
docs/sdks/privateendpoints/README.mdx:
1181811822
id: 54dee70b8cc7
1181911823
last_write_checksum: sha1:2d1c2df07e7e74be533180cd856d939ad3fadba1
@@ -11832,8 +11836,8 @@ trackedFiles:
1183211836
pristine_git_object: 4e10c25ed694e617695e7fc6192b7b25302977d6
1183311837
docs/sdks/responses/README.mdx:
1183411838
id: abab319e080e
11835-
last_write_checksum: sha1:05f69bace042c46e06427268f8579cf2096531ae
11836-
pristine_git_object: 65eb984d913d1196f223e1c2f8004891d1a53058
11839+
last_write_checksum: sha1:86214a254fdc8dd80bef8cfca43bc0aaa369213a
11840+
pristine_git_object: 2713692f889d5d3fb5450060a18cdb28334ff745
1183711841
docs/sdks/scim/README.mdx:
1183811842
id: fd6d8a91a053
1183911843
last_write_checksum: sha1:b8fa2f34e39af30ae7fe4c4fc497d943bf57cae9
@@ -11872,8 +11876,8 @@ trackedFiles:
1187211876
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1187311877
pyproject.toml:
1187411878
id: 5d07e7d72637
11875-
last_write_checksum: sha1:8758f7b0b8afbdd36cd73c11a5c7752584fdad5b
11876-
pristine_git_object: 486641f0f09463a0e8ea06a1cb3fee6c03aa5030
11879+
last_write_checksum: sha1:1de4ba02787035c67ff109539c32f06ad7e57432
11880+
pristine_git_object: 19c1b1d51210c68a60fc1d53158ff3edc28e08b8
1187711881
scripts/prepare_readme.py:
1187811882
id: e0c5957a6035
1187911883
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -11900,8 +11904,8 @@ trackedFiles:
1190011904
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1190111905
src/openrouter/_version.py:
1190211906
id: d8d15ad6c586
11903-
last_write_checksum: sha1:853450c8ee202d21c299b5ddd7206f94e063856f
11904-
pristine_git_object: ebb29394c03857ec869024de232aa6c03feeaff4
11907+
last_write_checksum: sha1:76aebfe8c5f05ec3ccebdde61c335b33160a9176
11908+
pristine_git_object: ca833f10879206d1cc99014af06651fb0e48e593
1190511909
src/openrouter/alpha.py:
1190611910
id: 306c4d93308d
1190711911
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
@@ -11932,8 +11936,8 @@ trackedFiles:
1193211936
pristine_git_object: aa95a65cf560fd7edb0c3c6f5fed707ca5015da3
1193311937
src/openrouter/beta_responses.py:
1193411938
id: 001eaf848bf1
11935-
last_write_checksum: sha1:aeb93517b3625f0de7f2f7d4303d9e923baad5b1
11936-
pristine_git_object: 098495886511368599e696e6b5c4e86330b68ace
11939+
last_write_checksum: sha1:f6bea681c9783614484f4847ad94db8616263917
11940+
pristine_git_object: b1a66598a16867cd7eda5df8ad4dfcc9f713006b
1193711941
src/openrouter/byok.py:
1193811942
id: bec352462ae1
1193911943
last_write_checksum: sha1:b5d11e3667ec0ebf4a9eae261e32f804e55c9b85
@@ -11948,8 +11952,8 @@ trackedFiles:
1194811952
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
1194911953
src/openrouter/components/__init__.py:
1195011954
id: 81754e97b3f4
11951-
last_write_checksum: sha1:375acc709be3b3cb9d9f08464f9c5d2470e1ad9a
11952-
pristine_git_object: ac86ae50aade2f12c070b0f42bfaa13d4bd2fdcc
11955+
last_write_checksum: sha1:ab8db2549669891efccac529b1a1b4afde2d5115
11956+
pristine_git_object: 3506483d96019516b205c361ad456293e7538af7
1195311957
src/openrouter/components/aabenchmarkentry.py:
1195411958
id: e2e0f0b48c82
1195511959
last_write_checksum: sha1:08125e1d60df82793e11e8aed6e3c9fdb7512ebb
@@ -15102,14 +15106,18 @@ trackedFiles:
1510215106
id: 076f3c78aa58
1510315107
last_write_checksum: sha1:c1f1208da12840aafa9c6f24d355862808e91e80
1510415108
pristine_git_object: e3f4b083aca1fd072ef8655b14160b20b9b36105
15109+
src/openrouter/components/responsescontextmanagement.py:
15110+
id: f31200b61263
15111+
last_write_checksum: sha1:f60f7d19dc77dd38972bb02f4614f25a7031b197
15112+
pristine_git_object: 85cdeab0288364be9f0ee96a953a87b5c2955494
1510515113
src/openrouter/components/responsesinputtransformation.py:
1510615114
id: 9eaec7caea55
1510715115
last_write_checksum: sha1:b98ef6372b2a7adfb3e6c5b2f32657833f8fff97
1510815116
pristine_git_object: 4ce1bb3d5b4c7b38de27fb2f567dfefb4d997287
1510915117
src/openrouter/components/responsesrequest.py:
1511015118
id: 8c850080ec5d
15111-
last_write_checksum: sha1:9d83b013b38cb11f441fd47c479290762910d303
15112-
pristine_git_object: 1a99218bcd70834945b1857c2a0fe6a04da8d076
15119+
last_write_checksum: sha1:3cbd930b8cfc913ab211c1ec1c450f1e9d50b2e7
15120+
pristine_git_object: 6d62245631fe3601f186dbffc95075bb83562873
1511315121
src/openrouter/components/responsesstreamingresponse.py:
1511415122
id: 142379f3bd90
1511515123
last_write_checksum: sha1:a48d6f3610f5d15248ef4d25a0d88a0a4a1a9db7
@@ -16752,8 +16760,8 @@ trackedFiles:
1675216760
pristine_git_object: 228602282f43dd94fb7703bb47b45a570c1aa8d2
1675316761
src/openrouter/presets.py:
1675416762
id: bd0c40379dcd
16755-
last_write_checksum: sha1:e43c29c2767a41140255cc9c3b18946ad6fb3831
16756-
pristine_git_object: c40ca7d9e8bc5a3c89f76da4b2eb8c7b6f4d17e1
16763+
last_write_checksum: sha1:8004285306daf7d986bcaeb9fa1037de509d6091
16764+
pristine_git_object: 936058d4adcb7ce049c186bd93a938d7891e1b33
1675716765
src/openrouter/private_endpoints.py:
1675816766
id: fdbce8846ed0
1675916767
last_write_checksum: sha1:9ad3004604d7760fb231594fe29b42fb2bd74f87
@@ -16776,8 +16784,8 @@ trackedFiles:
1677616784
pristine_git_object: 9db3cc719bd343ee7be0183d0c87b50c29e5eb31
1677716785
src/openrouter/responses.py:
1677816786
id: f2108fb635e1
16779-
last_write_checksum: sha1:73d3705cb6a5e35e621e1541d2a89eaf2041d1e1
16780-
pristine_git_object: 6583a0b59f3ede8c72897bb922c1f85de280e8e0
16787+
last_write_checksum: sha1:7691816affedec657f1c8ef4055cfb6ad7a2bf68
16788+
pristine_git_object: 9657171612cd81ca38c0dcdec14b49eb9adbb5f9
1678116789
src/openrouter/scim.py:
1678216790
id: 351afd6b616e
1678316791
last_write_checksum: sha1:8d1dfe362ca7c5ab91c3a46e7cdf1ac16f4207fb
@@ -22029,4 +22037,4 @@ examples:
2202922037
examplesVersion: 1.0.2
2203022038
releaseNotes: |
2203122039
## Python SDK Changes:
22032-
* `open_router.tts.create_speech()`: `request.output_delivery` **Added**
22040+
* `open_router.presets.create_presets_responses()`: `request.context_management` **Added**

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generation:
3737
documentation: mintlify
3838
preApplyUnionDiscriminators: true
3939
python:
40-
version: 1.3.210
40+
version: 1.3.211
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

β€Ž.speakeasy/out.openapi.yamlβ€Ž

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33071,6 +33071,26 @@ components:
3307133071
- 'code'
3307233072
- 'message'
3307333073
type: 'object'
33074+
ResponsesContextManagement:
33075+
additionalProperties: {}
33076+
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.'
33077+
example:
33078+
compact_threshold: 200000
33079+
type: 'compaction'
33080+
properties:
33081+
compact_threshold:
33082+
description: 'Input token count at which server-side compaction is triggered.'
33083+
example: 200000
33084+
type:
33085+
- 'integer'
33086+
- 'null'
33087+
type:
33088+
description: 'The context management strategy. Currently only `compaction` is supported.'
33089+
example: 'compaction'
33090+
type: 'string'
33091+
required:
33092+
- 'type'
33093+
type: 'object'
3307433094
ResponsesErrorField:
3307533095
description: 'Error information returned from the API'
3307633096
example:
@@ -33174,6 +33194,16 @@ components:
3317433194
- 'null'
3317533195
cache_control:
3317633196
$ref: '#/components/schemas/AnthropicCacheControlDirective'
33197+
context_management:
33198+
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.'
33199+
example:
33200+
- compact_threshold: 200000
33201+
type: 'compaction'
33202+
items:
33203+
$ref: '#/components/schemas/ResponsesContextManagement'
33204+
type:
33205+
- 'array'
33206+
- 'null'
3317733207
debug:
3317833208
$ref: '#/components/schemas/ChatDebugOptions'
3317933209
deferred_tools:

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:ba90c495baff410bced3e769d29fd3956b00bd839027405dcad0628e383b7784
6-
sourceBlobDigest: sha256:b9088d65dab80454ae36699aeaa1191ee708097b84fc930fe5bb01da5f17b468
5+
sourceRevisionDigest: sha256:0ffb38c715c97b308afbdc76670c0a3e53c8558b7eecefb1682998a30b46d4f0
6+
sourceBlobDigest: sha256:4f19dac2c49b3f8a6c219dd305e8c1d6a0d995b7ee4b9b48b00c9d61b7e6e36a
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:ba90c495baff410bced3e769d29fd3956b00bd839027405dcad0628e383b7784
15-
sourceBlobDigest: sha256:b9088d65dab80454ae36699aeaa1191ee708097b84fc930fe5bb01da5f17b468
14+
sourceRevisionDigest: sha256:0ffb38c715c97b308afbdc76670c0a3e53c8558b7eecefb1682998a30b46d4f0
15+
sourceBlobDigest: sha256:4f19dac2c49b3f8a6c219dd305e8c1d6a0d995b7ee4b9b48b00c9d61b7e6e36a
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:a9ebf8b0ee0a7ae394735eed466c3ff5e30ee12f3123c59a5ed5375dfab2f09b
17+
codeSamplesRevisionDigest: sha256:3433ed086fb16115dc0641cd720be47758f4a10056094a920587f7c552876a13
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.803.2

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4869,4 +4869,14 @@ Based on:
48694869
### Generated
48704870
- [python v1.3.210] .
48714871
### Releases
4872-
- [PyPI v1.3.210] https://pypi.org/project/openrouter/1.3.210 - .
4872+
- [PyPI v1.3.210] https://pypi.org/project/openrouter/1.3.210 - .
4873+
4874+
## 2026-11-24 16:25:03
4875+
### Changes
4876+
Based on:
4877+
- OpenAPI Doc
4878+
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
4879+
### Generated
4880+
- [python v1.3.211] .
4881+
### Releases
4882+
- [PyPI v1.3.211] https://pypi.org/project/openrouter/1.3.211 - .
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "ResponsesContextManagement"
3+
---
4+
5+
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.
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description | Example |
11+
| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
12+
| `compact_threshold` | *OptionalNullable[int]* | βž– | Input token count at which server-side compaction is triggered. | 200000 |
13+
| `type` | *str* | βœ”οΈ | The context management strategy. Currently only `compaction` is supported. | compaction |
14+
| `__pydantic_extra__` | Dict[str, *Any*] | βž– | N/A | \{<br/>"compact_threshold": 200000,<br/>"type": "compaction"<br/>} |

0 commit comments

Comments
Β (0)