Skip to content

Commit cb401a8

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

10 files changed

Lines changed: 46 additions & 31 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 15 additions & 15 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: 90c78b88e476abf5f4b3870ddd61c40a
4+
docChecksum: 04bbc41078a88cc87386c416fa055e46
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.22
9-
configChecksum: 6b2b04df03e2efcd7624592d08e229ff
8+
releaseVersion: 1.1.23
9+
configChecksum: e308e072d38ab25dfa082923cfcb6c37
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: c8f59c2a-0f97-463f-bb28-fb80519614fb
15-
pristine_commit_hash: b3e6da353d33862f593e6fa510b0f70ee067771c
16-
pristine_tree_hash: 2313476e0b12016b7267eb6f5999ea90ff0bb478
14+
generation_id: dfa4101d-8e6c-4dc0-982d-8c873b25d753
15+
pristine_commit_hash: 1a341267d787005b16c00ddb69db3ef06f07f0ba
16+
pristine_tree_hash: 0a622c78755ce17894cd25e65a2450b671dc2602
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -2514,8 +2514,8 @@ trackedFiles:
25142514
pristine_git_object: ec384a2cd15b4af761c84955f7da3b98d2427564
25152515
docs/components/inputsmessage.mdx:
25162516
id: 8187d4987ebd
2517-
last_write_checksum: sha1:cb5e14bd64190feae73408111aa97509c339da0b
2518-
pristine_git_object: 60f7bd2f3f71f659746917b9114c09fb3dbca65a
2517+
last_write_checksum: sha1:b8d394bd1a17a2123888433529516baf69ef079f
2518+
pristine_git_object: f64aa8de68d7d5d22df98a67a1554cbdab6f8d2e
25192519
docs/components/inputsphasecommentary.mdx:
25202520
id: 60d1aac83135
25212521
last_write_checksum: sha1:6876e0b49c7c8d92c4f56fcba61b511accf19a6a
@@ -7046,8 +7046,8 @@ trackedFiles:
70467046
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
70477047
pyproject.toml:
70487048
id: 5d07e7d72637
7049-
last_write_checksum: sha1:96f56c4ebc0662d57384314110cdb48736b0a78c
7050-
pristine_git_object: 6aa687119319926b25536567b5513375f92e0c82
7049+
last_write_checksum: sha1:8ad13a878e6b4cd386295697329733e9540a0fe5
7050+
pristine_git_object: 59d8a340a085a79e82e7f8aee53e82a3529c2392
70517051
scripts/prepare_readme.py:
70527052
id: e0c5957a6035
70537053
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7074,8 +7074,8 @@ trackedFiles:
70747074
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
70757075
src/openrouter/_version.py:
70767076
id: d8d15ad6c586
7077-
last_write_checksum: sha1:a1b545228fda90af86edd9df0f9b77372db5282a
7078-
pristine_git_object: b1afeb0e7bf2f79c8a19511285b06a43adf5d1ef
7077+
last_write_checksum: sha1:a1df53c12984d840da2d89f1bdcfe9e149c16935
7078+
pristine_git_object: acc2a45cf40c9f459881a490afb4c5f3c59e92bb
70797079
src/openrouter/analytics.py:
70807080
id: cb406b5aaabb
70817081
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -8226,8 +8226,8 @@ trackedFiles:
82268226
pristine_git_object: a3d84a96f4553a320f5eee5d63f6bc5c244ab446
82278227
src/openrouter/components/inputs_union.py:
82288228
id: 17d6239cb6a7
8229-
last_write_checksum: sha1:c321099e2c1ca483d570db734d9218fca60aa56c
8230-
pristine_git_object: fdb4f4d8726aaa4373e7b869359e24873609b052
8229+
last_write_checksum: sha1:47b4138ee8bdcb0a779903f037d40f9ff777f00f
8230+
pristine_git_object: 636485dea6c14040b9357237b04489decc0d2b5a
82318231
src/openrouter/components/inputtext.py:
82328232
id: a995ae96be99
82338233
last_write_checksum: sha1:2da9ff645acc96772701908830151c5a707ed021
@@ -11822,4 +11822,4 @@ examples:
1182211822
"500":
1182311823
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1182411824
examplesVersion: 1.0.2
11825-
releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.service_tier.enum(fast)` **Added**\n * `response` **Changed**\n* `open_router.chat.send()`: \n * `request.service_tier.enum(fast)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.service_tier.enum(fast)` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.service_tier.enum(fast)` **Added**\n* `open_router.responses.send()`: \n * `request.service_tier.enum(fast)` **Added**\n * `response` **Changed**\n"
11825+
releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[].union(class (7)).type` **Changed**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(class (7)).type` **Changed**\n* `open_router.responses.send()`: \n * `request.input.union(Array<>)[].union(class (7)).type` **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.1.22
39+
version: 1.1.23
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11090,6 +11090,11 @@ components:
1109011090
type: 'array'
1109111091
- type: 'string'
1109211092
- type: 'null'
11093+
type:
11094+
default: 'message'
11095+
enum:
11096+
- 'message'
11097+
type: 'string'
1109311098
type: 'object'
1109411099
description: 'An output message item'
1109511100
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:382a74da2ebf5e8d0d8551d76b3999c98b6a9fef8318f44b935c21c0dc01d178
6-
sourceBlobDigest: sha256:7ce50587c3ee8461b48e7eef8de817da3c66327a84eca93b45a71c350d277307
5+
sourceRevisionDigest: sha256:71ad71e0b5138ebb6ed877f60e121fd26f0cca98284f0abb4b7cd7fef45cfa40
6+
sourceBlobDigest: sha256:92929a5c9d144c5f379c694094acea53c3767e9ca1a9df64c84b92e3e67aca7d
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:382a74da2ebf5e8d0d8551d76b3999c98b6a9fef8318f44b935c21c0dc01d178
15-
sourceBlobDigest: sha256:7ce50587c3ee8461b48e7eef8de817da3c66327a84eca93b45a71c350d277307
14+
sourceRevisionDigest: sha256:71ad71e0b5138ebb6ed877f60e121fd26f0cca98284f0abb4b7cd7fef45cfa40
15+
sourceBlobDigest: sha256:92929a5c9d144c5f379c694094acea53c3767e9ca1a9df64c84b92e3e67aca7d
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:1fb7d6b0e35a3f8df93331022ea6997ba05d71eeb651d959ebf0f7948d1ee0a9
17+
codeSamplesRevisionDigest: sha256:ab150ee098def8e75556180e64ae86bf6877be5271dbe315935df33658a1f525
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
@@ -1009,4 +1009,14 @@ Based on:
10091009
### Generated
10101010
- [python v1.1.22] .
10111011
### Releases
1012-
- [PyPI v1.1.22] https://pypi.org/project/openrouter/1.1.22 - .
1012+
- [PyPI v1.1.22] https://pypi.org/project/openrouter/1.1.22 - .
1013+
1014+
## 2026-07-31 14:32:08
1015+
### Changes
1016+
Based on:
1017+
- OpenAPI Doc
1018+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1019+
### Generated
1020+
- [python v1.1.23] .
1021+
### Releases
1022+
- [PyPI v1.1.23] https://pypi.org/project/openrouter/1.1.23 - .

