Skip to content

Commit e1b89f5

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

10 files changed

Lines changed: 61 additions & 36 deletions

File tree

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

Lines changed: 19 additions & 24 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: 10ccd36cac97d16c40f65b41c5c17a9d
4+
docChecksum: 4fd4fe0bf7a8196c9e7a6eee1fe4a414
55
docVersion: 1.0.0
66
speakeasyVersion: 1.680.0
77
generationVersion: 2.788.4
8-
releaseVersion: 0.10.3
9-
configChecksum: 894b8fb8de2ec29bb56a600141f418a7
8+
releaseVersion: 0.10.4
9+
configChecksum: d9fd2d1bfcce20e4901d52e81a6f5ca7
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: a0648830-043f-4811-a88a-6e03d7ec62ab
15-
pristine_commit_hash: 490d4582569daa785cbad82b7bbacaca935ff37d
16-
pristine_tree_hash: d680bb4b3606259d34b419bf826786397b97d271
14+
generation_id: 1ddaf948-46a3-4ca5-ade1-ab900963fba9
15+
pristine_commit_hash: 3b78ff10c1872eac23efd487850624634d4f25b5
16+
pristine_tree_hash: 1f1b736777953b5a4861091f9b22733093fc9946
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -2046,8 +2046,8 @@ trackedFiles:
20462046
pristine_git_object: 841d9210013aa9eac24702237c16d0aca12a985f
20472047
docs/components/imagegencompletedevent.md:
20482048
id: 43f5718fe2c2
2049-
last_write_checksum: sha1:650b4752a08040461390f10b30ceda0b5df1f0bb
2050-
pristine_git_object: 33b0307acdb1bf725cd89c5adb39eb3e110ff876
2049+
last_write_checksum: sha1:c69ebcd923faf4b7831c70ca19a62992006804c4
2050+
pristine_git_object: 683545f58a32d3174edc2548652516d446f31cfb
20512051
docs/components/imagegencompletedeventtype.md:
20522052
id: 84e07b20590e
20532053
last_write_checksum: sha1:2c301f011ef720a3d8c561c8823bcfb982934d16
@@ -2090,8 +2090,8 @@ trackedFiles:
20902090
pristine_git_object: a921a4c4cd5f75c926ba03263469315a14537160
20912091
docs/components/imagegenerationresponsedata.md:
20922092
id: 6a33b08924d8
2093-
last_write_checksum: sha1:ddb47b0ec0e5854effe56ca1989b8206e0d7b56a
2094-
pristine_git_object: c80a572552036e143d3b8827a84011d5f62083e9
2093+
last_write_checksum: sha1:e6df003afd8f77d5e98b6720c825818c229d4cee
2094+
pristine_git_object: bd99f56bb2c6f10a7f26e49dc81bf00a6436fe99
20952095
docs/components/imagegenerationservertool.md:
20962096
id: 0ddff7f46134
20972097
last_write_checksum: sha1:02ee9876107578bd27eb9ba811439416b9e76a63
@@ -6338,8 +6338,8 @@ trackedFiles:
63386338
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
63396339
pyproject.toml:
63406340
id: 5d07e7d72637
6341-
last_write_checksum: sha1:98693640698a58477c3b24a614eb99f4c633a0cf
6342-
pristine_git_object: 2ef47a09d65d11b780df2cc2acea38dad42f7254
6341+
last_write_checksum: sha1:dbca7fc02146c1734921186c4d38c7b79d45ee20
6342+
pristine_git_object: 3810cc8259ef5c9b898e032d02eab740e919cebc
63436343
scripts/prepare_readme.py:
63446344
id: e0c5957a6035
63456345
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6366,8 +6366,8 @@ trackedFiles:
63666366
pristine_git_object: 07ace03229fd3267623c8f48665d2c3a67c3565d
63676367
src/openrouter/_version.py:
63686368
id: d8d15ad6c586
6369-
last_write_checksum: sha1:958ee66ff889b9eb5c0cd94b398bc7fbfb8c2c6b
6370-
pristine_git_object: 53d94aa7542adf2049307c96b710cb4846fa2043
6369+
last_write_checksum: sha1:d0f7c11c8db041c0c822a9857f4f223ba128b10a
6370+
pristine_git_object: 3e75c5a73c2aa5f3313e1e19e11dfcb685f958e3
63716371
src/openrouter/analytics.py:
63726372
id: cb406b5aaabb
63736373
last_write_checksum: sha1:6d47d1ab3da9cb4ac9f0a2bfe442f1a82a614f35
@@ -7326,16 +7326,16 @@ trackedFiles:
73267326
pristine_git_object: 5f17d77c25a82ad2bf7b1211d05ee665b6fee35a
73277327
src/openrouter/components/imagegencompletedevent.py:
73287328
id: 7a791a02cb5b
7329-
last_write_checksum: sha1:2e5822401bac22b5936ed4787b3d648eed60e725
7330-
pristine_git_object: e5907de80032821f54ab0829729f137497b6f289
7329+
last_write_checksum: sha1:df249afb22b4d56c3493cf8ec506e7ecf06402a6
7330+
pristine_git_object: e767efe399701e27924a1fa2e98d44d78e3715a1
73317331
src/openrouter/components/imagegenerationrequest.py:
73327332
id: f8291a7be9a0
73337333
last_write_checksum: sha1:bd9bc81281c9d034120f86b0eee96ed00ff38cce
73347334
pristine_git_object: cd035aaead03f8181da12b8635f23fa7688d727f
73357335
src/openrouter/components/imagegenerationresponse.py:
73367336
id: 53354cd0cbfc
7337-
last_write_checksum: sha1:e1c531b4a761668151800f450b82dfab0da00f77
7338-
pristine_git_object: deb67493a8ace61abf039d5d6d46b33e37a7c66c
7337+
last_write_checksum: sha1:073a770f1574629ec4e8ae59f6a365fbca9ace3f
7338+
pristine_git_object: 64b059a152dab4754cdece4fb2021249f76444a7
73397339
src/openrouter/components/imagegenerationservertool.py:
73407340
id: 9c95bc975f2e
73417341
last_write_checksum: sha1:b7e0d9db78b0b7662cd34a31e593842cea5ef990
@@ -10561,9 +10561,4 @@ examples:
1056110561
examplesVersion: 1.0.2
1056210562
releaseNotes: |
1056310563
## Python SDK Changes:
10564-
* `open_router.embeddings.list_models()`: `response.data.[].pricing.input_cache_write_1h` **Added**
10565-
* `open_router.endpoints.list_zdr_endpoints()`: `response.data.[].pricing.input_cache_write_1h` **Added**
10566-
* `open_router.endpoints.list()`: `response.data.endpoints.[].pricing.input_cache_write_1h` **Added**
10567-
* `open_router.models.get()`: `response.data.pricing.input_cache_write_1h` **Added**
10568-
* `open_router.models.list()`: `response.data.[].pricing.input_cache_write_1h` **Added**
10569-
* `open_router.models.list_for_user()`: `response.data.[].pricing.input_cache_write_1h` **Added**
10564+
* `open_router.images.generate()`: `response` **Changed**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ generation:
3232
skipResponseBodyAssertions: false
3333
preApplyUnionDiscriminators: true
3434
python:
35-
version: 0.10.3
35+
version: 0.10.4
3636
additionalDependencies:
3737
dev: {}
3838
main: {}

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9262,6 +9262,11 @@ components:
92629262
created:
92639263
description: Unix timestamp (seconds) when the image was generated
92649264
type: integer
9265+
media_type:
9266+
description: >-
9267+
Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`).
9268+
example: image/svg+xml
9269+
type: string
92659270
type:
92669271
description: The event type
92679272
enum:
@@ -9420,6 +9425,11 @@ components:
94209425
b64_json:
94219426
description: Base64-encoded image bytes
94229427
type: string
9428+
media_type:
9429+
description: >-
9430+
Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`).
9431+
example: image/svg+xml
9432+
type: string
94239433
required:
94249434
- b64_json
94259435
type: object

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.680.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:5098eeb57496c3b506b3c940ffb9052507f9f0cde147c3d63cc264c89a774ccd
6-
sourceBlobDigest: sha256:4b2c8f3e76ec1b55d75c75bfb3636ed8d7a3bcea6cdbcb3dc5dabb5a21ba8766
5+
sourceRevisionDigest: sha256:04b1417598cd30a7ea0db043f95705d05abee22a86750cb49d1f872ff0aac1a0
6+
sourceBlobDigest: sha256:8af92c8bafad9bb39a0d61b02a3ac2a6002ba1f37a620db676a62529f844cf7c
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1782432971
9+
- speakeasy-sdk-regen-1782475583
1010
- 1.0.0
1111
targets:
1212
open-router:
1313
source: OpenRouter API
1414
sourceNamespace: open-router-chat-completions-api
15-
sourceRevisionDigest: sha256:5098eeb57496c3b506b3c940ffb9052507f9f0cde147c3d63cc264c89a774ccd
16-
sourceBlobDigest: sha256:4b2c8f3e76ec1b55d75c75bfb3636ed8d7a3bcea6cdbcb3dc5dabb5a21ba8766
15+
sourceRevisionDigest: sha256:04b1417598cd30a7ea0db043f95705d05abee22a86750cb49d1f872ff0aac1a0
16+
sourceBlobDigest: sha256:8af92c8bafad9bb39a0d61b02a3ac2a6002ba1f37a620db676a62529f844cf7c
1717
codeSamplesNamespace: open-router-python-code-samples
18-
codeSamplesRevisionDigest: sha256:a696107bd47df00518c4564d36d1225f22eb306eedd89809baa53b7a0012fe3e
18+
codeSamplesRevisionDigest: sha256:9eb822c39464f6b8ff4cbbe3e2f0bacc6abed49eea905c340948a45c826f7dc0
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: 1.680.0

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,14 @@ Based on:
5858
### Generated
5959
- [python v0.10.3] .
6060
### Releases
61-
- [PyPI v0.10.3] https://pypi.org/project/openrouter/0.10.3 - .
61+
- [PyPI v0.10.3] https://pypi.org/project/openrouter/0.10.3 - .
62+
63+
## 2026-06-26 12:06:01
64+
### Changes
65+
Based on:
66+
- OpenAPI Doc
67+
- Speakeasy CLI 1.680.0 (2.788.4) https://github.com/speakeasy-api/speakeasy
68+
### Generated
69+
- [python v0.10.4] .
70+
### Releases
71+
- [PyPI v0.10.4] https://pypi.org/project/openrouter/0.10.4 - .

