Skip to content

Commit f24188c

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

15 files changed

Lines changed: 260 additions & 67 deletions

.speakeasy/gen.lock

Lines changed: 34 additions & 21 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: a444511ee53d41b62d62b2d23ddd3b64
4+
docChecksum: 7263f7a45045933c0fa87b21e7e6fd9b
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 0.11.25
9-
configChecksum: b10f43281932fd64b0c43f8577a40816
8+
releaseVersion: 0.11.26
9+
configChecksum: 2a949e81cf5d40ef993b72355e7e75eb
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: 554b7889-8ccd-4aef-a14b-c347df957007
15-
pristine_commit_hash: 95be3ea8a18d40e9df231449f23161356fdfd5ff
16-
pristine_tree_hash: e9b22615b85a97ffd1078604414fc174d55b227f
14+
generation_id: 7695231f-3e30-4c88-921a-f9175c463593
15+
pristine_commit_hash: 5ccb0c48efa3160204f8671518dd705cc930a0a7
16+
pristine_tree_hash: 111ea5b13d73fd98a6d6c24a7a46a513a3104a9c
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -3886,8 +3886,12 @@ trackedFiles:
38863886
pristine_git_object: 3d340325d192b54a5d039336cce2bd35d12445ac
38873887
docs/components/pricing.mdx:
38883888
id: 6816d700f8b1
3889-
last_write_checksum: sha1:ac5c56af4e56eb98da5686e33a224950dfbb8207
3890-
pristine_git_object: 78ac34b5053103dc4261c2fbeb9833f97ef109db
3889+
last_write_checksum: sha1:c9f49a270c1ddcaf2b354b2c0f7ceb277ca5eff4
3890+
pristine_git_object: 0ca9bdf9bf2b1909a4a78e99b58fde78b311becd
3891+
docs/components/pricingoverride.mdx:
3892+
id: 74675f38c1c6
3893+
last_write_checksum: sha1:5e64e9edbb013f04ee3741fe7c5dbd2fa54b544b
3894+
pristine_git_object: f8291256ac4a4aeed8bf79f1bad1e3b45cbaa354
38913895
docs/components/promptcachebreakpoint.mdx:
38923896
id: c135956dc623
38933897
last_write_checksum: sha1:1b0c9884eb9b6fe1d4fdf822c75cb566ead67e07
@@ -3966,8 +3970,8 @@ trackedFiles:
39663970
pristine_git_object: 4498d08fd82f26a210eeed2b9659e6a0b321f9ef
39673971
docs/components/publicpricing.mdx:
39683972
id: 61fb18b7ff94
3969-
last_write_checksum: sha1:41c3b03c9eb4883d41e128e1b2d549ddb608c317
3970-
pristine_git_object: 0d8f6cf2cca158ec93dd8afdc29c0cb377053fbd
3973+
last_write_checksum: sha1:53550f414931189b91a148ca9039aefb5899a7ee
3974+
pristine_git_object: 4a17b2b3dd05ea85ea9847689c13692540007f07
39713975
docs/components/quantization.mdx:
39723976
id: 9d062e4ee362
39733977
last_write_checksum: sha1:4cb3588933fe1ca8592669f8ec1bef1cf0986e28
@@ -6658,8 +6662,8 @@ trackedFiles:
66586662
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
66596663
pyproject.toml:
66606664
id: 5d07e7d72637
6661-
last_write_checksum: sha1:ecba4ec7fe5c538617fb6e42582204ae5711d106
6662-
pristine_git_object: 6804383f389474f6b72740ce0a281ba45ed8251d
6665+
last_write_checksum: sha1:a62f150fb014bd2f019526c2847cab9afcd90648
6666+
pristine_git_object: bcd7637f7dd41ea5aa8e3374fbafe096f1d44c11
66636667
scripts/prepare_readme.py:
66646668
id: e0c5957a6035
66656669
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6686,8 +6690,8 @@ trackedFiles:
66866690
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
66876691
src/openrouter/_version.py:
66886692
id: d8d15ad6c586
6689-
last_write_checksum: sha1:a776602f2cf82d2f44e51bbbd69dfeee7a7f46f3
6690-
pristine_git_object: d272f6c0b2f426b678e025f6181287b08ea995ed
6693+
last_write_checksum: sha1:806eecfbfbd9862cf0fb64efad4b401f93c78e3e
6694+
pristine_git_object: b634472cdb3fe62a8422bdd27d30a770bdf652a2
66916695
src/openrouter/analytics.py:
66926696
id: cb406b5aaabb
66936697
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -6726,8 +6730,8 @@ trackedFiles:
67266730
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
67276731
src/openrouter/components/__init__.py:
67286732
id: 81754e97b3f4
6729-
last_write_checksum: sha1:045cf74eb4e03399ac8521ff3db0a2ed9f33b002
6730-
pristine_git_object: 43900430f099cab065756d44e23f9c4118c99180
6733+
last_write_checksum: sha1:5208f1af2c3420c74d0a23810dcf68807b95a130
6734+
pristine_git_object: 92d0e11add040db79f1848e7f697605a0b2e129c
67316735
src/openrouter/components/aabenchmarkentry.py:
67326736
id: e2e0f0b48c82
67336737
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -8344,6 +8348,10 @@ trackedFiles:
83448348
id: 40414eada27a
83458349
last_write_checksum: sha1:0e241830bf9014e8ea814465c573711d8a7caa2c
83468350
pristine_git_object: 90bdb267893360608210843a5da0d5d68e80d41e
8351+
src/openrouter/components/pricingoverride.py:
8352+
id: 8984e4cc7422
8353+
last_write_checksum: sha1:0e2c06a0d510bb2fcf64b03f74c693f26c9825ad
8354+
pristine_git_object: 21c25933126937fe7c1d10898a42bbe711cf7b9f
83478355
src/openrouter/components/promptcachebreakpoint.py:
83488356
id: f1e589a13300
83498357
last_write_checksum: sha1:458ef5170c7c9ea1367dcfb090b1b28333aff73d
@@ -8386,12 +8394,12 @@ trackedFiles:
83868394
pristine_git_object: 1798ae9dd8c2e4b629bb99cc5c643827895e8231
83878395
src/openrouter/components/publicendpoint.py:
83888396
id: 848aa2ef9129
8389-
last_write_checksum: sha1:d8788cb95c89974e6339ecaccc6202dfae871225
8390-
pristine_git_object: 270a46db728bbf80ab3c89fde25d71c61f93434e
8397+
last_write_checksum: sha1:a94a8a30e3656955780285fa004a2b7e5d162c57
8398+
pristine_git_object: b647b5f88242565b228e6d0bf11d151e6650f6f8
83918399
src/openrouter/components/publicpricing.py:
83928400
id: 96d115d83cc5
8393-
last_write_checksum: sha1:41f834b27573c1f621c99883d27e231a1384c846
8394-
pristine_git_object: fc3f2cdb028345dbeda1c0a6a1493647286f1cc9
8401+
last_write_checksum: sha1:a3733ee6d92eda73562ea1fa2bc834e3a14ac6db
8402+
pristine_git_object: 037f4b4e9aa72510a4021e695fe39516eb88d1f3
83958403
src/openrouter/components/quantization.py:
83968404
id: bde317b3d703
83978405
last_write_checksum: sha1:96b042899bfb818f20d282be76ad37fc948a599d
@@ -11131,4 +11139,9 @@ examples:
1113111139
examplesVersion: 1.0.2
1113211140
releaseNotes: |
1113311141
## Python SDK Changes:
11134-
* `open_router.images.generate()`: `request.provider` **Changed**
11142+
* `open_router.embeddings.list_models()`: `response.data[].pricing.overrides` **Added**
11143+
* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].pricing.overrides` **Added**
11144+
* `open_router.endpoints.list()`: `response.data.endpoints[].pricing.overrides` **Added**
11145+
* `open_router.models.get()`: `response.data.pricing.overrides` **Added**
11146+
* `open_router.models.list()`: `response.data[].pricing.overrides` **Added**
11147+
* `open_router.models.list_for_user()`: `response.data[].pricing.overrides` **Added**

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 0.11.25
39+
version: 0.11.26
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18289,6 +18289,41 @@ components:
1828918289
required:
1829018290
- type
1829118291
type: object
18292+
PricingOverride:
18293+
description: >-
18294+
A conditional override of the base pricing. An entry applies only when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per price key; price keys absent from an entry inherit the base price.
18295+
example:
18296+
completion: '0.00002'
18297+
min_prompt_tokens: 200000
18298+
prompt: '0.000005'
18299+
properties:
18300+
audio:
18301+
description: Overridden price in USD per audio input token
18302+
type: string
18303+
completion:
18304+
description: Overridden price in USD per token for completion (output) generation
18305+
type: string
18306+
input_audio_cache:
18307+
description: Overridden price in USD per cached audio input token
18308+
type: string
18309+
input_cache_read:
18310+
description: Overridden price in USD per cached input token (read)
18311+
type: string
18312+
input_cache_write:
18313+
description: Overridden price in USD per cache-write token
18314+
type: string
18315+
input_cache_write_1h:
18316+
description: Overridden price in USD per 1-hour cache-write token
18317+
type: string
18318+
min_prompt_tokens:
18319+
description: >-
18320+
Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold
18321+
format: double
18322+
type: number
18323+
prompt:
18324+
description: Overridden price in USD per token for prompt (input) processing
18325+
type: string
18326+
type: object
1829218327
PromptCacheBreakpoint:
1829318328
description: >-
1829418329
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.
@@ -19397,6 +19432,12 @@ components:
1939719432
internal_reasoning:
1939819433
description: Price in USD per internal reasoning token
1939919434
type: string
19435+
overrides:
19436+
description: >-
19437+
Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.
19438+
items:
19439+
$ref: '#/components/schemas/PricingOverride'
19440+
type: array
1940019441
prompt:
1940119442
description: Price in USD per token for prompt (input) processing
1940219443
type: string
@@ -19514,6 +19555,12 @@ components:
1951419555
internal_reasoning:
1951519556
description: Price in USD per internal reasoning token
1951619557
type: string
19558+
overrides:
19559+
description: >-
19560+
Conditional overrides of the base pricing (e.g. long-context pricing). An entry applies when all of its condition fields (e.g. min_prompt_tokens) match the request; among applicable entries, later entries win per key; price keys absent from an entry inherit the base price. The top-level pricing keys always reflect the price that applies under default conditions.
19561+
items:
19562+
$ref: '#/components/schemas/PricingOverride'
19563+
type: array
1951719564
prompt:
1951819565
description: Price in USD per token for prompt (input) processing
1951919566
type: string

.speakeasy/workflow.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:c4b604e524d65fc80cad85d0620c391b70d087ed384bbb1ed03166267524ec3d
6-
sourceBlobDigest: sha256:59fc42341a3b4ae0f2344e88df306b70fb85b526e84e1c274c006afb7d99153b
5+
sourceRevisionDigest: sha256:9f8353c6af76d729784ad0e73d4c232043cf6f308a01acd3975ec748a1751559
6+
sourceBlobDigest: sha256:d2e958ad60806d999cd37686274fff162f0dd4e52954a1edb49f19e037eeda6e
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:c4b604e524d65fc80cad85d0620c391b70d087ed384bbb1ed03166267524ec3d
15-
sourceBlobDigest: sha256:59fc42341a3b4ae0f2344e88df306b70fb85b526e84e1c274c006afb7d99153b
14+
sourceRevisionDigest: sha256:9f8353c6af76d729784ad0e73d4c232043cf6f308a01acd3975ec748a1751559
15+
sourceBlobDigest: sha256:d2e958ad60806d999cd37686274fff162f0dd4e52954a1edb49f19e037eeda6e
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:b959c03fc95af18ab71b3e8edc54d3a74d06d0a3f0d786576f3ab1a1c049cdd0
17+
codeSamplesRevisionDigest: sha256:f68472bc77963d676f750b164b9991d49fc9b394fb05f7aba9907616cdaa54b1
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,4 +358,14 @@ Based on:
358358
### Generated
359359
- [python v0.11.25] .
360360
### Releases
361-
- [PyPI v0.11.25] https://pypi.org/project/openrouter/0.11.25 - .
361+
- [PyPI v0.11.25] https://pypi.org/project/openrouter/0.11.25 - .
362+
363+
## 2026-07-13 19:27:34
364+
### Changes
365+
Based on:
366+
- OpenAPI Doc
367+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
368+
### Generated
369+
- [python v0.11.26] .
370+
### Releases
371+
- [PyPI v0.11.26] https://pypi.org/project/openrouter/0.11.26 - .

0 commit comments

Comments
 (0)