Compare commits

..
2 Commits
Author SHA1 Message Date
github-actions[bot]GitHubspeakeasybotspeakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
66512fa808 chore: 🐝 Update SDK - Generate (spec change merged) 0.10.5 (#374)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
2026-06-26 14:41:46 +00:00
7efd03fb3b chore: update OpenAPI spec from monorepo (#373)
Co-authored-by: OpenRouter SDK Bot <sdk-bot@openrouter.ai>
2026-06-26 14:35:36 +00:00
16 changed files with 92 additions and 73 deletions
+30 -29
View File
@@ -1,19 +1,19 @@
lockVersion: 2.0.0 lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828 id: c48cf606-fb42-4a45-9c23-8f0555307828
management: management:
docChecksum: 4fd4fe0bf7a8196c9e7a6eee1fe4a414 docChecksum: d45d201513d6e7be3558284cea1bc4db
docVersion: 1.0.0 docVersion: 1.0.0
speakeasyVersion: 1.680.0 speakeasyVersion: 1.680.0
generationVersion: 2.788.4 generationVersion: 2.788.4
releaseVersion: 0.10.4 releaseVersion: 0.10.5
configChecksum: d9fd2d1bfcce20e4901d52e81a6f5ca7 configChecksum: 21118cf49c03e168be22fb31e37e9c40
repoURL: https://github.com/OpenRouterTeam/python-sdk.git repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true published: true
persistentEdits: persistentEdits:
generation_id: 1ddaf948-46a3-4ca5-ade1-ab900963fba9 generation_id: 1a4bb86c-94f9-4871-b6c4-94e28c77b6ac
pristine_commit_hash: 3b78ff10c1872eac23efd487850624634d4f25b5 pristine_commit_hash: d221637a5ee0bf88f374906a064c1952d9b1b13c
pristine_tree_hash: 1f1b736777953b5a4861091f9b22733093fc9946 pristine_tree_hash: 86f3c7d275c6f0286e87bfc5e670ffb811e6d3e8
features: features:
python: python:
acceptHeaders: 3.0.0 acceptHeaders: 3.0.0
@@ -6230,8 +6230,8 @@ trackedFiles:
pristine_git_object: 44f78122819ded7e472e28ebcf37dd8812707097 pristine_git_object: 44f78122819ded7e472e28ebcf37dd8812707097
docs/sdks/apikeys/README.md: docs/sdks/apikeys/README.md:
id: e2bd25998427 id: e2bd25998427
last_write_checksum: sha1:82bec11fedf21eed760739e1adb08fec06239279 last_write_checksum: sha1:626c856e422b77914d461ed5fa86c94053dafdaa
pristine_git_object: 6e72f51df9e9811cee424032f7dba0887e15afec pristine_git_object: d3fbe9dfcd49510ee05f82b2ad115359d46eed37
docs/sdks/benchmarks/README.md: docs/sdks/benchmarks/README.md:
id: 61c16262af9b id: 61c16262af9b
last_write_checksum: sha1:e3030fe550fa8bb1d3379692f9633b5f8e98be99 last_write_checksum: sha1:e3030fe550fa8bb1d3379692f9633b5f8e98be99
@@ -6242,8 +6242,8 @@ trackedFiles:
pristine_git_object: 7f19e372b77803949f2afb8dd86b4794556e9c7e pristine_git_object: 7f19e372b77803949f2afb8dd86b4794556e9c7e
docs/sdks/byok/README.md: docs/sdks/byok/README.md:
id: 511ba2ae7a1b id: 511ba2ae7a1b
last_write_checksum: sha1:ef72e4c9cae06d60f4c2f2ad0578747d39e1d5ef last_write_checksum: sha1:451e316d1a15cea3c43033a9eb0b3989be9fd43d
pristine_git_object: a6f5335576f02b6108482dcd54e066b34a7c586f pristine_git_object: acb77887ae8d7612f039ae319b5654d2e03c9e26
docs/sdks/chat/README.md: docs/sdks/chat/README.md:
id: 393193527c2c id: 393193527c2c
last_write_checksum: sha1:0b40d973610ed193d6faafc7f4f0bfad06c78225 last_write_checksum: sha1:0b40d973610ed193d6faafc7f4f0bfad06c78225
@@ -6278,8 +6278,8 @@ trackedFiles:
pristine_git_object: 7fd647d02bfd29a3c7a5da0487761e89f308f224 pristine_git_object: 7fd647d02bfd29a3c7a5da0487761e89f308f224
docs/sdks/guardrails/README.md: docs/sdks/guardrails/README.md:
id: f72b38a5a2a7 id: f72b38a5a2a7
last_write_checksum: sha1:e90c6c713afcfa087edfcb6367397b9109ac3af9 last_write_checksum: sha1:359f450bfeb9b1a3436b85a446a7529b76118c25
pristine_git_object: 427dac57b47fbb136a16eb1ab7732c1ff61d7c2e pristine_git_object: 4b79890caa9a8296cdbabf550c66b4952f59d0c2
docs/sdks/images/README.md: docs/sdks/images/README.md:
id: cc752c3524d0 id: cc752c3524d0
last_write_checksum: sha1:5a7a17ae16ed1070ff54f29bf479699454c91f00 last_write_checksum: sha1:5a7a17ae16ed1070ff54f29bf479699454c91f00
@@ -6330,16 +6330,16 @@ trackedFiles:
pristine_git_object: 393bdc66fbf85057da5811936439c48ad03a2322 pristine_git_object: 393bdc66fbf85057da5811936439c48ad03a2322
docs/sdks/workspaces/README.md: docs/sdks/workspaces/README.md:
id: 1f5b051a6380 id: 1f5b051a6380
last_write_checksum: sha1:e315405c5619ae4b47119d01951118cb658cba46 last_write_checksum: sha1:c5ed18ad453c4cdc032fa5f2a81d7b93b36bdbab
pristine_git_object: b3df8f8977c859410224e187e091860dfdc59ea0 pristine_git_object: 6a5d5e09c3fb9006efddd9ca32a72e0353a390f5
py.typed: py.typed:
id: 258c3ed47ae4 id: 258c3ed47ae4
last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60 last_write_checksum: sha1:8efc425ffe830805ffcc0f3055871bdcdc542c60
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml: pyproject.toml:
id: 5d07e7d72637 id: 5d07e7d72637
last_write_checksum: sha1:dbca7fc02146c1734921186c4d38c7b79d45ee20 last_write_checksum: sha1:15d2c67200391a4843a4b6e15a9ab02a3e7ff408
pristine_git_object: 3810cc8259ef5c9b898e032d02eab740e919cebc pristine_git_object: 1fdf87db995d690d48ca5a0d6735114c108b9f2b
scripts/prepare_readme.py: scripts/prepare_readme.py:
id: e0c5957a6035 id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6366,16 +6366,16 @@ trackedFiles:
pristine_git_object: 07ace03229fd3267623c8f48665d2c3a67c3565d pristine_git_object: 07ace03229fd3267623c8f48665d2c3a67c3565d
src/openrouter/_version.py: src/openrouter/_version.py:
id: d8d15ad6c586 id: d8d15ad6c586
last_write_checksum: sha1:d0f7c11c8db041c0c822a9857f4f223ba128b10a last_write_checksum: sha1:c62dfff14e1d1a62db3bd988b15003c3434bc3fe
pristine_git_object: 3e75c5a73c2aa5f3313e1e19e11dfcb685f958e3 pristine_git_object: 8c6d36d8bdf952c6a00316530aca7971040ea0e3
src/openrouter/analytics.py: src/openrouter/analytics.py:
id: cb406b5aaabb id: cb406b5aaabb
last_write_checksum: sha1:6d47d1ab3da9cb4ac9f0a2bfe442f1a82a614f35 last_write_checksum: sha1:6d47d1ab3da9cb4ac9f0a2bfe442f1a82a614f35
pristine_git_object: ea004eaf47a1a48622d4a4276fba1e329d5559ab pristine_git_object: ea004eaf47a1a48622d4a4276fba1e329d5559ab
src/openrouter/api_keys.py: src/openrouter/api_keys.py:
id: 876fac88fff6 id: 876fac88fff6
last_write_checksum: sha1:4c037d1c4fc922061ca968b9cd961b2db69429f6 last_write_checksum: sha1:9dc40b10044a433ab5718c6db5122648c9b1d44a
pristine_git_object: e4a30e1b293a197994317a1e2169619fcbd0a0c6 pristine_git_object: 6c2cdf75cb4578b25bfd7cd17bd99b982a4a2e36
src/openrouter/basesdk.py: src/openrouter/basesdk.py:
id: c5733c5a1e12 id: c5733c5a1e12
last_write_checksum: sha1:71f242fd9955e5a17a8d055e2210cc2708bb94fc last_write_checksum: sha1:71f242fd9955e5a17a8d055e2210cc2708bb94fc
@@ -6394,8 +6394,8 @@ trackedFiles:
pristine_git_object: 9db10e868aa38e1c38036d55416f7bb39c71bc0d pristine_git_object: 9db10e868aa38e1c38036d55416f7bb39c71bc0d
src/openrouter/byok.py: src/openrouter/byok.py:
id: bec352462ae1 id: bec352462ae1
last_write_checksum: sha1:2508c32fac403ebb6dbd65eab53601d88039fbc0 last_write_checksum: sha1:1368b36fa52094caafdd2d9a50f6b4b762c8983a
pristine_git_object: 9c2b675374900474076991a713a40ad119ee8b17 pristine_git_object: e915cbb90c56bf622de74204ebc8e62cd4af92ef
src/openrouter/chat.py: src/openrouter/chat.py:
id: 723fdce15c1d id: 723fdce15c1d
last_write_checksum: sha1:045ca733908a82e099a0c2a76c6c498025827391 last_write_checksum: sha1:045ca733908a82e099a0c2a76c6c498025827391
@@ -8630,8 +8630,8 @@ trackedFiles:
pristine_git_object: 409e169fc5f43a0eea65b7568588c25c82abb46a pristine_git_object: 409e169fc5f43a0eea65b7568588c25c82abb46a
src/openrouter/guardrails.py: src/openrouter/guardrails.py:
id: 705839f34e66 id: 705839f34e66
last_write_checksum: sha1:212ed4757bf87d2acd6d179e25cf03d9ba3d64b4 last_write_checksum: sha1:137f03185776ee3f734609612e37aef1d3e2f178
pristine_git_object: beb82bf31bd9bca3baa7f61eb28105dfd3d22be3 pristine_git_object: 50249a344d342b955acdcaf9796466b9e8c3a1d1
src/openrouter/httpclient.py: src/openrouter/httpclient.py:
id: e9311185443d id: e9311185443d
last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7 last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7
@@ -9126,12 +9126,12 @@ trackedFiles:
pristine_git_object: dae01a44384ac3bc13ae07453a053bf6c898ebe3 pristine_git_object: dae01a44384ac3bc13ae07453a053bf6c898ebe3
src/openrouter/video_generation.py: src/openrouter/video_generation.py:
id: d0a90c1b8efe id: d0a90c1b8efe
last_write_checksum: sha1:d752e915a80df1f48a7ca35e901b50175fe3682b last_write_checksum: sha1:a857083fe9fe2766e7c083dce8778a30dd0a0b03
pristine_git_object: cdd7182ff939a02a0bbcd135c06a3b34d50e7076 pristine_git_object: 14d0c5e4e7757eeb383e460784073b8f05accd82
src/openrouter/workspaces.py: src/openrouter/workspaces.py:
id: cd6c533b1802 id: cd6c533b1802
last_write_checksum: sha1:2d9fc04510d5e28f57f23eacd7a5814495b127e7 last_write_checksum: sha1:7b1a29a2c1faa68ef30ccd0c8e61dfe535b90314
pristine_git_object: 54a25f1f83e29f7f005e58d0f2fedb1599be3b60 pristine_git_object: 1b82a9360ac6b08cee12e674770f7681e2a5e6f4
examples: examples:
createResponses: createResponses:
speakeasy-default-create-responses: speakeasy-default-create-responses:
@@ -9764,6 +9764,7 @@ examples:
responses: responses:
"200": "200":
application/octet-stream: "x-file: example.file" application/octet-stream: "x-file: example.file"
video/mp4: "x-file: example.file"
"400": "400":
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}} application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
"401": "401":
@@ -10561,4 +10562,4 @@ examples:
examplesVersion: 1.0.2 examplesVersion: 1.0.2
releaseNotes: | releaseNotes: |
## Python SDK Changes: ## Python SDK Changes:
* `open_router.images.generate()`: `response` **Changed** * `open_router.video_generation.get_video_content()`: `response.status[200]` **Changed** **Breaking** :warning:
+1 -1
View File
@@ -32,7 +32,7 @@ generation:
skipResponseBodyAssertions: false skipResponseBodyAssertions: false
preApplyUnionDiscriminators: true preApplyUnionDiscriminators: true
python: python:
version: 0.10.4 version: 0.10.5
additionalDependencies: additionalDependencies:
dev: {} dev: {}
main: {} main: {}
+14 -8
View File
@@ -24508,7 +24508,8 @@ paths:
description: >- description: >-
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned
in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to
scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. scope to a different workspace. Treat the raw key as write-only; it is never returned after creation.
[Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: createBYOKKey operationId: createBYOKKey
requestBody: requestBody:
content: content:
@@ -27188,7 +27189,9 @@ paths:
- Guardrails - Guardrails
x-speakeasy-name-override: get x-speakeasy-name-override: get
patch: patch:
description: Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. description: >-
Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every
update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: updateGuardrail operationId: updateGuardrail
parameters: parameters:
- description: The unique identifier of the guardrail to update - description: The unique identifier of the guardrail to update
@@ -27382,8 +27385,8 @@ paths:
type: offsetLimit type: offsetLimit
post: post:
description: >- description: >-
Assign multiple API keys to a specific guardrail. [Management Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any
key](/docs/guides/overview/auth/management-api-keys) required. existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: bulkAssignKeysToGuardrail operationId: bulkAssignKeysToGuardrail
parameters: parameters:
- description: The unique identifier of the guardrail - description: The unique identifier of the guardrail
@@ -28735,7 +28738,8 @@ paths:
x-speakeasy-name-override: list x-speakeasy-name-override: list
post: post:
description: >- description: >-
Create a new API key for the authenticated user. [Management Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it
as a write-only, sensitive value; it cannot be retrieved later. [Management
key](/docs/guides/overview/auth/management-api-keys) required. key](/docs/guides/overview/auth/management-api-keys) required.
operationId: createKeys operationId: createKeys
requestBody: requestBody:
@@ -33151,12 +33155,14 @@ paths:
responses: responses:
'200': '200':
content: content:
application/octet-stream: video/mp4:
example: <binary video data> example: <binary video data>
schema: schema:
format: binary format: binary
type: string type: string
description: Video content stream description: >-
Video content stream. The body is the raw video bytes proxied from the upstream provider, and the
Content-Type reflects the provider media type (video/mp4).
'400': '400':
content: content:
application/json: application/json:
@@ -33445,7 +33451,7 @@ paths:
delete: delete:
description: >- description: >-
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be
deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: deleteWorkspace operationId: deleteWorkspace
parameters: parameters:
- description: The workspace ID (UUID) or slug - description: The workspace ID (UUID) or slug
+9 -7
View File
@@ -24340,7 +24340,7 @@ paths:
type: offsetLimit type: offsetLimit
post: post:
description: >- description: >-
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: createBYOKKey operationId: createBYOKKey
requestBody: requestBody:
content: content:
@@ -27048,7 +27048,8 @@ paths:
- Guardrails - Guardrails
x-speakeasy-name-override: get x-speakeasy-name-override: get
patch: patch:
description: Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. description: >-
Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: updateGuardrail operationId: updateGuardrail
parameters: parameters:
- description: The unique identifier of the guardrail to update - description: The unique identifier of the guardrail to update
@@ -27245,7 +27246,7 @@ paths:
type: offsetLimit type: offsetLimit
post: post:
description: >- description: >-
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: bulkAssignKeysToGuardrail operationId: bulkAssignKeysToGuardrail
parameters: parameters:
- description: The unique identifier of the guardrail - description: The unique identifier of the guardrail
@@ -28626,7 +28627,7 @@ paths:
x-speakeasy-name-override: list x-speakeasy-name-override: list
post: post:
description: >- description: >-
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: createKeys operationId: createKeys
requestBody: requestBody:
content: content:
@@ -33068,12 +33069,13 @@ paths:
responses: responses:
'200': '200':
content: content:
application/octet-stream: video/mp4:
example: <binary video data> example: <binary video data>
schema: schema:
format: binary format: binary
type: string type: string
description: Video content stream description: >-
Video content stream. The body is the raw video bytes proxied from the upstream provider, and the Content-Type reflects the provider media type (video/mp4).
'400': '400':
content: content:
application/json: application/json:
@@ -33371,7 +33373,7 @@ paths:
/workspaces/{id}: /workspaces/{id}:
delete: delete:
description: >- description: >-
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
operationId: deleteWorkspace operationId: deleteWorkspace
parameters: parameters:
- description: The workspace ID (UUID) or slug - description: The workspace ID (UUID) or slug
+6 -6
View File
@@ -2,20 +2,20 @@ speakeasyVersion: 1.680.0
sources: sources:
OpenRouter API: OpenRouter API:
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:04b1417598cd30a7ea0db043f95705d05abee22a86750cb49d1f872ff0aac1a0 sourceRevisionDigest: sha256:8e0c6bba19f6520c31262ec38c7bbc2b4306f5c3b6756f72c1a1ff6788b0d461
sourceBlobDigest: sha256:8af92c8bafad9bb39a0d61b02a3ac2a6002ba1f37a620db676a62529f844cf7c sourceBlobDigest: sha256:30fef4ab492a2a13d07f2097e3f367a809af921fada21987851ef94a0aadd8a8
tags: tags:
- latest - latest
- speakeasy-sdk-regen-1782475583 - speakeasy-sdk-regen-1782484638
- 1.0.0 - 1.0.0
targets: targets:
open-router: open-router:
source: OpenRouter API source: OpenRouter API
sourceNamespace: open-router-chat-completions-api sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:04b1417598cd30a7ea0db043f95705d05abee22a86750cb49d1f872ff0aac1a0 sourceRevisionDigest: sha256:8e0c6bba19f6520c31262ec38c7bbc2b4306f5c3b6756f72c1a1ff6788b0d461
sourceBlobDigest: sha256:8af92c8bafad9bb39a0d61b02a3ac2a6002ba1f37a620db676a62529f844cf7c sourceBlobDigest: sha256:30fef4ab492a2a13d07f2097e3f367a809af921fada21987851ef94a0aadd8a8
codeSamplesNamespace: open-router-python-code-samples codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:9eb822c39464f6b8ff4cbbe3e2f0bacc6abed49eea905c340948a45c826f7dc0 codeSamplesRevisionDigest: sha256:a1cd95b23206ce8853cb86f1fc5973931fa1610283db935130345a03c7b8bd51
workflow: workflow:
workflowVersion: 1.0.0 workflowVersion: 1.0.0
speakeasyVersion: 1.680.0 speakeasyVersion: 1.680.0
+10
View File
@@ -69,3 +69,13 @@ Based on:
- [python v0.10.4] . - [python v0.10.4] .
### Releases ### Releases
- [PyPI v0.10.4] https://pypi.org/project/openrouter/0.10.4 - . - [PyPI v0.10.4] https://pypi.org/project/openrouter/0.10.4 - .
## 2026-06-26 14:36:56
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.680.0 (2.788.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.10.5] .
### Releases
- [PyPI v0.10.5] https://pypi.org/project/openrouter/0.10.5 - .
+1 -1
View File
@@ -113,7 +113,7 @@ with OpenRouter(
## create ## create
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
### Example Usage ### Example Usage
+2 -2
View File
@@ -241,7 +241,7 @@ with OpenRouter(
## update ## update
Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
### Example Usage ### Example Usage
@@ -359,7 +359,7 @@ with OpenRouter(
## bulk_assign_keys ## bulk_assign_keys
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
### Example Usage ### Example Usage
+1 -1
View File
@@ -1,6 +1,6 @@
[project] [project]
name = "openrouter" name = "openrouter"
version = "0.10.4" version = "0.10.5"
description = "Official Python Client SDK for OpenRouter." description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },] authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md" readme = "README-PYPI.md"
+2 -2
View File
@@ -3,10 +3,10 @@
import importlib.metadata import importlib.metadata
__title__: str = "openrouter" __title__: str = "openrouter"
__version__: str = "0.10.4" __version__: str = "0.10.5"
__openapi_doc_version__: str = "1.0.0" __openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.788.4" __gen_version__: str = "2.788.4"
__user_agent__: str = "speakeasy-sdk/python 0.10.4 2.788.4 1.0.0 openrouter" __user_agent__: str = "speakeasy-sdk/python 0.10.5 2.788.4 1.0.0 openrouter"
try: try:
if __package__ is not None: if __package__ is not None:
+2 -2
View File
@@ -533,7 +533,7 @@ class APIKeys(BaseSDK):
) -> operations.CreateKeysResponse: ) -> operations.CreateKeysResponse:
r"""Create a new API key r"""Create a new API key
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param name: Name for the new API key :param name: Name for the new API key
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -696,7 +696,7 @@ class APIKeys(BaseSDK):
) -> operations.CreateKeysResponse: ) -> operations.CreateKeysResponse:
r"""Create a new API key r"""Create a new API key
Create a new API key for the authenticated user. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new API key for the authenticated user. The plaintext `key` is returned only in this response. Treat it as a write-only, sensitive value; it cannot be retrieved later. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param name: Name for the new API key :param name: Name for the new API key
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
+2 -2
View File
@@ -359,7 +359,7 @@ class Byok(BaseSDK):
) -> components.CreateBYOKKeyResponse: ) -> components.CreateBYOKKeyResponse:
r"""Create a BYOK provider credential r"""Create a BYOK provider credential
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. :param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses.
:param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). :param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).
@@ -520,7 +520,7 @@ class Byok(BaseSDK):
) -> components.CreateBYOKKeyResponse: ) -> components.CreateBYOKKeyResponse:
r"""Create a BYOK provider credential r"""Create a BYOK provider credential
Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. Treat the raw key as write-only; it is never returned after creation. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. :param key: The raw provider API key or credential. This value is encrypted at rest and never returned in API responses.
:param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). :param provider: The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`).
+4 -4
View File
@@ -1275,7 +1275,7 @@ class Guardrails(BaseSDK):
) -> components.UpdateGuardrailResponse: ) -> components.UpdateGuardrailResponse:
r"""Update a guardrail r"""Update a guardrail
Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The unique identifier of the guardrail to update :param id: The unique identifier of the guardrail to update
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -1476,7 +1476,7 @@ class Guardrails(BaseSDK):
) -> components.UpdateGuardrailResponse: ) -> components.UpdateGuardrailResponse:
r"""Update a guardrail r"""Update a guardrail
Update an existing guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Update an existing guardrail. Collection fields use replace semantics: send the full desired set on every update. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The unique identifier of the guardrail to update :param id: The unique identifier of the guardrail to update
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -1982,7 +1982,7 @@ class Guardrails(BaseSDK):
) -> components.BulkAssignKeysResponse: ) -> components.BulkAssignKeysResponse:
r"""Bulk assign keys to a guardrail r"""Bulk assign keys to a guardrail
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The unique identifier of the guardrail :param id: The unique identifier of the guardrail
:param key_hashes: Array of API key hashes to assign to the guardrail :param key_hashes: Array of API key hashes to assign to the guardrail
@@ -2125,7 +2125,7 @@ class Guardrails(BaseSDK):
) -> components.BulkAssignKeysResponse: ) -> components.BulkAssignKeysResponse:
r"""Bulk assign keys to a guardrail r"""Bulk assign keys to a guardrail
Assign multiple API keys to a specific guardrail. [Management key](/docs/guides/overview/auth/management-api-keys) required. Assign multiple API keys to a specific guardrail. A key may hold at most one guardrail; assigning replaces any existing assignment. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The unique identifier of the guardrail :param id: The unique identifier of the guardrail
:param key_hashes: Array of API key hashes to assign to the guardrail :param key_hashes: Array of API key hashes to assign to the guardrail
+4 -4
View File
@@ -726,7 +726,7 @@ class VideoGeneration(BaseSDK):
request_has_path_params=True, request_has_path_params=True,
request_has_query_params=True, request_has_query_params=True,
user_agent_header="user-agent", user_agent_header="user-agent",
accept_header_value="application/octet-stream", accept_header_value="video/mp4",
http_headers=http_headers, http_headers=http_headers,
_globals=operations.ListVideosContentGlobals( _globals=operations.ListVideosContentGlobals(
http_referer=self.sdk_configuration.globals.http_referer, http_referer=self.sdk_configuration.globals.http_referer,
@@ -767,7 +767,7 @@ class VideoGeneration(BaseSDK):
) )
response_data: Any = None response_data: Any = None
if utils.match_response(http_res, "200", "application/octet-stream"): if utils.match_response(http_res, "200", "video/mp4"):
return http_res return http_res
if utils.match_response(http_res, "400", "application/json"): if utils.match_response(http_res, "400", "application/json"):
http_res_text = utils.stream_to_text(http_res) http_res_text = utils.stream_to_text(http_res)
@@ -878,7 +878,7 @@ class VideoGeneration(BaseSDK):
request_has_path_params=True, request_has_path_params=True,
request_has_query_params=True, request_has_query_params=True,
user_agent_header="user-agent", user_agent_header="user-agent",
accept_header_value="application/octet-stream", accept_header_value="video/mp4",
http_headers=http_headers, http_headers=http_headers,
_globals=operations.ListVideosContentGlobals( _globals=operations.ListVideosContentGlobals(
http_referer=self.sdk_configuration.globals.http_referer, http_referer=self.sdk_configuration.globals.http_referer,
@@ -919,7 +919,7 @@ class VideoGeneration(BaseSDK):
) )
response_data: Any = None response_data: Any = None
if utils.match_response(http_res, "200", "application/octet-stream"): if utils.match_response(http_res, "200", "video/mp4"):
return http_res return http_res
if utils.match_response(http_res, "400", "application/json"): if utils.match_response(http_res, "400", "application/json"):
http_res_text = await utils.stream_to_text_async(http_res) http_res_text = await utils.stream_to_text_async(http_res)
+2 -2
View File
@@ -676,7 +676,7 @@ class Workspaces(BaseSDK):
) -> components.DeleteWorkspaceResponse: ) -> components.DeleteWorkspaceResponse:
r"""Delete a workspace r"""Delete a workspace
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The workspace ID (UUID) or slug :param id: The workspace ID (UUID) or slug
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -812,7 +812,7 @@ class Workspaces(BaseSDK):
) -> components.DeleteWorkspaceResponse: ) -> components.DeleteWorkspaceResponse:
r"""Delete a workspace r"""Delete a workspace
Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. Delete an existing workspace. The default workspace cannot be deleted. Workspaces with active API keys cannot be deleted; remove the keys first. [Management key](/docs/guides/overview/auth/management-api-keys) required.
:param id: The workspace ID (UUID) or slug :param id: The workspace ID (UUID) or slug
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
Generated
+1 -1
View File
@@ -220,7 +220,7 @@ wheels = [
[[package]] [[package]]
name = "openrouter" name = "openrouter"
version = "0.10.4" version = "0.10.5"
source = { editable = "." } source = { editable = "." }
dependencies = [ dependencies = [
{ name = "httpcore" }, { name = "httpcore" },