Skip to content

Commit d9ed3b6

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

14 files changed

Lines changed: 90 additions & 73 deletions

.speakeasy/gen.lock

Lines changed: 24 additions & 23 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: b50edb303a275cd87528559fa56a9f23
4+
docChecksum: 98e7150b3031e3fd420a1417065c8c33
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.2
9-
configChecksum: f59aacfc0651c61a9fc72baa8dd7804a
8+
releaseVersion: 1.2.3
9+
configChecksum: 623dce73439db2a40cf9981582190d03
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: c9534058-2165-4649-a72f-2119e436b427
15-
pristine_commit_hash: 44783a354d54bd8233f5daff2b0b59b41b3d3a43
16-
pristine_tree_hash: 509d8ec43d574910bf9c0480151873c9fd9fc0a4
14+
generation_id: 5d7c21fa-536d-4272-9c2a-e55016282111
15+
pristine_commit_hash: 1b3d14226546a1c7499d1c2514b24bb578f5cca2
16+
pristine_tree_hash: 0eba64490d21ab3a4f5b7aa4e08a595d88dfb716
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -1659,8 +1659,8 @@ trackedFiles:
16591659
pristine_git_object: 63cc820d2e3f4ddaa6d42dfef4c80006f7810cb2
16601660
docs/components/createinternrequest.mdx:
16611661
id: 31228037ef68
1662-
last_write_checksum: sha1:adb8b817fb517aae23e9417988c9e6231ef493fd
1663-
pristine_git_object: a14e0eafcb0825429ad47197f7036617870488a7
1662+
last_write_checksum: sha1:7f6dd17a2cc45ed74745d9147ec34be3530c9459
1663+
pristine_git_object: 28e8aee5c2ddf7faea52b6f4515b4f25bcaa77fe
16641664
docs/components/createobservabilitydestinationrequest.mdx:
16651665
id: 8d942a601a6e
16661666
last_write_checksum: sha1:a266eb148b179de43a1b08282d7cadd013e5eaa1
@@ -2951,8 +2951,8 @@ trackedFiles:
29512951
pristine_git_object: 14f94bb02c48a460c14d50a0595fc0e89b52e6af
29522952
docs/components/internchatassistantmessage.mdx:
29532953
id: 041634b73e1e
2954-
last_write_checksum: sha1:1e1737a7dad6fe27cc46dd8ade384869c3405784
2955-
pristine_git_object: c8cd00acd8a2ba6fc9deb39eb67c88f5df721d02
2954+
last_write_checksum: sha1:94e8b73e31c14adcdb26c27494e527c308a6a15b
2955+
pristine_git_object: 3334fd334d99f2fbb41a8991fbd1065e5aa4234d
29562956
docs/components/internchatassistantmessagerole.mdx:
29572957
id: 129e5368066f
29582958
last_write_checksum: sha1:82c992193fb0cc60c16db0c54e827830edd565dc
@@ -8095,8 +8095,8 @@ trackedFiles:
80958095
pristine_git_object: 08c687694efbecf50406ae7929029d39fb121295
80968096
docs/sdks/interns/README.mdx:
80978097
id: 2f8a053ffe78
8098-
last_write_checksum: sha1:da31cdf965e76b3d7407859c77195597dfc0f3f3
8099-
pristine_git_object: 7c93035351f6c24a0dbc6ad9ffa88ff6983436be
8098+
last_write_checksum: sha1:761b9ca2d74d524a438c0c28d6b2a8eaf094d02f
8099+
pristine_git_object: e1629ebefd58b9bc114f18c18ca4f789f9e28cf2
81008100
docs/sdks/models/README.mdx:
81018101
id: 58f1ca464e0b
81028102
last_write_checksum: sha1:093dd30ebdd18b9763a6956915e0dcae4ae7d5e5
@@ -8159,8 +8159,8 @@ trackedFiles:
81598159
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
81608160
pyproject.toml:
81618161
id: 5d07e7d72637
8162-
last_write_checksum: sha1:9afc3fd39db73dc4ebc9191ca2f946f7d0fb314f
8163-
pristine_git_object: e226a37cb10351e696db48eaa6c6756d8b606fd1
8162+
last_write_checksum: sha1:53b3f141b22a6643e7a6482d3a925c184cde880a
8163+
pristine_git_object: 4617f98a2d78d6cd1d6cf7f71dad83c97abdf784
81648164
scripts/prepare_readme.py:
81658165
id: e0c5957a6035
81668166
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8187,8 +8187,8 @@ trackedFiles:
81878187
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
81888188
src/openrouter/_version.py:
81898189
id: d8d15ad6c586
8190-
last_write_checksum: sha1:6fff83400b77ac7544e0264ec4947cf99d180892
8191-
pristine_git_object: d221360b25686132fe7f6ceba3fda75bc2a14bcb
8190+
last_write_checksum: sha1:f76f1919ba451dd947efe64925dbc5eff1939bd3
8191+
pristine_git_object: 2ea5bbe6f2011c6d8e394549eb4b0ef9d503dcc5
81928192
src/openrouter/alpha.py:
81938193
id: 306c4d93308d
81948194
last_write_checksum: sha1:0c25a52ed5fb688ec1e923e4e82bcfc9cae49465
@@ -8963,8 +8963,8 @@ trackedFiles:
89638963
pristine_git_object: d6c4a4dc73222668daddc2a1788d314ff30e8fe6
89648964
src/openrouter/components/createinternrequest.py:
89658965
id: 5722cff28787
8966-
last_write_checksum: sha1:304835f2ff0852585a88d22e902f5ba63b0a749c
8967-
pristine_git_object: f8da7513209307490563f91eeff184cd46c745a5
8966+
last_write_checksum: sha1:7bb6aa692c02e2c844df09e1109d47b82c53433f
8967+
pristine_git_object: b65a8d59c7513566b243b61ba052e2d921186153
89688968
src/openrouter/components/createobservabilitydestinationrequest.py:
89698969
id: 58587fb98a32
89708970
last_write_checksum: sha1:e0acb6b3d5dda9f6101b69ab9048dfea1492bb73
@@ -9511,8 +9511,8 @@ trackedFiles:
95119511
pristine_git_object: 988b3a736faf813db2adf006f36e0c400935bb46
95129512
src/openrouter/components/internchatassistantmessage.py:
95139513
id: c730f5412099
9514-
last_write_checksum: sha1:45ffb3fbffa40a876abaf6178c6a6cc520c49fee
9515-
pristine_git_object: dcace16b45df1feb6cff3cf26a81e4e57dcff01f
9514+
last_write_checksum: sha1:b7604b2f9bf91090ef9e55f6d77a85aeaf771762
9515+
pristine_git_object: 208a06d25920d4bfd39bb527b54e78be44adf9f3
95169516
src/openrouter/components/internchatchoice.py:
95179517
id: 9ff5592609ff
95189518
last_write_checksum: sha1:485dfd417ca8af7b2be21f8618179db06f598076
@@ -11127,8 +11127,8 @@ trackedFiles:
1112711127
pristine_git_object: 50643a126668498dd668c7cceb9f78c03d413d32
1112811128
src/openrouter/interns.py:
1112911129
id: d18df05c5c6d
11130-
last_write_checksum: sha1:b0bfde773d639616f1ace6bbe828aaf443c0db2a
11131-
pristine_git_object: 4e354feedb9e31941e080333c7280852fcd4c823
11130+
last_write_checksum: sha1:46da31cb08d788fef4b47deb9da667d2ac46d7aa
11131+
pristine_git_object: d1dac0bfa081eb17a14a363f4c0c7d688b4b45c7
1113211132
src/openrouter/models/__init__.py:
1113311133
id: ed73b93abb3f
1113411134
last_write_checksum: sha1:932a790ae66ccd7d7022b39c659bcf72a664ebea
@@ -14825,7 +14825,7 @@ examples:
1482514825
createIntern:
1482614826
speakeasy-default-create-intern:
1482714827
requestBody:
14828-
application/json: {"name": "research-assistant", "provision": true, "workspace_id": "89f9f5b2-3f89-4eaf-83ca-5ceae149e8bb"}
14828+
application/json: {"name": "research-assistant", "provision": true}
1482914829
responses:
1483014830
"200":
1483114831
application/json: {"attached_vault_id": null, "created_at": "2026-09-16T08:30:00.000Z", "description": "Researches customer questions", "hostname": "research-assistant.openrouter.ai", "id": "7c9e6679-7425-40de-944b-e07fc1f90ae7", "instructions": null, "last_failure_message": null, "model": "openai/gpt-5.4", "name": "research-assistant", "progress": null, "status": "running", "updated_at": "2026-09-16T08:45:00.000Z", "vault_id": "b431c59d-6eed-41ac-bc89-9a89be79a121", "workspace_id": "89f9f5b2-3f89-4eaf-83ca-5ceae149e8bb"}
@@ -14941,3 +14941,4 @@ examples:
1494114941
"502":
1494214942
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
1494314943
examplesVersion: 1.0.2
14944+
releaseNotes: "## Python SDK Changes:\n* `open_router.interns.create_intern()`: `request.workspace_id` **Changed**\n* `open_router.interns.chat()`: \n * `request.messages[].union(assistant).content` **Changed**\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.2
39+
version: 1.2.3
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7714,7 +7714,7 @@ components:
77147714
type: 'object'
77157715
CreateInternRequest:
77167716
additionalProperties: false
7717-
description: 'Settings for a new intern in an explicit workspace.'
7717+
description: 'Settings for a new intern.'
77187718
example:
77197719
name: 'research-assistant'
77207720
provision: true
@@ -7747,12 +7747,11 @@ components:
77477747
format: 'uuid'
77487748
type: 'string'
77497749
workspace_id:
7750-
description: 'Workspace that will own the intern. It must match the API key workspace.'
7750+
description: 'Workspace that will own the intern. Defaults to the workspace the API key resolves to. When given, it must match the API key workspace.'
77517751
format: 'uuid'
77527752
type: 'string'
77537753
required:
77547754
- 'name'
7755-
- 'workspace_id'
77567755
type: 'object'
77577756
CreateObservabilityDestinationRequest:
77587757
example:
@@ -12557,7 +12556,6 @@ components:
1255712556
$ref: '#/components/schemas/InternChatEchoedToolCall'
1255812557
type: 'array'
1255912558
required:
12560-
- 'content'
1256112559
- 'role'
1256212560
type: 'object'
1256312561
InternChatChoice:
@@ -36936,7 +36934,7 @@ paths:
3693636934
- $ref: "#/components/parameters/AppCategories"
3693736935
/interns/{internId}/chat/completions:
3693836936
post:
36939-
description: "Sends a prompt to one of your interns and streams the reply as OpenAI-compatible server-sent events ending with `[DONE]`. The run executes on the intern, which may pause to ask you something. It then streams one `openrouter.provide_input` tool call and finishes with `finish_reason: \"tool_calls\"`, and the run stays open on the intern.\n\nEvery response, whether it ends with `stop`, `tool_calls` or `error`, is followed by a final chunk with empty `choices` that carries `session_id`, then `data: [DONE]`. That chunk carries the `usage` the intern reported for the run, after `stop` or `error`, and `null` when the intern reported none. After `tool_calls` its `usage` is `null` because the turn is not over. Read through `[DONE]`: the `session_id` you need to reply arrives after the `tool_calls` finish chunk.\n\nTo answer, send a second request with the same `session_id`, the assistant message echoing that tool call, and a `tool` message whose `tool_call_id` is the tool call id and whose `content` is the answer. The answer is delivered to the run that asked and the stream continues from where it paused. A question stays open for its interaction deadline (5 minutes by default) and the run is cancelled when that passes. Rejected replies do not extend the deadline.\n\nClosing the connection after the `[DONE]` that follows `finish_reason: \"tool_calls\"` keeps the run alive. Disconnecting while a response is still streaming cancels the run. The disconnect is noticed when the intern next writes to the stream, which during a silent tool run can take more than one 30 second heartbeat interval.\n\nA run the intern ends while you are still connected, by cancellation or by a deadline, ends the stream with a `finish_reason: \"error\"` chunk carrying `410` and reason `run_ended`, then the final empty-`choices` chunk and `[DONE]`. That error reports only an ending the intern confirmed. A connection that breaks without that confirmation ends with reason `stream_severed`, and a client that has already disconnected is promised no final event.\n\nSet `approval_mode` to `manual` to have the intern ask before approval-bearing tools such as the shell. Omitted, the run self-drives and consents on your behalf. The mode belongs to the run started by that prompt and must be repeated on later prompts.\n\nAvailable to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`."
36937+
description: "Sends a prompt to one of your interns and streams the reply as OpenAI-compatible server-sent events ending with `[DONE]`. The run executes on the intern, which may pause to ask you something. It then streams one `openrouter.provide_input` tool call and finishes with `finish_reason: \"tool_calls\"`, and the run stays open on the intern.\n\nEvery response, whether it ends with `stop`, `tool_calls` or `error`, is followed by a final chunk with empty `choices` that carries `session_id`, then `data: [DONE]`. That chunk carries the `usage` the intern reported for the run, after `stop` or `error`, and `null` when the intern reported none. After `tool_calls` its `usage` is `null` because the turn is not over. Read through `[DONE]`: the `session_id` you need to reply arrives after the `tool_calls` finish chunk.\n\nTo answer, send a second request with the same `session_id`, the assistant message echoing that tool call, and a `tool` message whose `tool_call_id` is the tool call id and whose `content` is the answer. The answer is delivered to the run that asked and the stream continues from where it paused. A question stays open for its interaction deadline (5 minutes by default) and the run is cancelled when that passes. Rejected replies do not extend the deadline.\n\nClosing the connection after the `[DONE]` that follows `finish_reason: \"tool_calls\"` keeps the run alive. Disconnecting while a response is still streaming cancels the run. The stream writes a `: keepalive` comment whenever nothing else has been written for 30 seconds, so a disconnect is noticed within that interval even while the intern is silent.\n\nA run the intern ends while you are still connected, by cancellation or by a deadline, ends the stream with a `finish_reason: \"error\"` chunk carrying `410` and reason `run_ended`, then the final empty-`choices` chunk and `[DONE]`. That error reports only an ending the intern confirmed. A connection that breaks without that confirmation ends with reason `stream_severed`, and a client that has already disconnected is promised no final event.\n\nSet `approval_mode` to `manual` to have the intern ask before approval-bearing tools such as the shell. Omitted, the run self-drives and consents on your behalf. The mode belongs to the run started by that prompt and must be repeated on later prompts.\n\nAvailable to interns programme members. Callers outside the programme receive `404` for every path under `/api/v1/interns`."
3694036938
operationId: 'createInternChatCompletion'
3694136939
parameters:
3694236940
- description: 'The intern to talk to.'

