Skip to content

Commit d18da05

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

11 files changed

Lines changed: 63 additions & 35 deletions

File tree

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

Lines changed: 16 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: 1e2a0333ab1ccfe5306774b00cbdbcc1
4+
docChecksum: da173788c3fb85719697a630f864f3ac
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.54
9-
configChecksum: 1765552a9cbf18829bcaaffcd4ab91d3
8+
releaseVersion: 1.1.55
9+
configChecksum: 69b387e12b95d28ebf0b8d1bb847c0b8
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: 1ed6be0d-a8eb-4a89-9f33-17e8194ac24b
15-
pristine_commit_hash: b3eef92b13f15402c63132fb08e94d8dcae44de4
16-
pristine_tree_hash: a85ad4f87a1877864e61a0bcaacc04a25937135b
14+
generation_id: 92ecc519-cdb9-4475-a79e-e0c43480338b
15+
pristine_commit_hash: aeb7d4e4cb4f81a01c4f2d6af69faba3505ef9d9
16+
pristine_tree_hash: 23aa3ab46f722d3b1999b880b6b731a4af73dcaa
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -7150,8 +7150,8 @@ trackedFiles:
71507150
pristine_git_object: 414ae2830c58add7ad904cc9ffc5b46ed65058df
71517151
docs/sdks/datasets/README.mdx:
71527152
id: 15e5ab0183de
7153-
last_write_checksum: sha1:fdb99109a1beb492222426112999718444fbdb8e
7154-
pristine_git_object: e71813682dd01efd21e06bc8804086d6fde5e1ea
7153+
last_write_checksum: sha1:aa3ad8ca41dcb9d8657a31ea33b17045019ca1d3
7154+
pristine_git_object: fe31c0f4f765b9f8f3cf79f6dd403e730589db80
71557155
docs/sdks/embeddings/README.mdx:
71567156
id: cd71581df291
71577157
last_write_checksum: sha1:810a851cac701dfa79d8130a38396d0a1b8b5196
@@ -7234,8 +7234,8 @@ trackedFiles:
72347234
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
72357235
pyproject.toml:
72367236
id: 5d07e7d72637
7237-
last_write_checksum: sha1:9436613d062c6b92fef51805fa349cf9f2024317
7238-
pristine_git_object: 5d1d1c4df99f6f6ea98421344af9b091c01a878c
7237+
last_write_checksum: sha1:e86c53fb5b578274fa60fa800876c1318fca8fdd
7238+
pristine_git_object: 7d8a04c6f5ee208617cfccfd1c6c1b0aa29f057b
72397239
scripts/prepare_readme.py:
72407240
id: e0c5957a6035
72417241
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7262,8 +7262,8 @@ trackedFiles:
72627262
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
72637263
src/openrouter/_version.py:
72647264
id: d8d15ad6c586
7265-
last_write_checksum: sha1:31e034517cad1c6979c3d9efa5a86270cdd84082
7266-
pristine_git_object: ce1d1b5a37d795079a60ac8f56dae32b4ff7aa7d
7265+
last_write_checksum: sha1:fc72243105389d9b0a3b753f7e487e7040b371d3
7266+
pristine_git_object: bacef164f105343765e516ac9ddd54574699c081
72677267
src/openrouter/analytics.py:
72687268
id: cb406b5aaabb
72697269
last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a
@@ -9758,8 +9758,8 @@ trackedFiles:
97589758
pristine_git_object: 791cdeba11d6c5e9e9381760fd8cd8ca86233b22
97599759
src/openrouter/datasets.py:
97609760
id: 2378f80d1d6a
9761-
last_write_checksum: sha1:1a447242bb4a28d8b95415d16f662d9ddefd2547
9762-
pristine_git_object: d153d356c5643f5c4f94d18d29adfb99f06addf5
9761+
last_write_checksum: sha1:7bc2854b9c08b1e50d69b1e94fca80859ca0a0ac
9762+
pristine_git_object: 0532cef994643793368c4484b8af0d247be2692e
97639763
src/openrouter/embeddings.py:
97649764
id: 0374ace39067
97659765
last_write_checksum: sha1:220cac105c58c9b42f2f9f9e6bf98f6a7beb4f96
@@ -10310,8 +10310,8 @@ trackedFiles:
1031010310
pristine_git_object: f6ad93a8202863708520f9fdb7043eeb4f1f1fc6
1031110311
src/openrouter/sdk.py:
1031210312
id: ee9846c4c9c5
10313-
last_write_checksum: sha1:a93d3271a6996e95f800f8c70eb26c81012d05bc
10314-
pristine_git_object: 3846f88706ca912096cfc40a460f6a0bb431c546
10313+
last_write_checksum: sha1:8bf6e1e1ddf2593219cdd9aa964a017ec68a0748
10314+
pristine_git_object: b00e07cd484d49e193c7bfe5fb822dbf4fe95406
1031510315
src/openrouter/sdkconfiguration.py:
1031610316
id: 55773bb98d7c
1031710317
last_write_checksum: sha1:c01826125c31a8b8bc99d9d679782c8758fae001

