From 886fb79b675bc353dd2a08209cf030df5b52a52c Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Tue, 24 Nov 2026 04:35:40 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 33 ++++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 1 + .speakeasy/workflow.lock | 10 +++--- RELEASES.md | 12 ++++++- docs/components/jevrouterplugin.mdx | 2 +- docs/components/jevrouterpluginid.mdx | 2 ++ pyproject.toml | 2 +- src/openrouter/_version.py | 4 +-- src/openrouter/components/jevrouterplugin.py | 3 ++ uv.lock | 2 +- 11 files changed, 44 insertions(+), 29 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index ac3104689..0ed2ed03b 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: 193a6755690700b57734c377ef268104 + docChecksum: 5523a99aeba8d22ec99fe29fde3081cc docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.208 - configChecksum: 398ff4eeb8d92e4721f69a9eaea473a0 + releaseVersion: 1.3.209 + configChecksum: 594ea931660cc5a95f0b833ceef0dfe7 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 1369b62a-5a5a-40c5-9929-32a9d4457849 - pristine_commit_hash: b6fe83b984cc0e49c80e3a7a254e9b31960c379e - pristine_tree_hash: 4d245e8efab89ab1bbd0ba3f02cd21c9d4d5c576 + generation_id: 23b0b72b-48f1-477e-ab26-c3d14487b550 + pristine_commit_hash: 5e57e5c447618ca19068a8c4f83afdc92acfadba + pristine_tree_hash: 579b0a5ed8b74495b33dd8793b3ccdc68a9e4aaa features: python: acceptHeaders: 3.0.0 @@ -4820,12 +4820,12 @@ trackedFiles: pristine_git_object: 5949fbaa48fde55f28b1597cd0ac15ae13c5852a docs/components/jevrouterplugin.mdx: id: 258aa7058bc5 - last_write_checksum: sha1:77aabf88838874c0ecf00076ae26c1d4cc0fcba4 - pristine_git_object: fd57392a0ce10e1996c0e9bf28badf52bb0ba94f + last_write_checksum: sha1:4938eac4b55ce7df1085eec7033de9aa4a042173 + pristine_git_object: c7160bce8a20d7e16399431a023ea67f2e3ca628 docs/components/jevrouterpluginid.mdx: id: 30d920f53cde - last_write_checksum: sha1:dfc1a3a7d9011c2a15b475b51eaf48ad78856ff3 - pristine_git_object: 5eb47c20b3849e3ad7d3ae15a2c999b30285e509 + last_write_checksum: sha1:41ff36188b1bbe74b3db81ced562a42ecb4f6cd4 + pristine_git_object: a05e11771cd1ae8000f6abb3aca3f86892e9e57e docs/components/keep.mdx: id: c3da64331e76 last_write_checksum: sha1:f58b4b0416619717f16b37897c0cfe19bdac2362 @@ -11868,8 +11868,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:233bfc6255ec2b6c6c17407e33dbc737ba1f87aa - pristine_git_object: c7fc4f275659cbbae09af590dcb34a64bc3bdc2e + last_write_checksum: sha1:e214a515a04c4f88bc4a0f08e53c5d4a612c6e34 + pristine_git_object: a649c156d0e05683d3018647b3d85c5fddb057b0 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11896,8 +11896,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:9b4b5edefa5a743c7ec64641755294a5e2056283 - pristine_git_object: 7edc16dbb12298bb4465325aa2b8adbb89222a99 + last_write_checksum: sha1:8d5c0cb3469fb60dd52dcb492cbfb3a50bef23a8 + pristine_git_object: f1438eace800a2d3e09d3ff6a7dfdd84723e7ab0 src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -13920,8 +13920,8 @@ trackedFiles: pristine_git_object: b5a0bc16faa52f26d293eea18183e4d0b0bbb901 src/openrouter/components/jevrouterplugin.py: id: fcb6e65e2e08 - last_write_checksum: sha1:95cddb747ae16339fcd4ff907c062b8667999f1e - pristine_git_object: deed2db578c63adb44bc894aba195f402b96458a + last_write_checksum: sha1:8e502d7e89ed5230e2f7923d95a6c3c5ad7adc7a + pristine_git_object: 331032213a026767c5c1fcb13498362958638247 src/openrouter/components/keyassignment.py: id: 07a64362e7fd last_write_checksum: sha1:4b47a6f1ab4992ec81d7236ca28dbf94d3a4fbaf @@ -22023,4 +22023,3 @@ examples: "503": application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.byok.list()`: `response.data[].is_exclusive` **Added**\n* `open_router.byok.create()`: \n * `request.is_exclusive` **Added**\n * `response.data.is_exclusive` **Added**\n* `open_router.byok.get()`: `response.data.is_exclusive` **Added**\n* `open_router.byok.update()`: \n * `request.is_exclusive` **Added**\n * `response.data.is_exclusive` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 05954107d..7475f8d96 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.208 + version: 1.3.209 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 96fd74745..5b80d5683 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -18462,6 +18462,7 @@ components: maxItems: 1024 type: 'array' id: + description: 'The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`.' enum: - 'jev-router' type: 'string' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c3b622d29..aa16974c8 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:c5026ba9fe4352c2c3fac8a6a09590d4f4567659bd94950e385d5edd102fcab7 - sourceBlobDigest: sha256:e12d282bf29597795cc2b0c8870b0ba84f215df2656079b5e6cccb350fc3df46 + sourceRevisionDigest: sha256:5cfe611ddea7f6069ebd8b3139264a5280c4b6f7c6ecc65fdb05781527c8ad64 + sourceBlobDigest: sha256:ec5ebbdb43d4f02a741127d8620537cf6a11eb0945e50d17c7c62664d81d76ce tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:c5026ba9fe4352c2c3fac8a6a09590d4f4567659bd94950e385d5edd102fcab7 - sourceBlobDigest: sha256:e12d282bf29597795cc2b0c8870b0ba84f215df2656079b5e6cccb350fc3df46 + sourceRevisionDigest: sha256:5cfe611ddea7f6069ebd8b3139264a5280c4b6f7c6ecc65fdb05781527c8ad64 + sourceBlobDigest: sha256:ec5ebbdb43d4f02a741127d8620537cf6a11eb0945e50d17c7c62664d81d76ce codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:35eca6d4b56ebfd265d8ac448cfc66420d17b739405497d6633064699c265f46 + codeSamplesRevisionDigest: sha256:8df3e92960ebf42ee39c7a092490a8d1789b77cb40669c4840a97e943fd1e80e workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 8010722f0..c826c75da 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4849,4 +4849,14 @@ Based on: ### Generated - [python v1.3.208] . ### Releases -- [PyPI v1.3.208] https://pypi.org/project/openrouter/1.3.208 - . \ No newline at end of file +- [PyPI v1.3.208] https://pypi.org/project/openrouter/1.3.208 - . + +## 2026-11-24 04:32:20 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.209] . +### Releases +- [PyPI v1.3.209] https://pypi.org/project/openrouter/1.3.209 - . \ No newline at end of file diff --git a/docs/components/jevrouterplugin.mdx b/docs/components/jevrouterplugin.mdx index fd57392a0..c7160bce8 100644 --- a/docs/components/jevrouterplugin.mdx +++ b/docs/components/jevrouterplugin.mdx @@ -9,5 +9,5 @@ title: "JevRouterPlugin" | `allowed_models` | List[*str*] | ➖ | Alias of `models`, matching the auto-router field name. Entries from both fields are combined. | [
"anthropic/*"
] | | `cost_tier` | *Optional[str]* | ➖ | Select low, medium, high, or a cost tier configured by the operator. Overrides the live-config tier and replaces the shared routing policy with that tier. Omit to use the live configuration. On openrouter/auto-code, low and high (or auto-code-low and auto-code-high) pick a cheaper or stronger version of the Auto Code policy (xhigh and max count as high), and every other value, or a version that is not available, runs on the default Auto Code policy. Model exclusions and the router kill switch still apply. | medium | | `excluded_models` | List[*str*] | ➖ | Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. "xiaomi/*"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them. | [
"openai/gpt-6-astra",
"xiaomi/*"
] | -| `id` | [components.JevRouterPluginID](../components/jevrouterpluginid.mdx) | ✔️ | N/A | | +| `id` | [components.JevRouterPluginID](../components/jevrouterpluginid.mdx) | ✔️ | The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`. | | | `models` | List[*str*] | ➖ | Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). When no entry matches any catalog model, for example a misspelled slug, the request fails with 404 instead. `allowed_models` is an alias; entries from both fields are combined. | [
"anthropic/*",
"openai/gpt-5.6-sol"
] | \ No newline at end of file diff --git a/docs/components/jevrouterpluginid.mdx b/docs/components/jevrouterpluginid.mdx index 5eb47c20b..a05e11771 100644 --- a/docs/components/jevrouterpluginid.mdx +++ b/docs/components/jevrouterpluginid.mdx @@ -2,6 +2,8 @@ title: "JevRouterPluginID" --- +The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`. + ## Example Usage ```python diff --git a/pyproject.toml b/pyproject.toml index c7fc4f275..a649c156d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.208" +version = "1.3.209" 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 7edc16dbb..f1438eace 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.208" +__version__: str = "1.3.209" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.208 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.209 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/jevrouterplugin.py b/src/openrouter/components/jevrouterplugin.py index deed2db57..331032213 100644 --- a/src/openrouter/components/jevrouterplugin.py +++ b/src/openrouter/components/jevrouterplugin.py @@ -8,10 +8,12 @@ JevRouterPluginID = Literal["jev-router",] +r"""The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`.""" class JevRouterPluginTypedDict(TypedDict): id: JevRouterPluginID + r"""The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`.""" allowed_models: NotRequired[List[str]] r"""Alias of `models`, matching the auto-router field name. Entries from both fields are combined.""" cost_tier: NotRequired[str] @@ -24,6 +26,7 @@ class JevRouterPluginTypedDict(TypedDict): class JevRouterPlugin(BaseModel): id: JevRouterPluginID + r"""The decisions router plugin. A request may also send `decisions-router`, an alias that configures the same plugin; responses and pipeline stages report it as `jev-router`.""" allowed_models: Optional[List[str]] = None r"""Alias of `models`, matching the auto-router field name. Entries from both fields are combined.""" diff --git a/uv.lock b/uv.lock index ff4900e6e..e341f20c5 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.208" +version = "1.3.209" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 2d0a1a43f8e895a7d322b337167cb9bc3ad90a3b Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Tue, 24 Nov 2026 04:35:48 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow