Skip to content

Commit 0f450a3

Browse files
committed
## Python SDK Changes:
* `open_router.tts.create_speech()`: `request` **Changed** (Breaking ⚠️)
1 parent 9d52581 commit 0f450a3

1,444 files changed

Lines changed: 7939 additions & 7771 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.speakeasy/gen.lock‎

Lines changed: 37 additions & 24 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: ca478c9fe977377c5080ec03921023a8
4+
docChecksum: d1b96abffbe70fe9d18a0e68456bf0e3
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.26
9-
configChecksum: f1f6fdb944dd84de88b781a775f1b193
8+
releaseVersion: 1.3.27
9+
configChecksum: 8e1aa111f5eedd150d7163d092dbc596
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: 7e99d85c-0497-46d2-8f32-30b6816934f7
15-
pristine_commit_hash: 6559d85090ca32fc4de97e741687929da41137e2
16-
pristine_tree_hash: 3d570f3d755633ea2ee0eb370a1ed7571858d615
14+
generation_id: aea6cfba-febf-4944-8c59-559d33ca5796
15+
pristine_commit_hash: ce959dc03b41e9baed4c595c1d79f62117ec79cd
16+
pristine_tree_hash: 8f75aaeffc4d498b2b0b09bd5f19af073549fd86
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6778,6 +6778,10 @@ trackedFiles:
67786778
id: 77262fe83449
67796779
last_write_checksum: sha1:9f290862f832b501a96456226ff1f18431f74c50
67806780
pristine_git_object: 5d617cac37f7b364f4dd0640246e97c34351d824
6781+
docs/components/speechinput.mdx:
6782+
id: 663248d32888
6783+
last_write_checksum: sha1:a8126cfb9764e1cd97fd896dedc4f40f7ab441bb
6784+
pristine_git_object: 948ee8455aede1f95245b7bfe33d04c293576edd
67816785
docs/components/speechinputreference.mdx:
67826786
id: eb5af16936c7
67836787
last_write_checksum: sha1:ab545b03da2161ae1ad449714b6861cd55ae66df
@@ -6816,8 +6820,8 @@ trackedFiles:
68166820
pristine_git_object: 34f4f07fb3008df83646fa3d88ce04009274246a
68176821
docs/components/speechrequest.mdx:
68186822
id: 06e81b0433f6
6819-
last_write_checksum: sha1:b8cafb4ce14ea3983bd792eeaf95be0dbf4c8c3e
6820-
pristine_git_object: 1ffadd62bda287f96c35e4b83a7408f3c0fc117b
6823+
last_write_checksum: sha1:ecac6988ab27bf129f774f3982e36744ec613218
6824+
pristine_git_object: c538a0061028cbaae17210def2258da7316b07e7
68216825
docs/components/speechrequestdatacollection.mdx:
68226826
id: 6c5938568888
68236827
last_write_checksum: sha1:89a08b4c4de66c1ef7676792a38747e030ed6729
@@ -6830,6 +6834,10 @@ trackedFiles:
68306834
id: bd09f77a4a90
68316835
last_write_checksum: sha1:1b87242f33c6d22a08dd085d0ef41335ec2e9b0c
68326836
pristine_git_object: 9af8a5aa6a7c26f353f552d369b87debb045b7cd
6837+
docs/components/speechturn.mdx:
6838+
id: ca90a4443e6e
6839+
last_write_checksum: sha1:4a63a0b46eb3051c86e4f5ed20b8d4534d5e7720
6840+
pristine_git_object: db37aa4e7bdc88e9216fad12c5b8e197e4d87e42
68336841
docs/components/speed.mdx:
68346842
id: 4fd1f2823924
68356843
last_write_checksum: sha1:c6815d115b55b9409052f9d1d1d16bb1d7197763
@@ -9948,8 +9956,8 @@ trackedFiles:
99489956
pristine_git_object: 1dd30f0b898f2a842d1bb585b03d887be90e7845
99499957
docs/sdks/tts/README.mdx:
99509958
id: cd1132543884
9951-
last_write_checksum: sha1:c79acf8b375dfd535a3f5948da5f65446397c49a
9952-
pristine_git_object: 2a3eda6822076c9de566cbe56bbe5cfdc691cf9d
9959+
last_write_checksum: sha1:cb9303bf791d8d9784be2815fae45f4b09f82221
9960+
pristine_git_object: b96e9d3ee1f40340dcd002a717920f7576b9fe3f
99539961
docs/sdks/vault/README.mdx:
99549962
id: 3738c6722acd
99559963
last_write_checksum: sha1:12acdfed4c2a32488d98b6091fd8c392af516494
@@ -9968,8 +9976,8 @@ trackedFiles:
99689976
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
99699977
pyproject.toml:
99709978
id: 5d07e7d72637
9971-
last_write_checksum: sha1:178fb5ebf2d5e2e9357df50216ef837c9c45174b
9972-
pristine_git_object: 112fa9a986c4f28337593041fbe9378906ee2670
9979+
last_write_checksum: sha1:984fcd4d70ebc92db6939d878585d9fe80107f49
9980+
pristine_git_object: 87f61eaba85b92fd2eea6d10bbc228f35dbb386c
99739981
scripts/prepare_readme.py:
99749982
id: e0c5957a6035
99759983
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -9996,8 +10004,8 @@ trackedFiles:
999610004
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
999710005
src/openrouter/_version.py:
999810006
id: d8d15ad6c586
9999-
last_write_checksum: sha1:6e671a7634a6396b6de4bed0c69bd623b0ebbd90
10000-
pristine_git_object: 235db3aed8d14857805c9f976a5bc57a154113b3
10007+
last_write_checksum: sha1:8a2efb73d913c481db11b1295cf358c8a81e7e71
10008+
pristine_git_object: 550534f0e7ae6c001bba40e7a172e4735106f628
1000110009
src/openrouter/alpha.py:
1000210010
id: 306c4d93308d
1000310011
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -10044,8 +10052,8 @@ trackedFiles:
1004410052
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
1004510053
src/openrouter/components/__init__.py:
1004610054
id: 81754e97b3f4
10047-
last_write_checksum: sha1:b4332657c5562071bfc8753410542b6376d6ae61
10048-
pristine_git_object: 2e45778d420de470fb82a0280811b373f74a8274
10055+
last_write_checksum: sha1:5929f0aad1def97fb47d220701cd8ad626c32cdf
10056+
pristine_git_object: 92a29ef91468729ce876f26d46881cdbbf845c0d
1004910057
src/openrouter/components/aabenchmarkentry.py:
1005010058
id: e2e0f0b48c82
1005110059
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -12902,6 +12910,10 @@ trackedFiles:
1290212910
id: 6d6e8d7d80ad
1290312911
last_write_checksum: sha1:d065afdd505a8303f6ba8e268cef42a3e9ea39fb
1290412912
pristine_git_object: 418953ba7366a6015934bf8795178d79adb03b89
12913+
src/openrouter/components/speechinput.py:
12914+
id: 14e46bea4b32
12915+
last_write_checksum: sha1:4f2acbfbb0b8df5d8d2d3916f9a081a6143fdf45
12916+
pristine_git_object: 676f38928a4745ddb215cb8275c401e6fb5ebc25
1290512917
src/openrouter/components/speechinputreference.py:
1290612918
id: 8e2b63f83354
1290712919
last_write_checksum: sha1:b2ebc68fae64644f8bfca9b555ca7d2a7b46c9e1
@@ -12928,8 +12940,12 @@ trackedFiles:
1292812940
pristine_git_object: 4633e5d7658c500aa903ce8caa8ef86cc97b78eb
1292912941
src/openrouter/components/speechrequest.py:
1293012942
id: 2a9400167112
12931-
last_write_checksum: sha1:282f155b9d0b09e015d3dda0a73abe8f42e44dbc
12932-
pristine_git_object: 5a62dc470dde417e458ab488dd92c385dcc59459
12943+
last_write_checksum: sha1:49cbabd40418cc50b15e7eef19926ce55be23a4e
12944+
pristine_git_object: ad116652ee8ead569fb0939c29c6966bb397717e
12945+
src/openrouter/components/speechturn.py:
12946+
id: 121e0a940f91
12947+
last_write_checksum: sha1:31bdba00e027b81de8a3872d48e694475cf02e7a
12948+
pristine_git_object: d3e0e4be8c2b3fcc3427657d9c6eb162031b118a
1293312949
src/openrouter/components/stopservertoolswhencondition.py:
1293412950
id: 2deeda4209ac
1293512951
last_write_checksum: sha1:581e0ee62776d42bf598b9f68b998faabfecd3ce
@@ -14244,8 +14260,8 @@ trackedFiles:
1424414260
pristine_git_object: 701fa8597ff85f41a60736ade55fcb32f9ec7125
1424514261
src/openrouter/tts.py:
1424614262
id: 5055d4b95f1d
14247-
last_write_checksum: sha1:e771b211ff92fd56d79f2c6ce05fa43211cfdbd8
14248-
pristine_git_object: 6da4bd907cfe243374782b9523bccfad7071976d
14263+
last_write_checksum: sha1:9826552c18767897c4dc6c3cd8c2ce41da40a344
14264+
pristine_git_object: 5b1bf2a61bfd3d476284465192603aa7d90adfd7
1424914265
src/openrouter/types/__init__.py:
1425014266
id: 5eab536205b7
1425114267
last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9
@@ -18266,7 +18282,4 @@ examples:
1826618282
examplesVersion: 1.0.2
1826718283
releaseNotes: |
1826818284
## Python SDK Changes:
18269-
* `open_router.api_keys.list()`: `response.data[].last_used_at` **Added**
18270-
* `open_router.api_keys.create()`: `response.data.last_used_at` **Added**
18271-
* `open_router.api_keys.get()`: `response.data.last_used_at` **Added**
18272-
* `open_router.api_keys.update()`: `response.data.last_used_at` **Added**
18285+
* `open_router.tts.create_speech()`: `request` **Changed** (Breaking ⚠️)

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

‎.speakeasy/out.openapi.yaml‎

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28813,6 +28813,15 @@ components:
2881328813
oneOf:
2881428814
- $ref: '#/components/schemas/ContainerAutoEnvironment'
2881528815
- $ref: '#/components/schemas/ContainerReferenceEnvironment'
28816+
SpeechInput:
28817+
anyOf:
28818+
- type: 'string'
28819+
- items:
28820+
$ref: '#/components/schemas/SpeechTurn'
28821+
minItems: 1
28822+
type: 'array'
28823+
description: 'Text to synthesize, or a list of turns for multi-speaker input. Each turn has its own text, voice, and instructions. Multi-speaker input is currently supported by Gemini TTS models only.'
28824+
example: 'Hello world'
2881628825
SpeechInputReference:
2881728826
description: 'Reference content part for stateless voice cloning or voice design'
2881828827
discriminator:
@@ -28920,9 +28929,7 @@ components:
2892028929
voice: 'en_paul_neutral'
2892128930
properties:
2892228931
input:
28923-
description: 'Text to synthesize'
28924-
example: 'Hello world'
28925-
type: 'string'
28932+
$ref: '#/components/schemas/SpeechInput'
2892628933
input_references:
2892728934
description: 'Reference content for stateless voice cloning or voice design. Audio mode: one to three `input_audio` parts, each optionally paired with a `text` part carrying its transcript (a single clip accepts its transcript before or after it; with multiple clips each transcript immediately follows its clip); only routed to endpoints that support voice cloning (and multiple references when more than one part is sent). Image mode: exactly one `image_url` part; only routed to endpoints that support image references. The two modes cannot be mixed. An empty array is treated as no reference.'
2892828935
example:
@@ -28934,6 +28941,10 @@ components:
2893428941
items:
2893528942
$ref: '#/components/schemas/SpeechInputReference'
2893628943
type: 'array'
28944+
instructions:
28945+
description: 'Delivery instructions for the whole request, such as tone, pacing, or emotion. Supported by OpenAI gpt-4o-mini-tts and Gemini TTS models. Ignored by other providers.'
28946+
example: 'Speak in a warm and friendly tone.'
28947+
type: 'string'
2893728948
model:
2893828949
description: 'TTS model identifier'
2893928950
example: 'mistralai/voxtral-mini-tts-2603'
@@ -28997,6 +29008,24 @@ components:
2899729008
- 'model'
2899829009
- 'input'
2899929010
type: 'object'
29011+
SpeechTurn:
29012+
properties:
29013+
instructions:
29014+
description: 'Delivery instructions for this turn, such as tone, pacing, or emotion. Overrides the top-level `instructions`.'
29015+
example: 'whispering'
29016+
type: 'string'
29017+
text:
29018+
description: 'Text to synthesize'
29019+
example: 'Hi Jane.'
29020+
type: 'string'
29021+
voice:
29022+
description: 'Voice for this turn. Defaults to the top-level `voice`.'
29023+
example: 'Kore'
29024+
minLength: 1
29025+
type: 'string'
29026+
required:
29027+
- 'text'
29028+
type: 'object'
2900029029
StopServerToolsWhen:
2900129030
description: 'Stop conditions for the server-tool agent loop. Any condition firing halts the loop (OR logic). When set, this overrides `max_tool_calls`. When a condition fires while the model is still emitting tool calls, the pending tool calls are executed and one final turn is made with tool calls disabled so the response ends with a natural-language answer instead of an unfinished tool call.'
2900229031
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:d24d16338614e6343ad2fa1f47f408d2f8c3eba071a3d8a472544748a0aa6620
6-
sourceBlobDigest: sha256:da7dea9cc7d4012055e43f82b5e8dbf0324eda4990d380fc4968ae2e93bc5acd
5+
sourceRevisionDigest: sha256:aa4988cf1340b9b4c45d0f7d34c1d80884016b955e99381c9aea52f38e355aa8
6+
sourceBlobDigest: sha256:4828d7d1d7a9927d3268b7bede7018480aa9c23f2a8231ae6bac8eb6dc9bc811
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:d24d16338614e6343ad2fa1f47f408d2f8c3eba071a3d8a472544748a0aa6620
15-
sourceBlobDigest: sha256:da7dea9cc7d4012055e43f82b5e8dbf0324eda4990d380fc4968ae2e93bc5acd
14+
sourceRevisionDigest: sha256:aa4988cf1340b9b4c45d0f7d34c1d80884016b955e99381c9aea52f38e355aa8
15+
sourceBlobDigest: sha256:4828d7d1d7a9927d3268b7bede7018480aa9c23f2a8231ae6bac8eb6dc9bc811
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:3f73f08c00f988c928fcea61faba174a810f86938b84a2f3db39fb026966729c
17+
codeSamplesRevisionDigest: sha256:0aafecfc542610744e021605d5923576663463046651088762e8cf5b1ab55d95
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
@@ -3029,4 +3029,14 @@ Based on:
30293029
### Generated
30303030
- [python v1.3.26] .
30313031
### Releases
3032-
- [PyPI v1.3.26] https://pypi.org/project/openrouter/1.3.26 - .
3032+
- [PyPI v1.3.26] https://pypi.org/project/openrouter/1.3.26 - .
3033+
3034+
## 2026-10-06 21:16:10
3035+
### Changes
3036+
Based on:
3037+
- OpenAPI Doc
3038+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
3039+
### Generated
3040+
- [python v1.3.27] .
3041+
### Releases
3042+
- [PyPI v1.3.27] https://pypi.org/project/openrouter/1.3.27 - .

‎docs/components/aabenchmarkentry.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Artificial Analysis benchmark index scores.
99

1010
| Field | Type | Required | Description | Example |
1111
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
12-
| `agentic_index` | *Nullable[float]* | ✅ | Artificial Analysis Agentic Index score | 55.8 |
13-
| `coding_index` | *Nullable[float]* | ✅ | Artificial Analysis Coding Index score | 63.2 |
14-
| `intelligence_index` | *Nullable[float]* | ✅ | Artificial Analysis Intelligence Index score | 71.4 |
12+
| `agentic_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Agentic Index score | 55.8 |
13+
| `coding_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Coding Index score | 63.2 |
14+
| `intelligence_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Intelligence Index score | 71.4 |

0 commit comments

Comments
 (0)