Skip to content

Commit 8048089

Browse files
committed
## Python SDK Changes:
* `open_router.system_one.create()`: **Added**
1 parent 966490f commit 8048089

15 files changed

Lines changed: 825 additions & 29 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 68 additions & 14 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: b8ef8e6acc081583a4b4b5280d5bc66a
4+
docChecksum: 10cc3bd835df5bf3fce4fe2563a34256
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.2.7
9-
configChecksum: aa1b9118eec5df8f4c5665a1e53972cd
8+
releaseVersion: 1.2.8
9+
configChecksum: 5aa38056cf49b40445697d3786c6310a
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: bca11b04-b80d-49be-a6bd-00fc34f50538
15-
pristine_commit_hash: c713a8d5543ed7cc25eb572945a4a4c5ea574510
16-
pristine_tree_hash: ec331e7667fa75e32ef857f3c3ad74172c54ce23
14+
generation_id: dce5049f-6fa8-49be-a5f5-bc657ee76aa9
15+
pristine_commit_hash: 7f8731cb0345e17e75f6ee2102f01698513004ce
16+
pristine_tree_hash: b9165056d686a979117bcf0e228ee3567ce2ffc4
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6841,6 +6841,14 @@ trackedFiles:
68416841
id: 56c7ec9966fa
68426842
last_write_checksum: sha1:b98cbf395a3bc9b53b859f3b1e8efe9ee35366bb
68436843
pristine_git_object: 1832b155e778ebd9eb28ebc4a4af459b95a1a506
6844+
docs/operations/createsystemoneglobals.mdx:
6845+
id: 41c14f5ceed1
6846+
last_write_checksum: sha1:96f8ca57c9f21bbfcd86edb240c79e6ca45a492c
6847+
pristine_git_object: 6fde4d64361c306141ada1382a473c123cf01b26
6848+
docs/operations/createsystemonerequest.mdx:
6849+
id: 482fbce116a8
6850+
last_write_checksum: sha1:b2631e99056ea9f80865ee9a40ffcbe5c198a432
6851+
pristine_git_object: 434fb7f89f9489c58dcfbf5dd065c5605206c118
68446852
docs/operations/createvideosglobals.mdx:
68456853
id: 84de29ff23d6
68466854
last_write_checksum: sha1:b0e6bc84afd5b4bcdb3f491c64b3f5c15e74d187
@@ -8141,6 +8149,10 @@ trackedFiles:
81418149
id: 190b0dc9a5d1
81428150
last_write_checksum: sha1:9a13f8f1e26550bccf3935a36e9c3426febc6fcb
81438151
pristine_git_object: 1a12d8375fe6ddf9ef6ee1911ce0ed6831a16942
8152+
docs/sdks/systemone/README.mdx:
8153+
id: 55c317c71f3d
8154+
last_write_checksum: sha1:b1ad82361fe1dbef6bedeead3783c75ec36283b6
8155+
pristine_git_object: fc7688ebea8e973bebc0525a820ba246b6491f81
81448156
docs/sdks/tts/README.mdx:
81458157
id: cd1132543884
81468158
last_write_checksum: sha1:37918eb124f9ae0234e8047be7ec07a955458cbc
@@ -8163,8 +8175,8 @@ trackedFiles:
81638175
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
81648176
pyproject.toml:
81658177
id: 5d07e7d72637
8166-
last_write_checksum: sha1:b9b202e55e8f133fe617f5a90f83911d10664e1e
8167-
pristine_git_object: 11ae0f2796eb8bb374a0e12ab2cbcb284f6a1c34
8178+
last_write_checksum: sha1:9c9aac4feea5df58390f40a1d212f251d3b80123
8179+
pristine_git_object: 2fa4c827c0a455783b23e7183a3076a34e06723b
81688180
scripts/prepare_readme.py:
81698181
id: e0c5957a6035
81708182
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -8191,8 +8203,8 @@ trackedFiles:
81918203
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
81928204
src/openrouter/_version.py:
81938205
id: d8d15ad6c586
8194-
last_write_checksum: sha1:f80f256266c26716757ffd8846abb566c67c9557
8195-
pristine_git_object: 9e7f35935b8f44c86d1f2c350d6179a3b5bdfe58
8206+
last_write_checksum: sha1:bf31610e41c64a659df291327e64114d28656f4f
8207+
pristine_git_object: 2a441139a5a23bb3841818e1e027427935a32494
81968208
src/openrouter/alpha.py:
81978209
id: 306c4d93308d
81988210
last_write_checksum: sha1:0c25a52ed5fb688ec1e923e4e82bcfc9cae49465
@@ -11163,8 +11175,8 @@ trackedFiles:
1116311175
pristine_git_object: 8680343bbc90107ae6413bd5686012b1fd75d665
1116411176
src/openrouter/operations/__init__.py:
1116511177
id: 9afcea1e7161
11166-
last_write_checksum: sha1:75bfcaac588b4da23900adbd7960f9a633955cf8
11167-
pristine_git_object: 297025948ee72fba5ef27e0efb31207d6caf55d8
11178+
last_write_checksum: sha1:0c2f16d015e25e4cb302ba60d5aa8cf0e4d29f9f
11179+
pristine_git_object: f11532262b28c15b5a367afdeff9dd415e78f53e
1116811180
src/openrouter/operations/bulkaddworkspacemembers.py:
1116911181
id: e0ed56117619
1117011182
last_write_checksum: sha1:5c44eb0d40fdece3ac084615f6c6082be4cf1d5a
@@ -11277,6 +11289,10 @@ trackedFiles:
1127711289
id: 6e34c289d71d
1127811290
last_write_checksum: sha1:3395583f3df63ed55df668d1172a9fbe507a47f0
1127911291
pristine_git_object: bafc88732217831ec34ae960b8711e2587640ba9
11292+
src/openrouter/operations/createsystemone.py:
11293+
id: 3f135b32567e
11294+
last_write_checksum: sha1:7afb0a0fdf95fb8c6987c3e43fd6796e63e749ec
11295+
pristine_git_object: 356ee5d165f57ad1dea59e7064fbaff5a5807ce6
1128011296
src/openrouter/operations/createvideos.py:
1128111297
id: d52f6a4a3fe4
1128211298
last_write_checksum: sha1:dbcf7068a23f48a5d4cfd9c8150206731a40cc9b
@@ -11675,8 +11691,8 @@ trackedFiles:
1167511691
pristine_git_object: 1bea5be2496b283307c037f131a45a25bcca3c6c
1167611692
src/openrouter/sdk.py:
1167711693
id: ee9846c4c9c5
11678-
last_write_checksum: sha1:242d0703dc95b748be45817ef9c7ad376e074b76
11679-
pristine_git_object: 0fb8d63a93c0adc8462682be6e5a0207edebe593
11694+
last_write_checksum: sha1:524fce02fc013302916d4e533dc358c739f0cbb4
11695+
pristine_git_object: 28ea1b39c429276d1e06268ac0f60652ff15a989
1168011696
src/openrouter/sdkconfiguration.py:
1168111697
id: 55773bb98d7c
1168211698
last_write_checksum: sha1:c01826125c31a8b8bc99d9d679782c8758fae001
@@ -11685,6 +11701,10 @@ trackedFiles:
1168511701
id: fc0c2f669423
1168611702
last_write_checksum: sha1:294961a1d783e04ac54c3733e4563494e241fcd7
1168711703
pristine_git_object: 7502cb976473e1324ca78330ed0f22505d01c925
11704+
src/openrouter/systemone.py:
11705+
id: 7e0a0e237bb1
11706+
last_write_checksum: sha1:fffd7413e70f4840b793888763631b51929eb766
11707+
pristine_git_object: aac5cbef3468a6b9c9fe04c3bd6c86e23de4b4e9
1168811708
src/openrouter/tts.py:
1168911709
id: 5055d4b95f1d
1169011710
last_write_checksum: sha1:cdeb84948a22d150b582c65b63a53bfab5c13109
@@ -14954,4 +14974,38 @@ examples:
1495414974
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
1495514975
"502":
1495614976
application/json: {"error": {"code": 409, "message": "That question is no longer waiting for an answer."}}
14977+
createSystemone:
14978+
speakeasy-default-create-systemone:
14979+
requestBody:
14980+
application/json: {"model": "Taurus", "questions": {}, "state": {"key": "Utah", "key1": "Alaska", "key2": "Ohio"}}
14981+
responses:
14982+
"200":
14983+
application/json: {"answers": {"key": {"score": 9690, "type": "score"}}, "model": "Model Y", "usage": {"input_tokens": 514823, "output_tokens": 883118}}
14984+
"400":
14985+
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
14986+
"401":
14987+
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
14988+
"402":
14989+
application/json: {"error": {"code": 402, "message": "Insufficient credits. Add more using https://openrouter.ai/credits"}}
14990+
"403":
14991+
application/json: {"error": {"code": 403, "message": "Only management keys can perform this operation"}}
14992+
"404":
14993+
application/json: {"error": {"code": 404, "message": "Resource not found"}}
14994+
"413":
14995+
application/json: {"error": {"code": 413, "message": "Request payload too large"}}
14996+
"429":
14997+
application/json: {"error": {"code": 429, "message": "Rate limit exceeded"}}
14998+
"500":
14999+
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
15000+
"502":
15001+
application/json: {"error": {"code": 502, "message": "Provider returned error"}}
15002+
"503":
15003+
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
15004+
"524":
15005+
application/json: {"error": {"code": 524, "message": "Request timed out. Please try again later."}}
15006+
"529":
15007+
application/json: {"error": {"code": 529, "message": "Provider returned error"}}
1495715008
examplesVersion: 1.0.2
15009+
releaseNotes: |
15010+
## Python SDK Changes:
15011+
* `open_router.system_one.create()`: **Added**

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

‎.speakeasy/out.openapi.yaml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43316,7 +43316,7 @@ paths:
4331643316
- $ref: "#/components/parameters/AppCategories"
4331743317
/systemone:
4331843318
post:
43319-
description: 'TypeSafe SDK compatible alias for `POST /api/alpha/decisions`. Accepts the same request body and returns the same response. Bare TypeSafe model IDs such as `jev-1.13` and `jev-latest` are mapped onto the `typesafe/` namespace.'
43319+
description: 'Sends state and typed questions to a System One model such as Jev and returns its answers. Compatible with the TypeSafe SDKs. Bare System One model IDs such as `jev-1.13` and `jev-latest` are mapped onto the `typesafe/` namespace.'
4332043320
operationId: 'createSystemone'
4332143321
requestBody:
4332243322
content:
@@ -43509,10 +43509,10 @@ paths:
4350943509
schema:
4351043510
$ref: '#/components/schemas/ProviderOverloadedResponse'
4351143511
description: 'Provider Overloaded - Provider is temporarily overloaded'
43512-
summary: 'Submit a System One request (TypeSafe SDK compatible alias)'
43512+
summary: 'Submit a System One request'
4351343513
tags:
43514-
- 'alpha.decisions'
43515-
x-speakeasy-ignore: true
43514+
- 'SystemOne'
43515+
x-speakeasy-name-override: 'create'
4351643516
parameters:
4351743517
- $ref: "#/components/parameters/AppIdentifier"
4351843518
- $ref: "#/components/parameters/AppDisplayName"
@@ -46488,6 +46488,9 @@ tags:
4648846488
- description: 'Speech-to-text endpoints'
4648946489
name: 'STT'
4649046490
x-displayName: 'Transcriptions'
46491+
- description: 'System One endpoints for models such as Jev, compatible with the TypeSafe SDKs. See https://openrouter.ai/docs/guides/community/typesafe-sdk.'
46492+
name: 'SystemOne'
46493+
x-displayName: 'System One'
4649146494
- description: 'Text-to-speech endpoints'
4649246495
name: 'TTS'
4649346496
x-displayName: 'Speech'

