From 75f4e1b91be0b88982dd2680cc5e8d9a8dcfcef0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 24 Aug 2026 22:15:31 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.787.0 --- .speakeasy/gen.lock | 36 ++++++++++++++---------------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 4 ++-- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/sdks/apikeys/README.mdx | 4 ++-- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/api_keys.py | 8 ++++---- uv.lock | 2 +- 10 files changed, 43 insertions(+), 41 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 58abd137..41c54077 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: c48cf606-fb42-4a45-9c23-8f0555307828 management: - docChecksum: 9a21da776a63d8a1ab383c6a36668bf0 + docChecksum: e23d814be45efb3a8f0ce93a58e6f1ee docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.1.80 - configChecksum: e088bba216f88d55dcc05d4f3b5a999b + releaseVersion: 1.1.81 + configChecksum: 4c8ecd6c854e57a38d160410ab56f977 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: d2dc66ab-efe1-4319-b859-f7f49d99fec9 - pristine_commit_hash: d3a4e608a61c13740ca17462131298598ba29467 - pristine_tree_hash: b47f1a2e14b773ff8c6cd889832e02ced561f59a + generation_id: 9534f798-9ad9-4bf3-8e07-503c0ef9edeb + pristine_commit_hash: 5982ac8d3875e7a1908e5283e00aab0ca4d39c54 + pristine_tree_hash: b5b39013d72c09f032f8a0278f41fd7a1e664eca features: python: acceptHeaders: 3.0.0 @@ -7242,8 +7242,8 @@ trackedFiles: pristine_git_object: c1634706646332455817340f5891b4b5c9c6d16c docs/sdks/apikeys/README.mdx: id: 27fcaae1c346 - last_write_checksum: sha1:002fa5cee49f99cbba1adda1ead8cd2808e893e7 - pristine_git_object: eb1649326fcf548dfab33eb11163ba7511c2547e + last_write_checksum: sha1:5b409ac3398d29c44cc2af597a89307eb71376f9 + pristine_git_object: 04bd660dc56ece892d4dd12cab1d4d8afc78d385 docs/sdks/benchmarks/README.mdx: id: 5b483a6770ba last_write_checksum: sha1:885b70fcbd2be60f51a2f58e133fd6452eb21600 @@ -7358,8 +7358,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:4ad2ac0d52d1828dbb9feca2f7fa39206819134e - pristine_git_object: c6e255a167228b021666d308a5c52de689f8b63c + last_write_checksum: sha1:17abd609fdb3afcac3eb99dcb66a854ef28eaea9 + pristine_git_object: 49f3fc2baf87a081814ed289a2fa864bb3a82ce3 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -7386,16 +7386,16 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:7895593dcf93d43e317d6822db9b29cb6b1caf28 - pristine_git_object: 18d71c63114f8321bdd7ae5a9019589fb4a5cd1c + last_write_checksum: sha1:ffa09155e99b5078fb12f5a53e884b85faa9cef2 + pristine_git_object: 8c4be141657683598f6fd9135e9894ed0443097a src/openrouter/analytics.py: id: cb406b5aaabb last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9 pristine_git_object: 9587309db4d5e25a00131a48788456139c25e4c0 src/openrouter/api_keys.py: id: 876fac88fff6 - last_write_checksum: sha1:f0b15c66d147dcdd60ce0030552177284f10731d - pristine_git_object: f667fac412be50888ab100a71dd23909b06eebcd + last_write_checksum: sha1:1e2b56bb3a7ab930e9addfae5040de9600ab8df8 + pristine_git_object: 1ee2102b2779bfdaa10d514053794304ba5ba153 src/openrouter/basesdk.py: id: c5733c5a1e12 last_write_checksum: sha1:65769ff2cb5473f85b364c6213a0ddc8c68644ea @@ -12386,11 +12386,3 @@ examples: "503": application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}} examplesVersion: 1.0.2 -releaseNotes: | - ## Python SDK Changes: - * `open_router.embeddings.list_models()`: `response.data[].pricing.overrides[].utc_days` **Added** - * `open_router.endpoints.list_zdr_endpoints()`: `response.data[].pricing.overrides[].utc_days` **Added** - * `open_router.endpoints.list()`: `response.data.endpoints[].pricing.overrides[].utc_days` **Added** - * `open_router.models.get()`: `response.data.pricing.overrides[].utc_days` **Added** - * `open_router.models.list()`: `response.data[].pricing.overrides[].utc_days` **Added** - * `open_router.models.list_for_user()`: `response.data[].pricing.overrides[].utc_days` **Added** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index efa57a72..bd582ca9 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.1.80 + version: 1.1.81 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index fa206a56..ea845635 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -34155,7 +34155,7 @@ paths: - $ref: "#/components/parameters/AppCategories" /keys/{hash}: delete: - description: 'Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.' operationId: 'deleteKeys' parameters: - description: 'The hash identifier of the API key to delete' @@ -34505,7 +34505,7 @@ paths: - 'API Keys' x-speakeasy-name-override: 'get' patch: - description: 'Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required.' + description: 'Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist.' operationId: 'updateKeys' parameters: - description: 'The hash identifier of the API key to update' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9decd51b..2dcfa78a 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:27ac577c51d9c3dd8ac762c0f89bf31858843e5f97f72a10dc8fa759a70f0b29 - sourceBlobDigest: sha256:189a5c201cb62e161821ada4cca930ea7ae4711df3dcf9001eac70ed152d61ac + sourceRevisionDigest: sha256:d966a380c4881c5f75315011fe4731f1e74b677f405a8758fbae7ee77591a077 + sourceBlobDigest: sha256:d9f7f65a79bd68786ae40d49ec6ae88d47e40419cbdbd71c719221bc21225a9c tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:27ac577c51d9c3dd8ac762c0f89bf31858843e5f97f72a10dc8fa759a70f0b29 - sourceBlobDigest: sha256:189a5c201cb62e161821ada4cca930ea7ae4711df3dcf9001eac70ed152d61ac + sourceRevisionDigest: sha256:d966a380c4881c5f75315011fe4731f1e74b677f405a8758fbae7ee77591a077 + sourceBlobDigest: sha256:d9f7f65a79bd68786ae40d49ec6ae88d47e40419cbdbd71c719221bc21225a9c codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:330bb94775f6450f65513e23e20a997ecd5d7cecd4a44f29a2ae282ace81ffed + codeSamplesRevisionDigest: sha256:f540ff84d7912a5c0709ed0cc82f7bcd6454bb09437dfdfe2101fd483052cd99 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index 538ecc87..94b8c80b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1589,4 +1589,14 @@ Based on: ### Generated - [python v1.1.80] . ### Releases -- [PyPI v1.1.80] https://pypi.org/project/openrouter/1.1.80 - . \ No newline at end of file +- [PyPI v1.1.80] https://pypi.org/project/openrouter/1.1.80 - . + +## 2026-08-24 22:14:01 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.81] . +### Releases +- [PyPI v1.1.81] https://pypi.org/project/openrouter/1.1.81 - . \ No newline at end of file diff --git a/docs/sdks/apikeys/README.mdx b/docs/sdks/apikeys/README.mdx index eb164932..04bd660d 100644 --- a/docs/sdks/apikeys/README.mdx +++ b/docs/sdks/apikeys/README.mdx @@ -174,7 +174,7 @@ with OpenRouter( ## delete -Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. ### Example Usage @@ -272,7 +272,7 @@ with OpenRouter( ## update -Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. +Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index c6e255a1..49f3fc2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.1.80" +version = "1.1.81" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 18d71c63..8c4be141 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.1.80" +__version__: str = "1.1.81" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.1.80 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.1.81 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/api_keys.py b/src/openrouter/api_keys.py index f667fac4..1ee2102b 100644 --- a/src/openrouter/api_keys.py +++ b/src/openrouter/api_keys.py @@ -887,7 +887,7 @@ def delete( ) -> operations.DeleteKeysResponse: r"""Delete an API key - Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. :param hash: The hash identifier of the API key to delete :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -1020,7 +1020,7 @@ async def delete_async( ) -> operations.DeleteKeysResponse: r"""Delete an API key - Delete an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Delete an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. :param hash: The hash identifier of the API key to delete :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -1424,7 +1424,7 @@ def update( ) -> operations.UpdateKeysResponse: r"""Update an API key - Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. :param hash: The hash identifier of the API key to update :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -1586,7 +1586,7 @@ async def update_async( ) -> operations.UpdateKeysResponse: r"""Update an API key - Update an existing API key. [Management key](/docs/guides/overview/auth/management-api-keys) required. + Update an existing API key. Authenticate with a [management key](/docs/guides/overview/auth/management-api-keys), or with a Connect client secret. A client secret reaches only the keys that same client created; any other key responds as if it does not exist. :param hash: The hash identifier of the API key to update :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. diff --git a/uv.lock b/uv.lock index d95c0f96..01319b89 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.1.80" +version = "1.1.81" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 5de053dd1bcdc411c105443b7514dc3368da5f0e Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Mon, 24 Aug 2026 22:15:38 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow