Skip to content

Commit c24062e

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

10 files changed

Lines changed: 54 additions & 29 deletions

File tree

.speakeasy/gen.lock

Lines changed: 15 additions & 17 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: 324e5e9417697fdd19ac40dbdee29092
4+
docChecksum: 658f38aca7602f6f6a2560c5f87359a4
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.153
9-
configChecksum: 1b1e98d91f1d9f955c562b44db842a80
8+
releaseVersion: 1.1.154
9+
configChecksum: 7f90f6c142a4c96321b2e4e19e6c7468
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: d17916fa-f2c2-4c10-a368-d022ee4cea26
15-
pristine_commit_hash: 4308baa564414b4c16cf56988b4de95fa6b3748b
16-
pristine_tree_hash: 53611524c08c7f544a475792d4162569b168363d
14+
generation_id: 2de73e06-133c-4851-b00f-33203f9c0341
15+
pristine_commit_hash: 9894bc0e00e3c76649b7639f4d085eebc238d9fc
16+
pristine_tree_hash: 955ab838ee178e94808251ee73fab53c4305df9a
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -366,8 +366,8 @@ trackedFiles:
366366
pristine_git_object: 9be25eff134f6283b95213ba56fa2ee21c493a39
367367
docs/components/anthropicimageblockparamsource.mdx:
368368
id: 82f05c79d5cb
369-
last_write_checksum: sha1:0939a26da32a1d150a58d6988b9ef8bbd49bacf4
370-
pristine_git_object: 7a6eede7854ed53befd8988077bef7e0b715c150
369+
last_write_checksum: sha1:fa2de1356d760c4fb128731421b10aeeb26fa6d9
370+
pristine_git_object: b7448ceebbe74557ebb47150f6623b532fb7e1c7
371371
docs/components/anthropicimageblockparamtype.mdx:
372372
id: b696c47f8715
373373
last_write_checksum: sha1:3c6aff8307fbb3e3af1dddecfcd0a5c00c036eea
@@ -7766,8 +7766,8 @@ trackedFiles:
77667766
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
77677767
pyproject.toml:
77687768
id: 5d07e7d72637
7769-
last_write_checksum: sha1:fd4d921e42e46b6699e830c81e753256bbea0319
7770-
pristine_git_object: 45e7d66074138141c0a1d58ac0060b708a5a897e
7769+
last_write_checksum: sha1:aebd4b8e9b3bd01b7732d031ea406bff7b52b1d4
7770+
pristine_git_object: fed68690d305ed6cbf73ec1aa130d466b72cb7e7
77717771
scripts/prepare_readme.py:
77727772
id: e0c5957a6035
77737773
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7794,8 +7794,8 @@ trackedFiles:
77947794
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
77957795
src/openrouter/_version.py:
77967796
id: d8d15ad6c586
7797-
last_write_checksum: sha1:f1b890fd1369a6a362ed7f88a9a369cc66501fb3
7798-
pristine_git_object: 1ce83d17236585b76fe03355f52f670179995cd8
7797+
last_write_checksum: sha1:c1b3bb26c47b1021d8365a7d31f21be3d2d5f6c3
7798+
pristine_git_object: e2deff10977f39b591781c92c5f635972cd61f47
77997799
src/openrouter/analytics.py:
78007800
id: cb406b5aaabb
78017801
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -7946,8 +7946,8 @@ trackedFiles:
79467946
pristine_git_object: def29ec5aec5f4cf84cb62c7dc6eb7c00f40ab5d
79477947
src/openrouter/components/anthropicimageblockparam.py:
79487948
id: 71cab07562d1
7949-
last_write_checksum: sha1:fbdb3a017bc51cb2848933aca87023159951a2aa
7950-
pristine_git_object: 7b5effbbab60e15e1daa06ad703f445d3dde96b6
7949+
last_write_checksum: sha1:c76478bd8f2874bf81137104fd73fdfd6b9fd1e7
7950+
pristine_git_object: 6c2c231ad178e98316787f0cdea2bd72046d60d9
79517951
src/openrouter/components/anthropicimagemimetype.py:
79527952
id: 2434bf06fc4f
79537953
last_write_checksum: sha1:2016e4ef5d678a2af645d50cb02e022c3918d494
@@ -14209,6 +14209,4 @@ examples:
1420914209
"504":
1421014210
application/json: {"error": {"code": 504, "message": "Vault request timed out"}}
1421114211
examplesVersion: 1.0.2
14212-
releaseNotes: |
14213-
## Python SDK Changes:
14214-
* `open_router.stt.create_transcription_multipart()`: `request` **Changed**
14212+
releaseNotes: "## Python SDK Changes:\n* `open_router.presets.create_presets_messages()`: \n * `request.messages[].content.union(Array<>)[].union(document).source.union(content).content.union(Array<>)[].union(image).source.union(file)` **Added**\n"

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

