Skip to content

Commit 80c1c46

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

16 files changed

Lines changed: 145 additions & 37 deletions

File tree

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

Lines changed: 40 additions & 26 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: 399c7e53a7a023cfb7dbcafad7851326
4+
docChecksum: 8e07de0f6821302f71821721af2f11a0
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.0.4
9-
configChecksum: 5549373d94647348301fe6e7f5ce1834
8+
releaseVersion: 1.0.5
9+
configChecksum: 4d7aad5830dff85e31e3884bda8241c7
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: acd9866c-af26-4c9c-be88-35ed2fcaab7a
15-
pristine_commit_hash: b292fe68911fe816712b8808e0660b28357b6e9b
16-
pristine_tree_hash: 888574e44a12214b245ef1b3f83a72de29b82f49
14+
generation_id: 6a4e44e9-7356-40d1-b295-298702d23df0
15+
pristine_commit_hash: 0f3b8afd7c369cb8c420c55a3b15cc3a2a37b4bc
16+
pristine_tree_hash: 8d16b1f1cd0dba4e394cac91034c0334fda33ae5
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6586,8 +6586,8 @@ trackedFiles:
65866586
pristine_git_object: 4e5df61630ce21da071bcc35a50a8cca491d6e4f
65876587
docs/sdks/apikeys/README.mdx:
65886588
id: 27fcaae1c346
6589-
last_write_checksum: sha1:f9cdf4bb1df96dbdf3f53715afdb50eba53987fa
6590-
pristine_git_object: f741a3265276750fbc01b9740977d56066ef9016
6589+
last_write_checksum: sha1:b8bd517a7a2960d003ab350130008b402927af6b
6590+
pristine_git_object: c8541c5c189bae01e80db73fd88767391d7dbb9b
65916591
docs/sdks/benchmarks/README.mdx:
65926592
id: 5b483a6770ba
65936593
last_write_checksum: sha1:580442b871377a1d5191d9d3d1f30b20667115fe
@@ -6598,8 +6598,8 @@ trackedFiles:
65986598
pristine_git_object: 6e4b06ff97f02da5d31d78f478094db32dfdaa6f
65996599
docs/sdks/byok/README.mdx:
66006600
id: 17792f3b180d
6601-
last_write_checksum: sha1:ef3255b140cd84373866d15321ea04e205b99c35
6602-
pristine_git_object: e813aadac9a310cfbe0da371716b17181121f55f
6601+
last_write_checksum: sha1:e2871404d5619b9a2adbdf02be1dd26e7e2bcd5e
6602+
pristine_git_object: 4cc46421714dbd2c155d4df6db12cd612c876f49
66036603
docs/sdks/chat/README.mdx:
66046604
id: 1dd859c23fe1
66056605
last_write_checksum: sha1:d8714b18af250e3d59ad005b9de2fa1aa3f47463
@@ -6634,8 +6634,8 @@ trackedFiles:
66346634
pristine_git_object: f262b34982a18293f5ae22bfbbf385010bfcdc9c
66356635
docs/sdks/guardrails/README.mdx:
66366636
id: a0cd4218b8fa
6637-
last_write_checksum: sha1:f527fd75a617e0bd58bb500dee9e60319585b183
6638-
pristine_git_object: 2b3bb1cef3ad1ba8a6d7bee3b2fa5b5034124a18
6637+
last_write_checksum: sha1:afc6465cf8d72a3d831fb997091bd6e17ebe16c1
6638+
pristine_git_object: d47c7dbbb703d191889d87ad3fe9c09f3210288e
66396639
docs/sdks/images/README.mdx:
66406640
id: 534a6c102c4f
66416641
last_write_checksum: sha1:1c0a9c704bdd9090f5a0a74f4d9ae0c4360707bb
@@ -6650,8 +6650,8 @@ trackedFiles:
66506650
pristine_git_object: c8f7dfd9fd46b60a5814250f8cb2de313166e2c3
66516651
docs/sdks/observability/README.mdx:
66526652
id: 75811527e651
6653-
last_write_checksum: sha1:165808ebbc4b2513862032852233adb6f5ee336d
6654-
pristine_git_object: 6a36341f9157463e34d7bf6dc98edb1739afad95
6653+
last_write_checksum: sha1:939e6208f7d7a62992e2df529ccfa763afa7a646
6654+
pristine_git_object: 3a4d24cc8068f03f5319035abce43527103e8c32
66556655
docs/sdks/organization/README.mdx:
66566656
id: f41b85542db0
66576657
last_write_checksum: sha1:3d384483978c2c141bc145ac7bf9d8b1a4120593
@@ -6694,8 +6694,8 @@ trackedFiles:
66946694
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
66956695
pyproject.toml:
66966696
id: 5d07e7d72637
6697-
last_write_checksum: sha1:3cc151276b0020579009943c3aac224d64ddc096
6698-
pristine_git_object: 8b6d077fb58c087b50d4965e1d3ac21ceebaf487
6697+
last_write_checksum: sha1:aab75f4608d55ea23d4ead3765686704de271519
6698+
pristine_git_object: 0893dd1eef6959d8caee4e4dea40df921e31a789
66996699
scripts/prepare_readme.py:
67006700
id: e0c5957a6035
67016701
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6722,16 +6722,16 @@ trackedFiles:
67226722
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
67236723
src/openrouter/_version.py:
67246724
id: d8d15ad6c586
6725-
last_write_checksum: sha1:a42b9cab0bbacc54e3efc34f6fbd270a9670f6fe
6726-
pristine_git_object: 8207a6f09990184407b170fd48d06080b7bb9461
6725+
last_write_checksum: sha1:2723a9f6d161892aa6abe6d5c9f3d104fced6b0d
6726+
pristine_git_object: df0953d7bc28f2fe9a3522ea33db0eb99816fa45
67276727
src/openrouter/analytics.py:
67286728
id: cb406b5aaabb
67296729
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
67306730
pristine_git_object: ddb44a129e8f45e7524fe5615a23f1ccc70bbe71
67316731
src/openrouter/api_keys.py:
67326732
id: 876fac88fff6
6733-
last_write_checksum: sha1:2553ca36bd8465991f00b9b65317244b7444ab83
6734-
pristine_git_object: 09084e39118b774fecf211ff5af0c56ad93761f9
6733+
last_write_checksum: sha1:ada03aff96976f0570e594a3143595c25ca05f18
6734+
pristine_git_object: dec0852524b4b59e697be154204a726ad6afbdbc
67356735
src/openrouter/basesdk.py:
67366736
id: c5733c5a1e12
67376737
last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea
@@ -6750,8 +6750,8 @@ trackedFiles:
67506750
pristine_git_object: 1b01f0c081ffc8a42fa56d335f95ec3121e4b5e6
67516751
src/openrouter/byok.py:
67526752
id: bec352462ae1
6753-
last_write_checksum: sha1:8440c0d936757b90fb3eca91193a26a8de3d4f32
6754-
pristine_git_object: 213f83f9ea7dc942bdd3b960c1f2ba36a6181d70
6753+
last_write_checksum: sha1:b6e23eeb00a67208ad47b0ea77d56e92933af2b7
6754+
pristine_git_object: afa29b7f2224546b46df7a7ccb1e51b1f748cfe0
67556755
src/openrouter/chat.py:
67566756
id: 723fdce15c1d
67576757
last_write_checksum: sha1:1497d43947fc61b2d8dbe0b609f82475141357b0
@@ -9118,8 +9118,8 @@ trackedFiles:
91189118
pristine_git_object: f6dbf5440466ba6b1d92442cad1b91e2b3587c52
91199119
src/openrouter/guardrails.py:
91209120
id: 705839f34e66
9121-
last_write_checksum: sha1:0cfd3f3cab5c34d33c425aab439fa1e4a4599e54
9122-
pristine_git_object: e80ca9d5d26f8048f96c4a14b56e3568c5694d60
9121+
last_write_checksum: sha1:54443b78ac73ff7ea38aea6b8e4f470509d605ce
9122+
pristine_git_object: 6c3aec39b1f1dce0d1c3a90d52b08c98dabf9a03
91239123
src/openrouter/httpclient.py:
91249124
id: e9311185443d
91259125
last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7
@@ -9150,8 +9150,8 @@ trackedFiles:
91509150
pristine_git_object: d6a938412d5c82be874e958ba4a3043bd46284d3
91519151
src/openrouter/observability.py:
91529152
id: 6a17f32d3f33
9153-
last_write_checksum: sha1:92a23c7f390209f143277e9bcab363e99e601134
9154-
pristine_git_object: e59a1eb3047eadeadef109cc3fb55fa34154c026
9153+
last_write_checksum: sha1:99f4ecf43d1846288ced461f300cd2d5c8070b13
9154+
pristine_git_object: 0f62389a8410522fe76eed82c64227903a8605c5
91559155
src/openrouter/operations/__init__.py:
91569156
id: 9afcea1e7161
91579157
last_write_checksum: sha1:e56a2031fc05ced63f1e1c769fc3407b290890a8
@@ -9920,6 +9920,8 @@ examples:
99209920
application/json: {"error": {"code": 429, "message": "Rate limit exceeded"}}
99219921
"500":
99229922
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
9923+
"400":
9924+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
99239925
createKeys:
99249926
speakeasy-default-create-keys:
99259927
requestBody:
@@ -10011,6 +10013,8 @@ examples:
1001110013
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1001210014
"500":
1001310015
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
10016+
"400":
10017+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1001410018
createGuardrail:
1001510019
speakeasy-default-create-guardrail:
1001610020
requestBody:
@@ -10461,6 +10465,8 @@ examples:
1046110465
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1046210466
"500":
1046310467
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
10468+
"400":
10469+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1046410470
createBYOKKey:
1046510471
speakeasy-default-create-BYOK-key:
1046610472
requestBody:
@@ -10590,6 +10596,8 @@ examples:
1059010596
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1059110597
"500":
1059210598
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
10599+
"400":
10600+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1059310601
createObservabilityDestination:
1059410602
speakeasy-default-create-observability-destination:
1059510603
requestBody:
@@ -11201,3 +11209,9 @@ examples:
1120111209
"500":
1120211210
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1120311211
examplesVersion: 1.0.2
11212+
releaseNotes: |
11213+
## Python SDK Changes:
11214+
* `open_router.byok.list()`: `error.status[400]` **Added**
11215+
* `open_router.guardrails.list()`: `error.status[400]` **Added**
11216+
* `open_router.api_keys.list()`: `error.status[400]` **Added**
11217+
* `open_router.observability.list()`: `error.status[400]` **Added**

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

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25717,6 +25717,16 @@ paths:
2571725717
schema:
2571825718
$ref: '#/components/schemas/ListBYOKKeysResponse'
2571925719
description: 'List of BYOK credentials'
25720+
'400':
25721+
content:
25722+
application/json:
25723+
example:
25724+
error:
25725+
code: 400
25726+
message: 'Invalid request parameters'
25727+
schema:
25728+
$ref: '#/components/schemas/BadRequestResponse'
25729+
description: 'Bad Request - Invalid request parameters or malformed input'
2572025730
'401':
2572125731
content:
2572225732
application/json:
@@ -28299,6 +28309,16 @@ paths:
2829928309
schema:
2830028310
$ref: '#/components/schemas/ListGuardrailsResponse'
2830128311
description: 'List of guardrails'
28312+
'400':
28313+
content:
28314+
application/json:
28315+
example:
28316+
error:
28317+
code: 400
28318+
message: 'Invalid request parameters'
28319+
schema:
28320+
$ref: '#/components/schemas/BadRequestResponse'
28321+
description: 'Bad Request - Invalid request parameters or malformed input'
2830228322
'401':
2830328323
content:
2830428324
application/json:
@@ -30137,6 +30157,16 @@ paths:
3013730157
- 'data'
3013830158
type: 'object'
3013930159
description: 'List of API keys'
30160+
'400':
30161+
content:
30162+
application/json:
30163+
example:
30164+
error:
30165+
code: 400
30166+
message: 'Invalid request parameters'
30167+
schema:
30168+
$ref: '#/components/schemas/BadRequestResponse'
30169+
description: 'Bad Request - Invalid request parameters or malformed input'
3014030170
'401':
3014130171
content:
3014230172
application/json:
@@ -32298,6 +32328,16 @@ paths:
3229832328
schema:
3229932329
$ref: '#/components/schemas/ListObservabilityDestinationsResponse'
3230032330
description: 'List of observability destinations'
32331+
'400':
32332+
content:
32333+
application/json:
32334+
example:
32335+
error:
32336+
code: 400
32337+
message: 'Invalid request parameters'
32338+
schema:
32339+
$ref: '#/components/schemas/BadRequestResponse'
32340+
description: 'Bad Request - Invalid request parameters or malformed input'
3230132341
'401':
3230232342
content:
3230332343
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:e548e9fdf9261a3cc06b42c13031acb49cade5e82c2d8ed55bd031c8dd4c2393
6-
sourceBlobDigest: sha256:ed04a9c594fc05e47355f7286bef024f1e6d7ab0b28b08f1f13f699dc3a6d8fd
5+
sourceRevisionDigest: sha256:d7c123e2aa01c8c146dbc09922821ac07c8d4a63f5d596507cfca4cd29e0e8da
6+
sourceBlobDigest: sha256:9e8dcc408f3186458b44beef9291fdda1a247358d54992f1452a7289c9a4136d
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:e548e9fdf9261a3cc06b42c13031acb49cade5e82c2d8ed55bd031c8dd4c2393
15-
sourceBlobDigest: sha256:ed04a9c594fc05e47355f7286bef024f1e6d7ab0b28b08f1f13f699dc3a6d8fd
14+
sourceRevisionDigest: sha256:d7c123e2aa01c8c146dbc09922821ac07c8d4a63f5d596507cfca4cd29e0e8da
15+
sourceBlobDigest: sha256:9e8dcc408f3186458b44beef9291fdda1a247358d54992f1452a7289c9a4136d
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:4bcea6cd27bbd003db6f9e211c8d6e3ef659babd07ec4dce21b4b04bcfdf1dd9
17+
codeSamplesRevisionDigest: sha256:c7f340e41b64a511efff1a70c6f391e21b061b46a0e4077f04bbf78f18197c56
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
@@ -619,4 +619,14 @@ Based on:
619619
### Generated
620620
- [python v1.0.4] .
621621
### Releases
622-
- [PyPI v1.0.4] https://pypi.org/project/openrouter/1.0.4 - .
622+
- [PyPI v1.0.4] https://pypi.org/project/openrouter/1.0.4 - .
623+
624+
## 2026-07-21 18:28:38
625+
### Changes
626+
Based on:
627+
- OpenAPI Doc
628+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
629+
### Generated
630+
- [python v1.0.5] .
631+
### Releases
632+
- [PyPI v1.0.5] https://pypi.org/project/openrouter/1.0.5 - .

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ with OpenRouter(
107107

108108
| Error Type | Status Code | Content Type |
109109
| ----------------------------------- | ----------------------------------- | ----------------------------------- |
110+
| errors.BadRequestResponseError | 400 | application/json |
110111
| errors.UnauthorizedResponseError | 401 | application/json |
111112
| errors.TooManyRequestsResponseError | 429 | application/json |
112113
| errors.InternalServerResponseError | 500 | application/json |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ with OpenRouter(
6363

6464
| Error Type | Status Code | Content Type |
6565
| ---------------------------------- | ---------------------------------- | ---------------------------------- |
66+
| errors.BadRequestResponseError | 400 | application/json |
6667
| errors.UnauthorizedResponseError | 401 | application/json |
6768
| errors.InternalServerResponseError | 500 | application/json |
6869
| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ with OpenRouter(
7070

7171
| Error Type | Status Code | Content Type |
7272
| ---------------------------------- | ---------------------------------- | ---------------------------------- |
73+
| errors.BadRequestResponseError | 400 | application/json |
7374
| errors.UnauthorizedResponseError | 401 | application/json |
7475
| errors.InternalServerResponseError | 500 | application/json |
7576
| errors.OpenRouterDefaultError | 4XX, 5XX | \*/\* |

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ with OpenRouter(
6262

6363
| Error Type | Status Code | Content Type |
6464
| ---------------------------------- | ---------------------------------- | ---------------------------------- |
65+
| errors.BadRequestResponseError | 400 | application/json |
6566
| errors.UnauthorizedResponseError | 401 | application/json |
6667
| errors.InternalServerResponseError | 500 | application/json |
6768
| 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.0.4"
3+
version = "1.0.5"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

0 commit comments

Comments
Β (0)