Skip to content

Commit 1644900

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

15 files changed

Lines changed: 212 additions & 27 deletions

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

Lines changed: 35 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: 26f46e3c834197b7bc10a6e6c1c6ba9f
4+
docChecksum: afeda9d88fc53bdc999b51cbbfc38e5e
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 0.11.10
9-
configChecksum: 196bea01b3663ba0c9fdcc5a798cbc32
8+
releaseVersion: 0.11.11
9+
configChecksum: ae2567ccf8234af257af2be5ae3dbbd1
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: aec5cf4e-117a-47a0-8159-8a6d7ca86365
15-
pristine_commit_hash: 26539b409b95eeb377bfa623b3f12986c8084558
16-
pristine_tree_hash: 1e58f3d7bd2923db31822357308a4c3358e7e7e5
14+
generation_id: 5b3c1f6f-8726-47a8-9cc7-06c617d38a5c
15+
pristine_commit_hash: 76b75ea93007df78d1485757c023c321759bea7b
16+
pristine_tree_hash: 8654a70e996630eaf827850b4aec1216cb1fe692
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -2180,6 +2180,18 @@ trackedFiles:
21802180
id: 4aebc0906c32
21812181
last_write_checksum: sha1:cc721e8cb94394423b023926244b51f981a1840e
21822182
pristine_git_object: dc1d52997ba58bd62e44c145f3f954ff619d95b9
2183+
docs/components/imagegentextchunkevent.mdx:
2184+
id: 90061f61e915
2185+
last_write_checksum: sha1:737477edb091fd149324f9126be49b3e25c8d456
2186+
pristine_git_object: 9c2837aabc4b5ee6f947ae9bca1412d756f261f9
2187+
docs/components/imagegentextchunkeventphase.mdx:
2188+
id: d0833d90ca7f
2189+
last_write_checksum: sha1:31d0056d886bb9c4b74a04debc2e29e63f2ccd60
2190+
pristine_git_object: b9333b18b1926cb5ba5c8d781e82c57a5ade4a75
2191+
docs/components/imagegentextchunkeventtype.mdx:
2192+
id: 352d5a931932
2193+
last_write_checksum: sha1:6d49bb73e36c227f1db9a865435ec47fc3076986
2194+
pristine_git_object: fffb82a794389680343b9317dd08062214edf303
21832195
docs/components/imagemodelarchitecture.mdx:
21842196
id: 605b7d0df8cd
21852197
last_write_checksum: sha1:4d1003bc766ebe55e79e172c1f959ccb3b945487
@@ -2210,8 +2222,8 @@ trackedFiles:
22102222
pristine_git_object: 8aad6cc3403b2d0874a7b591248988f3089d33ad
22112223
docs/components/imagestreamingresponsedata.mdx:
22122224
id: 4376edf71a13
2213-
last_write_checksum: sha1:5e6ed13b281270c672168c506b36d7e3b16789cf
2214-
pristine_git_object: 104002712c11896019f0ef05708333ce6631d4d1
2225+
last_write_checksum: sha1:b782a29aa28c0b85e153a67f919d6080eec96b9d
2226+
pristine_git_object: 290f4510d7e41e612aefc61cefa9560a432b0ae1
22152227
docs/components/incompletedetails.mdx:
22162228
id: d83c063d7285
22172229
last_write_checksum: sha1:b24c3be63176609c48ae9b19582c520ba1683ce7
@@ -6442,8 +6454,8 @@ trackedFiles:
64426454
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
64436455
pyproject.toml:
64446456
id: 5d07e7d72637
6445-
last_write_checksum: sha1:873cc7036938ca992145fa28afb0fb5ea2e513ca
6446-
pristine_git_object: afaaf4d246119c26a1cba696bbea015daf43fe5f
6457+
last_write_checksum: sha1:8ddea0ed1450ec8900293e8184a4637d2c0b10ad
6458+
pristine_git_object: b33321664705f741a9e137daa2bbcaee1c59769a
64476459
scripts/prepare_readme.py:
64486460
id: e0c5957a6035
64496461
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6470,8 +6482,8 @@ trackedFiles:
64706482
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
64716483
src/openrouter/_version.py:
64726484
id: d8d15ad6c586
6473-
last_write_checksum: sha1:a64fdf174e7ccce65f0d2619aed5e905c88dc30d
6474-
pristine_git_object: f7bcfe2ddc56fb83561f2b5ef3a3475b70d3f18f
6485+
last_write_checksum: sha1:542e8a57c7755042b8d06156a68deaed693b26f3
6486+
pristine_git_object: ee676105646212488a6db0f5b340ff23483c94f6
64756487
src/openrouter/analytics.py:
64766488
id: cb406b5aaabb
64776489
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -6510,8 +6522,8 @@ trackedFiles:
65106522
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
65116523
src/openrouter/components/__init__.py:
65126524
id: 81754e97b3f4
6513-
last_write_checksum: sha1:67dca4a903421d2bf39474047c5953b2c4432d70
6514-
pristine_git_object: 6fd499892576c4bff0ee51dc59e77b99ff239f7f
6525+
last_write_checksum: sha1:0896a3e5a8c1132e269dde09952c109915b76957
6526+
pristine_git_object: 3969a96e0f587fa91f77e55376f5743ab1c99af7
65156527
src/openrouter/components/aabenchmarkentry.py:
65166528
id: e2e0f0b48c82
65176529
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -7484,6 +7496,10 @@ trackedFiles:
74847496
id: 15c890eb8a08
74857497
last_write_checksum: sha1:29a04e6dc39f00f7784cc9228348a3b6f129b416
74867498
pristine_git_object: 80006d6d186baf7838a40a93839cdea5375256f2
7499+
src/openrouter/components/imagegentextchunkevent.py:
7500+
id: 5cfc6caf763d
7501+
last_write_checksum: sha1:79c33282493bf247e4f761e878cc8242b0992c2c
7502+
pristine_git_object: d433ceae961e91fee4732913cfae463775322981
74877503
src/openrouter/components/imagemodelarchitecture.py:
74887504
id: 5f3e50733fe9
74897505
last_write_checksum: sha1:cc9bee6400f1b7b65ff1c86c5d6bcd5eeab03209
@@ -7510,8 +7526,8 @@ trackedFiles:
75107526
pristine_git_object: 4e4c1cb067ac9184362a7284906f13c442cc152b
75117527
src/openrouter/components/imagestreamingresponse.py:
75127528
id: 7de5604ae99c
7513-
last_write_checksum: sha1:9148415c3a30065e7b1c373818a4d2ae4fc73ace
7514-
pristine_git_object: 877d1986f2a7e941f17532061468b5115a7b0d7f
7529+
last_write_checksum: sha1:b27e74509fefd10a10fc5e1a75ea8c1efcaa713f
7530+
pristine_git_object: d8a39f6587ab7b80f097dda43b908d406539a905
75157531
src/openrouter/components/incompletedetails.py:
75167532
id: 1984e5246b23
75177533
last_write_checksum: sha1:573c1e6509ff2a9e1224725ec74e69f1c720eb09
@@ -10760,3 +10776,6 @@ examples:
1076010776
"500":
1076110777
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1076210778
examplesVersion: 1.0.2
10779+
releaseNotes: |
10780+
## Python SDK Changes:
10781+
* `open_router.images.generate()`: `response.[].data.union(image_generation.text_chunk)` **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.10
39+
version: 0.11.11
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

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

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9772,6 +9772,35 @@ components:
97729772
- type
97739773
- error
97749774
type: object
9775+
ImageGenTextChunkEvent:
9776+
description: Emitted when a text chunk becomes available during streaming generation of text-based formats (e.g. SVG)
9777+
example:
9778+
phase: content
9779+
text: <svg xmlns="http://www.w3.org/2000/svg">
9780+
type: image_generation.text_chunk
9781+
properties:
9782+
phase:
9783+
description: >-
9784+
The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are intermediate provider phases.
9785+
enum:
9786+
- content
9787+
- reasoning
9788+
- draft
9789+
type: string
9790+
x-speakeasy-unknown-values: allow
9791+
text:
9792+
description: A text fragment of the image being generated (e.g. partial SVG markup)
9793+
type: string
9794+
type:
9795+
description: The event type
9796+
enum:
9797+
- image_generation.text_chunk
9798+
type: string
9799+
required:
9800+
- type
9801+
- text
9802+
- phase
9803+
type: object
97759804
ImageModelArchitecture:
97769805
example:
97779806
input_modalities:
@@ -9977,6 +10006,7 @@ components:
997710006
data:
997810007
anyOf:
997910008
- $ref: '#/components/schemas/ImageGenPartialImageEvent'
10009+
- $ref: '#/components/schemas/ImageGenTextChunkEvent'
998010010
- $ref: '#/components/schemas/ImageGenCompletedEvent'
998110011
- $ref: '#/components/schemas/ImageGenStreamErrorEvent'
998210012
required:

β€Ž.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:87aa335eb202bedb623990e67878aeccd1338fdea6fb68c51d211ad8155652bf
6-
sourceBlobDigest: sha256:98310b3c6bd4b7b0c9e45f9b9402c28a43ee7e81669d401ce000be1885dd4aea
5+
sourceRevisionDigest: sha256:87e4c596d105bb13f76c310ec8d8d44d3ffb0350b4c451569fabb11aeeb5bbbd
6+
sourceBlobDigest: sha256:a371855a3645703bef21de566fde2c87342bb0a654e529c38f4344b8ad5e705b
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:87aa335eb202bedb623990e67878aeccd1338fdea6fb68c51d211ad8155652bf
15-
sourceBlobDigest: sha256:98310b3c6bd4b7b0c9e45f9b9402c28a43ee7e81669d401ce000be1885dd4aea
14+
sourceRevisionDigest: sha256:87e4c596d105bb13f76c310ec8d8d44d3ffb0350b4c451569fabb11aeeb5bbbd
15+
sourceBlobDigest: sha256:a371855a3645703bef21de566fde2c87342bb0a654e529c38f4344b8ad5e705b
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:7fa7234a88a43ca2e6a2b0a9b47dcf355f9a3875c0c46977a99bca9a1c784418
17+
codeSamplesRevisionDigest: sha256:1600c45d7815b8e0a480752fa1fa1f7cb9919e492d2fd2e0162d83e4ad69cfae
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
@@ -208,4 +208,14 @@ Based on:
208208
### Generated
209209
- [python v0.11.10] .
210210
### Releases
211-
- [PyPI v0.11.10] https://pypi.org/project/openrouter/0.11.10 - .
211+
- [PyPI v0.11.10] https://pypi.org/project/openrouter/0.11.10 - .
212+
213+
## 2026-07-08 19:07:22
214+
### Changes
215+
Based on:
216+
- OpenAPI Doc
217+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
218+
### Generated
219+
- [python v0.11.11] .
220+
### Releases
221+
- [PyPI v0.11.11] https://pypi.org/project/openrouter/0.11.11 - .
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: "ImageGenTextChunkEvent"
3+
---
4+
5+
Emitted when a text chunk becomes available during streaming generation of text-based formats (e.g. SVG)
6+
7+
8+
## Fields
9+
10+
| Field | Type | Required | Description |
11+
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
12+
| `phase` | [components.ImageGenTextChunkEventPhase](../components/imagegentextchunkeventphase.mdx) | :heavy_check_mark: | The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are intermediate provider phases. |
13+
| `text` | *str* | :heavy_check_mark: | A text fragment of the image being generated (e.g. partial SVG markup) |
14+
| `type` | [components.ImageGenTextChunkEventType](../components/imagegentextchunkeventtype.mdx) | :heavy_check_mark: | The event type |
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: "ImageGenTextChunkEventPhase"
3+
---
4+
5+
The generation phase this chunk belongs to. `content` is the renderable output; `reasoning` and `draft` are intermediate provider phases.
6+
7+
## Example Usage
8+
9+
```python
10+
from openrouter.components import ImageGenTextChunkEventPhase
11+
12+
# Open enum: unrecognized values are captured as UnrecognizedStr
13+
value: ImageGenTextChunkEventPhase = "content"
14+
```
15+
16+
17+
## Values
18+
19+
This is an open enum. Unrecognized values will not fail type checks.
20+
21+
- `"content"`
22+
- `"reasoning"`
23+
- `"draft"`
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
title: "ImageGenTextChunkEventType"
3+
---
4+
5+
The event type
6+
7+
## Example Usage
8+
9+
```python
10+
from openrouter.components import ImageGenTextChunkEventType
11+
value: ImageGenTextChunkEventType = "image_generation.text_chunk"
12+
```
13+
14+
15+
## Values
16+
17+
- `"image_generation.text_chunk"`

β€Ždocs/components/imagestreamingresponsedata.mdxβ€Ž

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ title: "ImageStreamingResponseData"
1010
value: components.ImageGenPartialImageEvent = /* values here */
1111
```
1212

13+
### `components.ImageGenTextChunkEvent`
14+
15+
```python
16+
value: components.ImageGenTextChunkEvent = /* values here */
17+
```
18+
1319
### `components.ImageGenCompletedEvent`
1420

1521
```python

β€Ž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.10"
3+
version = "0.11.11"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

0 commit comments

Comments
Β (0)