Skip to content

Commit f6f9804

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

12 files changed

Lines changed: 83 additions & 58 deletions

File tree

.speakeasy/gen.lock

Lines changed: 19 additions & 26 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: d3929b9d897993d513d38a3eac8a1b75
4+
docChecksum: 6f77441e1dc1069bd78afe09c4afd9ee
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.0.0
9-
configChecksum: a98327d105a9b554ecf6667b75c4cdea
8+
releaseVersion: 1.0.1
9+
configChecksum: 1b090d450f85b5839d5e85b8a9893a46
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: 74fd2ac6-6c50-461a-a4b1-e19b17e2a3a8
15-
pristine_commit_hash: 3fa8e4be1b64c4b1583d3ed8189a0d0445662b96
16-
pristine_tree_hash: c5060714752fb4359cb3ba4720314b1e636045e6
14+
generation_id: bb16be7e-6101-41da-9f5f-e2d606ded138
15+
pristine_commit_hash: 45f1542f3a6501272c994912c277397a616a62af
16+
pristine_tree_hash: 1d11119251e962d7c1de4f86f1d51a7e9cbb2374
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -3386,8 +3386,8 @@ trackedFiles:
33863386
pristine_git_object: ad79a325e74efc6cc08ad7ffc794cecd0e7eaa15
33873387
docs/components/outputbashservertoolitem.mdx:
33883388
id: c17c44c991b5
3389-
last_write_checksum: sha1:7d04159d7f2b51c2df50eddd58362d71dc0ec3a5
3390-
pristine_git_object: c039dfa53c36c853fbbb8bff1b6a5bb02be00f84
3389+
last_write_checksum: sha1:6f0a1d504dca563629c30d3ba3a00794758e1444
3390+
pristine_git_object: cf5ee887723a1081f1f12b22e8d6cbb478cbfe35
33913391
docs/components/outputbashservertoolitemtype.mdx:
33923392
id: 584dd317e6ab
33933393
last_write_checksum: sha1:558e35bae6619f511da32758b7642bc6f000c95e
@@ -6694,8 +6694,8 @@ trackedFiles:
66946694
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
66956695
pyproject.toml:
66966696
id: 5d07e7d72637
6697-
last_write_checksum: sha1:c41413e7a2ae6e64d9db26537a3d18596a1bed2d
6698-
pristine_git_object: f2fa4d79ce479d6b96b4ab31cb1f3af6b6a003ee
6697+
last_write_checksum: sha1:a627791ecc75c207e1643dab39d8ad491f424832
6698+
pristine_git_object: 53b3f25e3364095a735ec5b2233d1321fbd07394
66996699
scripts/prepare_readme.py:
67006700
id: e0c5957a6035
67016701
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6722,8 +6722,8 @@ trackedFiles:
67226722
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
67236723
src/openrouter/_version.py:
67246724
id: d8d15ad6c586
6725-
last_write_checksum: sha1:c751b0e79fc1c294fff4315b95fd82b8f315bb0e
6726-
pristine_git_object: ee5610f97e1cfc810acc9175fabf21f10b897b84
6725+
last_write_checksum: sha1:3a798d815c15fc62000f76deeef005e219cfc85f
6726+
pristine_git_object: 5f2bcfd4ae8cca81345346effd5141ed7aaa154e
67276727
src/openrouter/analytics.py:
67286728
id: cb406b5aaabb
67296729
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -7830,8 +7830,8 @@ trackedFiles:
78307830
pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446
78317831
src/openrouter/components/inputs_union.py:
78327832
id: 17d6239cb6a7
7833-
last_write_checksum: sha1:bc4c9ad744a2bc44a02084031ddbf3b4fcade904
7834-
pristine_git_object: e0fac2909e5ae6fbe8ea043244b99cd0eb32a73d
7833+
last_write_checksum: sha1:a860c3512d4159191d30833c88d47a19110b9cc3
7834+
pristine_git_object: 5b4249f3fa464b7a8a499789415ebaa533ce3775
78357835
src/openrouter/components/inputtext.py:
78367836
id: a995ae96be99
78377837
last_write_checksum: sha1:2da9ff645acc96772701908830151c5a707ed021
@@ -8186,8 +8186,8 @@ trackedFiles:
81868186
pristine_git_object: 919f2bb6ec91d62dcb223c15e2a25d2830b75ac9
81878187
src/openrouter/components/outputbashservertoolitem.py:
81888188
id: 39d03767e214
8189-
last_write_checksum: sha1:4bec4680ba72e28bbf8d64abc72cd876222fd9fc
8190-
pristine_git_object: daa5bcc66591a1ecbc0328d25a8039cc0d70fe14
8189+
last_write_checksum: sha1:4131ffc72dc8453a69519123865251149ff61a2c
8190+
pristine_git_object: 6a1f46ff0c467c6fffdb24aa58d45067e521f3f3
81918191
src/openrouter/components/outputbrowseruseservertoolitem.py:
81928192
id: 73bff94d7284
81938193
last_write_checksum: sha1:6835f17b73a909e8a49ce9ba1257d43c62eeb690
@@ -8246,8 +8246,8 @@ trackedFiles:
82468246
pristine_git_object: 94af810bbdb87fb8c6800645354f7ec4dd067e7f
82478247
src/openrouter/components/outputitems.py:
82488248
id: 90f107de3116
8249-
last_write_checksum: sha1:278d94da113ba85ced7ae5e84b4c8b3c36a7d2c5
8250-
pristine_git_object: f828fba44f1de7265e267d2201dbd3043fc5cfa1
8249+
last_write_checksum: sha1:fac534b977b1ec4fc578d30158f6775be1ef338c
8250+
pristine_git_object: 435d6ec832782df70a815222db371ebfb29998a4
82518251
src/openrouter/components/outputmcpservertoolitem.py:
82528252
id: bb8c2536a58e
82538253
last_write_checksum: sha1:28d33c9226ff4ce6871457fa1fae384b590f676c
@@ -11201,11 +11201,4 @@ examples:
1120111201
"500":
1120211202
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1120311203
examplesVersion: 1.0.2
11204-
releaseNotes: |
11205-
## Python SDK Changes:
11206-
* `open_router.endpoints.list_zdr_endpoints()`: `error.status[403]` **Added**
11207-
* `open_router.endpoints.list()`: `error.status[403]` **Added**
11208-
* `open_router.models.get()`: `error.status[403]` **Added**
11209-
* `open_router.models.list()`: `error.status[403]` **Added**
11210-
* `open_router.models.count()`: `error.status[403]` **Added**
11211-
* `open_router.models.list_for_user()`: `error.status[403]` **Added**
11204+
releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[].union(OutputBashServerToolItem)` **Changed**\n * `response` **Changed**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(OutputBashServerToolItem)` **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.0.0
39+
version: 1.0.1
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

