Skip to content

Commit 52ad7dd

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

13 files changed

Lines changed: 96 additions & 27 deletions

‎.speakeasy/gen.lock‎

Lines changed: 27 additions & 16 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: 4c1de84906249adffa68289b1272a337
4+
docChecksum: 913314e7b77524966693bb56c9a3dd24
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 0.11.27
9-
configChecksum: 8c481cc9a577b723dec23a1acb6acd44
8+
releaseVersion: 0.11.28
9+
configChecksum: ce48138720beb4eb8841b187c03d254f
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: 29d14705-a7a0-4678-9a14-db322b73e2e9
15-
pristine_commit_hash: 604984950189ec77e6d3e0907500b9a36193139a
16-
pristine_tree_hash: ac64da59d036426e6a5253061a7139a4a12fd118
14+
generation_id: e656f374-a717-4315-90c0-6ee70ed0cf9c
15+
pristine_commit_hash: 3d5b10a16d484690e232f230a59576340aa52303
16+
pristine_tree_hash: f9fc6333f4a8952a56a6ca33eb92a50cc9b98d90
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -244,6 +244,10 @@ trackedFiles:
244244
id: f047a00a8826
245245
last_write_checksum: sha1:7731c7cecebc8d0ea5d779a811809d4d570ed7c1
246246
pristine_git_object: bd3e799f85c07638dff4daf50d361bc718c47b0f
247+
docs/components/anthropiccachecreation.mdx:
248+
id: 76d410a5e73e
249+
last_write_checksum: sha1:3b9e3d49c378acbdada5129434dc5e469ff0137f
250+
pristine_git_object: c9562a64e41c396aee705ef025650900df0b43e4
247251
docs/components/anthropiccitationcharlocationparam.mdx:
248252
id: c40e539e0fb1
249253
last_write_checksum: sha1:bf7cb3fdf2b38b00e4b026e7c0304d9e308cbb75
@@ -2230,8 +2234,8 @@ trackedFiles:
22302234
pristine_git_object: cabf0cccfa7d7bee9faa823d66650bc395220966
22312235
docs/components/imagegenerationusage.mdx:
22322236
id: 0f8faafc5148
2233-
last_write_checksum: sha1:be2ebcd80f3299ec6e38bf8c580ac5e28ba67d85
2234-
pristine_git_object: be9fe8ffa3ea8829bf61cbbdcfd5f1a17aad439d
2237+
last_write_checksum: sha1:7662a98019e0fb829b124d14f938ee07f5ef5519
2238+
pristine_git_object: cb01cf31c16ba5f1caea0be6b376e83ee0d82b59
22352239
docs/components/imagegenerationusagecompletiontokensdetails.mdx:
22362240
id: 71ecb25e164d
22372241
last_write_checksum: sha1:f0843acffd7d7540b07bb384f299557e7309950d
@@ -6662,8 +6666,8 @@ trackedFiles:
66626666
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
66636667
pyproject.toml:
66646668
id: 5d07e7d72637
6665-
last_write_checksum: sha1:422b5cabaf16017ad5a03653f1cebc804d1b084d
6666-
pristine_git_object: feee6a6c23e707d2c4e75602176b723657b31a41
6669+
last_write_checksum: sha1:04c19e27f55c549187e8134f7ff3696cd428f3df
6670+
pristine_git_object: 38e011e2029916eabc14394ca864b6516da19017
66676671
scripts/prepare_readme.py:
66686672
id: e0c5957a6035
66696673
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6690,8 +6694,8 @@ trackedFiles:
66906694
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
66916695
src/openrouter/_version.py:
66926696
id: d8d15ad6c586
6693-
last_write_checksum: sha1:492ccf71ca935892090ce4ccb5391ff14fa90596
6694-
pristine_git_object: d00a5fa67b4b8b39352d9b6491b1854749529f2f
6697+
last_write_checksum: sha1:fd94190abbfad4aff1ecc18a06a3b466ddd7c2b8
6698+
pristine_git_object: fb15497c9ae07185c9379f5151156e976ce297f5
66956699
src/openrouter/analytics.py:
66966700
id: cb406b5aaabb
66976701
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -6730,8 +6734,8 @@ trackedFiles:
67306734
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
67316735
src/openrouter/components/__init__.py:
67326736
id: 81754e97b3f4
6733-
last_write_checksum: sha1:5208f1af2c3420c74d0a23810dcf68807b95a130
6734-
pristine_git_object: 92d0e11add040db79f1848e7f697605a0b2e129c
6737+
last_write_checksum: sha1:84999e85717da3612e618f3115f0cf56ea91b268
6738+
pristine_git_object: bf5e3e9d282db9aefb6629dbe70240294aadd3d8
67356739
src/openrouter/components/aabenchmarkentry.py:
67366740
id: e2e0f0b48c82
67376741
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -6796,6 +6800,10 @@ trackedFiles:
67966800
id: 2ec3e3546afe
67976801
last_write_checksum: sha1:338e193bd6929eb6ed69da9bdb4e608e5db6121b
67986802
pristine_git_object: 05a105c6e4f6c9037f953e4620576a8494645865
6803+
src/openrouter/components/anthropiccachecreation.py:
6804+
id: 10d4a3bde2d9
6805+
last_write_checksum: sha1:5e3b33cda7e69aeb2e683374815796ca76ee2368
6806+
pristine_git_object: b08b10ce6b317954ebf7f12d09157d5cc4a19f26
67996807
src/openrouter/components/anthropiccitationcharlocationparam.py:
68006808
id: 6f6f0732b22f
68016809
last_write_checksum: sha1:f06cdcdd405abb4222450f027fd38f29b05efbec
@@ -7714,8 +7722,8 @@ trackedFiles:
77147722
pristine_git_object: eb59bfd0d4b89dde72504f8aa57533c689474ced
77157723
src/openrouter/components/imagegenerationusage.py:
77167724
id: f51151e8dbfa
7717-
last_write_checksum: sha1:810fd7e3dd1808d3c846fa4791ce3ba728dc32d6
7718-
pristine_git_object: 83ae9b1bc1e7624550cf432b440c20ebe6eb16f5
7725+
last_write_checksum: sha1:7f3f93e29e3b5018e8bf218dc167665794cf1d65
7726+
pristine_git_object: 089d12ed821830575a14bf6b279a750f9737c1a4
77197727
src/openrouter/components/imagegenpartialimageevent.py:
77207728
id: f88cea0c67fc
77217729
last_write_checksum: sha1:2ee76cbb50b60ebe624bdfe0769a7bbdce047cd0
@@ -11137,3 +11145,6 @@ examples:
1113711145
"500":
1113811146
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1113911147
examplesVersion: 1.0.2
11148+
releaseNotes: |
11149+
## Python SDK Changes:
11150+
* `open_router.images.generate()`: `response` **Changed**