β€Ž.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.54
39+
version: 1.1.55
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28849,7 +28849,7 @@ paths:
2884928849
- $ref: "#/components/parameters/AppCategories"
2885028850
/datasets/app-rankings:
2885128851
get:
28852-
description: "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` β€”\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider."
28852+
description: "Returns the top public apps on OpenRouter ranked by token usage inside the requested\ndate window, matching the public apps marketplace on openrouter.ai/apps. Token totals\nare `prompt_tokens + completion_tokens`; hidden and private apps are excluded and\ntraffic from related app aliases is merged into the canonical visible app.\n\n`sort=popular` (default) ranks by total token volume inside the window.\n`sort=trending` ranks by absolute excess token growth: window volume minus the average\nvolume of the three equal-length periods immediately preceding the window. Apps with\nno excess growth are omitted, so `trending` may return fewer than `limit` rows.\n\nFilter with `category` (marketplace category group, e.g. `coding`) or `subcategory`\n(e.g. `cli-agent`). Ranks are re-numbered 1..N after filtering. Page with `offset` β€”\n`rank` stays absolute, so the first row of `offset=50` is `rank: 51`.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/apps), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer, so a token attributed\nto one app is not directly comparable to a token attributed to another app whose\ntraffic flows through a different provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter."
2885328853
operationId: 'getAppRankings'
2885428854
parameters:
2885528855
- description: 'Marketplace category group to filter by (e.g. `coding`). Only apps tagged with a subcategory inside this group are returned. Mutually combinable with `subcategory` β€” when both are supplied the `subcategory` must belong to the `category` group.'
@@ -29031,7 +29031,7 @@ paths:
2903129031
- $ref: "#/components/parameters/AppCategories"
2903229032
/datasets/rankings-daily:
2903329033
get:
29034-
description: "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated `other` row per day that sums every model outside that top 50.\nToken totals are `prompt_tokens + completion_tokens`, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct `(date, model_permaslug)` pair. The `other` row uses the\nreserved permaslug `other` and is always returned last within its date, so callers\ncan compute `top-50 traffic / total daily traffic` without a second request.\n\nOptional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time\ngrain. `modality` and `context_bucket` narrow the exact dataset by output/input\nmodality (or tool-calling activity) and request context length. `category` and\n`language_type` instead read a sampled, upsampled dataset whose `total_tokens` are\nweekly-grain estimates β€” they cannot be combined with each other or with the exact\nfilters, and reject `period=day` with a 400.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider."
29034+
description: "Returns the top 50 public models per day by total token usage on OpenRouter, plus a\nsingle aggregated `other` row per day that sums every model outside that top 50.\nToken totals are `prompt_tokens + completion_tokens`, matching the public rankings\nchart on openrouter.ai/rankings.\n\nEach row is a distinct `(date, model_permaslug)` pair. The `other` row uses the\nreserved permaslug `other` and is always returned last within its date, so callers\ncan compute `top-50 traffic / total daily traffic` without a second request.\n\nOptional filters slice the dataset. `period` (`day`/`week`/`month`) sets the time\ngrain. `modality` and `context_bucket` narrow the exact dataset by output/input\nmodality (or tool-calling activity) and request context length. `category` and\n`language_type` instead read a sampled, upsampled dataset whose `total_tokens` are\nweekly-grain estimates β€” they cannot be combined with each other or with the exact\nfilters, and reject `period=day` with a 400.\n\nAuthenticate with any valid OpenRouter API key (same key used for inference).\nRate-limited to 30 requests/minute per key and 500 requests/day per account.\n\nWhen republishing or quoting this dataset, OpenRouter must be cited as:\n\"Source: OpenRouter (openrouter.ai/rankings), as of {as_of}.\"\n\nToken counts come from each upstream provider's own tokenizer (Anthropic counts\nare as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so\na token in one row is not directly comparable to a token in another row from a\ndifferent provider.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter."
2903529035
operationId: 'getRankingsDaily'
2903629036
parameters:
2903729037
- description: 'Start of the date window in YYYY-MM-DD (UTC), inclusive. Defaults to 30 days before `end_date`. The dataset begins at 2025-01-01; earlier values are clamped forward to that floor and the resolved value is echoed in `meta.start_date`.'
@@ -29201,7 +29201,7 @@ paths:
2920129201
- $ref: "#/components/parameters/AppCategories"
2920229202
/datasets/session-cost:
2920329203
get:
29204-
description: "Returns weekly refreshed, aggregated cost-per-session cells for the published harnesses.\nSessions are never pooled across apps. Medians are of per-session USD spend, and\nprivacy-preserving aggregation never exposes clerk_user_id values or per-session rows.\n\nFilter by `app_slug`, `model`, or `turn_range`. Filtering by `model` alone works across apps\nfor harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot\nwindow in `meta`."
29204+
description: "Returns weekly refreshed, aggregated cost-per-session cells for the published harnesses.\nSessions are never pooled across apps. Medians are of per-session USD spend, and\nprivacy-preserving aggregation never exposes clerk_user_id values or per-session rows.\n\nFilter by `app_slug`, `model`, or `turn_range`. Filtering by `model` alone works across apps\nfor harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot\nwindow in `meta`.\n\nLicensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter."
2920529205
operationId: 'getSessionCost'
2920629206
parameters:
2920729207
- description: 'Filter to one published harness slug.'
@@ -39326,7 +39326,7 @@ tags:
3932639326
name: 'Classifications'
3932739327
- description: 'Credit management endpoints'
3932839328
name: 'Credits'
39329-
- description: 'Datasets endpoints'
39329+
- description: 'Public OpenRouter usage datasets. Data returned by these endpoints is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/): reuse and republish it, including commercially, with attribution to OpenRouter.'
3933039330
name: 'Datasets'
3933139331
- description: 'Text embedding endpoints'
3933239332
name: 'Embeddings'

