Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 33 additions & 31 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 7716ae43f004bad996f81fb0bcc1aa3e
docChecksum: 1b1f9cc5495f868369dd84584b66a331
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.138
configChecksum: 42c8fc774282817b5cfaa48f57cd6b12
releaseVersion: 1.3.139
configChecksum: 9c9450a578517447d539f313154059b5
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: d5ccaf0d-c9b2-414c-b711-369a1fb5ae3c
pristine_commit_hash: 27099b97dc999a2e291ec3bacea6f3dd824bd51f
pristine_tree_hash: 24436c555e0f5b6d480a9ca13e3fcb78b26241ce
generation_id: feede6d2-82b6-4fd2-8f6c-122e26ca84ee
pristine_commit_hash: c7fe652bd0c7da52e532eb126bc4e1bd1ec76415
pristine_tree_hash: b545496ced13bf94a4abb55d0d51b6ec7de8e408
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -3132,8 +3132,8 @@ trackedFiles:
pristine_git_object: 78c74a24e624245cbbfe2f989c4301442bbb5fee
docs/components/deferredbm25search.mdx:
id: 28b5539be31d
last_write_checksum: sha1:7f897adc605d54cbb0d10b2c4aac7b99b7fd7dd8
pristine_git_object: 7e7e8fe87115b5a47fdd1cd5460eca2b328885f6
last_write_checksum: sha1:d6bcb91024febe3a5b810798068faa6c4a4b97cc
pristine_git_object: abed2b5ad521676845a4f3cb6450a369667d4886
docs/components/deferredbm25searchtype.mdx:
id: 7c08005a05ac
last_write_checksum: sha1:4c12129e0ab52db31056314a17628cbfedb600b8
Expand All @@ -3148,16 +3148,16 @@ trackedFiles:
pristine_git_object: 8accaf302940a8ab39f159badc6daccad7fddd75
docs/components/deferredregexsearch.mdx:
id: 8b88be545243
last_write_checksum: sha1:7d6ba06a0da494cc9a099002ee00f284257f271e
pristine_git_object: 57a008e97ca9aba598f7c1fb2d5d9afc8f74222b
last_write_checksum: sha1:76e75788f5d4a2541baf1bd0735807fab396d01b
pristine_git_object: 7ca608b0a48483bfa6de68614faf8423e56cff5d
docs/components/deferredregexsearchtype.mdx:
id: bcec87810dd1
last_write_checksum: sha1:59b772e53fc1109c2cc4f42f4cf21405c35830a6
pristine_git_object: a226240fb3b94358d33acc91761a8bba03309b63
docs/components/deferredtoolscontrol.mdx:
id: 13db9fb1f102
last_write_checksum: sha1:edb3f5df24f9b51c0d96160709b357acee685208
pristine_git_object: 66c21dc09f85514331d8a4d007a1f20d78b7112b
last_write_checksum: sha1:9c5955892248ef08dc9801c6677bdfe3b0fb9fff
pristine_git_object: 06a67d94e470dae5da499da820a53cb5aee28d25
docs/components/deferredtoolscontrolscope.mdx:
id: 61fade4412af
last_write_checksum: sha1:ff698d00ab177a0e0ac4ffe495004205f89ab63b
Expand Down Expand Up @@ -6940,8 +6940,8 @@ trackedFiles:
pristine_git_object: d68bd61421859df1e00c0ec15f5a6946ed52dfd1
docs/components/outputtoolsearchservertoolitem.mdx:
id: 7106fbb89729
last_write_checksum: sha1:624ad5b5ea8b46034cde801d3322141411bbda4c
pristine_git_object: c49ae6e87990a02aa270c6d26b98669fd6af4760
last_write_checksum: sha1:014db8181b4d1da4e46bc283a0b55a24b53fa312
pristine_git_object: 6b1e2f064260e0f05bdfbd2ea1658a5615a2b1ca
docs/components/outputtoolsearchservertoolitemformat.mdx:
id: 717072e9e3e8
last_write_checksum: sha1:04cf65dbe63614cfee6df054640472e679b4faac
Expand Down Expand Up @@ -11572,8 +11572,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:e4f3bd5236af27c73505b71ffef2658bab4dc5da
pristine_git_object: 9d1e2b520b78e127173f8b538d0f0cdf6348eb15
last_write_checksum: sha1:e28f7bb317d0079eba0f37a7a2e7cabc321602e8
pristine_git_object: c467f2034850c4a2372520ddf74fa3b8cebb10a3
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11600,8 +11600,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:7bdb608247c3d26ede5cf675632c57af2b93d311
pristine_git_object: a9eb8bdc052fffeb00325457e6848a11f0b936bb
last_write_checksum: sha1:3cea337387abf552d701b1ece5b3b97f00dde6c0
pristine_git_object: c7a3b0845924c4f6bfe20338a3360003e3185e9b
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -12980,20 +12980,20 @@ trackedFiles:
pristine_git_object: dccefb2123d06d6d9920e7035f21a8ab5e7b86a8
src/openrouter/components/deferredbm25search.py:
id: b988bf147d9f
last_write_checksum: sha1:d0f5d39b8dd69d70f7d6117a3385a36f131c330a
pristine_git_object: e472cb0ac59aa64f778263ec78524205c3919ce8
last_write_checksum: sha1:d5415833d3abe21b9f6afd0af43c476bf8073181
pristine_git_object: add59e787cc3b1cde02c026c2d30c38301949934
src/openrouter/components/deferredcustomsearch.py:
id: 71d9d33ba373
last_write_checksum: sha1:1b308d057e8b27d8a7da76b1edf47734ab11dd0c
pristine_git_object: b47ed4f8a5b51b416f3105bb22b93dddf23e7aa6
src/openrouter/components/deferredregexsearch.py:
id: 64f28f2cc1af
last_write_checksum: sha1:e0461c23a9d8a11ed441b1657421630a01bb0597
pristine_git_object: 8a4e94425724c374a040ea028d0933db39ec1451
last_write_checksum: sha1:59a3ca23434f478644f04a42515477a02bd09567
pristine_git_object: 21eb6b48f7b5a7eb922a55c395c18b87393913ee
src/openrouter/components/deferredtoolscontrol.py:
id: b8b6ceef6f86
last_write_checksum: sha1:08f2c8a631e138a2826f7c1d81ba0696f7bbfdaa
pristine_git_object: 795ceaf6e4ada26051dea36a625f95dc0a42e86f
last_write_checksum: sha1:a34cd0144997c8f54067331cb03e492d63cc6604
pristine_git_object: 1fd04fedb8959253991a926d32f68be2aaecc7cb
src/openrouter/components/deferredtoolsdetails.py:
id: 044f0e33803d
last_write_checksum: sha1:2f8fcc43fc779a0cb9621149875a5e7bbfa5e6dc
Expand Down Expand Up @@ -13572,8 +13572,8 @@ trackedFiles:
pristine_git_object: f499cbbb546232f5cfbfe2c44fb41aefb306c87f
src/openrouter/components/inputs_union.py:
id: 17d6239cb6a7
last_write_checksum: sha1:4bc1d972ad7487d88145caf30f8e712fc8adbb7d
pristine_git_object: b5b2ac90b2d7fd66a06259ff5ada7f4122492dbf
last_write_checksum: sha1:b01abadae0cb5a540783a46739c38c06185377e5
pristine_git_object: 6325458c261665ab39eaa8a83f0cce1333d8038e
src/openrouter/components/inputtext.py:
id: a995ae96be99
last_write_checksum: sha1:94c720a449e0d5a3f23ee7195f648422f61ac114
Expand Down Expand Up @@ -14312,8 +14312,8 @@ trackedFiles:
pristine_git_object: 616b0f5112e106777b4c096aeea6fef58ff32020
src/openrouter/components/outputitems.py:
id: 90f107de3116
last_write_checksum: sha1:9503275f7e69cf4cee8af2060e917268a7e8f2e9
pristine_git_object: f4c0864d6648b885b2ee2afe5fd7ab80009b10c7
last_write_checksum: sha1:c1175a76eefa7cee18379c7af6bffb7f8de2aecd
pristine_git_object: b9bd8442c9f14f506b421573ffe47210e079414e
src/openrouter/components/outputitemwebsearchcall.py:
id: bac8732aecb9
last_write_checksum: sha1:00d5b67226d6ff2c6a5497e6e01c764aeede496e
Expand Down Expand Up @@ -14372,8 +14372,8 @@ trackedFiles:
pristine_git_object: d5a5c820aff0971a68a725af296d68d8d3891992
src/openrouter/components/outputtoolsearchservertoolitem.py:
id: fb4ec737039d
last_write_checksum: sha1:26f3a6e53d940ea78b3317e86a1e4da6eb1a63e0
pristine_git_object: b1cd35a559ceebe4b5b6d9f85915bb311fca343c
last_write_checksum: sha1:eda6d37533b1e7f37a102bfc98ca9a93c26c797e
pristine_git_object: 4829ddb5e43ef9468d66e8fb5b336024e46f4874
src/openrouter/components/outputwebfetchservertoolitem.py:
id: 2b12eb287cdf
last_write_checksum: sha1:60ec6ef59d691699c092120ea7dffed824197872
Expand Down Expand Up @@ -21507,6 +21507,8 @@ examples:
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult).output[].union(openrouter:tool_search).sources` **Added**
* `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult).output[].union(openrouter:tool_search).sources` **Added**
* `open_router.presets.create_presets_chat_completions()`: `request.deferred_tools` **Changed**
* `open_router.presets.create_presets_messages()`: `request.deferred_tools` **Changed**
* `open_router.presets.create_presets_responses()`: `request.deferred_tools` **Changed**
* `open_router.presets.create_presets_responses()`: `request` **Changed**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.138
version: 1.3.139
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
22 changes: 22 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12109,6 +12109,9 @@ components:
properties:
max_results:
type: 'integer'
siblings:
description: 'Universal profile only, for searches the router answers through the `tool_search` wrapper; code-mode `search()` and a client-owned tool search list the matched tools alone. When true, each result also names up to 16 other deferred tools of every source a match came from, so a model that found one tool of an MCP server learns its neighbours without another search. Absent or false: results list the matched tools alone.'
type: 'boolean'
type:
enum:
- 'bm25'
Expand Down Expand Up @@ -12149,6 +12152,9 @@ components:
properties:
max_results:
type: 'integer'
siblings:
description: 'Universal profile only, for searches the router answers through the `tool_search` wrapper; code-mode `search()` and a client-owned tool search list the matched tools alone. When true, each result also names up to 16 other deferred tools of every source a match came from, so a model that found one tool of an MCP server learns its neighbours without another search. Absent or false: results list the matched tools alone.'
type: 'boolean'
type:
enum:
- 'regex'
Expand All @@ -12173,6 +12179,11 @@ components:
- 'native'
type: 'string'
x-speakeasy-unknown-values: allow
hint:
description: 'Universal profile only. Caller text announced to the model with the deferred catalog before its first turn, for example which sources the task needs. Repeated only when it changes. Trimmed before the length bounds apply. Recorded in the `catalog_index` discovery record of the response, so it is replayed with the conversation.'
maxLength: 2000
minLength: 1
type: 'string'
interface:
description: 'How the universal profile exposes the hidden catalog to the provider. Absent or `wrappers`: the `tool_search` and `tool_exec` tools. `code_mode`: one `tool_code` tool that runs a short JavaScript program in which `search()` and `call()` reach the catalog, so several searches and calls complete in one tool result. Experimental.'
enum:
Expand Down Expand Up @@ -28638,6 +28649,17 @@ components:
type: 'array'
query:
type: 'string'
sources:
additionalProperties:
items:
type: 'string'
type: 'array'
description: 'The other deferred tools of each source a match came from, by name, when the search listed siblings. Replaying the item shows the same names.'
example:
mcp__tavily:
- 'mcp__tavily__tavily_extract'
- 'mcp__tavily__tavily_crawl'
type: 'object'
status:
$ref: '#/components/schemas/FailableToolCallStatus'
turn_call_ids:
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:d76eae41d07734b31ea35d8025d572c90403f24db9e0f3c3559413465afad962
sourceBlobDigest: sha256:ef8e085f7c2edf026810b4e8a42ea28ce5561489933f22f4806c9259ed31948b
sourceRevisionDigest: sha256:baa5345d553e8c08c25ae5eebfd9e6ad8bc1d5c89412972464dcd0c7bb50f9b0
sourceBlobDigest: sha256:dfc0969ec07dc0510a783f65038a0e3f0cc8eb18a69ffa0615c9980af9db8236
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:d76eae41d07734b31ea35d8025d572c90403f24db9e0f3c3559413465afad962
sourceBlobDigest: sha256:ef8e085f7c2edf026810b4e8a42ea28ce5561489933f22f4806c9259ed31948b
sourceRevisionDigest: sha256:baa5345d553e8c08c25ae5eebfd9e6ad8bc1d5c89412972464dcd0c7bb50f9b0
sourceBlobDigest: sha256:dfc0969ec07dc0510a783f65038a0e3f0cc8eb18a69ffa0615c9980af9db8236
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:197c7aeeaf9a5c99da5facf10fcd18b80bd333683482aa20eb70725275d07b2a
codeSamplesRevisionDigest: sha256:9baf4b11c2a0203b1649672707f4d5ce5fdcf06f8eb40ab2264b74ef3e267866
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4149,4 +4149,14 @@ Based on:
### Generated
- [python v1.3.138] .
### Releases
- [PyPI v1.3.138] https://pypi.org/project/openrouter/1.3.138 - .
- [PyPI v1.3.138] https://pypi.org/project/openrouter/1.3.138 - .

## 2026-11-07 21:03:34
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.139] .
### Releases
- [PyPI v1.3.139] https://pypi.org/project/openrouter/1.3.139 - .
Loading
Loading