Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 14 additions & 22 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.1.80
version: 1.1.81
additionalDependencies:
dev: {}
main: {}
Expand Down
4 changes: 2 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ 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
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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1589,4 +1589,14 @@ Based on:
### Generated
- [python v1.1.80] .
### Releases
- [PyPI v1.1.80] https://pypi.org/project/openrouter/1.1.80 - .
- [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 - .
4 changes: 2 additions & 2 deletions docs/sdks/apikeys/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions src/openrouter/api_keys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading