Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 17 additions & 20 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: b9eccc20975f2d78c4f6db89903814f4
docChecksum: 38da36adcde781d09b4b6d866704ed34
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.2.29
configChecksum: 6369337a9b0173b9862defa437569867
releaseVersion: 1.2.30
configChecksum: d95c950189da2d9ac4c9c3025a53dd7b
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: f1c72740-3df8-4af1-b2bd-e31457a36cf6
pristine_commit_hash: f7158adcd9a4fcecb96882daa00b468de85142cb
pristine_tree_hash: 18db3a50e0ec57a54a9e53131ceb5290f336d1ae
generation_id: ad06863e-fa9c-4634-9a2b-9fbb5e137a9f
pristine_commit_hash: cdad4169dd738b26ee61c27042a86fc393ee555a
pristine_tree_hash: cae1f24479afca006618e2e37a46fb3a805c94df
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -3359,8 +3359,8 @@ trackedFiles:
pristine_git_object: 6c22de5c856350e1d6846aab0a92653698e41bd0
docs/components/imagegenerationrequestaspectratio.mdx:
id: bda89377f32d
last_write_checksum: sha1:368ddc44134948e2e04c43dd886f7469d88b7d16
pristine_git_object: 3f967d5244cb2986c97da5783a110d4b9d5c1bc7
last_write_checksum: sha1:58af560f1182c30c06f8d9413e9e7073038cdc99
pristine_git_object: 1c7a3f08a007ed3f55c657a7a01fa23df41f872f
docs/components/imagegenerationrequestbackground.mdx:
id: cab3c6c6dfc6
last_write_checksum: sha1:ea6f2fa5f8f63600e2d1a67a784e6a93cf295975
Expand All @@ -3375,8 +3375,8 @@ trackedFiles:
pristine_git_object: 6e2298007e04c5cf4cb96eae577fadddb382a9ac
docs/components/imagegenerationrequestresolution.mdx:
id: 5dcb01b22e48
last_write_checksum: sha1:c53e03ff5d6cf292acc6702a75bc8b09db116e46
pristine_git_object: 4d9385e8f8bebbc916ea152992747b1af5de1519
last_write_checksum: sha1:0e9f7b2d89188d71215c3efe43eefc4f5c992efd
pristine_git_object: fa667e57053ab75a81053150cd6ce37dc844157b
docs/components/imagegenerationresponse.mdx:
id: 094e477544e9
last_write_checksum: sha1:3f998b412d3227450dc500b78c2e227385ddc6d7
Expand Down Expand Up @@ -9203,8 +9203,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:512be0c2ea776d4a2da4799dc97649a321dabafd
pristine_git_object: 4c30db411ff5c737e1b69f93ecaf338c4bfceb7b
last_write_checksum: sha1:e7df8c61352839e996902425c1e8156825852be8
pristine_git_object: 291d833c9389adfdb53bd489c7469321f813dbba
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -9231,8 +9231,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:90bcfb627d2358e9a9e17e8f132d11f4e8d1f4ff
pristine_git_object: 85ff223340c8a21b688ec3a7664ce1ae0bff7c19
last_write_checksum: sha1:5155cac237e5665d3f12b0aacaf0f8ce9e00c26d
pristine_git_object: df45cec8929e5e001a27f6028575c23c1842541c
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
Expand Down Expand Up @@ -10711,8 +10711,8 @@ trackedFiles:
pristine_git_object: 458b8e90f89c48a923b81f9cf116cce746b3d9f1
src/openrouter/components/imagegenerationrequest.py:
id: f8291a7be9a0
last_write_checksum: sha1:fcaa6c8879469974a42e7a4e351c29965e71c52e
pristine_git_object: bc541cb410ead6a0c91cf6a7ec6882bb823037f2
last_write_checksum: sha1:43396d2e7f0b98b79ed93e34cfe8d23bbb23640f
pristine_git_object: 58787c2624c27f314f92f6f8aed73e315a9146b8
src/openrouter/components/imagegenerationresponse.py:
id: 53354cd0cbfc
last_write_checksum: sha1:53f1cde7b8bfe4f9e786a76f6e57b0a1f76aced2
Expand Down Expand Up @@ -16534,7 +16534,4 @@ examples:
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.batch.list()`: **Added**
* `open_router.batch.create_batches()`: **Added**
* `open_router.batch.delete()`: **Added**
* `open_router.batch.get_batches()`: **Added**
* `open_router.images.generate()`: `request` **Changed**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.2.29
version: 1.2.30
additionalDependencies:
dev: {}
main: {}
Expand Down
3 changes: 3 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12923,6 +12923,8 @@ components:
- '4:5'
- '5:2'
- '5:4'
- '5:7'
- '7:5'
- '8:1'
- '9:16'
- '16:9'
Expand Down Expand Up @@ -12996,6 +12998,7 @@ components:
description: 'Normalized resolution tier of the generated image. Concrete pixel dimensions are derived per-provider.'
enum:
- '512'
- '768'
- '1K'
- '2K'
- '4K'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:6ff78bd091299f16e703c9d4921e50eba69d63da300cc82aff35f997dc327863
sourceBlobDigest: sha256:0b5a4d8ddfedee7aaa216ed03158ec191addc1d989e7bdd619fca20e112174f1
sourceRevisionDigest: sha256:928638f771937b2a5ec7d05a2cd4ab811c4718e64557050b4ad3b174f028a58d
sourceBlobDigest: sha256:ef4586cbc6c1544f4763841518ddd9fdc43f34779d845c783334f7ac19f61b65
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:6ff78bd091299f16e703c9d4921e50eba69d63da300cc82aff35f997dc327863
sourceBlobDigest: sha256:0b5a4d8ddfedee7aaa216ed03158ec191addc1d989e7bdd619fca20e112174f1
sourceRevisionDigest: sha256:928638f771937b2a5ec7d05a2cd4ab811c4718e64557050b4ad3b174f028a58d
sourceBlobDigest: sha256:ef4586cbc6c1544f4763841518ddd9fdc43f34779d845c783334f7ac19f61b65
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:49a63522264eaf556e813b961ab040f3a4b98a839200607a4d0612e90262e84d
codeSamplesRevisionDigest: sha256:6fcf4e58d106a04fd7ac7dbaab0cc241dccbbb1ea3339be59f66be6a1c687b52
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2699,4 +2699,14 @@ Based on:
### Generated
- [python v1.2.29] .
### Releases
- [PyPI v1.2.29] https://pypi.org/project/openrouter/1.2.29 - .
- [PyPI v1.2.29] https://pypi.org/project/openrouter/1.2.29 - .

## 2026-09-25 23:05:55
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.2.30] .
### Releases
- [PyPI v1.2.30] https://pypi.org/project/openrouter/1.2.30 - .
2 changes: 2 additions & 0 deletions docs/components/imagegenerationrequestaspectratio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ This is an open enum. Unrecognized values will not fail type checks.
- `"4:5"`
- `"5:2"`
- `"5:4"`
- `"5:7"`
- `"7:5"`
- `"8:1"`
- `"9:16"`
- `"16:9"`
Expand Down
1 change: 1 addition & 0 deletions docs/components/imagegenerationrequestresolution.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ value: ImageGenerationRequestResolution = "512"
This is an open enum. Unrecognized values will not fail type checks.

- `"512"`
- `"768"`
- `"1K"`
- `"2K"`
- `"4K"`
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
version = "1.2.29"
version = "1.2.30"
description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "openrouter"
__version__: str = "1.2.29"
__version__: str = "1.2.30"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 1.2.29 2.914.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.2.30 2.914.0 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
3 changes: 3 additions & 0 deletions src/openrouter/components/imagegenerationrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"4:5",
"5:2",
"5:4",
"5:7",
"7:5",
"8:1",
"9:16",
"16:9",
Expand Down Expand Up @@ -85,6 +87,7 @@
ImageGenerationRequestResolution = Union[
Literal[
"512",
"768",
"1K",
"2K",
"4K",
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading