Skip to content

Commit cd30084

Browse files
committed
## Python SDK Changes:
* `open_router.presets.create_presets_responses()`: * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️) * `open_router.responses.send()`: * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️) * `open_router.beta.responses.send()`: * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)
1 parent 2f1540d commit cd30084

14 files changed

Lines changed: 246 additions & 154 deletions

‎.speakeasy/gen.lock‎

Lines changed: 23 additions & 25 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: 6e123cb0ea767ec1dfe22b6d5a22eb03
4+
docChecksum: ddef32b4cd6f5d73939713b2c82a3b29
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.21
9-
configChecksum: a5d71454cf56db3056ccd04663866372
8+
releaseVersion: 1.2.22
9+
configChecksum: b17b6b12ede2e231b529d7155e1fc0d3
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: 58d82779-89cb-4b09-bf67-c46027d7304d
15-
pristine_commit_hash: ea160db099b23c803386dce65f0700209fa185e7
16-
pristine_tree_hash: cf523b00e4d3d9d56f5e8d59507ec599ed3eb8fa
14+
generation_id: d70feb9e-7b5f-4223-bd74-6c302290ab81
15+
pristine_commit_hash: 2e2b161273a0c50a40a16292bc0e77e2cc984059
16+
pristine_tree_hash: 2b4f8c135349d264802aecf405de53a0945a61f0
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -1747,8 +1747,8 @@ trackedFiles:
17471747
pristine_git_object: 8f1998f649043b4b2c6eab0ed51df960be63523e
17481748
docs/components/customtoolcallitem.mdx:
17491749
id: 3936d690b05c
1750-
last_write_checksum: sha1:9f4cc1011f0ddbd3d208c3dc2047791b1f1f01b1
1751-
pristine_git_object: 2756d1cddeb91afb0b4133e94effabe1cd46433e
1750+
last_write_checksum: sha1:8c012c8a3cce20be5d502d9e6c878bb43f35e60f
1751+
pristine_git_object: c7d8e13ed7c739d36a410b926e8f6936617c0f38
17521752
docs/components/customtoolcallitemtype.mdx:
17531753
id: d69cfea1fb83
17541754
last_write_checksum: sha1:25c64017876c8e051f178e87fcd94f47f19e6bc8
@@ -2263,8 +2263,8 @@ trackedFiles:
22632263
pristine_git_object: da8e18a164f2bd77e34b42d88e0b553edfe8a9c3
22642264
docs/components/functioncallitem.mdx:
22652265
id: 6cb0afdc292f
2266-
last_write_checksum: sha1:e9acf1abd137daa1c96e655d4acc47e2170b0f73
2267-
pristine_git_object: fddfd0d82b508d45dba047ff8d9d1d9a36ba1b5a
2266+
last_write_checksum: sha1:7367b01801c55c7ed2535a7354da3c5c7acfc16f
2267+
pristine_git_object: 9d430414fa99b188b559a2fbfa441482fc8ae913
22682268
docs/components/functioncallitemsubagentitem.mdx:
22692269
id: e71e71703a47
22702270
last_write_checksum: sha1:24fc27e4de6e95f72e293c5275aa68c89ed3076c
@@ -2919,8 +2919,8 @@ trackedFiles:
29192919
pristine_git_object: 33aee92c61bf7ab9beded4e193f50a2c08462378
29202920
docs/components/inputsunion1.mdx:
29212921
id: c216609d21ce
2922-
last_write_checksum: sha1:b023f72b6c127783c064f15b7c416d94711a9b32
2923-
pristine_git_object: 98dad1d296224d766b427a471afd2fb36ec4cf43
2922+
last_write_checksum: sha1:9227d47c24ee5edc23887ac20f218cffd067b528
2923+
pristine_git_object: e76c31df752f42afe7df4285608f21e6c8392a59
29242924
docs/components/inputtext.mdx:
29252925
id: c8a97322a50a
29262926
last_write_checksum: sha1:6f92abbb193a5d21cc129df4c5804b3f9161322d
@@ -8243,8 +8243,8 @@ trackedFiles:
82438243
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
82448244
pyproject.toml:
82458245
id: 5d07e7d72637
8246-
last_write_checksum: sha1:aab9ea784cd1775a5ff0bf967745d37b9e981bf1
8247-
pristine_git_object: 09333c0bfdbd5e89764847d2f9fc65fbbf1a4eff
8246+
last_write_checksum: sha1:a262410e1db860a3666bb1a38ed3024cf6df845a
8247+
pristine_git_object: b6e61eb75d5b4e7050ca3c9d6ef4037f6078f02f
82488248
scripts/prepare_readme.py:
82498249
id: e0c5957a6035
82508250
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8271,8 +8271,8 @@ trackedFiles:
82718271
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
82728272
src/openrouter/_version.py:
82738273
id: d8d15ad6c586
8274-
last_write_checksum: sha1:bb9f5e866713c9ef6501e791a28656687a36aaf5
8275-
pristine_git_object: b0f7b459f819b45c0a54c82340c2b9b069cede6c
8274+
last_write_checksum: sha1:5f2d1738ec120e5dd894bd4e7abd0f4daa948b41
8275+
pristine_git_object: 31edc02f24e953d9278afbf62bbbb239a715b0ad
82768276
src/openrouter/alpha.py:
82778277
id: 306c4d93308d
82788278
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -9099,8 +9099,8 @@ trackedFiles:
90999099
pristine_git_object: 308a29665db6048780b3d9d3dad551110e002cfe
91009100
src/openrouter/components/customtoolcallitem.py:
91019101
id: 232ac63226eb
9102-
last_write_checksum: sha1:758b6fc6d369c1ce7d0de6435e6d08f20d68b0c8
9103-
pristine_git_object: 7725b78a34d2cd994fec5837f32e3ff1a3fdaba3
9102+
last_write_checksum: sha1:8b3e9d86e1500c7f0a4aa2756d9cf3f0faae45dd
9103+
pristine_git_object: ab5d763007ce66924f71816ab297670ad34b2bc6
91049104
src/openrouter/components/customtoolcalloutputitem.py:
91059105
id: 533940b12cd2
91069106
last_write_checksum: sha1:1934cb285468ce7e60f506412320c62b55239047
@@ -9299,8 +9299,8 @@ trackedFiles:
92999299
pristine_git_object: 613c2bbaec296ed9b0da13f249ef96b9314ff9ed
93009300
src/openrouter/components/functioncallitem.py:
93019301
id: 5e69afffd660
9302-
last_write_checksum: sha1:9318194be1605dc33b9a448f6482bab8b8ed2584
9303-
pristine_git_object: 181d74766073f16555f30e129adc23d9003fc8bb
9302+
last_write_checksum: sha1:b9a85934a58a48db9f50c5bdb2df7a40bb4e7190
9303+
pristine_git_object: edf2b4fda878fdda48ea5b411fcc39883f20d75d
93049304
src/openrouter/components/functioncalloutputitem.py:
93059305
id: bf659aa04e7d
93069306
last_write_checksum: sha1:e938b63769022d499419ffcd309fdd71edb36174
@@ -9575,8 +9575,8 @@ trackedFiles:
95759575
pristine_git_object: f499cbbb546232f5cfbfe2c44fb41aefb306c87f
95769576
src/openrouter/components/inputs_union.py:
95779577
id: 17d6239cb6a7
9578-
last_write_checksum: sha1:2a0e9f681cd64913508e9cad82d2755eeb56cbca
9579-
pristine_git_object: 2bcad7f1f7081532ec62490519361777717fcc20
9578+
last_write_checksum: sha1:e7216b0014bd1650565f9610d4ba5d8b5b7adf3c
9579+
pristine_git_object: 8d4f5d6af0e647677d01ec98dd25c2093705df0b
95809580
src/openrouter/components/inputtext.py:
95819581
id: a995ae96be99
95829582
last_write_checksum: sha1:2da9ff645acc96772701908830151c5a707ed021
@@ -15130,6 +15130,4 @@ examples:
1513015130
"500":
1513115131
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
1513215132
examplesVersion: 1.0.2
15133-
releaseNotes: |
15134-
## Python SDK Changes:
15135-
* `open_router.interns.invoke()`: **Added**
15133+
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* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[]` **Changed** (Breaking ⚠️)\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.21
39+
version: 1.2.22
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 90 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8220,19 +8220,49 @@ components:
82208220
sequence_number: 6
82218221
type: 'response.custom_tool_call_input.done'
82228222
CustomToolCallItem:
8223-
allOf:
8224-
- $ref: '#/components/schemas/OpenAIResponseCustomToolCall'
8225-
- properties:
8226-
status:
8227-
$ref: '#/components/schemas/ToolCallStatus'
8228-
type: 'object'
82298223
description: 'A call to a custom (freeform-grammar) tool created by the model — distinct from `function_call`. Used for tools like Codex CLI''s `apply_patch` whose payload is opaque text rather than JSON arguments.'
82308224
example:
82318225
call_id: 'call-abc123'
82328226
id: 'ctc-abc123'
82338227
input: "*** Begin Patch\n*** End Patch"
82348228
name: 'apply_patch'
82358229
type: 'custom_tool_call'
8230+
properties:
8231+
async:
8232+
description: 'True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.'
8233+
example: true
8234+
type:
8235+
- 'boolean'
8236+
- 'null'
8237+
call_id:
8238+
type: 'string'
8239+
id:
8240+
type:
8241+
- 'string'
8242+
- 'null'
8243+
input:
8244+
type: 'string'
8245+
name:
8246+
type: 'string'
8247+
namespace:
8248+
description: 'Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)'
8249+
type:
8250+
- 'string'
8251+
- 'null'
8252+
status:
8253+
anyOf:
8254+
- $ref: '#/components/schemas/ToolCallStatus'
8255+
- type: 'null'
8256+
type:
8257+
enum:
8258+
- 'custom_tool_call'
8259+
type: 'string'
8260+
required:
8261+
- 'type'
8262+
- 'call_id'
8263+
- 'name'
8264+
- 'input'
8265+
type: 'object'
82368266
CustomToolCallOutputItem:
82378267
allOf:
82388268
- $ref: '#/components/schemas/OpenAIResponseCustomToolCallOutput'
@@ -9379,12 +9409,6 @@ components:
93799409
sequence_number: 6
93809410
type: 'response.function_call_arguments.done'
93819411
FunctionCallItem:
9382-
allOf:
9383-
- $ref: '#/components/schemas/OpenAIResponseFunctionToolCall'
9384-
- properties: {}
9385-
required:
9386-
- 'id'
9387-
type: 'object'
93889412
description: 'A function call initiated by the model'
93899413
example:
93909414
arguments: '{"location":"San Francisco"}'
@@ -9393,6 +9417,60 @@ components:
93939417
name: 'get_weather'
93949418
status: 'completed'
93959419
type: 'function_call'
9420+
properties:
9421+
arguments:
9422+
type: 'string'
9423+
async:
9424+
description: 'True when the model called a tool declared with `async: true` and may continue its turn before the output is returned. Return the result in a later request as a `function_call_output` with this `call_id`.'
9425+
example: true
9426+
type:
9427+
- 'boolean'
9428+
- 'null'
9429+
call_id:
9430+
type: 'string'
9431+
id:
9432+
type:
9433+
- 'string'
9434+
- 'null'
9435+
name:
9436+
type: 'string'
9437+
namespace:
9438+
description: 'Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)'
9439+
type:
9440+
- 'string'
9441+
- 'null'
9442+
status:
9443+
anyOf:
9444+
- $ref: '#/components/schemas/ToolCallStatus'
9445+
- type: 'null'
9446+
subagent_id:
9447+
description: 'EXPERIMENTAL — subject to change without notice. String id that matches the `call_id` of the `openrouter:subagent` server tool call that spawned the subagent. Present on every `function_call` item the subagent projects; absent on ordinary function calls.'
9448+
type:
9449+
- 'string'
9450+
- 'null'
9451+
subagent_items:
9452+
description: 'EXPERIMENTAL — subject to change without notice. The subagent''s output items produced on this turn. Treat this as an opaque object; you must replay it in the request so that the subagent can continue execution of the tool with the same context. If a subagent created multiple parallel tool calls, only the first tool call will have this field. The other tool calls will only have `subagent_id`. Present only if the tool call originates from a subagent spawned by the `openrouter:subagent` server tool.'
9453+
items:
9454+
additionalProperties: {}
9455+
properties:
9456+
type:
9457+
type: 'string'
9458+
required:
9459+
- 'type'
9460+
type: 'object'
9461+
type:
9462+
- 'array'
9463+
- 'null'
9464+
type:
9465+
enum:
9466+
- 'function_call'
9467+
type: 'string'
9468+
required:
9469+
- 'type'
9470+
- 'call_id'
9471+
- 'name'
9472+
- 'arguments'
9473+
type: 'object'
93969474
FunctionCallOutputItem:
93979475
allOf:
93989476
- $ref: '#/components/schemas/OpenAIResponseFunctionToolCallOutput'
@@ -12349,8 +12427,6 @@ components:
1234912427
- text: 'Analyzed the problem and found the optimal solution.'
1235012428
type: 'summary_text'
1235112429
type: 'reasoning'
12352-
- $ref: '#/components/schemas/OutputFunctionCallItem'
12353-
- $ref: '#/components/schemas/OutputCustomToolCallItem'
1235412430
- $ref: '#/components/schemas/OutputWebSearchCallItem'
1235512431
- $ref: '#/components/schemas/OutputFileSearchCallItem'
1235612432
- $ref: '#/components/schemas/OutputImageGenerationCallItem'

‎.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:735f8cdc3a309a74edd33480c4c47de14d32303562cb526eb39a59bc70e35598
6-
sourceBlobDigest: sha256:55427771e384f01b34046cd72b6c55606a9e94895f6774a99936ebbf6cbc40c5
5+
sourceRevisionDigest: sha256:790674c532081dfabb7339f3069003cc638178dddc3bee934d5ed0fb388a7d53
6+
sourceBlobDigest: sha256:b073b26bfee1d9c1478bd018c96279ab06290278274d61255b265940c0d31edb
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:735f8cdc3a309a74edd33480c4c47de14d32303562cb526eb39a59bc70e35598
15-
sourceBlobDigest: sha256:55427771e384f01b34046cd72b6c55606a9e94895f6774a99936ebbf6cbc40c5
14+
sourceRevisionDigest: sha256:790674c532081dfabb7339f3069003cc638178dddc3bee934d5ed0fb388a7d53
15+
sourceBlobDigest: sha256:b073b26bfee1d9c1478bd018c96279ab06290278274d61255b265940c0d31edb
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:3a17822156ea0541216cff2b222d58e321e916e588857ac5c48cb65083feddaf
17+
codeSamplesRevisionDigest: sha256:4e0ba9267951a6ee26a33ea0dbbf9d6ae805be6321a44fbc2c5b27296dea3fc8
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
@@ -2619,4 +2619,14 @@ Based on:
26192619
### Generated
26202620
- [python v1.2.21] .
26212621
### Releases
2622-
- [PyPI v1.2.21] https://pypi.org/project/openrouter/1.2.21 - .
2622+
- [PyPI v1.2.21] https://pypi.org/project/openrouter/1.2.21 - .
2623+
2624+
## 2026-09-23 21:50:45
2625+
### Changes
2626+
Based on:
2627+
- OpenAPI Doc
2628+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2629+
### Generated
2630+
- [python v1.2.22] .
2631+
### Releases
2632+
- [PyPI v1.2.22] https://pypi.org/project/openrouter/1.2.22 - .

0 commit comments

Comments
 (0)