From 9f7bc7b35b4846ebefc7fcb7dcab77b6120f8a90 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 18 Nov 2026 15:27:07 +0000 Subject: [PATCH 1/2] =?UTF-8?q?##=20Python=20SDK=20Changes:=20*=20`open=5F?= =?UTF-8?q?router.batch.create=5Fbatches()`:=20=20`response.results[].resp?= =?UTF-8?q?onse.body.union(class=20(0)).choices[].message.reasoning=5Fdeta?= =?UTF-8?q?ils[].union(reasoning.encrypted).format`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`open=5Frouter.batch.get=5Fbatc?= =?UTF-8?q?hes()`:=20=20`response.results[].response.body.union(class=20(0?= =?UTF-8?q?)).choices[].message.reasoning=5Fdetails[].union(reasoning.summ?= =?UTF-8?q?ary).format`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20?= =?UTF-8?q?*=20`open=5Frouter.presets.create=5Fpresets=5Fchat=5Fcompletion?= =?UTF-8?q?s()`:=20=20=20*=20=20`request.messages[].union(assistant).reaso?= =?UTF-8?q?ning=5Fdetails[].union(reasoning.text).format`=20**Changed**=20?= =?UTF-8?q?(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`open=5Frouter.presets.cr?= =?UTF-8?q?eate=5Fpresets=5Fresponses()`:=20=20=20*=20=20`request.input.un?= =?UTF-8?q?ion(Array<>)[].union(class=20(8)).format`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 33 +++++++++----------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 2 +- .speakeasy/workflow.lock | 10 +++--- RELEASES.md | 12 ++++++- docs/components/reasoningformat.mdx | 2 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 +-- src/openrouter/components/reasoningformat.py | 2 +- uv.lock | 2 +- 10 files changed, 39 insertions(+), 32 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 671923824..be030d7db 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: c3d2c7c67149470fd14184d4be2221f1 + docChecksum: bce4625a0a7852b5961b8cb003f7a5e8 docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.186 - configChecksum: f6be9d5f546a166094bacface3d9f2d0 + releaseVersion: 1.3.187 + configChecksum: 72e3bf08a83f507b038f682a11c1b0a3 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 8798e2c7-daf2-4411-b95c-3a512ec30d75 - pristine_commit_hash: 9ce8559362251b995621240b568a7dc4ae84d545 - pristine_tree_hash: cb88ba956d63fd61af932284ad92319d1d64d816 + generation_id: 0c857963-48ab-48b3-8235-b301f97629ac + pristine_commit_hash: a2a42c18cc66cd4a820559dd68c074ae941cb0f1 + pristine_tree_hash: 7891dfe306c1d586936aefd3dc2cd6224ee68f0c features: python: acceptHeaders: 3.0.0 @@ -7588,8 +7588,8 @@ trackedFiles: pristine_git_object: 2cfb4301a444ee320895855dd98311aaca93363b docs/components/reasoningformat.mdx: id: ad8b386fc1e9 - last_write_checksum: sha1:8be16efd08f2345b3e43881a8ea4055653f5e18d - pristine_git_object: e22c123e9aae6e7bc0f2dcc90cc238cc084eb670 + last_write_checksum: sha1:1fa124f6bbc65b99ae6d739c6f7f16232211ead5 + pristine_git_object: 5e58948c27bece9ed882b58b9d3010583d265756 docs/components/reasoningitem.mdx: id: b878124ede47 last_write_checksum: sha1:5a88204a7e17fb83a74d12b935d3becceb75cd87 @@ -11684,8 +11684,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:af93296a222f4da989cde038f614264147bf7829 - pristine_git_object: cf6f800c46f162e2bf48db93da7d9c6ae2edf08b + last_write_checksum: sha1:d1c2cc56cf80a9f8c0afcee3ba440b92c28651b5 + pristine_git_object: 21f2536d31cd1d4803e7dfdbf87cc2649d30fbe6 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -11712,8 +11712,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:f3ea669c9aa153d7776155e0edfdc6ddae6ab6a0 - pristine_git_object: 29547d1efa57af5d7af4669a9295f40595273dd3 + last_write_checksum: sha1:e433a38e17b0ca982218dbf882771a8bbfcb16c2 + pristine_git_object: 1c365cf5b05473fb3ff6aad9795bc300f80166eb src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -14816,8 +14816,8 @@ trackedFiles: pristine_git_object: fe3562c76fc28d2f8cacd49a12c0a0500b069147 src/openrouter/components/reasoningformat.py: id: 99d79e5500b6 - last_write_checksum: sha1:fe20d28a739fa6441dba2367a2ec9aec155ecc73 - pristine_git_object: b198d61ebca2fa6e97dc15a7175f551e8bc45198 + last_write_checksum: sha1:22d47c81313606460e3e54ff73140a8772d1ac3e + pristine_git_object: 7745dbe829fb9eba7eff56c276643c9e1eafc827 src/openrouter/components/reasoningitem.py: id: 4345f446ad97 last_write_checksum: sha1:609a0510506f8dc70ca9cba07040b82ebdc9ec9f @@ -21727,7 +21727,4 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: | - ## Python SDK Changes: - * `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult).input_transformations` **Added** - * `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult).input_transformations` **Added** +releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.encrypted).format` **Changed** (Breaking ⚠️)\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(class (0)).choices[].message.reasoning_details[].union(reasoning.summary).format` **Changed** (Breaking ⚠️)\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(assistant).reasoning_details[].union(reasoning.text).format` **Changed** (Breaking ⚠️)\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(class (8)).format` **Changed** (Breaking ⚠️)\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index b4aad0623..fe9b676e4 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.186 + version: 1.3.187 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index cd46143ce..a3df2edbd 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -32489,7 +32489,7 @@ components: - 'bedrock-xai-responses-v1' - 'xai-responses-v1' - 'meta-responses-v1' - - 'google-vertex-responses-v1' + - 'google-vertex-meta-responses-v1' - 'openrouter-stealth-v1' - 'anthropic-claude-v1' - 'google-gemini-v1' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0956368da..b24efa5a7 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:9886bcc16fa2e36800c4b1c72a014bc912ec44c67d9803750373c6a53fe7588e - sourceBlobDigest: sha256:7bbff4cb0e4ed9813916e9544e3d895563828f569b30501e17b47e6f33f0a5d3 + sourceRevisionDigest: sha256:a7c40f67f546633a074f032512e6b96b024bd8ee397a9063d75a5a86d9bfe8c0 + sourceBlobDigest: sha256:ae11555edfc435ff02e9d072c4a406691bf24e43378f55b28e29cb389726849e tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:9886bcc16fa2e36800c4b1c72a014bc912ec44c67d9803750373c6a53fe7588e - sourceBlobDigest: sha256:7bbff4cb0e4ed9813916e9544e3d895563828f569b30501e17b47e6f33f0a5d3 + sourceRevisionDigest: sha256:a7c40f67f546633a074f032512e6b96b024bd8ee397a9063d75a5a86d9bfe8c0 + sourceBlobDigest: sha256:ae11555edfc435ff02e9d072c4a406691bf24e43378f55b28e29cb389726849e codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:79b437d0d6c7de89d1aafc4a637c05b6e73188f33b2f7f2e848bd0fa33a708ed + codeSamplesRevisionDigest: sha256:2b552ebda7de060d0803e1bd694f28c46d40e1247bdd779979e0db4464dc9fda workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index c39a83530..b4a8ee61d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4629,4 +4629,14 @@ Based on: ### Generated - [python v1.3.186] . ### Releases -- [PyPI v1.3.186] https://pypi.org/project/openrouter/1.3.186 - . \ No newline at end of file +- [PyPI v1.3.186] https://pypi.org/project/openrouter/1.3.186 - . + +## 2026-11-18 15:23:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.187] . +### Releases +- [PyPI v1.3.187] https://pypi.org/project/openrouter/1.3.187 - . \ No newline at end of file diff --git a/docs/components/reasoningformat.mdx b/docs/components/reasoningformat.mdx index e22c123e9..5e58948c2 100644 --- a/docs/components/reasoningformat.mdx +++ b/docs/components/reasoningformat.mdx @@ -23,7 +23,7 @@ This is an open enum. Unrecognized values will not fail type checks. - `"bedrock-xai-responses-v1"` - `"xai-responses-v1"` - `"meta-responses-v1"` -- `"google-vertex-responses-v1"` +- `"google-vertex-meta-responses-v1"` - `"openrouter-stealth-v1"` - `"anthropic-claude-v1"` - `"google-gemini-v1"` diff --git a/pyproject.toml b/pyproject.toml index cf6f800c4..21f2536d3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.186" +version = "1.3.187" 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 29547d1ef..1c365cf5b 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.186" +__version__: str = "1.3.187" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.186 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.187 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/reasoningformat.py b/src/openrouter/components/reasoningformat.py index b198d61eb..7745dbe82 100644 --- a/src/openrouter/components/reasoningformat.py +++ b/src/openrouter/components/reasoningformat.py @@ -14,7 +14,7 @@ "bedrock-xai-responses-v1", "xai-responses-v1", "meta-responses-v1", - "google-vertex-responses-v1", + "google-vertex-meta-responses-v1", "openrouter-stealth-v1", "anthropic-claude-v1", "google-gemini-v1", diff --git a/uv.lock b/uv.lock index 9aa69af23..af8a458e0 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.186" +version = "1.3.187" source = { editable = "." } dependencies = [ { name = "httpcore" }, From b309b33ba5bdbc6e006a915f88c4dc083017c220 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 18 Nov 2026 15:27:15 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow