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
31 changes: 17 additions & 14 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: 6c0dc1180ddd65aca19832ac414a80a2
docChecksum: f6c5b72912f9dd85cb89099bbfad9fc0
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.1.88
configChecksum: cb8369e249ca353a685ae6555e561b73
releaseVersion: 1.1.89
configChecksum: 9fc9f8573ca9396646ca57e9f26a17fe
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 33009c01-c412-4ec0-898d-fb0affbfceb5
pristine_commit_hash: ce756587e75a1e2004c2cc31829de32c3e8369a8
pristine_tree_hash: f3b31b037c3088146bf99dcc9020466e799be5e4
generation_id: 2793dbee-3635-4a87-9840-16bbb9eee245
pristine_commit_hash: 07fc4a0dc54d733216eaf7ac5000552205fd48d7
pristine_tree_hash: 5e217b5ee0c32e6aac19d851c299d1dfe0e7c163
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -5542,8 +5542,8 @@ trackedFiles:
pristine_git_object: 2dd2e0e312eae3044e8aa6ecb77210a8a9c9fa82
docs/components/unit.mdx:
id: 0bdb46a190ad
last_write_checksum: sha1:e0d1ce7e9a1a44e61886cc706c99f412c4c31d12
pristine_git_object: 83f68ad45191f3772161e6e74b618370f82b4df4
last_write_checksum: sha1:4d2b3619dece58c555b2bed3078a2a5fc6036168
pristine_git_object: 8369333a20b7b67cc70ff68129abc4f236c7ce9b
docs/components/unprocessableentityresponseerrordata.mdx:
id: 7171837ab497
last_write_checksum: sha1:fe645e7a874320f871b2ab92dd9cd945b316f688
Expand Down Expand Up @@ -7386,8 +7386,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:0283a87f45260001f0f142de392af82608c4bda4
pristine_git_object: b6be4f641fcd39367dbccc03500dcd712b042710
last_write_checksum: sha1:45d8374b9430f85dd1dde25cbf505b77f8931d57
pristine_git_object: a43ad28ca2b08dda34a73dd2cb55ee69a52b3cd9
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -7414,8 +7414,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:1ddb01e5eee5a2f883dbf19c72dc7222ebe997df
pristine_git_object: a11819a3af3edbe59032bef170dedcfd89546b03
last_write_checksum: sha1:2ba3a264350bdc9e4664fa885528912f37db700f
pristine_git_object: e162234afa195293c69464a1bb84b8475dab9c27
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
Expand Down Expand Up @@ -8582,8 +8582,8 @@ trackedFiles:
pristine_git_object: 9c5a7a430aa6103cc10052b1d6c278181071180c
src/openrouter/components/imagepricingentry.py:
id: 58bd958fe130
last_write_checksum: sha1:9dd0062e577388192bf1664c5c00189d46f976a8
pristine_git_object: 4e4c1cb067ac9184362a7284906f13c442cc152b
last_write_checksum: sha1:449dd6b21d7182940757fc6717dd7e3eddc2472a
pristine_git_object: 47c262541e4517ccd2ba211a9f8b7fac5a4ed4c4
src/openrouter/components/imagestreamingresponse.py:
id: 7de5604ae99c
last_write_checksum: sha1:b27e74509fefd10a10fc5e1a75ea8c1efcaa713f
Expand Down Expand Up @@ -12457,3 +12457,6 @@ examples:
"503":
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.images.list_model_endpoints()`: `response.endpoints[].pricing[].unit.enum(request)` **Added**
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.1.88
version: 1.1.89
additionalDependencies:
dev: {}
main: {}
Expand Down
1 change: 1 addition & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11211,6 +11211,7 @@ components:
type: 'number'
unit:
enum:
- 'request'
- 'image'
- 'megapixel'
- 'token'
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:c418fe9ac46223cfc831edcc1e183d5b1856d49aecc6818671d944f15a3ad2f0
sourceBlobDigest: sha256:3efa1b6f8eada5d6378f3af9427c9eddbcdef6f113a1e9211cbfe7ba4ca09413
sourceRevisionDigest: sha256:b294c3055789018d9d75d7c9bc915fa61ad8d3292565e703806514a008a32e63
sourceBlobDigest: sha256:0ccddc43fe77b61dd6510b019f5ee479f595be1de67eacb65f12d120c995059d
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:c418fe9ac46223cfc831edcc1e183d5b1856d49aecc6818671d944f15a3ad2f0
sourceBlobDigest: sha256:3efa1b6f8eada5d6378f3af9427c9eddbcdef6f113a1e9211cbfe7ba4ca09413
sourceRevisionDigest: sha256:b294c3055789018d9d75d7c9bc915fa61ad8d3292565e703806514a008a32e63
sourceBlobDigest: sha256:0ccddc43fe77b61dd6510b019f5ee479f595be1de67eacb65f12d120c995059d
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:f0becd6076613c496bab2c8af4a0e2a44870c32a977a342293ed2579eb616813
codeSamplesRevisionDigest: sha256:93ef6fe23c8915211f233788b2cda77b41ce5a3e2e46048d9ae7bd330d6a95b3
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 @@ -1669,4 +1669,14 @@ Based on:
### Generated
- [python v1.1.88] .
### Releases
- [PyPI v1.1.88] https://pypi.org/project/openrouter/1.1.88 - .
- [PyPI v1.1.88] https://pypi.org/project/openrouter/1.1.88 - .

## 2026-08-25 20:33:26
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.89] .
### Releases
- [PyPI v1.1.89] https://pypi.org/project/openrouter/1.1.89 - .
3 changes: 2 additions & 1 deletion docs/components/unit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ title: "Unit"
from openrouter.components import Unit

# Open enum: unrecognized values are captured as UnrecognizedStr
value: Unit = "image"
value: Unit = "request"
```


## Values

This is an open enum. Unrecognized values will not fail type checks.

- `"request"`
- `"image"`
- `"megapixel"`
- `"token"`
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.1.88"
version = "1.1.89"
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.1.88"
__version__: str = "1.1.89"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 1.1.88 2.914.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.1.89 2.914.0 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
1 change: 1 addition & 0 deletions src/openrouter/components/imagepricingentry.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

Unit = Union[
Literal[
"request",
"image",
"megapixel",
"token",
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