.speakeasy/out.openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16738,6 +16738,12 @@ components:
1673816738
stdout: "total 0\n"
1673916739
type: 'openrouter:bash'
1674016740
properties:
16741+
arguments:
16742+
description: 'The raw tool-call arguments string as emitted by the model.'
16743+
type: 'string'
16744+
call_id:
16745+
description: 'The model-generated tool call id from the originating turn.'
16746+
type: 'string'
1674116747
command:
1674216748
type: 'string'
1674316749
exitCode:

.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:2fb7c6c4af553f2758d67c2b54408be8b95fddfcbb9f9afd8dd24740edc9ecfe
6-
sourceBlobDigest: sha256:616610478ee4486d26a055db3a10ad8e83ffad10f7b318ffe8a3f890cfd510f8
5+
sourceRevisionDigest: sha256:51717059b037e72dd6fba46e7fce6df49aa5db317f8aded34632048927c7af9f
6+
sourceBlobDigest: sha256:f0b915cb0addae38ea63264fe44482976fb9f9d997bf6b1e4c6d0f93254e42bb
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:2fb7c6c4af553f2758d67c2b54408be8b95fddfcbb9f9afd8dd24740edc9ecfe
15-
sourceBlobDigest: sha256:616610478ee4486d26a055db3a10ad8e83ffad10f7b318ffe8a3f890cfd510f8
14+
sourceRevisionDigest: sha256:51717059b037e72dd6fba46e7fce6df49aa5db317f8aded34632048927c7af9f
15+
sourceBlobDigest: sha256:f0b915cb0addae38ea63264fe44482976fb9f9d997bf6b1e4c6d0f93254e42bb
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:e2114610d847592f214bc006ddc25448fde09a771f9278f476d8bb50e370437c
17+
codeSamplesRevisionDigest: sha256:aa4362de8cc0c46cfedb92b2042a4bdaa4a9087aef96179f984fdb38c8ff06cf
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,3 +579,14 @@ Based on:
579579
- [python v1.0.0] .
580580
### Releases
581581
- [PyPI v1.0.0] https://pypi.org/project/openrouter/1.0.0 - .
582+
583+
584+
## 2026-07-20 22:08:52
585+
### Changes
586+
Based on:
587+
- OpenAPI Doc
588+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
589+
### Generated
590+
- [python v1.0.1] .
591+
### Releases
592+
- [PyPI v1.0.1] https://pypi.org/project/openrouter/1.0.1 - .

docs/components/outputbashservertoolitem.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ An openrouter:bash server tool output item
99

1010
| Field | Type | Required | Description | Example |
1111
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
12+
| `arguments` | *Optional[str]* | :heavy_minus_sign: | The raw tool-call arguments string as emitted by the model. | |
13+
| `call_id` | *Optional[str]* | :heavy_minus_sign: | The model-generated tool call id from the originating turn. | |
1214
| `command` | *Optional[str]* | :heavy_minus_sign: | N/A | |
1315
| `exit_code` | *Optional[int]* | :heavy_minus_sign: | N/A | |
1416
| `id` | *Optional[str]* | :heavy_minus_sign: | N/A | |

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "1.0.0"
3+
version = "1.0.1"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"
@@ -52,3 +52,4 @@ ignore_missing_imports = true
5252
venvPath = "."
5353
venv = ".venv"
5454

55+