‎docs/components/inputsmessage.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ An output message item
1414
| `phase` | [OptionalNullable[components.InputsPhaseUnion]](../components/inputsphaseunion.mdx) | :heavy_minus_sign: | The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages. |
1515
| `role` | [components.InputsRole](../components/inputsrole.mdx) | :heavy_check_mark: | N/A |
1616
| `status` | [Optional[components.InputsStatusUnion1]](../components/inputsstatusunion1.mdx) | :heavy_minus_sign: | N/A |
17-
| `type` | [components.InputsTypeMessage](../components/inputstypemessage.mdx) | :heavy_check_mark: | N/A |
17+
| `type` | [Optional[components.InputsTypeMessage]](../components/inputstypemessage.mdx) | :heavy_minus_sign: | N/A |

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "1.1.22"
3+
version = "1.1.23"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

‎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.1.22"
6+
__version__: str = "1.1.23"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.1.22 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.1.23 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

‎src/openrouter/components/inputs_union.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ class InputsMessageTypedDict(TypedDict):
324324
content: Nullable[InputsContent2TypedDict]
325325
id: str
326326
role: InputsRole
327-
type: InputsTypeMessage
328327
phase: NotRequired[Nullable[InputsPhaseUnionTypedDict]]
329328
r"""The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages."""
330329
status: NotRequired[InputsStatusUnion1TypedDict]
330+
type: NotRequired[InputsTypeMessage]
331331

332332

333333
class InputsMessage(BaseModel):
@@ -339,16 +339,16 @@ class InputsMessage(BaseModel):
339339

340340
role: InputsRole
341341

342-
type: InputsTypeMessage
343-
344342
phase: OptionalNullable[InputsPhaseUnion] = UNSET
345343
r"""The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages."""
346344

347345
status: Optional[InputsStatusUnion1] = None
348346

347+
type: Optional[InputsTypeMessage] = "message"
348+
349349
@model_serializer(mode="wrap")
350350
def serialize_model(self, handler):
351-
optional_fields = set(["phase", "status"])
351+
optional_fields = set(["phase", "status", "type"])
352352
nullable_fields = set(["content", "phase"])
353353
serialized = handler(self)
354354
m = {}

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)