Skip to content

Commit 1657a12

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.787.0
1 parent 70e672a commit 1657a12

10 files changed

Lines changed: 102 additions & 33 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 32 additions & 15 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: dd844eac13f976ba74b21b1e501372a5
4+
docChecksum: e26b8aa17f6f45241fc4951237a29000
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.18
9-
configChecksum: eaeed3df3e4e78face49fcef6e620417
8+
releaseVersion: 1.3.19
9+
configChecksum: 87456f6f148d309df07e48d003860def
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: fcc256d0-08e9-439d-baaf-2ce814fe36c9
15-
pristine_commit_hash: 914891a5475c37ce0ebcb5ea12e09d9c508df8c3
16-
pristine_tree_hash: ca77f14e6c48730bdad24a1ccdfb1358445e29b2
14+
generation_id: 8bdc1dba-e817-48bc-8ab2-77ad1ab37468
15+
pristine_commit_hash: 20353418b707d78c5ea6272809f71158c666a268
16+
pristine_tree_hash: cf8aee80660bf4495a3d3312432f0d9300445178
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -9800,8 +9800,8 @@ trackedFiles:
98009800
pristine_git_object: c1634706646332455817340f5891b4b5c9c6d16c
98019801
docs/sdks/apikeys/README.mdx:
98029802
id: 27fcaae1c346
9803-
last_write_checksum: sha1:3b8ddf3e038f2dc75d60c4936f270543950020a2
9804-
pristine_git_object: 05cb8497207bd506ac4d84c53a5977e110114806
9803+
last_write_checksum: sha1:40f52532a5846a5ef9fd20f3ddf00448a15e0890
9804+
pristine_git_object: 0c76b2d59bd6a8956de83eb064c6205fcedae331
98059805
docs/sdks/batch/README.mdx:
98069806
id: e367aa4f4295
98079807
last_write_checksum: sha1:7e385b464cd4f95f6bbe7454e99a412041017ac7
@@ -9948,8 +9948,8 @@ trackedFiles:
99489948
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
99499949
pyproject.toml:
99509950
id: 5d07e7d72637
9951-
last_write_checksum: sha1:e66a3439925efa1634896c19c538834f67f793ca
9952-
pristine_git_object: b76990ff27d4979ff3b6ec1cf668193b6d3b93df
9951+
last_write_checksum: sha1:6478300ed0220742fd001e94ac77e058cf94dbf1
9952+
pristine_git_object: 33abb1bc7c1bfe2d3c5323de18901698616b91fb
99539953
scripts/prepare_readme.py:
99549954
id: e0c5957a6035
99559955
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -9976,8 +9976,8 @@ trackedFiles:
99769976
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
99779977
src/openrouter/_version.py:
99789978
id: d8d15ad6c586
9979-
last_write_checksum: sha1:a867b35b239e6ccc11812f193e14e29eccacf0c6
9980-
pristine_git_object: 70d4881e1a86b1641e4821f1d2ef8729cbc0b656
9979+
last_write_checksum: sha1:9aaa05abbad118e10741d8e7a6dd24396fd2a45a
9980+
pristine_git_object: 5020f4771011c5e9d1b51dca9a739b27cb6fdc80
99819981
src/openrouter/alpha.py:
99829982
id: 306c4d93308d
99839983
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -9988,8 +9988,8 @@ trackedFiles:
99889988
pristine_git_object: 9587309db4d5e25a00131a48788456139c25e4c0
99899989
src/openrouter/api_keys.py:
99909990
id: 876fac88fff6
9991-
last_write_checksum: sha1:5c198eef830a56d6030573a073bf0e349a0d8289
9992-
pristine_git_object: 94dd64726b491afb7913f00e8c90d94ef58d1115
9991+
last_write_checksum: sha1:40921c10e77aceb82de5eaf1470975e9593eaf3f
9992+
pristine_git_object: 7647d4bc7dfba28a1d8d31c66c1d4331f37b139c
99939993
src/openrouter/basesdk.py:
99949994
id: c5733c5a1e12
99959995
last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea
@@ -14651,6 +14651,24 @@ examples:
1465114651
application/json: {"error": {"code": 429, "message": "Rate limit exceeded"}}
1465214652
"500":
1465314653
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
14654+
invalid_parameters:
14655+
parameters:
14656+
path:
14657+
hash: "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"
14658+
requestBody:
14659+
application/json: {}
14660+
responses:
14661+
"400":
14662+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
14663+
no_update_fields:
14664+
parameters:
14665+
path:
14666+
hash: "f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943"
14667+
requestBody:
14668+
application/json: {}
14669+
responses:
14670+
"400":
14671+
application/json: {"error": {"code": 400, "message": "No update fields provided"}}
1465414672
deleteKeys:
1465514673
speakeasy-default-delete-keys:
1465614674
parameters:
@@ -18224,4 +18242,3 @@ examples:
1822418242
"500":
1822518243
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1822618244
examplesVersion: 1.0.2
18227-
releaseNotes: "## Python SDK Changes:\n* `open_router.images.generate()`: \n * `request.resolution.enum(1.5k)` **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.3.18
39+
version: 1.3.19
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43974,7 +43974,7 @@ paths:
4397443974
- 'API Keys'
4397543975
x-speakeasy-name-override: 'get'
4397643976
patch:
43977-
description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).'
43977+
description: "Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).\n\n<Warning>\nYou can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.\n</Warning>"
4397843978
operationId: 'updateKeys'
4397943979
parameters:
4398043980
- description: 'The hash identifier of the API key to update'
@@ -44257,10 +44257,20 @@ paths:
4425744257
'400':
4425844258
content:
4425944259
application/json:
44260-
example:
44261-
error:
44262-
code: 400
44263-
message: 'Invalid request parameters'
44260+
examples:
44261+
invalid_parameters:
44262+
summary: 'Invalid request parameters'
44263+
value:
44264+
error:
44265+
code: 400
44266+
message: 'Invalid request parameters'
44267+
no_update_fields:
44268+
description: 'Returned when the body contains none of the accepted fields, for example `{"workspace_id": "..."}`. `workspace_id` can''t be changed through the API.'
44269+
summary: 'No accepted fields in the request body'
44270+
value:
44271+
error:
44272+
code: 400
44273+
message: 'No update fields provided'
4426444274
schema:
4426544275
$ref: '#/components/schemas/BadRequestResponse'
4426644276
description: 'Bad Request - Invalid request parameters or malformed input'

