Skip to content

Commit c70c686

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

13 files changed

Lines changed: 146 additions & 29 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 30 additions & 18 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: 8c4d4967819782de637ac877bf680bb4
4+
docChecksum: 49cab31e26e4f51cca85c9189dd52233
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.99
9-
configChecksum: 1934b1366779d2fd11e23ef757079a67
8+
releaseVersion: 1.1.100
9+
configChecksum: afd476ac9e62663f18d8926666a3f9ce
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: f79644c8-8faa-4aac-9971-da3177741570
15-
pristine_commit_hash: 4b94f324af3cc637aabc2d65eed38ad86cbfe0ce
16-
pristine_tree_hash: c24fd5861a7734f941a68257c1a5e1752ac371ac
14+
generation_id: 1e71a3e4-0580-4769-a022-dc9d7d47323b
15+
pristine_commit_hash: a24464569a16d2b504febca7df87f23df1fc7118
16+
pristine_tree_hash: 744b8c7893729f867d09b9a4a12ea539d75f794a
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -4426,8 +4426,8 @@ trackedFiles:
44264426
pristine_git_object: 5aa8e90a6761d61aa63204bc3aa73f4481449d3e
44274427
docs/components/publicendpoint.mdx:
44284428
id: ec4843ef5d86
4429-
last_write_checksum: sha1:e8078801c9a7135d9f841ac1fffe44e7eabc53be
4430-
pristine_git_object: 4201c433326975294dc8b896356859f93bd48368
4429+
last_write_checksum: sha1:cc81fa2e66c0f573baccacd6459fa6291cab6e06
4430+
pristine_git_object: 9b1b04fa64839f8a7ef14593d9dd4080003257f1
44314431
docs/components/publicpricing.mdx:
44324432
id: 61fb18b7ff94
44334433
last_write_checksum: sha1:e241420249fcbd1bf515b0f5e84934de0b207948
@@ -5240,6 +5240,10 @@ trackedFiles:
52405240
id: a65f80fb91da
52415241
last_write_checksum: sha1:561f5d9c0cf863b470e54961fb76a80dd96268a6
52425242
pristine_git_object: a042d8988f10a8cc18359547049853a409ad116b
5243+
docs/components/toolchoicesupport.mdx:
5244+
id: 341c02a7f9af
5245+
last_write_checksum: sha1:7536da2d154a06add9ee3c8a9ec908cec117f0f9
5246+
pristine_git_object: 9b95b3df7efa855e4757420f028fa5491851c525
52435247
docs/components/toolchoicetool.mdx:
52445248
id: 909ad21233d2
52455249
last_write_checksum: sha1:1d54c7dc7ebecdc917f17ec7a49c60e66b2c7bde
@@ -7394,8 +7398,8 @@ trackedFiles:
73947398
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
73957399
pyproject.toml:
73967400
id: 5d07e7d72637
7397-
last_write_checksum: sha1:8a1ac5ce02efb21b0be26eb68cfa84e3b3dcc49b
7398-
pristine_git_object: cb27695fa28b45f4f7b4ccbabbb2522440bde938
7401+
last_write_checksum: sha1:e19c450ae5c7d4034841798a72d47cf2c20c2d67
7402+
pristine_git_object: 694759bb6af031de308de67fdf6322f0192bb9b0
73997403
scripts/prepare_readme.py:
74007404
id: e0c5957a6035
74017405
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7422,8 +7426,8 @@ trackedFiles:
74227426
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
74237427
src/openrouter/_version.py:
74247428
id: d8d15ad6c586
7425-
last_write_checksum: sha1:46e9c850f3080f65041bc77aed50f4d962e185dd
7426-
pristine_git_object: 5a7265f202b696bc58b9d6089e8889b3d2758d4c
7429+
last_write_checksum: sha1:f8dc837367e182bc774e0e8b885b1d87c9cee422
7430+
pristine_git_object: e80760efad905fb006fc95e91a48f3c85911c072
74277431
src/openrouter/analytics.py:
74287432
id: cb406b5aaabb
74297433
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -7462,8 +7466,8 @@ trackedFiles:
74627466
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
74637467
src/openrouter/components/__init__.py:
74647468
id: 81754e97b3f4
7465-
last_write_checksum: sha1:f4c4bb5c830aba7e295ae9be7f4e28b8ae53e47b
7466-
pristine_git_object: 61b6c37c4e475bd7a390cd0f701dbe9efb397ca8
7469+
last_write_checksum: sha1:0a10488fc9dde745709dec391b0f28fe33dc272a
7470+
pristine_git_object: ea03eda8ae0697b247dbed86d0e512287e55a61f
74677471
src/openrouter/components/aabenchmarkentry.py:
74687472
id: e2e0f0b48c82
74697473
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -9302,8 +9306,8 @@ trackedFiles:
93029306
pristine_git_object: 1798ae9dd8c2e4b629bb99cc5c643827895e8231
93039307
src/openrouter/components/publicendpoint.py:
93049308
id: 848aa2ef9129
9305-
last_write_checksum: sha1:314bfa0b6229f9e45f59a0c5a832c8ace8612a52
9306-
pristine_git_object: 403d1434866e32a04dca2c793e70914d924d5ca3
9309+
last_write_checksum: sha1:6ca6cfb03234dfd54a121e7b2d5a1fc371e09ea7
9310+
pristine_git_object: 182e3034b8dd4fb9308382fc6ed7eafdc3400abb
93079311
src/openrouter/components/publicpricing.py:
93089312
id: 96d115d83cc5
93099313
last_write_checksum: sha1:fd8c320ac83b282eaf2405045329b55076d4311a
@@ -9704,6 +9708,10 @@ trackedFiles:
97049708
id: 9e2a14e87eac
97059709
last_write_checksum: sha1:b969135c75e9671fbbb6bc7a325968acacec07c7
97069710
pristine_git_object: 4ad8b7e6ed164dbe62f17aabed7352319c8bbe26
9711+
src/openrouter/components/toolchoicesupport.py:
9712+
id: a46dc874f6c8
9713+
last_write_checksum: sha1:b7d04d0b4d2ed2c052007e4d00e7857a9f70f5c7
9714+
pristine_git_object: 0042e076baa780911493aad1ed66975fc321045b
97079715
src/openrouter/components/toolsearchservertool.py:
97089716
id: 3aa6de41ca07
97099717
last_write_checksum: sha1:21dc898a1519400cbfbda4aa35eda60a9dcbf668
@@ -10870,7 +10878,7 @@ examples:
1087010878
slug: "gpt-4"
1087110879
responses:
1087210880
"200":
10873-
application/json: {"data": {"architecture": {"input_modalities": ["text"], "instruct_type": "chatml", "modality": "text->text", "output_modalities": ["text"], "tokenizer": "GPT"}, "created": 1692901234, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", "endpoints": [{"context_length": 8192, "latency_last_30m": {"p50": 0.25, "p75": 0.35, "p90": 0.48, "p99": 0.85}, "max_completion_tokens": 4096, "max_prompt_tokens": 8192, "model_id": "openai/gpt-4", "model_name": "GPT-4", "name": "OpenAI: GPT-4", "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "provider_name": "OpenAI", "quantization": "fp16", "supported_parameters": ["temperature", "top_p", "max_tokens"], "supports_implicit_caching": true, "supports_voice_cloning": false, "tag": "openai", "throughput_last_30m": {"p50": 45.2, "p75": 38.5, "p90": 28.3, "p99": 15.1}, "uptime_last_1d": 99.8, "uptime_last_30m": 99.5, "uptime_last_5m": 100}], "id": "openai/gpt-4", "name": "GPT-4"}}
10881+
application/json: {"data": {"architecture": {"input_modalities": ["text"], "instruct_type": "chatml", "modality": "text->text", "output_modalities": ["text"], "tokenizer": "GPT"}, "created": 1692901234, "description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.", "endpoints": [{"context_length": 8192, "latency_last_30m": {"p50": 0.25, "p75": 0.35, "p90": 0.48, "p99": 0.85}, "max_completion_tokens": 4096, "max_prompt_tokens": 8192, "model_id": "openai/gpt-4", "model_name": "GPT-4", "name": "OpenAI: GPT-4", "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "provider_name": "OpenAI", "quantization": "fp16", "supported_parameters": ["temperature", "top_p", "max_tokens"], "supports_implicit_caching": true, "supports_tool_choice": {"auto": true, "function": true, "none": true, "required": true}, "supports_voice_cloning": false, "tag": "openai", "throughput_last_30m": {"p50": 45.2, "p75": 38.5, "p90": 28.3, "p99": 15.1}, "uptime_last_1d": 99.8, "uptime_last_30m": 99.5, "uptime_last_5m": 100}], "id": "openai/gpt-4", "name": "GPT-4"}}
1087410882
"404":
1087510883
application/json: {"error": {"code": 404, "message": "Resource not found"}}
1087610884
"500":
@@ -10881,7 +10889,7 @@ examples:
1088110889
speakeasy-default-list-endpoints-zdr:
1088210890
responses:
1088310891
"200":
10884-
application/json: {"data": [{"context_length": 8192, "latency_last_30m": {"p50": 0.25, "p75": 0.35, "p90": 0.48, "p99": 0.85}, "max_completion_tokens": 4096, "max_prompt_tokens": 8192, "model_id": "openai/gpt-4", "model_name": "GPT-4", "name": "OpenAI: GPT-4", "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "provider_name": "OpenAI", "quantization": "fp16", "supported_parameters": ["temperature", "top_p", "max_tokens"], "supports_implicit_caching": true, "supports_voice_cloning": false, "tag": "openai", "throughput_last_30m": {"p50": 45.2, "p75": 38.5, "p90": 28.3, "p99": 15.1}, "uptime_last_1d": 99.8, "uptime_last_30m": 99.5, "uptime_last_5m": 100}]}
10892+
application/json: {"data": [{"context_length": 8192, "latency_last_30m": {"p50": 0.25, "p75": 0.35, "p90": 0.48, "p99": 0.85}, "max_completion_tokens": 4096, "max_prompt_tokens": 8192, "model_id": "openai/gpt-4", "model_name": "GPT-4", "name": "OpenAI: GPT-4", "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "provider_name": "OpenAI", "quantization": "fp16", "supported_parameters": ["temperature", "top_p", "max_tokens"], "supports_implicit_caching": true, "supports_tool_choice": {"auto": true, "function": true, "none": true, "required": true}, "supports_voice_cloning": false, "tag": "openai", "throughput_last_30m": {"p50": 45.2, "p75": 38.5, "p90": 28.3, "p99": 15.1}, "uptime_last_1d": 99.8, "uptime_last_30m": 99.5, "uptime_last_5m": 100}]}
1088510893
"500":
1088610894
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1088710895
"403":
@@ -12465,3 +12473,7 @@ examples:
1246512473
"503":
1246612474
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
1246712475
examplesVersion: 1.0.2
12476+
releaseNotes: |
12477+
## Python SDK Changes:
12478+
* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].supports_tool_choice` **Added**
12479+
* `open_router.endpoints.list()`: `response.data.endpoints[].supports_tool_choice` **Added**

‎.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.1.99
39+
version: 1.1.100
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21776,6 +21776,11 @@ components:
2177621776
- 'top_p'
2177721777
- 'max_tokens'
2177821778
supports_implicit_caching: true
21779+
supports_tool_choice:
21780+
auto: true
21781+
function: true
21782+
none: true
21783+
required: true
2177921784
supports_voice_cloning: false
2178021785
tag: 'openai'
2178121786
throughput_last_30m:
@@ -21879,6 +21884,8 @@ components:
2187921884
type: 'array'
2188021885
supports_implicit_caching:
2188121886
type: 'boolean'
21887+
supports_tool_choice:
21888+
$ref: '#/components/schemas/ToolChoiceSupport'
2188221889
supports_voice_cloning:
2188321890
default: false
2188421891
description: 'Whether this TTS endpoint accepts inline reference audio (`input_references`) for stateless voice cloning. Requests carrying reference audio are only routed to endpoints where this is true.'
@@ -21918,6 +21925,7 @@ components:
2191821925
- 'max_completion_tokens'
2191921926
- 'max_prompt_tokens'
2192021927
- 'supported_parameters'
21928+
- 'supports_tool_choice'
2192121929
- 'uptime_last_30m'
2192221930
- 'uptime_last_5m'
2192321931
- 'uptime_last_1d'
@@ -24746,6 +24754,32 @@ components:
2474624754
- 'mode'
2474724755
- 'tools'
2474824756
type: 'object'
24757+
ToolChoiceSupport:
24758+
description: 'Per-variant `tool_choice` support. `tool_choice` in `supported_parameters` only says the parameter is accepted; these flags say which of its values passed testing.'
24759+
example:
24760+
auto: true
24761+
function: true
24762+
none: true
24763+
required: true
24764+
properties:
24765+
auto:
24766+
description: 'Whether the endpoint supports `"tool_choice": "auto"`.'
24767+
type: 'boolean'
24768+
function:
24769+
description: 'Whether the endpoint supports naming a function, `"tool_choice": {"type": "function", ...}`.'
24770+
type: 'boolean'
24771+
none:
24772+
description: 'Whether the endpoint supports `"tool_choice": "none"`.'
24773+
type: 'boolean'
24774+
required:
24775+
description: 'Whether the endpoint supports `"tool_choice": "required"`.'
24776+
type: 'boolean'
24777+
required:
24778+
- 'none'
24779+
- 'auto'
24780+
- 'required'
24781+
- 'function'
24782+
type: 'object'
2474924783
ToolSearchServerTool:
2475024784
description: 'OpenRouter built-in server tool: finds tools marked `defer_loading` and makes them callable'
2475124785
example:

‎.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:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e
6-
sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a
5+
sourceRevisionDigest: sha256:6f26d62515e38e30f35bbfa3088b73c38437c2afaf74034523ee3d8355b0e40b
6+
sourceBlobDigest: sha256:5c89c614a3ba5e6cd16300ef4c493d457466e033825b05d1b6d2c46f6654d592
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:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e
15-
sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a
14+
sourceRevisionDigest: sha256:6f26d62515e38e30f35bbfa3088b73c38437c2afaf74034523ee3d8355b0e40b
15+
sourceBlobDigest: sha256:5c89c614a3ba5e6cd16300ef4c493d457466e033825b05d1b6d2c46f6654d592
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:7cb22388bca22a387a7fd7f5e256223d7cd0376ff37e6e535c3b06b7e90f5380
17+
codeSamplesRevisionDigest: sha256:702310cb5d40b4bfe4eb33c467144bd478c63996e9830744a04cec44e742f5dc
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
@@ -1779,4 +1779,14 @@ Based on:
17791779
### Generated
17801780
- [python v1.1.99] .
17811781
### Releases
1782-
- [PyPI v1.1.99] https://pypi.org/project/openrouter/1.1.99 - .
1782+
- [PyPI v1.1.99] https://pypi.org/project/openrouter/1.1.99 - .
1783+
1784+
## 2026-08-28 02:51:27
1785+
### Changes
1786+
Based on:
1787+
- OpenAPI Doc
1788+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1789+
### Generated
1790+
- [python v1.1.100] .
1791+
### Releases
1792+
- [PyPI v1.1.100] https://pypi.org/project/openrouter/1.1.100 - .

0 commit comments

Comments
 (0)