src/openrouter/_version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "openrouter"
6-
__version__: str = "1.0.0"
6+
__version__: str = "1.0.1"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.0.0 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.0.1 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

src/openrouter/components/inputs_union.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -403,26 +403,26 @@ def serialize_model(self, handler):
403403
OutputSearchModelsServerToolItemTypedDict,
404404
OutputMcpServerToolItemTypedDict,
405405
CustomToolCallItemTypedDict,
406-
OutputComputerCallItemTypedDict,
407406
OutputCodeInterpreterCallItemTypedDict,
408407
OutputCustomToolCallItemTypedDict,
408+
ShellCallOutputItemTypedDict,
409409
InputsMessageTypedDict,
410410
OutputMemoryServerToolItemTypedDict,
411+
OutputComputerCallItemTypedDict,
411412
ShellCallItemTypedDict,
412-
ShellCallOutputItemTypedDict,
413-
OutputBashServerToolItemTypedDict,
414-
McpCallItemTypedDict,
415-
OutputFunctionCallItemTypedDict,
413+
OutputImageGenerationServerToolItemTypedDict,
416414
AgentMessageItemTypedDict,
417415
FunctionCallItemTypedDict,
418-
OutputImageGenerationServerToolItemTypedDict,
419-
OutputSubagentServerToolItemTypedDict,
416+
OutputFunctionCallItemTypedDict,
417+
McpCallItemTypedDict,
418+
OutputFilesServerToolItemTypedDict,
420419
InputsReasoningTypedDict,
421-
OutputAdvisorServerToolItemTypedDict,
420+
ReasoningItemTypedDict,
421+
OutputSubagentServerToolItemTypedDict,
422422
OutputCodeInterpreterServerToolItemTypedDict,
423+
OutputAdvisorServerToolItemTypedDict,
423424
OutputWebFetchServerToolItemTypedDict,
424-
OutputFilesServerToolItemTypedDict,
425-
ReasoningItemTypedDict,
425+
OutputBashServerToolItemTypedDict,
426426
OutputFusionServerToolItemTypedDict,
427427
],
428428
)
@@ -459,26 +459,26 @@ def serialize_model(self, handler):
459459
OutputSearchModelsServerToolItem,
460460
OutputMcpServerToolItem,
461461
CustomToolCallItem,
462-
OutputComputerCallItem,
463462
OutputCodeInterpreterCallItem,
464463
OutputCustomToolCallItem,
464+
ShellCallOutputItem,
465465
InputsMessage,
466466
OutputMemoryServerToolItem,
467+
OutputComputerCallItem,
467468
ShellCallItem,
468-
ShellCallOutputItem,
469-
OutputBashServerToolItem,
470-
McpCallItem,
471-
OutputFunctionCallItem,
469+
OutputImageGenerationServerToolItem,
472470
AgentMessageItem,
473471
FunctionCallItem,
474-
OutputImageGenerationServerToolItem,
475-
OutputSubagentServerToolItem,
472+
OutputFunctionCallItem,
473+
McpCallItem,
474+
OutputFilesServerToolItem,
476475
InputsReasoning,
477-
OutputAdvisorServerToolItem,
476+
ReasoningItem,
477+
OutputSubagentServerToolItem,
478478
OutputCodeInterpreterServerToolItem,
479+
OutputAdvisorServerToolItem,
479480
OutputWebFetchServerToolItem,
480-
OutputFilesServerToolItem,
481-
ReasoningItem,
481+
OutputBashServerToolItem,
482482
OutputFusionServerToolItem,
483483
],
484484
)

src/openrouter/components/outputbashservertoolitem.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ class OutputBashServerToolItemTypedDict(TypedDict):
1717

1818
status: ToolCallStatus
1919
type: OutputBashServerToolItemType
20+
arguments: NotRequired[str]
21+
r"""The raw tool-call arguments string as emitted by the model."""
22+
call_id: NotRequired[str]
23+
r"""The model-generated tool call id from the originating turn."""
2024
command: NotRequired[str]
2125
exit_code: NotRequired[int]
2226
id: NotRequired[str]
@@ -31,6 +35,12 @@ class OutputBashServerToolItem(BaseModel):
3135

3236
type: OutputBashServerToolItemType
3337

38+
arguments: Optional[str] = None
39+
r"""The raw tool-call arguments string as emitted by the model."""
40+
41+
call_id: Optional[str] = None
42+
r"""The model-generated tool call id from the originating turn."""
43+
3444
command: Optional[str] = None
3545

3646
exit_code: Annotated[Optional[int], pydantic.Field(alias="exitCode")] = None
@@ -43,7 +53,9 @@ class OutputBashServerToolItem(BaseModel):
4353

4454
@model_serializer(mode="wrap")
4555
def serialize_model(self, handler):
46-
optional_fields = set(["command", "exitCode", "id", "stderr", "stdout"])
56+
optional_fields = set(
57+
["arguments", "call_id", "command", "exitCode", "id", "stderr", "stdout"]
58+
)
4759
serialized = handler(self)
4860
m = {}
4961

0 commit comments

Comments
 (0)