‎.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:a2fb53173f0847a6b6729eca0d73d0690987533ee30075a5212d7ac03f152830
6-
sourceBlobDigest: sha256:9a886d465d8ca1bbc7393650bea8ce94d547f54e5fe77dba77be5035fd6a793d
5+
sourceRevisionDigest: sha256:228bbd13e686a285629ab31d64197c92d3975830d39dba91163445d623d64a2d
6+
sourceBlobDigest: sha256:160a74c1c4af1037a6734cd8af4f548caec7a4faa975b242ee4119a4b81fd0c6
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:a2fb53173f0847a6b6729eca0d73d0690987533ee30075a5212d7ac03f152830
15-
sourceBlobDigest: sha256:9a886d465d8ca1bbc7393650bea8ce94d547f54e5fe77dba77be5035fd6a793d
14+
sourceRevisionDigest: sha256:228bbd13e686a285629ab31d64197c92d3975830d39dba91163445d623d64a2d
15+
sourceBlobDigest: sha256:160a74c1c4af1037a6734cd8af4f548caec7a4faa975b242ee4119a4b81fd0c6
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:326882ce35a53ebbcff4f5191e760daf76f5d8001826f8d943e3a23b3e3c38ba
17+
codeSamplesRevisionDigest: sha256:8fd3208e5a389f6b3b7a4f9a0d23dad49e49c194a0ff83d30d6456c74202f36f
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
@@ -2949,4 +2949,14 @@ Based on:
29492949
### Generated
29502950
- [python v1.3.18] .
29512951
### Releases
2952-
- [PyPI v1.3.18] https://pypi.org/project/openrouter/1.3.18 - .
2952+
- [PyPI v1.3.18] https://pypi.org/project/openrouter/1.3.18 - .
2953+
2954+
## 2026-10-01 21:32:05
2955+
### Changes
2956+
Based on:
2957+
- OpenAPI Doc
2958+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2959+
### Generated
2960+
- [python v1.3.19] .
2961+
### Releases
2962+
- [PyPI v1.3.19] https://pypi.org/project/openrouter/1.3.19 - .

‎docs/sdks/apikeys/README.mdx‎

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,31 @@ with OpenRouter(
273273

274274
Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
275275

276-
### Example Usage
276+
\<Warning>
277+
You can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
278+
</Warning>
279+
280+
### Example Usage: invalid_parameters
281+
282+
```python
283+
from openrouter import OpenRouter
284+
import os
285+
286+
287+
with OpenRouter(
288+
http_referer="<value>",
289+
x_open_router_title="<value>",
290+
x_open_router_categories="<value>",
291+
api_key=os.getenv("OPENROUTER_API_KEY", ""),
292+
) as open_router:
293+
294+
res = open_router.api_keys.update(hash="f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943")
295+
296+
# Handle response
297+
print(res)
298+
299+
```
300+
### Example Usage: no_update_fields
277301

278302
```python
279303
from openrouter import OpenRouter
@@ -287,7 +311,7 @@ with OpenRouter(
287311
api_key=os.getenv("OPENROUTER_API_KEY", ""),
288312
) as open_router:
289313

290-
res = open_router.api_keys.update(hash="f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943", disabled=False, include_byok_in_limit=True, limit=75, limit_reset="daily", name="Updated API Key Name")
314+
res = open_router.api_keys.update(hash="f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943")
291315

292316
# Handle response
293317
print(res)

‎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.3.18"
3+
version = "1.3.19"
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.3.18"
6+
__version__: str = "1.3.19"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.3.18 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.3.19 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

‎src/openrouter/api_keys.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,10 @@ def update(
14281428
14291429
Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
14301430
1431+
<Warning>
1432+
You can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
1433+
</Warning>
1434+
14311435
:param hash: The hash identifier of the API key to update
14321436
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
14331437
This is used to track API usage per application.
@@ -1590,6 +1594,10 @@ async def update_async(
15901594
15911595
Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys).
15921596
1597+
<Warning>
1598+
You can't change `workspace_id` through the API. The request body accepts only the fields listed below, and unrecognized fields are ignored. To move a key to another workspace, use the OpenRouter dashboard. If the body contains none of the accepted fields, the request fails with `400` and the message `No update fields provided`.
1599+
</Warning>
1600+
15931601
:param hash: The hash identifier of the API key to update
15941602
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
15951603
This is used to track API usage per application.

‎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)