‎.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:a6fb2582d267b7a3ea83cae1439a32e175a0f65079851685be4ad94d684f4689
6-
sourceBlobDigest: sha256:b48edb241b574a295970dc9757ce399f317bdb84a4932b017a60cbe5969a6801
5+
sourceRevisionDigest: sha256:afa706f4e8224e896a845cf5ab0b73d8e7f98460c6cd9644071c183083268eda
6+
sourceBlobDigest: sha256:52077f88403046264219927d45e06d3e45a47bcfcc5aceaeb5c494ec1144ae9a
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:a6fb2582d267b7a3ea83cae1439a32e175a0f65079851685be4ad94d684f4689
15-
sourceBlobDigest: sha256:b48edb241b574a295970dc9757ce399f317bdb84a4932b017a60cbe5969a6801
14+
sourceRevisionDigest: sha256:afa706f4e8224e896a845cf5ab0b73d8e7f98460c6cd9644071c183083268eda
15+
sourceBlobDigest: sha256:52077f88403046264219927d45e06d3e45a47bcfcc5aceaeb5c494ec1144ae9a
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:5ec445fcf3f7f6272d47694eeb88a4f2b90932843ec515d063c28b56df1c5ef9
17+
codeSamplesRevisionDigest: sha256:b2cd8196b0557606a3c03dd8dfed3be0e421e0c278c63058cb0f8b947b49f6f6
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
@@ -2479,4 +2479,14 @@ Based on:
24792479
### Generated
24802480
- [python v1.2.7] .
24812481
### Releases
2482-
- [PyPI v1.2.7] https://pypi.org/project/openrouter/1.2.7 - .
2482+
- [PyPI v1.2.7] https://pypi.org/project/openrouter/1.2.7 - .
2483+
2484+
## 2026-09-20 04:43:59
2485+
### Changes
2486+
Based on:
2487+
- OpenAPI Doc
2488+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2489+
### Generated
2490+
- [python v1.2.8] .
2491+
### Releases
2492+
- [PyPI v1.2.8] https://pypi.org/project/openrouter/1.2.8 - .
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
title: "CreateSystemoneGlobals"
3+
---
4+
5+
## Fields
6+
7+
| Field | Type | Required | Description |
8+
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
9+
| `http_referer` | *Optional[str]* | :heavy_minus_sign: | The app identifier should be your app's URL and is used as the primary identifier for rankings.<br/>This is used to track API usage per application.<br/> |
10+
| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.<br/> |
11+
| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.<br/> |
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "CreateSystemoneRequest"
3+
---
4+
5+
## Fields
6+
7+
| Field | Type | Required | Description |
8+
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
9+
| `http_referer` | *Optional[str]* | :heavy_minus_sign: | The app identifier should be your app's URL and is used as the primary identifier for rankings.<br/>This is used to track API usage per application.<br/> |
10+
| `x_open_router_title` | *Optional[str]* | :heavy_minus_sign: | The app display name allows you to customize how your app appears in OpenRouter's dashboard.<br/> |
11+
| `x_open_router_categories` | *Optional[str]* | :heavy_minus_sign: | Comma-separated list of app categories (e.g. "cli-agent,cloud-agent"). Used for marketplace rankings.<br/> |
12+
| `decisions_request` | [components.DecisionsRequest](../components/decisionsrequest.mdx) | :heavy_check_mark: | N/A |

0 commit comments

Comments
 (0)