Skip to content

Commit 8c503fb

Browse files
committed
## Python SDK Changes:
* `open_router.tts.create_speech()`: `request.session_id` **Added** * `open_router.stt.create_transcription()`: `request.session_id` **Added** * `open_router.embeddings.generate()`: `request.session_id` **Added** * `open_router.images.generate()`: `request.session_id` **Added** * `open_router.rerank.rerank()`: `request.session_id` **Added** * `open_router.video_generation.generate()`: `request.session_id` **Added**
1 parent 67e6da9 commit 8c503fb

32 files changed

Lines changed: 359 additions & 210 deletions

‎.speakeasy/gen.lock‎

Lines changed: 66 additions & 59 deletions
Large diffs are not rendered by default.

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

‎.speakeasy/out.openapi.yaml‎

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11024,6 +11024,11 @@ components:
1102411024
seed:
1102511025
description: 'If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.'
1102611026
type: 'integer'
11027+
session_id:
11028+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
11029+
example: 'session-1234'
11030+
maxLength: 256
11031+
type: 'string'
1102711032
size:
1102811033
description: 'Optional. A convenience shorthand for output dimensions — pass a tier ("2K", "4K") or explicit pixels ("2048x2048") and we normalize it to the right dimensions for the chosen provider. A tier size is equivalent to setting `resolution` and combines with `aspect_ratio`. An explicit pixel size is authoritative: a mismatched `resolution` or `aspect_ratio` alongside it is rejected with a 400.'
1102911034
example: '2K'
@@ -24681,6 +24686,11 @@ components:
2468124686
example: 'pcm'
2468224687
type: 'string'
2468324688
x-speakeasy-unknown-values: allow
24689+
session_id:
24690+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
24691+
example: 'session-1234'
24692+
maxLength: 256
24693+
type: 'string'
2468424694
speed:
2468524695
description: 'Playback speed multiplier. Only used by models that support it (e.g. OpenAI TTS). Ignored by other providers.'
2468624696
example: 1
@@ -25182,6 +25192,11 @@ components:
2518225192
example: 'json'
2518325193
type: 'string'
2518425194
x-speakeasy-unknown-values: allow
25195+
session_id:
25196+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
25197+
example: 'session-1234'
25198+
maxLength: 256
25199+
type: 'string'
2518525200
temperature:
2518625201
description: 'Sampling temperature for transcription'
2518725202
example: 0
@@ -27342,6 +27357,11 @@ components:
2734227357
seed:
2734327358
description: 'If specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.'
2734427359
type: 'integer'
27360+
session_id:
27361+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
27362+
example: 'session-1234'
27363+
maxLength: 256
27364+
type: 'string'
2734527365
size:
2734627366
description: 'Exact pixel dimensions of the generated video in "WIDTHxHEIGHT" format (e.g. "1280x720"). Interchangeable with resolution + aspect_ratio.'
2734727367
example: '1280x720'
@@ -31857,6 +31877,11 @@ paths:
3185731877
allOf:
3185831878
- $ref: '#/components/schemas/ProviderPreferences'
3185931879
- description: 'Provider routing preferences for the request.'
31880+
session_id:
31881+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
31882+
example: 'session-1234'
31883+
maxLength: 256
31884+
type: 'string'
3186031885
trace:
3186131886
$ref: '#/components/schemas/TraceConfig'
3186231887
user:
@@ -39675,6 +39700,11 @@ paths:
3967539700
description: 'The search query to rerank documents against'
3967639701
example: 'What is the capital of France?'
3967739702
type: 'string'
39703+
session_id:
39704+
description: 'A unique identifier for grouping related requests (e.g., a conversation or agent workflow). Used for observability grouping in Broadcast and private logging; never sent to the provider. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters.'
39705+
example: 'session-1234'
39706+
maxLength: 256
39707+
type: 'string'
3967839708
top_n:
3967939709
description: 'Number of most relevant documents to return'
3968039710
example: 3

‎.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:6ebcc679e84169af93fbe05f2d6314d4eedf46a65be547e2d8d8a6698c8392e7
6-
sourceBlobDigest: sha256:9aa47ddffc027bad6317842403deb6dd83cc76f0b5912c72b50b416b0d8fabc3
5+
sourceRevisionDigest: sha256:4375b0282081810779ada4291534f7e2f2187decb5310c1e7b66f1a0342f7103
6+
sourceBlobDigest: sha256:1f82abd5653a7823db8675692794f6b32a0f74447a1aac741d650ea014f983af
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:6ebcc679e84169af93fbe05f2d6314d4eedf46a65be547e2d8d8a6698c8392e7
15-
sourceBlobDigest: sha256:9aa47ddffc027bad6317842403deb6dd83cc76f0b5912c72b50b416b0d8fabc3
14+
sourceRevisionDigest: sha256:4375b0282081810779ada4291534f7e2f2187decb5310c1e7b66f1a0342f7103
15+
sourceBlobDigest: sha256:1f82abd5653a7823db8675692794f6b32a0f74447a1aac741d650ea014f983af
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:0a646d375bf04645af361c6a6efa54ac7787ebe41ee5c512bc08dee7c6c808db
17+
codeSamplesRevisionDigest: sha256:575c2deec53a260cff11a3849a75f4e27fe65c3651311382ca749ce2fe0e7393
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
@@ -2289,4 +2289,14 @@ Based on:
22892289
### Generated
22902290
- [python v1.1.150] .
22912291
### Releases
2292-
- [PyPI v1.1.150] https://pypi.org/project/openrouter/1.1.150 - .
2292+
- [PyPI v1.1.150] https://pypi.org/project/openrouter/1.1.150 - .
2293+
2294+
## 2026-09-16 17:20:06
2295+
### Changes
2296+
Based on:
2297+
- OpenAPI Doc
2298+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2299+
### Generated
2300+
- [python v1.1.151] .
2301+
### Releases
2302+
- [PyPI v1.1.151] https://pypi.org/project/openrouter/1.1.151 - .

0 commit comments

Comments
 (0)