β€Ž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.10.3"
3+
version = "0.10.4"
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.10.3"
6+
__version__: str = "0.10.4"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.788.4"
9-
__user_agent__: str = "speakeasy-sdk/python 0.10.3 2.788.4 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 0.10.4 2.788.4 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

β€Žsrc/openrouter/components/imagegencompletedevent.pyβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class ImageGenCompletedEventTypedDict(TypedDict):
2020
r"""Unix timestamp (seconds) when the image was generated"""
2121
type: ImageGenCompletedEventType
2222
r"""The event type"""
23+
media_type: NotRequired[str]
24+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
2325
usage: NotRequired[ImageGenerationUsageTypedDict]
2426
r"""Token and cost usage for the image generation request, when available"""
2527

@@ -36,5 +38,8 @@ class ImageGenCompletedEvent(BaseModel):
3638
type: ImageGenCompletedEventType
3739
r"""The event type"""
3840

41+
media_type: Optional[str] = None
42+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
43+
3944
usage: Optional[ImageGenerationUsage] = None
4045
r"""Token and cost usage for the image generation request, when available"""

β€Žsrc/openrouter/components/imagegenerationresponse.pyβ€Ž

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,17 @@
1010
class ImageGenerationResponseDataTypedDict(TypedDict):
1111
b64_json: str
1212
r"""Base64-encoded image bytes"""
13+
media_type: NotRequired[str]
14+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
1315

1416

1517
class ImageGenerationResponseData(BaseModel):
1618
b64_json: str
1719
r"""Base64-encoded image bytes"""
1820

21+
media_type: Optional[str] = None
22+
r"""Media type (MIME type) of the image. Omitted when the output is a standard raster format (PNG). Present for non-raster outputs such as SVG (`image/svg+xml`)."""
23+
1924

2025
class ImageGenerationResponseTypedDict(TypedDict):
2126
r"""Image generation response"""

β€Žuv.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)