Skip to content

Commit 03879c8

Browse files
committed
## Python SDK Changes:
* `open_router.models.list()`: `request` **Changed**
1 parent 6f0aa85 commit 03879c8

13 files changed

Lines changed: 445 additions & 82 deletions

File tree

.speakeasy/gen.lock

Lines changed: 23 additions & 21 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: 9ce928049e3e28d0a94005ba9f3feae0
4+
docChecksum: 02b620e2b0d8bdd8549db51aca567f5f
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 0.11.4
9-
configChecksum: 4bdce4423724fbc3e27157c1593f7b74
8+
releaseVersion: 0.11.5
9+
configChecksum: f28e8188849380aa0a7f85e8f7a7b56b
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: 050680d0-830b-4b43-af34-44a6c0807b04
15-
pristine_commit_hash: 7115aa4a60edab70391136ff35b553ee7d958e42
16-
pristine_tree_hash: 361cb3b699fe64a78518445b7184f4a488605777
14+
generation_id: e2e043b1-62f4-438f-b245-7cab5d751e0c
15+
pristine_commit_hash: 8dd3e23eae951172cfc444a51ce8d2d4a6f58c1d
16+
pristine_tree_hash: cf3fe64dfa8a4412bd45a69bd3fe391c3b4f9b3e
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -5678,12 +5678,12 @@ trackedFiles:
56785678
pristine_git_object: e6beafcf11154033e2951ae58103041a2af946b9
56795679
docs/operations/getmodelsrequest.mdx:
56805680
id: b2627beb1959
5681-
last_write_checksum: sha1:d945628c6bc1fdad3b7732e0fbcefc241bd373c6
5682-
pristine_git_object: 272e1449f6b0895e9311ba2f03c05edbf17dc225
5681+
last_write_checksum: sha1:f632f852d2575a081418c25c4ae1c5f8f4785ff2
5682+
pristine_git_object: 3cf889e3b06877fa5948f307c334468ed1832d3c
56835683
docs/operations/getmodelssort.mdx:
56845684
id: 3cfd33e60661
5685-
last_write_checksum: sha1:0cc94491120ca9b9a92ac5d6181a51131d78b94c
5686-
pristine_git_object: 9a5681eb1112bdb27c7c6677b74a17ff2fb0a574
5685+
last_write_checksum: sha1:6d75758523f8665ff617fe5d4e54385ad785c7ef
5686+
pristine_git_object: 537a70d3eb590cda229847689553607b46a3a5f7
56875687
docs/operations/getobservabilitydestinationglobals.mdx:
56885688
id: d7ba84a5b9dc
56895689
last_write_checksum: sha1:281603c38cce8aea9f289fc0d49a455b56196e2e
@@ -6350,8 +6350,8 @@ trackedFiles:
63506350
pristine_git_object: 77f3172dabafbaa192b258382074cb34cfd55a5e
63516351
docs/sdks/models/README.mdx:
63526352
id: 58f1ca464e0b
6353-
last_write_checksum: sha1:13cd9e4631b4e19a7db5ad93ce63d66358ffb935
6354-
pristine_git_object: cc84c8d7382e6cee53ceb625344dadeefbb48b5d
6353+
last_write_checksum: sha1:2a8e7baeb6586e3b46d4da14c1e4701e4625ee7d
6354+
pristine_git_object: 888dcaa7005c439f2c0e5e0736ba8f78fc42a8db
63556355
docs/sdks/oauth/README.mdx:
63566356
id: 42b5079343d2
63576357
last_write_checksum: sha1:60ecae1338bc4487fbb050b6044ddc08dd7d1685
@@ -6402,8 +6402,8 @@ trackedFiles:
64026402
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
64036403
pyproject.toml:
64046404
id: 5d07e7d72637
6405-
last_write_checksum: sha1:e63ee1edc31eba7748772e0f9d9f1239abe84b72
6406-
pristine_git_object: 63126319baf5f2bd6c915b590f02eb5b4b8cb1e1
6405+
last_write_checksum: sha1:357cd9edeb39cbbbf958df143408cf75b672cb77
6406+
pristine_git_object: 042b3b370f33071d6b8b72919698f4c426d532d6
64076407
scripts/prepare_readme.py:
64086408
id: e0c5957a6035
64096409
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6430,8 +6430,8 @@ trackedFiles:
64306430
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
64316431
src/openrouter/_version.py:
64326432
id: d8d15ad6c586
6433-
last_write_checksum: sha1:55bbac3c115b285a81d9826cc0f69c37e1195456
6434-
pristine_git_object: 578264d267742981dc5c7268ff378621572831dd
6433+
last_write_checksum: sha1:23b5383ef6d4c88095f0bd2ffce66cdd0dad13e4
6434+
pristine_git_object: a9687477f7ab9961c862a708ec091f94182db944
64356435
src/openrouter/analytics.py:
64366436
id: cb406b5aaabb
64376437
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -8738,8 +8738,8 @@ trackedFiles:
87388738
pristine_git_object: 5b741456655ff48919d17ffd552a6410f0587966
87398739
src/openrouter/models_.py:
87408740
id: 4e1ae1fe5b98
8741-
last_write_checksum: sha1:3c9aa7ec25ebd7cf7eb43a4d31cab845658fd484
8742-
pristine_git_object: 02dd1c2072829766214cfdbcb9a3eb098f282e33
8741+
last_write_checksum: sha1:7b5b5454677f47a3a0fbfeff8c084ecd569a95b9
8742+
pristine_git_object: 0379827532be6069ef8a592771c01c1e44219636
87438743
src/openrouter/oauth.py:
87448744
id: 1948ce27255b
87458745
last_write_checksum: sha1:8d6ba30594d5674164f045d6655914b801268f72
@@ -8926,8 +8926,8 @@ trackedFiles:
89268926
pristine_git_object: d5a47b01285b12f05d46240e253a934be63f0a00
89278927
src/openrouter/operations/getmodels.py:
89288928
id: 5bd5dfcb0125
8929-
last_write_checksum: sha1:6d13fdf573bd5a4ff65484e3358d36d5f5e17a7d
8930-
pristine_git_object: af887b941b69db369b1623fd2a19abeef6ef967d
8929+
last_write_checksum: sha1:3501eb6dccdf4bf3dc52d2228b5906be95481470
8930+
pristine_git_object: dc16709a2472ddaf838eaa21ffda7be17f7dd0f2
89318931
src/openrouter/operations/getobservabilitydestination.py:
89328932
id: 15b49f22aca9
89338933
last_write_checksum: sha1:351b050b646c9e2dbffaf27633cbd38b30047169
@@ -10706,4 +10706,6 @@ examples:
1070610706
"500":
1070710707
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1070810708
examplesVersion: 1.0.2
10709-
releaseNotes: "## Python SDK Changes:\n* `open_router.stt.create_transcription_multipart()`: **Added**\n* `open_router.beta.responses.send()`: \n * `request.plugins[].union(pareto-router).price_source` **Added**\n* `open_router.chat.send()`: \n * `request.plugins[].union(pareto-router).price_source` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.plugins[].union(pareto-router).price_source` **Added**\n* `open_router.presets.create_presets_messages()`: \n * `request.plugins[].union(pareto-router).price_source` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.plugins[].union(pareto-router).price_source` **Added**\n"
10709+
releaseNotes: |
10710+
## Python SDK Changes:
10711+
* `open_router.models.list()`: `request` **Changed**

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

.speakeasy/out.openapi.yaml

Lines changed: 128 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30112,13 +30112,13 @@ paths:
3011230112
example: text
3011330113
type: string
3011430114
- description: >-
30115-
Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
30115+
Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
3011630116
in: query
3011730117
name: sort
3011830118
required: false
3011930119
schema:
3012030120
description: >-
30121-
Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low (Artificial Analysis intelligence index), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
30121+
Sort the returned models server-side. Prefer this over fetching the full list and sorting client-side. Options: pricing-low-to-high, pricing-high-to-low (average prompt/completion price), context-high-to-low (context length), throughput-high-to-low, latency-low-to-high (recent median performance), most-popular, top-weekly (tokens processed in the last week), newest (creation date), intelligence-high-to-low, coding-high-to-low, agentic-high-to-low (Artificial Analysis indices), design-arena-elo-high-to-low (best Design Arena ELO across arenas). Models without a score for the chosen benchmark are placed last. When omitted, the existing default ordering is preserved.
3012230122
enum:
3012330123
- most-popular
3012430124
- newest
@@ -30129,6 +30129,8 @@ paths:
3012930129
- throughput-high-to-low
3013030130
- latency-low-to-high
3013130131
- intelligence-high-to-low
30132+
- coding-high-to-low
30133+
- agentic-high-to-low
3013230134
- design-arena-elo-high-to-low
3013330135
example: newest
3013430136
type: string
@@ -30235,6 +30237,130 @@ paths:
3023530237
- eu
3023630238
example: eu
3023730239
type: string
30240+
- description: Minimum completion (output) price in $/M tokens.
30241+
in: query
30242+
name: min_output_price
30243+
required: false
30244+
schema:
30245+
description: Minimum completion (output) price in $/M tokens.
30246+
example: 0
30247+
minimum: 0
30248+
nullable: true
30249+
type: number
30250+
- description: Maximum completion (output) price in $/M tokens.
30251+
in: query
30252+
name: max_output_price
30253+
required: false
30254+
schema:
30255+
description: Maximum completion (output) price in $/M tokens.
30256+
example: 10
30257+
minimum: 0
30258+
nullable: true
30259+
type: number
30260+
- description: Minimum model age in days since its creation date.
30261+
in: query
30262+
name: min_age_days
30263+
required: false
30264+
schema:
30265+
description: Minimum model age in days since its creation date.
30266+
example: 0
30267+
minimum: 0
30268+
nullable: true
30269+
type: integer
30270+
- description: Maximum model age in days since its creation date.
30271+
in: query
30272+
name: max_age_days
30273+
required: false
30274+
schema:
30275+
description: Maximum model age in days since its creation date.
30276+
example: 90
30277+
minimum: 0
30278+
nullable: true
30279+
type: integer
30280+
- description: Minimum Artificial Analysis intelligence index.
30281+
in: query
30282+
name: min_intelligence_index
30283+
required: false
30284+
schema:
30285+
description: Minimum Artificial Analysis intelligence index.
30286+
example: 50
30287+
minimum: 0
30288+
nullable: true
30289+
type: number
30290+
- description: Maximum Artificial Analysis intelligence index.
30291+
in: query
30292+
name: max_intelligence_index
30293+
required: false
30294+
schema:
30295+
description: Maximum Artificial Analysis intelligence index.
30296+
example: 100
30297+
minimum: 0
30298+
nullable: true
30299+
type: number
30300+
- description: Minimum Artificial Analysis coding index.
30301+
in: query
30302+
name: min_coding_index
30303+
required: false
30304+
schema:
30305+
description: Minimum Artificial Analysis coding index.
30306+
example: 50
30307+
minimum: 0
30308+
nullable: true
30309+
type: number
30310+
- description: Maximum Artificial Analysis coding index.
30311+
in: query
30312+
name: max_coding_index
30313+
required: false
30314+
schema:
30315+
description: Maximum Artificial Analysis coding index.
30316+
example: 100
30317+
minimum: 0
30318+
nullable: true
30319+
type: number
30320+
- description: Minimum Artificial Analysis agentic index.
30321+
in: query
30322+
name: min_agentic_index
30323+
required: false
30324+
schema:
30325+
description: Minimum Artificial Analysis agentic index.
30326+
example: 50
30327+
minimum: 0
30328+
nullable: true
30329+
type: number
30330+
- description: Maximum Artificial Analysis agentic index.
30331+
in: query
30332+
name: max_agentic_index
30333+
required: false
30334+
schema:
30335+
description: Maximum Artificial Analysis agentic index.
30336+
example: 100
30337+
minimum: 0
30338+
nullable: true
30339+
type: number
30340+
- description: >-
30341+
Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason).
30342+
in: query
30343+
name: min_tool_success_rate
30344+
required: false
30345+
schema:
30346+
description: >-
30347+
Minimum tool-calling success rate, as a fraction in [0, 1] (e.g. 0.9 = 90% of requests finishing with a tool_calls finish reason).
30348+
example: 0.9
30349+
maximum: 1
30350+
minimum: 0
30351+
nullable: true
30352+
type: number
30353+
- description: Maximum tool-calling success rate, as a fraction in [0, 1].
30354+
in: query
30355+
name: max_tool_success_rate
30356+
required: false
30357+
schema:
30358+
description: Maximum tool-calling success rate, as a fraction in [0, 1].
30359+
example: 1
30360+
maximum: 1
30361+
minimum: 0
30362+
nullable: true
30363+
type: number
3023830364
responses:
3023930365
'200':
3024030366
content:

.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:d2c2c3e13ad669361c25f68fad9ec7eecb75ce8225fe04163163192c1c7fe1f6
6-
sourceBlobDigest: sha256:22a034c7168faf862dc49ec1eb11cabe3f7b5405fffae3881c02000a4f0ec55b
5+
sourceRevisionDigest: sha256:aba0fa7083fc84520a6b33a28d83672fe37eaa65e185f219182d1c9a6d399fbf
6+
sourceBlobDigest: sha256:00a46b5dabf8ed3c27462f8c598ec592f277efd014c855e45e76c3bde1910cf0
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:d2c2c3e13ad669361c25f68fad9ec7eecb75ce8225fe04163163192c1c7fe1f6
15-
sourceBlobDigest: sha256:22a034c7168faf862dc49ec1eb11cabe3f7b5405fffae3881c02000a4f0ec55b
14+
sourceRevisionDigest: sha256:aba0fa7083fc84520a6b33a28d83672fe37eaa65e185f219182d1c9a6d399fbf
15+
sourceBlobDigest: sha256:00a46b5dabf8ed3c27462f8c598ec592f277efd014c855e45e76c3bde1910cf0
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:9b19c83c1b20193106f585b755a4d639540a4884675a9336cdf199776093c4bc
17+
codeSamplesRevisionDigest: sha256:abe985d8f0f446be27118dc7f14238c90bdbd3d5e5810729a114378554d481b5
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
@@ -148,4 +148,14 @@ Based on:
148148
### Generated
149149
- [python v0.11.4] .
150150
### Releases
151-
- [PyPI v0.11.4] https://pypi.org/project/openrouter/0.11.4 - .
151+
- [PyPI v0.11.4] https://pypi.org/project/openrouter/0.11.4 - .
152+
153+
## 2026-07-07 17:24:44
154+
### Changes
155+
Based on:
156+
- OpenAPI Doc
157+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
158+
### Generated
159+
- [python v0.11.5] .
160+
### Releases
161+
- [PyPI v0.11.5] https://pypi.org/project/openrouter/0.11.5 - .

0 commit comments

Comments
 (0)