β€Ž.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:d7a51a0a213dc85a88d54cd2e0c98a77fd9804bd4acd56984a7a33e7f3f0ed77
6-
sourceBlobDigest: sha256:425bccde4dbcc6d9c458a512f422912fe04ce29dd8c30574ea4e5cf67f748f34
5+
sourceRevisionDigest: sha256:a3580360d00126d84b0be920fb9b5bba35071d90a34388010b756a1c70cdc0d6
6+
sourceBlobDigest: sha256:62183f190360f3599b0a8c77eff6dcbbeb58e1468dec9f1c5717e6a6f01e439a
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:d7a51a0a213dc85a88d54cd2e0c98a77fd9804bd4acd56984a7a33e7f3f0ed77
15-
sourceBlobDigest: sha256:425bccde4dbcc6d9c458a512f422912fe04ce29dd8c30574ea4e5cf67f748f34
14+
sourceRevisionDigest: sha256:a3580360d00126d84b0be920fb9b5bba35071d90a34388010b756a1c70cdc0d6
15+
sourceBlobDigest: sha256:62183f190360f3599b0a8c77eff6dcbbeb58e1468dec9f1c5717e6a6f01e439a
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:ed7122afb647d917a5bb2782c4514a69b89c2ad5c2d1911111392a43b41db98a
17+
codeSamplesRevisionDigest: sha256:5ea76509874f14415d5722ed7bfbd8ea0775e96e765598073840fa4037b6a474
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
@@ -1329,4 +1329,14 @@ Based on:
13291329
### Generated
13301330
- [python v1.1.54] .
13311331
### Releases
1332-
- [PyPI v1.1.54] https://pypi.org/project/openrouter/1.1.54 - .
1332+
- [PyPI v1.1.54] https://pypi.org/project/openrouter/1.1.54 - .
1333+
1334+
## 2026-08-14 15:42:19
1335+
### Changes
1336+
Based on:
1337+
- OpenAPI Doc
1338+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1339+
### Generated
1340+
- [python v1.1.55] .
1341+
### Releases
1342+
- [PyPI v1.1.55] https://pypi.org/project/openrouter/1.1.55 - .

β€Ždocs/sdks/datasets/README.mdxβ€Ž

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
title: "Datasets"
3-
description: "Datasets endpoints"
3+
description: "Public OpenRouter usage datasets. Data returned by these endpoints is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/): reuse and republish it, including commercially, with attribution to OpenRouter."
44
---
55

66
## Overview
77

8-
Datasets endpoints
8+
Public OpenRouter usage datasets. Data returned by these endpoints is licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/): reuse and republish it, including commercially, with attribution to OpenRouter.
99

1010
### Available Operations
1111

@@ -39,6 +39,8 @@ Token counts come from each upstream provider's own tokenizer, so a token attrib
3939
to one app is not directly comparable to a token attributed to another app whose
4040
traffic flows through a different provider.
4141

42+
Licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.
43+
4244
### Example Usage
4345

4446
```python
@@ -121,6 +123,8 @@ are as reported by Anthropic, OpenAI counts are as reported by OpenAI, etc.), so
121123
a token in one row is not directly comparable to a token in another row from a
122124
different provider.
123125

126+
Licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.
127+
124128
### Example Usage
125129

126130
```python
@@ -182,6 +186,8 @@ Filter by `app_slug`, `model`, or `turn_range`. Filtering by `model` alone works
182186
for harness-vs-harness comparison at a fixed model. Results refresh weekly and include the source snapshot
183187
window in `meta`.
184188

189+
Licensed under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/): reuse and republish with attribution to OpenRouter.
190+
185191
### Example Usage
186192

187193
```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.54"
3+
version = "1.1.55"
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.54"
6+
__version__: str = "1.1.55"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.1.54 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.1.55 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

0 commit comments

Comments
Β (0)