.speakeasy/out.openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1540,11 +1540,13 @@ components:
15401540
discriminator:
15411541
mapping:
15421542
base64: '#/components/schemas/AnthropicBase64ImageSource'
1543+
file: '#/components/schemas/AnthropicFileDocumentSource'
15431544
url: '#/components/schemas/AnthropicUrlImageSource'
15441545
propertyName: 'type'
15451546
oneOf:
15461547
- $ref: '#/components/schemas/AnthropicBase64ImageSource'
15471548
- $ref: '#/components/schemas/AnthropicUrlImageSource'
1549+
- $ref: '#/components/schemas/AnthropicFileDocumentSource'
15481550
type:
15491551
enum:
15501552
- 'image'

.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:75aa60b9bf581640f76674835075b94f849acb002b47cc83c3a3d1fb79b033a9
6-
sourceBlobDigest: sha256:6bd42aec1d1358ebf45a46d4800e77bf6b62555942de153a65e2eb72894cc9cb
5+
sourceRevisionDigest: sha256:bc35b2d65e540fa3589a73ca766be826d2fcb377141701fe8efa306648b94fe5
6+
sourceBlobDigest: sha256:dc406f512b95bc8dac7c348d8fbc5679ae2fc4226f912c018b679710527beb0b
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:75aa60b9bf581640f76674835075b94f849acb002b47cc83c3a3d1fb79b033a9
15-
sourceBlobDigest: sha256:6bd42aec1d1358ebf45a46d4800e77bf6b62555942de153a65e2eb72894cc9cb
14+
sourceRevisionDigest: sha256:bc35b2d65e540fa3589a73ca766be826d2fcb377141701fe8efa306648b94fe5
15+
sourceBlobDigest: sha256:dc406f512b95bc8dac7c348d8fbc5679ae2fc4226f912c018b679710527beb0b
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:4933127c25c73a3a8890225176081e40f10cbdf634015f135beb4c13c0992dcd
17+
codeSamplesRevisionDigest: sha256:fe97af64d72e14c90c2ddaa561854d5a438e4ad1ea6439f23921db822feb52dd
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
@@ -2319,4 +2319,14 @@ Based on:
23192319
### Generated
23202320
- [python v1.1.153] .
23212321
### Releases
2322-
- [PyPI v1.1.153] https://pypi.org/project/openrouter/1.1.153 - .
2322+
- [PyPI v1.1.153] https://pypi.org/project/openrouter/1.1.153 - .
2323+
2324+
## 2026-09-17 02:30:34
2325+
### Changes
2326+
Based on:
2327+
- OpenAPI Doc
2328+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2329+
### Generated
2330+
- [python v1.1.154] .
2331+
### Releases
2332+
- [PyPI v1.1.154] https://pypi.org/project/openrouter/1.1.154 - .

docs/components/anthropicimageblockparamsource.mdx

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

13+
### `components.AnthropicFileDocumentSource`
14+
15+
```python
16+
value: components.AnthropicFileDocumentSource = /* values here */
17+
```
18+
1319
### `components.AnthropicURLImageSource`
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 = "1.1.153"
3+
version = "1.1.154"
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 = "1.1.153"
6+
__version__: str = "1.1.154"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.1.153 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.1.154 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

src/openrouter/components/anthropicimageblockparam.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
AnthropicCacheControlDirective,
1010
AnthropicCacheControlDirectiveTypedDict,
1111
)
12+
from .anthropicfiledocumentsource import (
13+
AnthropicFileDocumentSource,
14+
AnthropicFileDocumentSourceTypedDict,
15+
)
1216
from .anthropicurlimagesource import (
1317
AnthropicURLImageSource,
1418
AnthropicURLImageSourceTypedDict,
@@ -22,13 +26,18 @@
2226

2327
AnthropicImageBlockParamSourceTypedDict = TypeAliasType(
2428
"AnthropicImageBlockParamSourceTypedDict",
25-
Union[AnthropicURLImageSourceTypedDict, AnthropicBase64ImageSourceTypedDict],
29+
Union[
30+
AnthropicURLImageSourceTypedDict,
31+
AnthropicFileDocumentSourceTypedDict,
32+
AnthropicBase64ImageSourceTypedDict,
33+
],
2634
)
2735

2836

2937
AnthropicImageBlockParamSource = Annotated[
3038
Union[
3139
Annotated[AnthropicBase64ImageSource, Tag("base64")],
40+
Annotated[AnthropicFileDocumentSource, Tag("file")],
3241
Annotated[AnthropicURLImageSource, Tag("url")],
3342
],
3443
Discriminator(lambda m: get_discriminator(m, "type", "type")),

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)