diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock
index 779bf6f2..553a159b 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: ba1d3c75b4a3f40658b4c167d102ed7f
+ docChecksum: 6c80a5c3a1a288676b10856c3146c220
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
- releaseVersion: 1.1.125
- configChecksum: e2540b1c4f978cb37738e02d8f7837c0
+ releaseVersion: 1.1.126
+ configChecksum: 276752e163707095c09e1a91c01b2f99
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
- generation_id: e95ba7a7-2e7e-4a40-9382-68fe4f557fe8
- pristine_commit_hash: e763b09fcded56f1f98236cb5479ba6172440454
- pristine_tree_hash: 2f13debeec1bc327cb77233caa5e257563b18b48
+ generation_id: bdd137c8-f325-4fd9-9054-1e923b9a96c5
+ pristine_commit_hash: 1a9659ca8695f38619c7245fba1d613805d9ff07
+ pristine_tree_hash: b9e4e3507e68ae8c19d95803f1b8f1be29acc534
features:
python:
acceptHeaders: 3.0.0
@@ -762,8 +762,8 @@ trackedFiles:
pristine_git_object: 09464da84a2c1e57d9c6d7abda98254de075a858
docs/components/bashservertoolconfig.mdx:
id: 7c7f1dd1cc47
- last_write_checksum: sha1:1a797d8d0af2f0fdaa01f62c1e6f4e1b3d1969de
- pristine_git_object: 868659fff55fc2bebd154d902979c571998297dd
+ last_write_checksum: sha1:939c847b027debc63c242238aa04fb49a015cdbc
+ pristine_git_object: 647f6d85e9cb54cf55b8a2c49ba1b2131993067c
docs/components/bashservertoolengine.mdx:
id: d0779ee68ded
last_write_checksum: sha1:68e15335058a5c91b1e3fc74efa5e5d3767ad0fa
@@ -5022,8 +5022,8 @@ trackedFiles:
pristine_git_object: 0f55c3798873d7c5583fd06187cb7a9566bcc5b9
docs/components/shellservertoolconfig.mdx:
id: 5958cff854db
- last_write_checksum: sha1:8eae24960bc29a0446419cb016c0c82d895d959f
- pristine_git_object: 5e52a3e5eecc86f483d9bd83554b6f3df564e451
+ last_write_checksum: sha1:4da377fdef8d6369232b08f31bc31153f88c8b1c
+ pristine_git_object: 9cac9be94ab07f98b08c3f228c043084f1ff9f4e
docs/components/shellservertoolengine.mdx:
id: afea02c824ea
last_write_checksum: sha1:2c179cb81f553cad5ebf67e42230b011a4e01b7f
@@ -7642,8 +7642,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
- last_write_checksum: sha1:0198822445c48b4cb316d4421225233d6ffe4583
- pristine_git_object: 1c4c357149f466128c4cc214482b18b404f90d98
+ last_write_checksum: sha1:7db4ebb7639dbbac84829c8de333590c35a7a444
+ pristine_git_object: b61207e21f11631713adc5ed9ac893f678be8a47
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7670,8 +7670,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
- last_write_checksum: sha1:8b5c581ea5986ad71b87f84e7a5a5c350962a3c1
- pristine_git_object: cf01c478bc81fd9f72814c7bc685b403874633e2
+ last_write_checksum: sha1:76c3287d1ce867a3ca484ababba13c9cbfbc2252
+ pristine_git_object: 96f2672085a3e8173d8d144b54c26e03594e62d9
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -8018,8 +8018,8 @@ trackedFiles:
pristine_git_object: b2a50762374284e45d7850991774618c9367c488
src/openrouter/components/bashservertoolconfig.py:
id: c8c5bf3fd9a8
- last_write_checksum: sha1:9a8800cea1f3e1cb0337bc7d592b9d25f298d697
- pristine_git_object: 7f6fc452db272ec0e79367f7408f24c426916989
+ last_write_checksum: sha1:6bf63c136f1380c5ee822973bcc8726f3327af9f
+ pristine_git_object: 8162bbdc3ebd5a98ce49ad2815d7a7da4430e7ce
src/openrouter/components/bashservertoolengine.py:
id: 4648c91620a8
last_write_checksum: sha1:a4bc825f816c6207d69d3ca51098d05d14b0d69a
@@ -9838,8 +9838,8 @@ trackedFiles:
pristine_git_object: 0778136a1b4e03775ab17f69f3536f06e98e0cf9
src/openrouter/components/shellservertoolconfig.py:
id: eab9ca1aa376
- last_write_checksum: sha1:8071a91e9449637707a19ab00e535b925953e6da
- pristine_git_object: c9a40551ef718008f102b2a228c114b32141d7ac
+ last_write_checksum: sha1:bb1f8a303a3192f0f667eaee467dba4ef134e4e1
+ pristine_git_object: c587ab9fa76a37981f7fc58b418bce9050806077
src/openrouter/components/shellservertoolengine.py:
id: 8a1dda027cc3
last_write_checksum: sha1:d8dd2e5aa21fd779a52853a0c496ed7a16d99bc4
@@ -12870,4 +12870,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
-releaseNotes: "## Python SDK Changes:\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n* `open_router.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `open_router.chat.send()`: \n * `request.messages[].union(system).configuration_update` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(system).configuration_update` **Added**\n"
diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml
index c4f43424..903433a0 100644
--- a/.speakeasy/gen.yaml
+++ b/.speakeasy/gen.yaml
@@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
- version: 1.1.125
+ version: 1.1.126
additionalDependencies:
dev: {}
main: {}
diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml
index 3f099484..0a396669 100644
--- a/.speakeasy/out.openapi.yaml
+++ b/.speakeasy/out.openapi.yaml
@@ -23605,8 +23605,8 @@ components:
type: 'string'
x-speakeasy-unknown-values: allow
SandboxSleepAfterSeconds:
- description: 'How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours).'
- example: 900
+ description: 'How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours).'
+ example: 300
type: 'integer'
ScimGroup:
example:
diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock
index 82b00ecc..b7292613 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:fe68934de0241faaa0be79a25a53510c2312c2c549e16fb0e762bdde8a6ca810
- sourceBlobDigest: sha256:77f48394e5763e22871be36256bbf1f8fd35703943c0226ff5c45c4e04ac37c0
+ sourceRevisionDigest: sha256:359e29756fe670f1e04f2775a2ee1814e2141728d767fba72744fb59a73ce9d5
+ sourceBlobDigest: sha256:0c6bdbbcf39f2eb7cb18ec81018ec47ca8ba285848184a06f803d46be51f8229
tags:
- latest
- 1.0.0
@@ -11,10 +11,10 @@ targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
- sourceRevisionDigest: sha256:fe68934de0241faaa0be79a25a53510c2312c2c549e16fb0e762bdde8a6ca810
- sourceBlobDigest: sha256:77f48394e5763e22871be36256bbf1f8fd35703943c0226ff5c45c4e04ac37c0
+ sourceRevisionDigest: sha256:359e29756fe670f1e04f2775a2ee1814e2141728d767fba72744fb59a73ce9d5
+ sourceBlobDigest: sha256:0c6bdbbcf39f2eb7cb18ec81018ec47ca8ba285848184a06f803d46be51f8229
codeSamplesNamespace: open-router-python-code-samples
- codeSamplesRevisionDigest: sha256:15f3b8b94388a9edd95b43f61d7d705a8e1b817abd38aab965f6037aca299e73
+ codeSamplesRevisionDigest: sha256:2cd6a99013481706110a6e2723554ce8fece2ca5ce657d8f69626c6c3e67b569
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
diff --git a/RELEASES.md b/RELEASES.md
index 2ca5b105..118053c2 100644
--- a/RELEASES.md
+++ b/RELEASES.md
@@ -2039,4 +2039,14 @@ Based on:
### Generated
- [python v1.1.125] .
### Releases
-- [PyPI v1.1.125] https://pypi.org/project/openrouter/1.1.125 - .
\ No newline at end of file
+- [PyPI v1.1.125] https://pypi.org/project/openrouter/1.1.125 - .
+
+## 2026-09-04 20:09:12
+### Changes
+Based on:
+- OpenAPI Doc
+- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
+### Generated
+- [python v1.1.126] .
+### Releases
+- [PyPI v1.1.126] https://pypi.org/project/openrouter/1.1.126 - .
\ No newline at end of file
diff --git a/docs/components/bashservertoolconfig.mdx b/docs/components/bashservertoolconfig.mdx
index 868659ff..647f6d85 100644
--- a/docs/components/bashservertoolconfig.mdx
+++ b/docs/components/bashservertoolconfig.mdx
@@ -11,4 +11,4 @@ Configuration for the openrouter:bash server tool
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `engine` | [Optional[components.BashServerToolEngine]](../components/bashservertoolengine.mdx) | :heavy_minus_sign: | Which bash engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) and "native" use native passthrough, returning the tool call to your application to run client-side; OpenRouter does not execute the commands. | auto |
| `environment` | [Optional[components.BashServerToolEnvironment]](../components/bashservertoolenvironment.mdx) | :heavy_minus_sign: | Execution environment for the bash server tool. | \{
"type": "container_auto"
} |
-| `sleep_after_seconds` | *Optional[int]* | :heavy_minus_sign: | How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours). | 900 |
\ No newline at end of file
+| `sleep_after_seconds` | *Optional[int]* | :heavy_minus_sign: | How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours). | 300 |
\ No newline at end of file
diff --git a/docs/components/shellservertoolconfig.mdx b/docs/components/shellservertoolconfig.mdx
index 5e52a3e5..9cac9be9 100644
--- a/docs/components/shellservertoolconfig.mdx
+++ b/docs/components/shellservertoolconfig.mdx
@@ -11,4 +11,4 @@ Configuration for the openrouter:shell server tool
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `engine` | [Optional[components.ShellServerToolEngine]](../components/shellservertoolengine.mdx) | :heavy_minus_sign: | Which shell engine to use. "openrouter" runs commands server-side in the OpenRouter sandbox. "auto" (default) keeps the provider's native hosted shell when available (OpenAI); on other providers the call is routed to the OpenRouter sandbox. | openrouter |
| `environment` | [Optional[components.ShellServerToolEnvironment]](../components/shellservertoolenvironment.mdx) | :heavy_minus_sign: | Server-side execution environment for the shell tool. Only container-backed environments are supported; "local" shells are not. | \{
"type": "container_auto"
} |
-| `sleep_after_seconds` | *Optional[int]* | :heavy_minus_sign: | How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours). | 900 |
\ No newline at end of file
+| `sleep_after_seconds` | *Optional[int]* | :heavy_minus_sign: | How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours). | 300 |
\ No newline at end of file
diff --git a/pyproject.toml b/pyproject.toml
index 1c4c3571..b61207e2 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
-version = "1.1.125"
+version = "1.1.126"
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 cf01c478..96f26720 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.125"
+__version__: str = "1.1.126"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
-__user_agent__: str = "speakeasy-sdk/python 1.1.125 2.914.0 1.0.0 openrouter"
+__user_agent__: str = "speakeasy-sdk/python 1.1.126 2.914.0 1.0.0 openrouter"
try:
if __package__ is not None:
diff --git a/src/openrouter/components/bashservertoolconfig.py b/src/openrouter/components/bashservertoolconfig.py
index 7f6fc452..8162bbdc 100644
--- a/src/openrouter/components/bashservertoolconfig.py
+++ b/src/openrouter/components/bashservertoolconfig.py
@@ -20,7 +20,7 @@ class BashServerToolConfigTypedDict(TypedDict):
environment: NotRequired[BashServerToolEnvironmentTypedDict]
r"""Execution environment for the bash server tool."""
sleep_after_seconds: NotRequired[int]
- r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours)."""
+ r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours)."""
class BashServerToolConfig(BaseModel):
@@ -33,7 +33,7 @@ class BashServerToolConfig(BaseModel):
r"""Execution environment for the bash server tool."""
sleep_after_seconds: Optional[int] = None
- r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours)."""
+ r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours)."""
@model_serializer(mode="wrap")
def serialize_model(self, handler):
diff --git a/src/openrouter/components/shellservertoolconfig.py b/src/openrouter/components/shellservertoolconfig.py
index c9a40551..c587ab9f 100644
--- a/src/openrouter/components/shellservertoolconfig.py
+++ b/src/openrouter/components/shellservertoolconfig.py
@@ -20,7 +20,7 @@ class ShellServerToolConfigTypedDict(TypedDict):
environment: NotRequired[ShellServerToolEnvironmentTypedDict]
r"""Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not."""
sleep_after_seconds: NotRequired[int]
- r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours)."""
+ r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours)."""
class ShellServerToolConfig(BaseModel):
@@ -33,7 +33,7 @@ class ShellServerToolConfig(BaseModel):
r"""Server-side execution environment for the shell tool. Only container-backed environments are supported; \"local\" shells are not."""
sleep_after_seconds: Optional[int] = None
- r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 900 (15 minutes); capped at 14400 (4 hours)."""
+ r"""How long (in seconds) the container stays warm after its last command before sleeping, freeing its capacity slot. Idle-based: each command renews the timer. Defaults to 300 (5 minutes); capped at 14400 (4 hours)."""
@model_serializer(mode="wrap")
def serialize_model(self, handler):
diff --git a/uv.lock b/uv.lock
index 43286310..5303c0f2 100644
--- a/uv.lock
+++ b/uv.lock
@@ -213,7 +213,7 @@ wheels = [
[[package]]
name = "openrouter"
-version = "1.1.125"
+version = "1.1.126"
source = { editable = "." }
dependencies = [
{ name = "httpcore" },