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
28 changes: 14 additions & 14 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: 7e01e4863466a4b473e43c47c419b196
docChecksum: 7f8b1aa33038faeebc0a400db6f92c1d
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.182
configChecksum: 93e89301ad9a52d796393b76a744e7ef
releaseVersion: 1.3.183
configChecksum: db6042bc8a7fc374e95f7bd95037f820
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 21b1feaa-ecfe-47bf-bd5f-590eb8bc26a5
pristine_commit_hash: a61541c522dd7c6128eaef1b9466727b5e78d412
pristine_tree_hash: 723ddcad6a09d1e49ebe35bd7fd99d059a35786c
generation_id: 822acc7e-2e5d-40ea-9aeb-915a6c080136
pristine_commit_hash: b3a3a2effb2c7695e276f450b4948cb6713b0fb8
pristine_tree_hash: 6b4ae1092de6f09cef3eed145f5c2371509e59b4
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -11608,8 +11608,8 @@ trackedFiles:
pristine_git_object: 24fda0f8e544cca9d93d6a83f0917927842041aa
docs/sdks/oauth/README.mdx:
id: 42b5079343d2
last_write_checksum: sha1:0170965ade997a053d7051c86310ac34523bae9e
pristine_git_object: 17aed8efbc308172392fa975a064dcd9a4e6531d
last_write_checksum: sha1:ed962f2d4afda6e456d031d8783a4825aeb85b97
pristine_git_object: 4c98afd747c56ba3e179a1edc6ffb057e15c5e86
docs/sdks/observability/README.mdx:
id: 75811527e651
last_write_checksum: sha1:b01bb09b9ef3543335bc1da6078de84ceaba3c14
Expand Down Expand Up @@ -11680,8 +11680,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:7345c283fb35d1d19266b68967f0bb03fcbef9b1
pristine_git_object: 2328adbfdbd5909ff58a402f0a49f29c9b59a692
last_write_checksum: sha1:aef33794899ae5ac37fd27e773bfda692a5d738d
pristine_git_object: c79e10db0e0074b3719a182b0411f2df7519746f
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11708,8 +11708,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:39ba4a2a21183633640d3d5cf0297ca9d0e10b39
pristine_git_object: b635535503d4ef9ae530217819baafaa5cbcc733
last_write_checksum: sha1:367fe6441c8066fb40a0e8fce8293d655ef9fa2b
pristine_git_object: feaa1e5a220a3812da215a9b5c933a2982a7a2e0
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -15784,8 +15784,8 @@ trackedFiles:
pristine_git_object: 4cea7bb4be88f162bd3783c7bdc32a035ed1f411
src/openrouter/oauth.py:
id: 1948ce27255b
last_write_checksum: sha1:bf29baaa10fc7a91265eaa9083ffdfbe6dafd5a9
pristine_git_object: 1dc4771f8990fbc10ff86717db064c6ee50b3a16
last_write_checksum: sha1:938c8b5ac63c1410e1173a2873b9c2493d720a1d
pristine_git_object: 0699194f7951fb1f4b3dbb79f1935b5a7e44c388
src/openrouter/observability.py:
id: 6a17f32d3f33
last_write_checksum: sha1:9d7a47a0ac91ad487db2e304adf0f5b55bfded69
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.182
version: 1.3.183
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41242,7 +41242,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/auth/keys/code:
post:
description: 'Create an authorization code for the PKCE flow to generate a user-controlled API key'
description: 'Create an authorization code for the PKCE flow to generate a user-controlled API key. Requires a Clerk session that completed reverification recently (Clerk `lax` level); otherwise the response is `403` with `error.metadata.reverification` set to `lax`, and the caller must reverify the session before retrying.'
operationId: 'createAuthKeysCode'
requestBody:
content:
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.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:1cca2238e45f069aea6f9cc204b19b8551f052359b12fa03f317f9e18c04c150
sourceBlobDigest: sha256:92479e3528c7f73a561d729ec9f536f6eea6c00676913e7d7312b699c3b39d8f
sourceRevisionDigest: sha256:33e4fbee849b5eeaa7595a578af7425391298cc7b01009fff88e68cb2c973aaf
sourceBlobDigest: sha256:18212fccb77e98f31f79cf1e11223aa33692f5105bdd30a81c332153db11789b
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:1cca2238e45f069aea6f9cc204b19b8551f052359b12fa03f317f9e18c04c150
sourceBlobDigest: sha256:92479e3528c7f73a561d729ec9f536f6eea6c00676913e7d7312b699c3b39d8f
sourceRevisionDigest: sha256:33e4fbee849b5eeaa7595a578af7425391298cc7b01009fff88e68cb2c973aaf
sourceBlobDigest: sha256:18212fccb77e98f31f79cf1e11223aa33692f5105bdd30a81c332153db11789b
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:128a1a830c7a93b6980d3cbe90babc42c91539cc9ec7e984b2ff26577dc3660f
codeSamplesRevisionDigest: sha256:cf46cf2dca74cca00068c77d4022ffebbdb7e6cda374a77dc434b70dd34fc361
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4589,4 +4589,14 @@ Based on:
### Generated
- [python v1.3.182] .
### Releases
- [PyPI v1.3.182] https://pypi.org/project/openrouter/1.3.182 - .
- [PyPI v1.3.182] https://pypi.org/project/openrouter/1.3.182 - .

## 2026-11-17 03:15:57
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.183] .
### Releases
- [PyPI v1.3.183] https://pypi.org/project/openrouter/1.3.183 - .
2 changes: 1 addition & 1 deletion docs/sdks/oauth/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ with OpenRouter(

## create_auth_code

Create an authorization code for the PKCE flow to generate a user-controlled API key
Create an authorization code for the PKCE flow to generate a user-controlled API key. Requires a Clerk session that completed reverification recently (Clerk `lax` level); otherwise the response is `403` with `error.metadata.reverification` set to `lax`, and the caller must reverify the session before retrying.

### 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.3.182"
version = "1.3.183"
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.3.182"
__version__: str = "1.3.183"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
__user_agent__: str = "speakeasy-sdk/python 1.3.182 2.950.13 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.3.183 2.950.13 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def create_auth_code(
) -> operations.CreateAuthKeysCodeResponse:
r"""Create authorization code

Create an authorization code for the PKCE flow to generate a user-controlled API key
Create an authorization code for the PKCE flow to generate a user-controlled API key. Requires a Clerk session that completed reverification recently (Clerk `lax` level); otherwise the response is `403` with `error.metadata.reverification` set to `lax`, and the caller must reverify the session before retrying.

:param callback_url: The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools.
: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 @@ -507,7 +507,7 @@ async def create_auth_code_async(
) -> operations.CreateAuthKeysCodeResponse:
r"""Create authorization code

Create an authorization code for the PKCE flow to generate a user-controlled API key
Create an authorization code for the PKCE flow to generate a user-controlled API key. Requires a Clerk session that completed reverification recently (Clerk `lax` level); otherwise the response is `403` with `error.metadata.reverification` set to `lax`, and the caller must reverify the session before retrying.

:param callback_url: The callback URL to redirect to after authorization. Supports https URLs and localhost/127.0.0.1 URLs on any port for local CLI tools.
: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