Skip to content

Commit 45eabcf

Browse files
committed
## Python SDK Changes:
* `open_router.chat.send()`: * `request.plugins[].union(jev-router).cost_tier` **Added** * `open_router.presets.create_presets_chat_completions()`: * `request.plugins[].union(jev-router).cost_tier` **Added** * `open_router.presets.create_presets_messages()`: * `request.plugins[].union(jev-router).cost_tier` **Added** * `open_router.presets.create_presets_responses()`: * `request.plugins[].union(jev-router).cost_tier` **Added** * `open_router.responses.send()`: * `request.plugins[].union(jev-router).cost_tier` **Added** * `open_router.beta.responses.send()`: * `request.plugins[].union(jev-router).cost_tier` **Added**
1 parent 58b203d commit 45eabcf

1,455 files changed

Lines changed: 7858 additions & 7834 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.speakeasy/gen.lock‎

Lines changed: 21 additions & 20 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: d77e3bb5aa157c7c183900d46334db39
4+
docChecksum: ecada540acdd445630d247e256651c84
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.33
9-
configChecksum: 57ce91757d6eb47d6f3e59cf7aa40895
8+
releaseVersion: 1.3.34
9+
configChecksum: d3b5574a6d57a05a8347156685f184ce
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: b8d58c35-6e5d-4279-a7af-056afe993b31
15-
pristine_commit_hash: 6fd5565bba0aa3282485aa3c221719b953bae6e1
16-
pristine_tree_hash: d7bcc2c1cca0e2ef5d65bde3a90bcb8f57dfd2b5
14+
generation_id: f08089be-3c13-4f21-9627-772cc3203e39
15+
pristine_commit_hash: 2dbb19f561390c25fac6187412b5fc0a6e1af76b
16+
pristine_tree_hash: ac876b26073202ee594774777e1c5d8b32edf981
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -4068,8 +4068,8 @@ trackedFiles:
40684068
pristine_git_object: 74c61e5f750e2df770862017b6b406065398ca9e
40694069
docs/components/jevrouterplugin.mdx:
40704070
id: 258aa7058bc5
4071-
last_write_checksum: sha1:45f1965d11b2f7bf53d372bbb484a0c9593aaf5f
4072-
pristine_git_object: d28aba8cbf9d4b8ec5d5fa09e14af97217b3b443
4071+
last_write_checksum: sha1:27c92b7d6520088d8b2d289c05e2b0d74c4f051c
4072+
pristine_git_object: 5cd6cbcf4a5a27bcba523e524aee8cd6b9f32b3b
40734073
docs/components/jevrouterpluginid.mdx:
40744074
id: 30d920f53cde
40754075
last_write_checksum: sha1:dfc1a3a7d9011c2a15b475b51eaf48ad78856ff3
@@ -10068,8 +10068,8 @@ trackedFiles:
1006810068
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1006910069
pyproject.toml:
1007010070
id: 5d07e7d72637
10071-
last_write_checksum: sha1:3b69ad22e1b9999cecd3251223412b4452b37324
10072-
pristine_git_object: 46ac0b69c7fad93bd12c25586271189b21f3bcff
10071+
last_write_checksum: sha1:8567eb9de9354b155ee7b8f7df19689d9732e3ce
10072+
pristine_git_object: b70e410a85a644fdf1b83e42cd765685a0afed6a
1007310073
scripts/prepare_readme.py:
1007410074
id: e0c5957a6035
1007510075
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -10096,8 +10096,8 @@ trackedFiles:
1009610096
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1009710097
src/openrouter/_version.py:
1009810098
id: d8d15ad6c586
10099-
last_write_checksum: sha1:f020020ee7b613d5766e62d37a244f0382192f9b
10100-
pristine_git_object: 1882470da9f57f19c995e23bd3d97786140a692a
10099+
last_write_checksum: sha1:bfbbaf7417332947e4cb826190da2c30aefb99b0
10100+
pristine_git_object: 4a0e03d34865fd798ad600d523a7178616e98b4b
1010110101
src/openrouter/alpha.py:
1010210102
id: 306c4d93308d
1010310103
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -10960,8 +10960,8 @@ trackedFiles:
1096010960
pristine_git_object: 8bbde153b53887e426989fd5b0486b6dc1122810
1096110961
src/openrouter/components/chatrequest.py:
1096210962
id: 5e39eaefa9cf
10963-
last_write_checksum: sha1:f91d8533b6eb627ea724e30fac8f37cbd329798e
10964-
pristine_git_object: 919ce0752fd46d1a1a1a805ecd1fadc7d60acff8
10963+
last_write_checksum: sha1:9e5a26753be15d9d36e172f3879d60ef0726b80c
10964+
pristine_git_object: 9c232ee2a946302e7deaa428507c196f793256a9
1096510965
src/openrouter/components/chatresult.py:
1096610966
id: 9062fe2935fe
1096710967
last_write_checksum: sha1:2ff1963c54e7e79500115c8549c8d395f4e336d1
@@ -11908,8 +11908,8 @@ trackedFiles:
1190811908
pristine_git_object: b5a0bc16faa52f26d293eea18183e4d0b0bbb901
1190911909
src/openrouter/components/jevrouterplugin.py:
1191011910
id: fcb6e65e2e08
11911-
last_write_checksum: sha1:95a6e53a9a1a6a9b46591c2e247ae3972e76d920
11912-
pristine_git_object: 1ec82feebee87c8dfb05890b74de47d817ab847d
11911+
last_write_checksum: sha1:173c62e37458233cbfb027fc4175840a3afbe8e1
11912+
pristine_git_object: 20c4a420bcdbbc08490c549b4d968c480d81c273
1191311913
src/openrouter/components/keyassignment.py:
1191411914
id: 07a64362e7fd
1191511915
last_write_checksum: sha1:4b47a6f1ab4992ec81d7236ca28dbf94d3a4fbaf
@@ -12068,8 +12068,8 @@ trackedFiles:
1206812068
pristine_git_object: 7e69d1f775baece5f94b03d35bcd884d5e6f519d
1206912069
src/openrouter/components/messagesrequest.py:
1207012070
id: 72b1f339024d
12071-
last_write_checksum: sha1:fdbdaa70b5c220aa5e7e54b9c347dcd76d2cc29d
12072-
pristine_git_object: 7116204489465e0e2f61db6dbf5b3441c7ed35bb
12071+
last_write_checksum: sha1:36ea81dfa98613245a16571e9680322dd3484fbc
12072+
pristine_git_object: 1e1f0c5bdcb49358dd44a89f3b157cb56d984ef5
1207312073
src/openrouter/components/messagessearchmodelsservertool.py:
1207412074
id: 53d755edb120
1207512075
last_write_checksum: sha1:389786fc22ba4bb47b0a086b7aa321f2f04fe943
@@ -12864,8 +12864,8 @@ trackedFiles:
1286412864
pristine_git_object: 900bf08ec940565a8cbf55712a437775db00ca46
1286512865
src/openrouter/components/responsesrequest.py:
1286612866
id: 8c850080ec5d
12867-
last_write_checksum: sha1:cd92664efa3ed17d01899eb9673fefbe94712a42
12868-
pristine_git_object: 515413b2e2e98051b96f39ca410641b501a48ac7
12867+
last_write_checksum: sha1:34594487c782bf8cd58d8cb4a0387614554032e9
12868+
pristine_git_object: 263947dd9d95465f89ff38aed9defa87925ac1b7
1286912869
src/openrouter/components/responsesstreamingresponse.py:
1287012870
id: 142379f3bd90
1287112871
last_write_checksum: sha1:a48d6f3610f5d15248ef4d25a0d88a0a4a1a9db7
@@ -18432,3 +18432,4 @@ examples:
1843218432
"500":
1843318433
application/json: {"error": {"code": 404, "message": "Intern not found"}}
1843418434
examplesVersion: 1.0.2
18435+
releaseNotes: "## Python SDK Changes:\n* `open_router.chat.send()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\n* `open_router.presets.create_presets_messages()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\n* `open_router.responses.send()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\n* `open_router.beta.responses.send()`: \n * `request.plugins[].union(jev-router).cost_tier` **Added**\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.3.33
39+
version: 1.3.34
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15419,6 +15419,11 @@ components:
1541915419
type: 'string'
1542015420
maxItems: 1024
1542115421
type: 'array'
15422+
cost_tier:
15423+
description: 'Select low, medium, high, or a cost tier configured by the operator. Overrides the live-config tier and replaces the shared routing policy with that tier. Omit to use the live configuration. Model exclusions and the router kill switch still apply.'
15424+
example: 'medium'
15425+
pattern: '^[a-z][a-z0-9_-]{0,31}$'
15426+
type: 'string'
1542215427
excluded_models:
1542315428
description: 'Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. "xiaomi/*"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them.'
1542415429
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:6eb860bda7545004155f9d44485fca86ef3d0f7bee88babacba93d37f7ed61bd
6-
sourceBlobDigest: sha256:f5ff78370f3b0150de3532b0c83b7beda92c03528e46fe75adb2f91dabbb20ab
5+
sourceRevisionDigest: sha256:a4deab4eb5c8f3f85713d9e4eb116510e46c9e9826e90896a0885655ddb4a505
6+
sourceBlobDigest: sha256:a21c50c21c15c0282a0e96c8376177cf778be738e36c37e441f1a96670866420
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:6eb860bda7545004155f9d44485fca86ef3d0f7bee88babacba93d37f7ed61bd
15-
sourceBlobDigest: sha256:f5ff78370f3b0150de3532b0c83b7beda92c03528e46fe75adb2f91dabbb20ab
14+
sourceRevisionDigest: sha256:a4deab4eb5c8f3f85713d9e4eb116510e46c9e9826e90896a0885655ddb4a505
15+
sourceBlobDigest: sha256:a21c50c21c15c0282a0e96c8376177cf778be738e36c37e441f1a96670866420
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:b8583242f2c9a6ede34ddc9456f5dab49833bc871a3d52860d1e61515a909a38
17+
codeSamplesRevisionDigest: sha256:25b2c0f87629a825bf065cb7233d900d21e5a6840daf796b3886eea42f5595bc
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
@@ -3099,4 +3099,14 @@ Based on:
30993099
### Generated
31003100
- [python v1.3.33] .
31013101
### Releases
3102-
- [PyPI v1.3.33] https://pypi.org/project/openrouter/1.3.33 - .
3102+
- [PyPI v1.3.33] https://pypi.org/project/openrouter/1.3.33 - .
3103+
3104+
## 2026-10-08 16:08:09
3105+
### Changes
3106+
Based on:
3107+
- OpenAPI Doc
3108+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
3109+
### Generated
3110+
- [python v1.3.34] .
3111+
### Releases
3112+
- [PyPI v1.3.34] https://pypi.org/project/openrouter/1.3.34 - .

‎docs/components/aabenchmarkentry.mdx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ Artificial Analysis benchmark index scores.
99

1010
| Field | Type | Required | Description | Example |
1111
| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- |
12-
| `agentic_index` | *Nullable[float]* | ✅ | Artificial Analysis Agentic Index score | 55.8 |
13-
| `coding_index` | *Nullable[float]* | ✅ | Artificial Analysis Coding Index score | 63.2 |
14-
| `intelligence_index` | *Nullable[float]* | ✅ | Artificial Analysis Intelligence Index score | 71.4 |
12+
| `agentic_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Agentic Index score | 55.8 |
13+
| `coding_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Coding Index score | 63.2 |
14+
| `intelligence_index` | *Nullable[float]* | :heavy_check_mark: | Artificial Analysis Intelligence Index score | 71.4 |

0 commit comments

Comments
 (0)