Skip to content

Commit 811c76f

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

14 files changed

Lines changed: 92 additions & 43 deletions

File tree

.speakeasy/gen.lock

Lines changed: 26 additions & 23 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: 32b588540e0301d4012b61dc5d1fd064
4+
docChecksum: e2314259eff8ee88d6c55deb629ae2a9
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.0
9-
configChecksum: 4bb9ca9304522551754c5cce02003bf5
8+
releaseVersion: 1.2.1
9+
configChecksum: fa5434c574e7e2d8c0076c67b73d5c13
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: a9f1873f-40ed-45cc-8813-5d4742ed4fcf
15-
pristine_commit_hash: 0568d930d4c078fe7e091264e245bbac5e113068
16-
pristine_tree_hash: 4d42d375756df55529e30ce9e8870914f4181b7e
14+
generation_id: 6b696c29-f3d4-42fc-9272-a0d6fa52d333
15+
pristine_commit_hash: d503d4500dcdb8a0fd59136cd6264882f26be99b
16+
pristine_tree_hash: dc446563812cd7e8cd37f4ab4ea53c3ca9b89fe3
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -2971,8 +2971,8 @@ trackedFiles:
29712971
pristine_git_object: ae29bb6aa4cc5e60a75270c19790621c0bce4244
29722972
docs/components/internchatcompletionrequest.mdx:
29732973
id: 3ff4f362621e
2974-
last_write_checksum: sha1:4893b633792c7e3b5acc640e82855e067aa66f2b
2975-
pristine_git_object: 4d058112f350cd8fa9d3c27540d556cd86185273
2974+
last_write_checksum: sha1:1eecd3cf0381cf17a1cb40ec5895faa5d57ef767
2975+
pristine_git_object: 29a77fc594ef6c999309c657be96cc847b45f839
29762976
docs/components/internchatdelta.mdx:
29772977
id: 362ca71ada74
29782978
last_write_checksum: sha1:d69514763165871299a922f8f0dac1890283f4ab
@@ -7107,8 +7107,8 @@ trackedFiles:
71077107
pristine_git_object: 1f584bb9e540819ce7619172b06ad17edf8a8c34
71087108
docs/operations/getcurrentkeydata.mdx:
71097109
id: 08c92577eb48
7110-
last_write_checksum: sha1:d827a9899bad06b46f3910a9e8909d82ee980318
7111-
pristine_git_object: 7cdcc55740e0f950cc37de4f2661a92eedc9baeb
7110+
last_write_checksum: sha1:9f68e79e2dab66374d7a66d72cd6de324fcf36e3
7111+
pristine_git_object: 2e80f462fce3ceb5d7cb0acb189fae1d3124bc38
71127112
docs/operations/getcurrentkeyglobals.mdx:
71137113
id: 2397dfa14af6
71147114
last_write_checksum: sha1:59402ba0d664e5fab7daae4cea57dfc01e086460
@@ -8095,8 +8095,8 @@ trackedFiles:
80958095
pristine_git_object: 08c687694efbecf50406ae7929029d39fb121295
80968096
docs/sdks/interns/README.mdx:
80978097
id: 2f8a053ffe78
8098-
last_write_checksum: sha1:ab668c5e503f8293c82e6ddd9b550fa9e7fac25e
8099-
pristine_git_object: 57fd0d26619a62e9e3c887f5bf49660579206638
8098+
last_write_checksum: sha1:da31cdf965e76b3d7407859c77195597dfc0f3f3
8099+
pristine_git_object: 7c93035351f6c24a0dbc6ad9ffa88ff6983436be
81008100
docs/sdks/models/README.mdx:
81018101
id: 58f1ca464e0b
81028102
last_write_checksum: sha1:093dd30ebdd18b9763a6956915e0dcae4ae7d5e5
@@ -8159,8 +8159,8 @@ trackedFiles:
81598159
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
81608160
pyproject.toml:
81618161
id: 5d07e7d72637
8162-
last_write_checksum: sha1:f11509e0e098baedaaf9207fb8b11a9ececd8b3b
8163-
pristine_git_object: b44decb675e17ef76da1865e180a4b6a8ec6a15f
8162+
last_write_checksum: sha1:2c0f6a412446ae1d34622bb1b2a125f0e804bd28
8163+
pristine_git_object: e6efa5ca864b84ff60d6911c303e88198d5c9aee
81648164
scripts/prepare_readme.py:
81658165
id: e0c5957a6035
81668166
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8187,8 +8187,8 @@ trackedFiles:
81878187
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
81888188
src/openrouter/_version.py:
81898189
id: d8d15ad6c586
8190-
last_write_checksum: sha1:6af9d204aac4d69590d60995fa81a3e7d270852e
8191-
pristine_git_object: 57eb69c4647dc8d98c802be1f7c5a5ed1ca5f9b2
8190+
last_write_checksum: sha1:9590c21e06b841ae22746ef15c526101f4e75ad7
8191+
pristine_git_object: b3b894b5fad171516358f6fb1746c7cf6647e345
81928192
src/openrouter/alpha.py:
81938193
id: 306c4d93308d
81948194
last_write_checksum: sha1:0c25a52ed5fb688ec1e923e4e82bcfc9cae49465
@@ -9523,8 +9523,8 @@ trackedFiles:
95239523
pristine_git_object: b573c302f287e32d7e8af6b5a87fbe1b5f61b55b
95249524
src/openrouter/components/internchatcompletionrequest.py:
95259525
id: a354f4a174e3
9526-
last_write_checksum: sha1:5b5fbe8ebd9a3950a0b2874d37c7f607c7c9942e
9527-
pristine_git_object: 740d3f28cd1d0bb8eaaea78adb9c456db934f0d8
9526+
last_write_checksum: sha1:4a6244e1da3a462a44c3a55f7a02b0c8dc415cf9
9527+
pristine_git_object: 207fe963c62290acda5969275e6c844e4e6dd59c
95289528
src/openrouter/components/internchatdelta.py:
95299529
id: d5bd69629fe9
95309530
last_write_checksum: sha1:309b516f24413099d88cb232c9f12a95e1a01df0
@@ -11127,8 +11127,8 @@ trackedFiles:
1112711127
pristine_git_object: 50643a126668498dd668c7cceb9f78c03d413d32
1112811128
src/openrouter/interns.py:
1112911129
id: d18df05c5c6d
11130-
last_write_checksum: sha1:66adc62242abfbaadc968355e7d609abb7e2a210
11131-
pristine_git_object: cbb66128429a9e15e1792e0ad08215323f1dd9a7
11130+
last_write_checksum: sha1:b0bfde773d639616f1ace6bbe828aaf443c0db2a
11131+
pristine_git_object: 4e354feedb9e31941e080333c7280852fcd4c823
1113211132
src/openrouter/models/__init__.py:
1113311133
id: ed73b93abb3f
1113411134
last_write_checksum: sha1:932a790ae66ccd7d7022b39c659bcf72a664ebea
@@ -11359,8 +11359,8 @@ trackedFiles:
1135911359
pristine_git_object: 0c48cd8cb2742ed71558ea6d9cd488ccccd74e79
1136011360
src/openrouter/operations/getcurrentkey.py:
1136111361
id: baf3e38db22c
11362-
last_write_checksum: sha1:d7fe9be4c095ad7dc8112f977016d737bb5575c6
11363-
pristine_git_object: efc9fff9e0d6de76e764bd234d540a1270929456
11362+
last_write_checksum: sha1:844575d6a91ab0152ee5f64d14b24afa04a04aeb
11363+
pristine_git_object: f6f9e817724dfd60e747f7c35f297c96bedad819
1136411364
src/openrouter/operations/getfilemetadata.py:
1136511365
id: 408c34486769
1136611366
last_write_checksum: sha1:592b6646b4ff082d8427ea08e79e6b34be490857
@@ -12138,7 +12138,7 @@ examples:
1213812138
speakeasy-default-get-current-key:
1213912139
responses:
1214012140
"200":
12141-
application/json: {"data": {"allowed_data_regions": ["global", "europe", "us"], "byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5}}
12141+
application/json: {"data": {"allowed_data_regions": ["global", "europe", "us"], "byok_usage": 17.38, "byok_usage_daily": 17.38, "byok_usage_monthly": 17.38, "byok_usage_weekly": 17.38, "creator_user_id": "user_2dHFtVWx2n56w6HkM0000000000", "free_model_daily_requests": {"limit": 50, "remaining": 38, "used": 12}, "include_byok_in_limit": false, "is_free_tier": false, "is_management_key": false, "is_provisioning_key": false, "label": "sk-or-v1-au7...890", "limit": 100, "limit_remaining": 74.5, "limit_reset": "monthly", "organization_id": null, "rate_limit": {"interval": "1h", "note": "This field is deprecated and safe to ignore.", "requests": 1000}, "usage": 25.5, "usage_daily": 25.5, "usage_monthly": 25.5, "usage_weekly": 25.5, "workspace_id": "0df9e665-d932-5740-b2c7-b52af166bc11"}}
1214212142
"401":
1214312143
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1214412144
"500":
@@ -14941,3 +14941,6 @@ examples:
1494114941
"502":
1494214942
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
1494314943
examplesVersion: 1.0.2
14944+
releaseNotes: |
14945+
## Python SDK Changes:
14946+
* `open_router.api_keys.get_current_key_metadata()`: `response.data` **Changed**

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

.speakeasy/out.openapi.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12654,7 +12654,7 @@ components:
1265412654
minItems: 1
1265512655
type: 'array'
1265612656
model:
12657-
description: 'Echoed as `model` on the streamed chunks; the final chunk may carry the model the intern reported instead. The intern chooses its own model, so this value does not change what runs.'
12657+
description: 'Accepted for OpenAI compatibility and ignored. Streamed chunks report the model the intern actually used, or `openrouter/intern` when it did not report one.'
1265812658
example: 'openrouter/intern'
1265912659
maxLength: 256
1266012660
minLength: 1
@@ -37355,6 +37355,7 @@ paths:
3735537355
limit: 100
3735637356
limit_remaining: 74.5
3735737357
limit_reset: 'monthly'
37358+
organization_id: null
3735837359
rate_limit:
3735937360
interval: '1h'
3736037361
note: 'This field is deprecated and safe to ignore.'
@@ -37363,6 +37364,7 @@ paths:
3736337364
usage_daily: 25.5
3736437365
usage_monthly: 25.5
3736537366
usage_weekly: 25.5
37367+
workspace_id: '0df9e665-d932-5740-b2c7-b52af166bc11'
3736637368
schema:
3736737369
example:
3736837370
data:
@@ -37521,6 +37523,12 @@ paths:
3752137523
type:
3752237524
- 'string'
3752337525
- 'null'
37526+
organization_id:
37527+
description: 'The ID of the organization that owns this API key, or null when an individual account owns it.'
37528+
example: null
37529+
type:
37530+
- 'string'
37531+
- 'null'
3752437532
rate_limit:
3752537533
deprecated: true
3752637534
description: 'Legacy rate limit information about a key. Will always return -1.'
@@ -37566,6 +37574,12 @@ paths:
3756637574
example: 25.5
3756737575
format: 'double'
3756837576
type: 'number'
37577+
workspace_id:
37578+
description: 'The ID of the workspace this API key spends in, or null when no active workspace resolved for it, for example because the key''s workspace was deleted.'
37579+
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
37580+
type:
37581+
- 'string'
37582+
- 'null'
3756937583
required:
3757037584
- 'label'
3757137585
- 'limit'
@@ -37584,6 +37598,8 @@ paths:
3758437598
- 'limit_reset'
3758537599
- 'include_byok_in_limit'
3758637600
- 'creator_user_id'
37601+
- 'organization_id'
37602+
- 'workspace_id'
3758737603
- 'allowed_data_regions'
3758837604
- 'free_model_daily_requests'
3758937605
- 'rate_limit'

.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:19e5815ca5020eb40b86297828b6223caacdc783047e143c7eef7d8aafec2f17
6-
sourceBlobDigest: sha256:30df983c0d8449c8e499123ab91b0f21653488385e5dc20791859ab6b916de7e
5+
sourceRevisionDigest: sha256:9a0babad8049432078d06887c716fcd3d4a84f1bbbe73b0680e510bb2660572d
6+
sourceBlobDigest: sha256:03d08976d59059a2485b0a1e68747858f26e84ccb311113d90b071d55dab67a1
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:19e5815ca5020eb40b86297828b6223caacdc783047e143c7eef7d8aafec2f17
15-
sourceBlobDigest: sha256:30df983c0d8449c8e499123ab91b0f21653488385e5dc20791859ab6b916de7e
14+
sourceRevisionDigest: sha256:9a0babad8049432078d06887c716fcd3d4a84f1bbbe73b0680e510bb2660572d
15+
sourceBlobDigest: sha256:03d08976d59059a2485b0a1e68747858f26e84ccb311113d90b071d55dab67a1
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:fae1a9edd424a2f51ed79d4f8a5b44c627f831ab5e7fc709bfea791da9ed9d65
17+
codeSamplesRevisionDigest: sha256:2a45069052ff86526e25f13acf120bed62bf5c6a39ca25bc1786992c121c34d5
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
@@ -2409,4 +2409,14 @@ Based on:
24092409
### Generated
24102410
- [python v1.2.0] .
24112411
### Releases
2412-
- [PyPI v1.2.0] https://pypi.org/project/openrouter/1.2.0 - .
2412+
- [PyPI v1.2.0] https://pypi.org/project/openrouter/1.2.0 - .
2413+
2414+
## 2026-09-19 02:14:26
2415+
### Changes
2416+
Based on:
2417+
- OpenAPI Doc
2418+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2419+
### Generated
2420+
- [python v1.2.1] .
2421+
### Releases
2422+
- [PyPI v1.2.1] https://pypi.org/project/openrouter/1.2.1 - .

0 commit comments

Comments
 (0)