Skip to content

Commit b02dd0c

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

15 files changed

Lines changed: 104 additions & 50 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 34 additions & 29 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: e34260687cf1b3f913ed466113df763e
4+
docChecksum: a0be6866e415062274038e3ba19c0f0d
55
docVersion: 1.0.0
66
speakeasyVersion: 1.803.2
77
generationVersion: 2.950.13
8-
releaseVersion: 1.3.102
9-
configChecksum: db3715109a278d0dd4e4d293a2a0d93d
8+
releaseVersion: 1.3.103
9+
configChecksum: 9ca83bdb4d50a73dd7dc11da2a5485ea
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: 255ec96f-a9a0-4ce1-8933-b80a42fe7e59
15-
pristine_commit_hash: 29be898cb1a858dd3482a26a1eea82e986daa994
16-
pristine_tree_hash: c10e0af243ce9020e375c434b6d600a3b8fdea37
14+
generation_id: 8cb2aeac-f03b-457f-aa3c-90eac8824e0b
15+
pristine_commit_hash: ec03155fe6ece2bb076a44f5d42d993158d04920
16+
pristine_tree_hash: 1e4e1550f89b80c07082c5a4d5caa19729a8a0e8
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -5048,8 +5048,8 @@ trackedFiles:
50485048
pristine_git_object: 432f9b632b00dbc6e7cd8a87908df962923bf3d6
50495049
docs/components/model.mdx:
50505050
id: ee338c3cef0a
5051-
last_write_checksum: sha1:f3b13696b8564e9ef19eda5a7f26b794b41e1fcb
5052-
pristine_git_object: b772541599f8f2366706fef767322484a82d20d3
5051+
last_write_checksum: sha1:04f6bb11207ff88d5f41cb69b65d4938b4e4ddd7
5052+
pristine_git_object: 0a601f49dd9988385e358deb05d9c9cb216937dd
50535053
docs/components/modelaliastarget.mdx:
50545054
id: 4c176a0fc594
50555055
last_write_checksum: sha1:f62206b85ab831a8851bb952302699c14d9f4aef
@@ -8908,8 +8908,8 @@ trackedFiles:
89088908
pristine_git_object: 91ffad70186d34bf8103f1988bdbdd258e1cfbfb
89098909
docs/operations/client.mdx:
89108910
id: 915aebbe62cb
8911-
last_write_checksum: sha1:107eddce0e7ba4fff1b8a6f6c2f883ceba729e06
8912-
pristine_git_object: b02404ab4ec68c12902657c9b800502ce9080669
8911+
last_write_checksum: sha1:26f42752b22b667c1515e246f48240067a7ec999
8912+
pristine_git_object: c013cd9bfe5ad51566a5826a54387ca86e7b1cbf
89138913
docs/operations/content.mdx:
89148914
id: 6f64feb2d798
89158915
last_write_checksum: sha1:329d9719c9e25478666963df7b79710aa626d988
@@ -10060,8 +10060,8 @@ trackedFiles:
1006010060
pristine_git_object: b6ff4ac617c15b9ce560d8f7be1f2813ac73b696
1006110061
docs/operations/listmodelsuserrequest.mdx:
1006210062
id: 01537864056e
10063-
last_write_checksum: sha1:896fe646a05a136a8ad8df99f22d81ad4aaffa3c
10064-
pristine_git_object: 950838658eb536e8845c06819580ff6c24d1d47a
10063+
last_write_checksum: sha1:c84bf81ea9165231ee75ed3a64978ae1b9286ea9
10064+
pristine_git_object: 74bcc49ed49ed4cc8ed5704399155606fb3984b1
1006510065
docs/operations/listmodelsuserresponse.mdx:
1006610066
id: 34f7a1648ceb
1006710067
last_write_checksum: sha1:2ba3da93b8dd5a76d5f1acf0a080bc45ced552b6
@@ -10688,8 +10688,8 @@ trackedFiles:
1068810688
pristine_git_object: fa46dc09c893aadcb2c56921b973a019603010e1
1068910689
docs/sdks/models/README.mdx:
1069010690
id: 58f1ca464e0b
10691-
last_write_checksum: sha1:1f2d511b36a2e070a4279bf1d0dc824611709b23
10692-
pristine_git_object: 790d5a2786e11410827317ea1a55bf48d34571f3
10691+
last_write_checksum: sha1:0c808e81903391f9eed2d650679d70075908fa42
10692+
pristine_git_object: b71064c8e3e5a10f941278a601d9ee2f9c56eb88
1069310693
docs/sdks/oauth/README.mdx:
1069410694
id: 42b5079343d2
1069510695
last_write_checksum: sha1:4a2d77d0749b9430de95a6a1d323367cf5c27151
@@ -10764,8 +10764,8 @@ trackedFiles:
1076410764
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
1076510765
pyproject.toml:
1076610766
id: 5d07e7d72637
10767-
last_write_checksum: sha1:1c82ea3ced5489880dbe1ee670416170e1e89650
10768-
pristine_git_object: 468c9965bee65473f439b3dbd8ba3807add73f76
10767+
last_write_checksum: sha1:a47cc255adc52a027c04fdd7296b4bd5b6ac8c18
10768+
pristine_git_object: b80981b1939d111c80f7f03b19c31d09cf70ff6c
1076910769
scripts/prepare_readme.py:
1077010770
id: e0c5957a6035
1077110771
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -10792,8 +10792,8 @@ trackedFiles:
1079210792
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
1079310793
src/openrouter/_version.py:
1079410794
id: d8d15ad6c586
10795-
last_write_checksum: sha1:47445f7c3a25c2c521db435dce2e30c07b8ce9bb
10796-
pristine_git_object: e0515b499f9b3a0de5a26dae56c6b7faf8b2b66c
10795+
last_write_checksum: sha1:2944b4b1cc6add8381f856b0799c35f709502c3c
10796+
pristine_git_object: 60a67b362ef4ba8c3c8ea646460a659482e7748d
1079710797
src/openrouter/alpha.py:
1079810798
id: 306c4d93308d
1079910799
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
@@ -12848,8 +12848,8 @@ trackedFiles:
1284812848
pristine_git_object: 1257b38d2001f34078cd1b052c20264e81a95e57
1284912849
src/openrouter/components/model.py:
1285012850
id: cef3adaa772b
12851-
last_write_checksum: sha1:093d86532aa86f31ffd4e9dd62fb550401501509
12852-
pristine_git_object: ff7e7c113d0bd0812d7c7e93f8a6c92b2e886170
12851+
last_write_checksum: sha1:5ee97a406759c20d9add899e1842edf3d63232ac
12852+
pristine_git_object: 2a48c80597604b994de964e07504c9a054bb7150
1285312853
src/openrouter/components/modelaliastarget.py:
1285412854
id: 9e2f95e60286
1285512855
last_write_checksum: sha1:dbb697ffdd52fd48e2cfa0c3bd5c4a7429db4d41
@@ -14524,8 +14524,8 @@ trackedFiles:
1452414524
pristine_git_object: 5b741456655ff48919d17ffd552a6410f0587966
1452514525
src/openrouter/models_.py:
1452614526
id: 4e1ae1fe5b98
14527-
last_write_checksum: sha1:c90581a6d3d68eb2769c9de0d9725a01342fff14
14528-
pristine_git_object: f983b7ea893ccfee590e6b2055d0e5b43dd09f08
14527+
last_write_checksum: sha1:42b5b0e1611e8a75d4faf05a16aa8f65adf7e921
14528+
pristine_git_object: bfefd56e979c41957e983a7c87fc635c0df756a4
1452914529
src/openrouter/oauth.py:
1453014530
id: 1948ce27255b
1453114531
last_write_checksum: sha1:d6470de6325431db64b08ff4468fb2d8ea781c6f
@@ -14964,8 +14964,8 @@ trackedFiles:
1496414964
pristine_git_object: cdde733b97c9b409d550fd58f9d49184d1647f4d
1496514965
src/openrouter/operations/listmodelsuser.py:
1496614966
id: 16eb5946cf60
14967-
last_write_checksum: sha1:b5eafbaa22689a89bc7d91e55abb46b5122cded1
14968-
pristine_git_object: a934e44d774549b3d4b8cbdba9bebd07d252a9dc
14967+
last_write_checksum: sha1:eec8c0a76f1fe80183b15617d25580d1547aad2b
14968+
pristine_git_object: c5b9f8c2f29e740fef85a4e2f2a427d94c6f04bb
1496914969
src/openrouter/operations/listoauthjwks.py:
1497014970
id: 329ac9d6fa76
1497114971
last_write_checksum: sha1:8d6b08b6637a0ff49f88313a9f1bed03349655f1
@@ -15450,7 +15450,7 @@ examples:
1545015450
limit: 500
1545115451
responses:
1545215452
"200":
15453-
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
15453+
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
1545415454
"400":
1545515455
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1545615456
"500":
@@ -15502,7 +15502,7 @@ examples:
1550215502
limit: 500
1550315503
responses:
1550415504
"200":
15505-
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
15505+
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
1550615506
"400":
1550715507
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1550815508
"500":
@@ -15529,7 +15529,7 @@ examples:
1552915529
limit: 500
1553015530
responses:
1553115531
"200":
15532-
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
15532+
application/json: {"data": [{"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens", "frequency_penalty", "presence_penalty"], "supported_voices": null, "top_provider": {"is_moderated": true}}], "links": {"next": "/api/v1/models?offset=500&limit=500"}, "total_count": 150}
1553315533
"401":
1553415534
application/json: {"error": {"code": 401, "message": "Missing Authentication header"}}
1553515535
"404":
@@ -16877,7 +16877,7 @@ examples:
1687716877
slug: "gpt-4"
1687816878
responses:
1687916879
"200":
16880-
application/json: {"data": {"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}}
16880+
application/json: {"data": {"architecture": {"input_modalities": ["text"], "modality": "text->text", "output_modalities": ["text"]}, "canonical_slug": "openai/gpt-4", "context_length": 8192, "created": 1692901234, "default_parameters": null, "endpoints": ["/api/v1/chat/completions", "/api/v1/completions", "/api/v1/messages", "/api/v1/responses"], "id": "openai/gpt-4", "links": {"details": "/api/v1/models/openai/gpt-4/endpoints"}, "name": "GPT-4", "per_request_limits": null, "pricing": {"completion": "0.00006", "prompt": "0.00003"}, "supported_parameters": ["temperature", "top_p", "max_tokens"], "supported_voices": null, "top_provider": {"is_moderated": true}}}
1688116881
"404":
1688216882
application/json: {"error": {"code": 404, "message": "Resource not found"}}
1688316883
"500":
@@ -19816,4 +19816,9 @@ examples:
1981619816
"529":
1981719817
application/json: {"error": {"code": 529, "message": "Provider returned error"}}
1981819818
examplesVersion: 1.0.2
19819-
releaseNotes: "## Python SDK Changes:\n* `open_router.alpha.extractions.create()`: \n * `request.assets.Map<ExtractionAsset>` **Changed**\n * `response.answers.Map<answers>` **Changed**\n"
19819+
releaseNotes: |
19820+
## Python SDK Changes:
19821+
* `open_router.embeddings.list_models()`: `response.data[].endpoints` **Added**
19822+
* `open_router.models.get()`: `response.data.endpoints` **Added**
19823+
* `open_router.models.list()`: `response.data[].endpoints` **Added**
19824+
* `open_router.models.list_for_user()`: `response.data[].endpoints` **Added**

‎.speakeasy/gen.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ generation:
3737
documentation: mintlify
3838
preApplyUnionDiscriminators: true
3939
python:
40-
version: 1.3.102
40+
version: 1.3.103
4141
additionalDependencies:
4242
dev:
4343
pytest: '>=8.3'

‎.speakeasy/out.openapi.yaml‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19480,6 +19480,16 @@ components:
1948019480
description: 'Description of the model'
1948119481
example: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
1948219482
type: 'string'
19483+
endpoints:
19484+
description: 'Request API paths that serve this model, derived from the same modality and adapter rules the routers use. A model served only through an alpha surface lists only that path.'
19485+
example:
19486+
- '/api/v1/chat/completions'
19487+
- '/api/v1/completions'
19488+
- '/api/v1/messages'
19489+
- '/api/v1/responses'
19490+
items:
19491+
type: 'string'
19492+
type: 'array'
1948319493
expiration_date:
1948419494
description: 'The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration.'
1948519495
example: '2025-06-01'
@@ -19543,6 +19553,7 @@ components:
1954319553
- 'default_parameters'
1954419554
- 'supported_voices'
1954519555
- 'links'
19556+
- 'endpoints'
1954619557
type: 'object'
1954719558
ModelAliasTarget:
1954819559
description: 'Concrete model targeted by this tilde-latest alias, when applicable'
@@ -19720,6 +19731,11 @@ components:
1972019731
created: 1692901234
1972119732
default_parameters: null
1972219733
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
19734+
endpoints:
19735+
- '/api/v1/chat/completions'
19736+
- '/api/v1/completions'
19737+
- '/api/v1/messages'
19738+
- '/api/v1/responses'
1972319739
expiration_date: null
1972419740
id: 'openai/gpt-4'
1972519741
knowledge_cutoff: null
@@ -40988,6 +41004,8 @@ paths:
4098841004
created: 1692901234
4098941005
default_parameters: null
4099041006
description: 'OpenAI text embedding model optimized for performance.'
41007+
endpoints:
41008+
- '/api/v1/embeddings'
4099141009
expiration_date: null
4099241010
id: 'openai/text-embedding-3-small'
4099341011
knowledge_cutoff: null
@@ -46403,6 +46421,11 @@ paths:
4640346421
created: 1692901234
4640446422
default_parameters: null
4640546423
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
46424+
endpoints:
46425+
- '/api/v1/chat/completions'
46426+
- '/api/v1/completions'
46427+
- '/api/v1/messages'
46428+
- '/api/v1/responses'
4640646429
expiration_date: null
4640746430
id: 'openai/gpt-4'
4640846431
knowledge_cutoff: null
@@ -46811,6 +46834,11 @@ paths:
4681146834
created: 1692901234
4681246835
default_parameters: null
4681346836
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
46837+
endpoints:
46838+
- '/api/v1/chat/completions'
46839+
- '/api/v1/completions'
46840+
- '/api/v1/messages'
46841+
- '/api/v1/responses'
4681446842
expiration_date: null
4681546843
id: 'openai/gpt-4'
4681646844
knowledge_cutoff: null
@@ -47208,12 +47236,12 @@ paths:
4720847236
example: 'newest'
4720947237
type: 'string'
4721047238
x-speakeasy-unknown-values: allow
47211-
- description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
47239+
- description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace''s Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
4721247240
in: 'query'
4721347241
name: 'client'
4721447242
required: false
4721547243
schema:
47216-
description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
47244+
description: 'Filter models and presets by the named harness''s eligibility policy: tool calling is required, and when one of your guardrails sets `enforce_first_party_harness_models`, only the harness vendor''s own models remain (OpenAI for codex, Anthropic for claude_code and claude_desktop). When your workspace''s Managed Machines policy sets a model list for that harness, only the listed models remain, and a preset remains only while every model it routes to is listed. This filter doesn''t apply the harness''s ranking, caps or Claude Desktop model ID aliases, so returned IDs stay routable. One of: claude_code, claude_desktop, codex. Omit it to get every model you can use.'
4721747245
enum:
4721847246
- 'claude_code'
4721947247
- 'claude_desktop'
@@ -47240,6 +47268,11 @@ paths:
4724047268
created: 1692901234
4724147269
default_parameters: null
4724247270
description: 'GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.'
47271+
endpoints:
47272+
- '/api/v1/chat/completions'
47273+
- '/api/v1/completions'
47274+
- '/api/v1/messages'
47275+
- '/api/v1/responses'
4724347276
expiration_date: null
4724447277
id: 'openai/gpt-4'
4724547278
knowledge_cutoff: null

0 commit comments

Comments
 (0)