.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:2a5f58c93ded285d2ea44843c2be64279bf9f883f2507c941cd7c3e6fffc1cf6
6-
sourceBlobDigest: sha256:b675b6683675edd5bbfb18635aa9b01a0aef7c99e2360292069370339c7d1577
5+
sourceRevisionDigest: sha256:f0fb9fa202382f14a83873f69b9d5b003cd33e065510c8821c67a663199a416f
6+
sourceBlobDigest: sha256:59e9c8a835a3892c62f41b61b4fa7fc9875e22c07ed105629f1bf1ef40247e24
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:2a5f58c93ded285d2ea44843c2be64279bf9f883f2507c941cd7c3e6fffc1cf6
15-
sourceBlobDigest: sha256:b675b6683675edd5bbfb18635aa9b01a0aef7c99e2360292069370339c7d1577
14+
sourceRevisionDigest: sha256:f0fb9fa202382f14a83873f69b9d5b003cd33e065510c8821c67a663199a416f
15+
sourceBlobDigest: sha256:59e9c8a835a3892c62f41b61b4fa7fc9875e22c07ed105629f1bf1ef40247e24
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:346062ca02f81ae3d976e78102fdc231b473c80fd7327c0a48b1023cadb5e99a
17+
codeSamplesRevisionDigest: sha256:5f67b7a6c5047267d59779ec3bfd641d2362b080355e376e8d1f2c4452c0669d
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
@@ -2429,4 +2429,14 @@ Based on:
24292429
### Generated
24302430
- [python v1.2.2] .
24312431
### Releases
2432-
- [PyPI v1.2.2] https://pypi.org/project/openrouter/1.2.2 - .
2432+
- [PyPI v1.2.2] https://pypi.org/project/openrouter/1.2.2 - .
2433+
2434+
## 2026-09-19 17:29:06
2435+
### Changes
2436+
Based on:
2437+
- OpenAPI Doc
2438+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2439+
### Generated
2440+
- [python v1.2.3] .
2441+
### Releases
2442+
- [PyPI v1.2.3] https://pypi.org/project/openrouter/1.2.3 - .

0 commit comments

Comments
 (0)