Skip to content

Commit c8f0351

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.3.54 (#1078)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 29395ca commit c8f0351

10 files changed

Lines changed: 129 additions & 27 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 24 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: e9a90c8d19ffe3953003c7205605e71a
4+
docChecksum: f801f4232e52128b7111557fa57d74b5
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.53
9-
configChecksum: 085f3a7f657752ae6e58d31556252e93
8+
releaseVersion: 1.3.54
9+
configChecksum: 00d313ba18dc981810cce55a2880d555
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: be52aea6-d641-420b-b94f-005bb8509b74
15-
pristine_commit_hash: dfc24c324429ff5435a119516fe08cd16ddfbd46
16-
pristine_tree_hash: dfc856ef1d660f372890ef9577ac6e7351ea2b5c
14+
generation_id: defe980f-7620-40e8-b3ce-989ccb235d58
15+
pristine_commit_hash: c0852c28237f34d5322a4857ed118f373cd0a42c
16+
pristine_tree_hash: 85e23e2d3ce5ccb139dca246812b231e581d3a45
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -10204,8 +10204,8 @@ trackedFiles:
1020410204
pristine_git_object: bc1a56cbb41c8f9114c81b547713632272184da6
1020510205
docs/sdks/guardrails/README.mdx:
1020610206
id: a0cd4218b8fa
10207-
last_write_checksum: sha1:6ff1e93f1a874c378bb2cb2f0af40fe081836afc
10208-
pristine_git_object: aab47cc3f4a0f7fc492b790cfd9386eb80582fc1
10207+
last_write_checksum: sha1:e67795373d937768a569398179833cd25926bddd
10208+
pristine_git_object: ed0b2775e57904a66e9f92a8c51d18b56132623b
1020910209
docs/sdks/images/README.mdx:
1021010210
id: 534a6c102c4f
1021110211
last_write_checksum: sha1:82a8bd22fb399fe419076afe29b9234950baf9f9
@@ -10288,8 +10288,8 @@ trackedFiles:
1028810288
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1028910289
pyproject.toml:
1029010290
id: 5d07e7d72637
10291-
last_write_checksum: sha1:fb7ea64431a1f52d038ff3888e915eb074837787
10292-
pristine_git_object: eb5f2f8a591009642cd2b9041599e02e28930c8f
10291+
last_write_checksum: sha1:86cbe7493a02b92000f3f7c4cdf79b72828a3ed1
10292+
pristine_git_object: 1b0c571a8a31e326918aeb82851c57a85fe1e91e
1029310293
scripts/prepare_readme.py:
1029410294
id: e0c5957a6035
1029510295
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -10316,8 +10316,8 @@ trackedFiles:
1031610316
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1031710317
src/openrouter/_version.py:
1031810318
id: d8d15ad6c586
10319-
last_write_checksum: sha1:222f8fdf7be02811734ec260536e0d5a0b21951e
10320-
pristine_git_object: 109494ac321ccfde4864fa15671f82165cc5435f
10319+
last_write_checksum: sha1:b0d4346fe4f5e5d3afe0f46e5b3f1b2ba53018b6
10320+
pristine_git_object: ac9989f813165143912560931173c387bd9f2535
1032110321
src/openrouter/alpha.py:
1032210322
id: 306c4d93308d
1032310323
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -13976,8 +13976,8 @@ trackedFiles:
1397613976
pristine_git_object: 5698c384a36929846530cae98f69ce83a0966217
1397713977
src/openrouter/guardrails.py:
1397813978
id: 705839f34e66
13979-
last_write_checksum: sha1:c14a1e1b1721f4810239d1c8ecb08a7c2ef03cc3
13980-
pristine_git_object: 17cae7153e003ded426dda8ce51995d3479f0980
13979+
last_write_checksum: sha1:48c20d189c3531928c774bef03b14bc9040e105c
13980+
pristine_git_object: 434ea641f79989998fbe92131686d5be0ed9a072
1398113981
src/openrouter/httpclient.py:
1398213982
id: e9311185443d
1398313983
last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7
@@ -15257,6 +15257,10 @@ examples:
1525715257
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1525815258
"500":
1525915259
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
15260+
"400":
15261+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
15262+
"404":
15263+
application/json: {"error": {"code": 404, "message": "Resource not found"}}
1526015264
listMemberAssignments:
1526115265
speakeasy-default-list-member-assignments:
1526215266
parameters:
@@ -15270,6 +15274,10 @@ examples:
1527015274
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1527115275
"500":
1527215276
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
15277+
"400":
15278+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
15279+
"404":
15280+
application/json: {"error": {"code": 404, "message": "Resource not found"}}
1527315281
listGuardrailKeyAssignments:
1527415282
speakeasy-default-list-guardrail-key-assignments:
1527515283
parameters:
@@ -18740,5 +18748,5 @@ examples:
1874018748
examplesVersion: 1.0.2
1874118749
releaseNotes: |
1874218750
## Python SDK Changes:
18743-
* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].supports_diarization` **Added**
18744-
* `open_router.endpoints.list()`: `response.data.endpoints[].supports_diarization` **Added**
18751+
* `open_router.guardrails.list_key_assignments()`: `error` **Changed**
18752+
* `open_router.guardrails.list_member_assignments()`: `error` **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.3.53
39+
version: 1.3.54
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41782,6 +41782,16 @@ paths:
4178241782
schema:
4178341783
$ref: '#/components/schemas/ListKeyAssignmentsResponse'
4178441784
description: 'List of key assignments'
41785+
'400':
41786+
content:
41787+
application/json:
41788+
example:
41789+
error:
41790+
code: 400
41791+
message: 'Invalid request parameters'
41792+
schema:
41793+
$ref: '#/components/schemas/BadRequestResponse'
41794+
description: 'Bad Request - Invalid request parameters or malformed input'
4178541795
'401':
4178641796
content:
4178741797
application/json:
@@ -41792,6 +41802,16 @@ paths:
4179241802
schema:
4179341803
$ref: '#/components/schemas/UnauthorizedResponse'
4179441804
description: 'Unauthorized - Authentication required or invalid credentials'
41805+
'404':
41806+
content:
41807+
application/json:
41808+
example:
41809+
error:
41810+
code: 404
41811+
message: 'Resource not found'
41812+
schema:
41813+
$ref: '#/components/schemas/NotFoundResponse'
41814+
description: 'Not Found - Resource does not exist'
4179541815
'500':
4179641816
content:
4179741817
application/json:
@@ -41866,6 +41886,16 @@ paths:
4186641886
schema:
4186741887
$ref: '#/components/schemas/ListMemberAssignmentsResponse'
4186841888
description: 'List of member assignments'
41889+
'400':
41890+
content:
41891+
application/json:
41892+
example:
41893+
error:
41894+
code: 400
41895+
message: 'Invalid request parameters'
41896+
schema:
41897+
$ref: '#/components/schemas/BadRequestResponse'
41898+
description: 'Bad Request - Invalid request parameters or malformed input'
4186941899
'401':
4187041900
content:
4187141901
application/json:
@@ -41876,6 +41906,16 @@ paths:
4187641906
schema:
4187741907
$ref: '#/components/schemas/UnauthorizedResponse'
4187841908
description: 'Unauthorized - Authentication required or invalid credentials'
41909+
'404':
41910+
content:
41911+
application/json:
41912+
example:
41913+
error:
41914+
code: 404
41915+
message: 'Resource not found'
41916+
schema:
41917+
$ref: '#/components/schemas/NotFoundResponse'
41918+
description: 'Not Found - Resource does not exist'
4187941919
'500':
4188041920
content:
4188141921
application/json:

‎.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:8d1b44b982b4840c9e943cbabf385a4568cba41e6c28d8e3043caab80cd73504
6-
sourceBlobDigest: sha256:b413922fd2257f2be2218da4ef602bb90a8f0317fd4ae70a68a821e60e5c785c
5+
sourceRevisionDigest: sha256:eb5e9d2ccf05815bcb4fdd8abd8b0ecde72e723e91eed3cce85a3a61a3748883
6+
sourceBlobDigest: sha256:7df2244c6c4e11befed94c7004a0197585fae4f2409e1dd3b0ea2cb7b17a7319
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:8d1b44b982b4840c9e943cbabf385a4568cba41e6c28d8e3043caab80cd73504
15-
sourceBlobDigest: sha256:b413922fd2257f2be2218da4ef602bb90a8f0317fd4ae70a68a821e60e5c785c
14+
sourceRevisionDigest: sha256:eb5e9d2ccf05815bcb4fdd8abd8b0ecde72e723e91eed3cce85a3a61a3748883
15+
sourceBlobDigest: sha256:7df2244c6c4e11befed94c7004a0197585fae4f2409e1dd3b0ea2cb7b17a7319
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:4704fcaaf14e1e9383c197ba59fd569816d88ff15709363ea60e2633a0e2d1a5
17+
codeSamplesRevisionDigest: sha256:a0aa237795df3f526a013aeed2dbf725150e77a18eb9c9bde5ddf56798949ec8
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
@@ -3299,4 +3299,14 @@ Based on:
32993299
### Generated
33003300
- [python v1.3.53] .
33013301
### Releases
3302-
- [PyPI v1.3.53] https://pypi.org/project/openrouter/1.3.53 - .
3302+
- [PyPI v1.3.53] https://pypi.org/project/openrouter/1.3.53 - .
3303+
3304+
## 2026-10-14 22:30:38
3305+
### Changes
3306+
Based on:
3307+
- OpenAPI Doc
3308+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
3309+
### Generated
3310+
- [python v1.3.54] .
3311+
### Releases
3312+
- [PyPI v1.3.54] https://pypi.org/project/openrouter/1.3.54 - .

‎docs/sdks/guardrails/README.mdx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@ with OpenRouter(
684684

685685
| Error Type | Status Code | Content Type |
686686
| ---------------------------------- | ---------------------------------- | ---------------------------------- |
687+
| errors.BadRequestResponseError | 400 | application/json |
687688
| errors.UnauthorizedResponseError | 401 | application/json |
689+
| errors.NotFoundResponseError | 404 | application/json |
688690
| errors.InternalServerResponseError | 500 | application/json |
689691
| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |
690692

@@ -734,6 +736,8 @@ with OpenRouter(
734736

735737
| Error Type | Status Code | Content Type |
736738
| ---------------------------------- | ---------------------------------- | ---------------------------------- |
739+
| errors.BadRequestResponseError | 400 | application/json |
737740
| errors.UnauthorizedResponseError | 401 | application/json |
741+
| errors.NotFoundResponseError | 404 | application/json |
738742
| errors.InternalServerResponseError | 500 | application/json |
739743
| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |

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

1111
try:
1212
if __package__ is not None:

‎src/openrouter/guardrails.py‎

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3837,11 +3837,21 @@ def next_func() -> Optional[operations.ListKeyAssignmentsResponse]:
38373837
),
38383838
next=next_func,
38393839
)
3840+
if utils.match_response(http_res, "400", "application/json"):
3841+
response_data = unmarshal_json_response(
3842+
errors.BadRequestResponseErrorData, http_res
3843+
)
3844+
raise errors.BadRequestResponseError(response_data, http_res)
38403845
if utils.match_response(http_res, "401", "application/json"):
38413846
response_data = unmarshal_json_response(
38423847
errors.UnauthorizedResponseErrorData, http_res
38433848
)
38443849
raise errors.UnauthorizedResponseError(response_data, http_res)
3850+
if utils.match_response(http_res, "404", "application/json"):
3851+
response_data = unmarshal_json_response(
3852+
errors.NotFoundResponseErrorData, http_res
3853+
)
3854+
raise errors.NotFoundResponseError(response_data, http_res)
38453855
if utils.match_response(http_res, "500", "application/json"):
38463856
response_data = unmarshal_json_response(
38473857
errors.InternalServerResponseErrorData, http_res
@@ -3998,11 +4008,21 @@ async def empty_result():
39984008
),
39994009
next=next_func,
40004010
)
4011+
if utils.match_response(http_res, "400", "application/json"):
4012+
response_data = unmarshal_json_response(
4013+
errors.BadRequestResponseErrorData, http_res
4014+
)
4015+
raise errors.BadRequestResponseError(response_data, http_res)
40014016
if utils.match_response(http_res, "401", "application/json"):
40024017
response_data = unmarshal_json_response(
40034018
errors.UnauthorizedResponseErrorData, http_res
40044019
)
40054020
raise errors.UnauthorizedResponseError(response_data, http_res)
4021+
if utils.match_response(http_res, "404", "application/json"):
4022+
response_data = unmarshal_json_response(
4023+
errors.NotFoundResponseErrorData, http_res
4024+
)
4025+
raise errors.NotFoundResponseError(response_data, http_res)
40064026
if utils.match_response(http_res, "500", "application/json"):
40074027
response_data = unmarshal_json_response(
40084028
errors.InternalServerResponseErrorData, http_res
@@ -4156,11 +4176,21 @@ def next_func() -> Optional[operations.ListMemberAssignmentsResponse]:
41564176
),
41574177
next=next_func,
41584178
)
4179+
if utils.match_response(http_res, "400", "application/json"):
4180+
response_data = unmarshal_json_response(
4181+
errors.BadRequestResponseErrorData, http_res
4182+
)
4183+
raise errors.BadRequestResponseError(response_data, http_res)
41594184
if utils.match_response(http_res, "401", "application/json"):
41604185
response_data = unmarshal_json_response(
41614186
errors.UnauthorizedResponseErrorData, http_res
41624187
)
41634188
raise errors.UnauthorizedResponseError(response_data, http_res)
4189+
if utils.match_response(http_res, "404", "application/json"):
4190+
response_data = unmarshal_json_response(
4191+
errors.NotFoundResponseErrorData, http_res
4192+
)
4193+
raise errors.NotFoundResponseError(response_data, http_res)
41644194
if utils.match_response(http_res, "500", "application/json"):
41654195
response_data = unmarshal_json_response(
41664196
errors.InternalServerResponseErrorData, http_res
@@ -4319,11 +4349,21 @@ async def empty_result():
43194349
),
43204350
next=next_func,
43214351
)
4352+
if utils.match_response(http_res, "400", "application/json"):
4353+
response_data = unmarshal_json_response(
4354+
errors.BadRequestResponseErrorData, http_res
4355+
)
4356+
raise errors.BadRequestResponseError(response_data, http_res)
43224357
if utils.match_response(http_res, "401", "application/json"):
43234358
response_data = unmarshal_json_response(
43244359
errors.UnauthorizedResponseErrorData, http_res
43254360
)
43264361
raise errors.UnauthorizedResponseError(response_data, http_res)
4362+
if utils.match_response(http_res, "404", "application/json"):
4363+
response_data = unmarshal_json_response(
4364+
errors.NotFoundResponseErrorData, http_res
4365+
)
4366+
raise errors.NotFoundResponseError(response_data, http_res)
43274367
if utils.match_response(http_res, "500", "application/json"):
43284368
response_data = unmarshal_json_response(
43294369
errors.InternalServerResponseErrorData, http_res

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