‎.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.27
39+
version: 0.11.28
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9933,6 +9933,8 @@ components:
99339933
prompt_tokens: 0
99349934
total_tokens: 4175
99359935
properties:
9936+
cache_creation:
9937+
$ref: '#/components/schemas/AnthropicCacheCreation'
99369938
completion_tokens:
99379939
description: The tokens generated
99389940
type: integer
@@ -11882,6 +11884,8 @@ components:
1188211884
type: string
1188311885
usage:
1188411886
properties:
11887+
cache_creation:
11888+
$ref: '#/components/schemas/AnthropicCacheCreation'
1188511889
cache_creation_input_tokens:
1188611890
nullable: true
1188711891
type: integer

‎.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:6bb42dab7b8c3a170da9cf40c9b52e39be0e93776f2ea0aaa6d806562290594c
6-
sourceBlobDigest: sha256:e2a84cbdb9e0e9e83a48aa80f44d1ae9ad3ef37d469ee705e9409017c065aaa5
5+
sourceRevisionDigest: sha256:edca79a14bbe673bb4bb252f55acbe2d94ac37355ff7dace80c025796f462cec
6+
sourceBlobDigest: sha256:0d80dbc0f8174d90dd172c8c20c8c2aa51e915a33a0bdef18806f2bc5f215ba4
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:6bb42dab7b8c3a170da9cf40c9b52e39be0e93776f2ea0aaa6d806562290594c
15-
sourceBlobDigest: sha256:e2a84cbdb9e0e9e83a48aa80f44d1ae9ad3ef37d469ee705e9409017c065aaa5
14+
sourceRevisionDigest: sha256:edca79a14bbe673bb4bb252f55acbe2d94ac37355ff7dace80c025796f462cec
15+
sourceBlobDigest: sha256:0d80dbc0f8174d90dd172c8c20c8c2aa51e915a33a0bdef18806f2bc5f215ba4
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:620d78e3bc22a91a122ed5516d1800440ee7551693a8bc91d3dcaeefec334c50
17+
codeSamplesRevisionDigest: sha256:2f083adce0aad1ea67dd838546080b632140c054b28495cc56c4f449cfc35f2e
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
@@ -378,4 +378,14 @@ Based on:
378378
### Generated
379379
- [python v0.11.27] .
380380
### Releases
381-
- [PyPI v0.11.27] https://pypi.org/project/openrouter/0.11.27 - .
381+
- [PyPI v0.11.27] https://pypi.org/project/openrouter/0.11.27 - .
382+
383+
## 2026-07-14 05:35:17
384+
### Changes
385+
Based on:
386+
- OpenAPI Doc
387+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
388+
### Generated
389+
- [python v0.11.28] .
390+
### Releases
391+
- [PyPI v0.11.28] https://pypi.org/project/openrouter/0.11.28 - .
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: "AnthropicCacheCreation"
3+
---
4+
5+
## Fields
6+
7+
| Field | Type | Required | Description |
8+
| --------------------------- | --------------------------- | --------------------------- | --------------------------- |
9+
| `ephemeral_1h_input_tokens` | *int* | :heavy_check_mark: | N/A |
10+
| `ephemeral_5m_input_tokens` | *int* | :heavy_check_mark: | N/A |

