Skip to content

Commit ced5271

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.2.20 (#928)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 2543f4f commit ced5271

10 files changed

Lines changed: 47 additions & 29 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: a48af6dd312a474c88edd4e459b30474
4+
docChecksum: 468cf191c8bcc65f5a8ce3e0018e2823
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.19
9-
configChecksum: db8f929cb84ef27f6368356566d95dd3
8+
releaseVersion: 1.2.20
9+
configChecksum: 86ac2705440475f5369e51fcfea3b0e5
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: a77aba72-7f21-4c38-9490-fde2c3f75dc3
15-
pristine_commit_hash: 16e15b43ebabef2fe8c1fd80ec285561d9237cf5
16-
pristine_tree_hash: 10f488efd43fe2dbcb00dc72ef17e8a8487b12d1
14+
generation_id: a5787b67-da19-4251-bef1-23ae549f5bd3
15+
pristine_commit_hash: 89e300f89f43145c9c2987065e24dac97a46e476
16+
pristine_tree_hash: b00ab492d6721240922d381ea1d29ff19a68a3ca
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -5791,8 +5791,8 @@ trackedFiles:
57915791
pristine_git_object: 6817216b64de42e834ab68a072287701e621daa8
57925792
docs/components/toolcustom.mdx:
57935793
id: b3ea2dbc7af5
5794-
last_write_checksum: sha1:b05a11b62179ab9242129b616c4ac4e24357807b
5795-
pristine_git_object: e52e0f6a01c66838f7b55e4eef45e5612a2fb4e5
5794+
last_write_checksum: sha1:3659a42c9b930d77f5aecb8be29aef877d1502de
5795+
pristine_git_object: a4ed39817c997d4e25266c25d12498e648d77190
57965796
docs/components/toolsearchservertool.mdx:
57975797
id: 827c342fe25b
57985798
last_write_checksum: sha1:62eee3897b26cfc2097be04aeb24dc578da877ec
@@ -8219,8 +8219,8 @@ trackedFiles:
82198219
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
82208220
pyproject.toml:
82218221
id: 5d07e7d72637
8222-
last_write_checksum: sha1:436f8d3098e3248e6e0f26d8d8a6fcaca4992052
8223-
pristine_git_object: adf7aebe740b587f93cd26db0caf61d76f4b9f6f
8222+
last_write_checksum: sha1:d840d09771e9321a247c7798346f48f4c79f82d2
8223+
pristine_git_object: cdec75962905ef0fde47759c28b7b74e62744f5a
82248224
scripts/prepare_readme.py:
82258225
id: e0c5957a6035
82268226
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8247,8 +8247,8 @@ trackedFiles:
82478247
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
82488248
src/openrouter/_version.py:
82498249
id: d8d15ad6c586
8250-
last_write_checksum: sha1:671b03df56863efa19d966a9e87d1337d826f068
8251-
pristine_git_object: 6aa88e3d294eeae41c19317dfafad6f2a69d5e7c
8250+
last_write_checksum: sha1:4bede80cef633b1474c61639cde1ddfcd62ddce9
8251+
pristine_git_object: 414f7141481e8394c8e826a4ae4fd1acbdd88228
82528252
src/openrouter/alpha.py:
82538253
id: 306c4d93308d
82548254
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -9819,8 +9819,8 @@ trackedFiles:
98199819
pristine_git_object: 7e69d1f775baece5f94b03d35bcd884d5e6f519d
98209820
src/openrouter/components/messagesrequest.py:
98219821
id: 72b1f339024d
9822-
last_write_checksum: sha1:5bfa56761972b32daba5d10eef1ed30ded1adf24
9823-
pristine_git_object: 3f54e45bfad8e67704e3581071fe4d9dc7090af9
9822+
last_write_checksum: sha1:b5abcd9ebdda9e2f62b497d2376bcd798108db64
9823+
pristine_git_object: abb8605093cfb0af7babc6cf8acda945b5c12845
98249824
src/openrouter/components/messagessearchmodelsservertool.py:
98259825
id: 53d755edb120
98269826
last_write_checksum: sha1:389786fc22ba4bb47b0a086b7aa321f2f04fe943
@@ -15076,4 +15076,4 @@ examples:
1507615076
"529":
1507715077
application/json: {"error": {"code": 529, "message": "Provider returned error"}}
1507815078
examplesVersion: 1.0.2
15079-
releaseNotes: "## Python SDK Changes:\n* `open_router.chat.send()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n* `open_router.presets.create_presets_messages()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n* `open_router.responses.send()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n* `open_router.beta.responses.send()`: \n * `request.plugins[].union(switchyard-router)` **Added**\n"
15079+
releaseNotes: "## Python SDK Changes:\n* `open_router.presets.create_presets_messages()`: \n * `request.tools[].union(class (0)).strict` **Added**\n"

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 1.2.19
39+
version: 1.2.20
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15178,6 +15178,8 @@ components:
1517815178
type: 'object'
1517915179
name:
1518015180
type: 'string'
15181+
strict:
15182+
type: 'boolean'
1518115183
type:
1518215184
enum:
1518315185
- 'custom'

‎.speakeasy/workflow.lock‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:9c27444c53f6e5272e398439da5de1625f993021d2455c6cdc6a9e32ac29189d
6-
sourceBlobDigest: sha256:3af7d1d4972b8c2a6f130e4b7d18023e94770ccb7c0fcebed53254e716be6f8b
5+
sourceRevisionDigest: sha256:9096e3c973fe03b2d2e126bc0b659394df4714d4f5986c8b092ff2e7e76a1307
6+
sourceBlobDigest: sha256:b8d713fe553a23ae7ac006f621b79a0a0f4831e7da12d114623f15e168407379
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:9c27444c53f6e5272e398439da5de1625f993021d2455c6cdc6a9e32ac29189d
15-
sourceBlobDigest: sha256:3af7d1d4972b8c2a6f130e4b7d18023e94770ccb7c0fcebed53254e716be6f8b
14+
sourceRevisionDigest: sha256:9096e3c973fe03b2d2e126bc0b659394df4714d4f5986c8b092ff2e7e76a1307
15+
sourceBlobDigest: sha256:b8d713fe553a23ae7ac006f621b79a0a0f4831e7da12d114623f15e168407379
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:a55706fcf2a8e9dc8a6c0204885105962047838f93baeac31e5d595ef80678cf
17+
codeSamplesRevisionDigest: sha256:3d584eb544edd3781554d297a528027bee5c37b707cbe53974ab972a33fb4f6e
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

‎RELEASES.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2599,4 +2599,14 @@ Based on:
25992599
### Generated
26002600
- [python v1.2.19] .
26012601
### Releases
2602-
- [PyPI v1.2.19] https://pypi.org/project/openrouter/1.2.19 - .
2602+
- [PyPI v1.2.19] https://pypi.org/project/openrouter/1.2.19 - .
2603+
2604+
## 2026-09-23 14:53:31
2605+
### Changes
2606+
Based on:
2607+
- OpenAPI Doc
2608+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2609+
### Generated
2610+
- [python v1.2.20] .
2611+
### Releases
2612+
- [PyPI v1.2.20] https://pypi.org/project/openrouter/1.2.20 - .

‎docs/components/toolcustom.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ title: "ToolCustom"
1111
| `description` | *Optional[str]* | :heavy_minus_sign: | N/A | |
1212
| `input_schema` | [components.InputSchema](../components/inputschema.mdx) | :heavy_check_mark: | N/A | |
1313
| `name` | *str* | :heavy_check_mark: | N/A | |
14+
| `strict` | *Optional[bool]* | :heavy_minus_sign: | N/A | |
1415
| `type` | [Optional[components.ToolTypeCustom]](../components/tooltypecustom.mdx) | :heavy_minus_sign: | N/A | |

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "1.2.19"
3+
version = "1.2.20"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

‎src/openrouter/_version.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "openrouter"
6-
__version__: str = "1.2.19"
6+
__version__: str = "1.2.20"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.2.19 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.2.20 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

‎src/openrouter/components/messagesrequest.py‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ class ToolCustomTypedDict(TypedDict):
10341034
r"""Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format."""
10351035
defer_loading: NotRequired[bool]
10361036
description: NotRequired[str]
1037+
strict: NotRequired[bool]
10371038
type: NotRequired[ToolTypeCustom]
10381039

10391040

@@ -1049,11 +1050,15 @@ class ToolCustom(BaseModel):
10491050

10501051
description: Optional[str] = None
10511052

1053+
strict: Optional[bool] = None
1054+
10521055
type: Optional[ToolTypeCustom] = None
10531056

10541057
@model_serializer(mode="wrap")
10551058
def serialize_model(self, handler):
1056-
optional_fields = set(["cache_control", "defer_loading", "description", "type"])
1059+
optional_fields = set(
1060+
["cache_control", "defer_loading", "description", "strict", "type"]
1061+
)
10571062
serialized = handler(self)
10581063
m = {}
10591064

@@ -1083,8 +1088,8 @@ def serialize_model(self, handler):
10831088
ToolTextEditor20250124TypedDict,
10841089
ToolBash20250124TypedDict,
10851090
AnthropicToolSearchToolBm25TypedDict,
1086-
ToolCustomTypedDict,
10871091
AnthropicToolSearchToolRegexTypedDict,
1092+
ToolCustomTypedDict,
10881093
ToolWebSearch20250305TypedDict,
10891094
ToolAdvisor20260301TypedDict,
10901095
ToolWebSearch20260209TypedDict,
@@ -1107,8 +1112,8 @@ def serialize_model(self, handler):
11071112
ToolTextEditor20250124,
11081113
ToolBash20250124,
11091114
AnthropicToolSearchToolBm25,
1110-
ToolCustom,
11111115
AnthropicToolSearchToolRegex,
1116+
ToolCustom,
11121117
ToolWebSearch20250305,
11131118
ToolAdvisor20260301,
11141119
ToolWebSearch20260209,

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)