‎docs/components/imagegenerationusage.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Token and cost usage for the image generation request, when available
99

1010
| Field | Type | Required | Description | Example |
1111
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
12+
| `cache_creation` | [OptionalNullable[components.AnthropicCacheCreation]](../components/anthropiccachecreation.mdx) | :heavy_minus_sign: | N/A | \{<br/>"ephemeral_1h_input_tokens": 0,<br/>"ephemeral_5m_input_tokens": 100<br/>} |
1213
| `completion_tokens` | *int* | :heavy_check_mark: | The tokens generated | |
1314
| `completion_tokens_details` | [OptionalNullable[components.ImageGenerationUsageCompletionTokensDetails]](../components/imagegenerationusagecompletiontokensdetails.mdx) | :heavy_minus_sign: | N/A | |
1415
| `cost` | *OptionalNullable[float]* | :heavy_minus_sign: | Cost of the completion | |

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "0.11.27"
3+
version = "0.11.28"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

‎src/openrouter/_version.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "openrouter"
6-
__version__: str = "0.11.27"
6+
__version__: str = "0.11.28"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 0.11.27 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 0.11.28 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

‎src/openrouter/components/__init__.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
AnthropicCacheControlDirectiveTypedDict,
8181
)
8282
from .anthropiccachecontrolttl import AnthropicCacheControlTTL
83+
from .anthropiccachecreation import (
84+
AnthropicCacheCreation,
85+
AnthropicCacheCreationTypedDict,
86+
)
8387
from .anthropiccitationcharlocationparam import (
8488
AnthropicCitationCharLocationParam,
8589
AnthropicCitationCharLocationParamType,
@@ -2895,6 +2899,8 @@
28952899
"AnthropicCacheControlDirectiveType",
28962900
"AnthropicCacheControlDirectiveTypedDict",
28972901
"AnthropicCacheControlTTL",
2902+
"AnthropicCacheCreation",
2903+
"AnthropicCacheCreationTypedDict",
28982904
"AnthropicCitationCharLocationParam",
28992905
"AnthropicCitationCharLocationParamType",
29002906
"AnthropicCitationCharLocationParamTypedDict",
@@ -4960,6 +4966,8 @@
49604966
"AnthropicCacheControlDirectiveType": ".anthropiccachecontroldirective",
49614967
"AnthropicCacheControlDirectiveTypedDict": ".anthropiccachecontroldirective",
49624968
"AnthropicCacheControlTTL": ".anthropiccachecontrolttl",
4969+
"AnthropicCacheCreation": ".anthropiccachecreation",
4970+
"AnthropicCacheCreationTypedDict": ".anthropiccachecreation",
49634971
"AnthropicCitationCharLocationParam": ".anthropiccitationcharlocationparam",
49644972
"AnthropicCitationCharLocationParamType": ".anthropiccitationcharlocationparam",
49654973
"AnthropicCitationCharLocationParamTypedDict": ".anthropiccitationcharlocationparam",

0 commit comments

Comments
 (0)