Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 18 additions & 19 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: c48cf606-fb42-4a45-9c23-8f0555307828
management:
docChecksum: 185b99a4ab1a0c254dff7b621be73856
docChecksum: c53e0c50b5772475e71b8daef3ef6460
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.231
configChecksum: cb8cedb1cfbf3d8d2cea9727d40a0fae
releaseVersion: 1.3.232
configChecksum: f27bbc66d5b9676c1abb85c6a1db13dd
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 11ddcc9f-c94f-4153-8f1c-255f0e7be46f
pristine_commit_hash: 52e247612c337aeeb0017504551b83f5de38e36f
pristine_tree_hash: d759dd2d7d765a19923b2dfbf3daf4a31a51f142
generation_id: 50c02186-1aa9-4959-9822-2d59847f2138
pristine_commit_hash: 76f83750c0b8e941bb9c306f4b4ba46994c50d0d
pristine_tree_hash: f5bdd18453014af72e66111233fdaf237104f137
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -11660,8 +11660,8 @@ trackedFiles:
pristine_git_object: f7ab206b5ca32f5af427138d0a9156f66e92211c
docs/operations/listorganizationmembersdata.mdx:
id: d96ba08cbfe4
last_write_checksum: sha1:3a4695810cb24cd5ba2e3b76e35ec173c450255f
pristine_git_object: 074f84fca93aad3390425f57e227e0b87fda447b
last_write_checksum: sha1:b15444d5c7ddf489f7fc8ec39ea633165a8c793c
pristine_git_object: e6212c7ce184dd1fcdcb47cd63c8168085b5189a
docs/operations/listorganizationmembersglobals.mdx:
id: 421fd4978d8f
last_write_checksum: sha1:b4aec9055bf7a1f276ebdc4b270e09aee733e3fd
Expand Down Expand Up @@ -12244,8 +12244,8 @@ trackedFiles:
pristine_git_object: e1c261779c6ccbc2b6cf70738af9bf5b5a9925aa
docs/sdks/batch/README.mdx:
id: e367aa4f4295
last_write_checksum: sha1:03ddfbe3833af9b7ac3b683e1f57b16bab4aa667
pristine_git_object: e974a6eda93ac9e3f5eeb83a665e790f0ba06758
last_write_checksum: sha1:1a1160bdde124e4f3f4d8c4c14448ab3df7f2c77
pristine_git_object: e7b9850d5994a638ef7ba44c8356fdd4e434b365
docs/sdks/benchmarks/README.mdx:
id: 5b483a6770ba
last_write_checksum: sha1:10a8edbf3bc300bab53ce72c3a37c974971b74bd
Expand Down Expand Up @@ -12396,8 +12396,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:b7d10dfd58065a73456a0eeeb02dbeb5d04ff061
pristine_git_object: 6c2a83088a8558f8841d258b9b11034a0b8aef87
last_write_checksum: sha1:5a7211dad29ce13a9939efe8ba426eae4e2108dd
pristine_git_object: 248081fa04053fc2be72d6583049ae4c0c3da51c
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -12424,8 +12424,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:3358e233d32cc8feabd9eefeab4e8acaf3cdfc93
pristine_git_object: 2577e2e2595b694e69d26dfc37962ce16229d419
last_write_checksum: sha1:f371f274031caf2043fe8b0ba2b0e980af513ac3
pristine_git_object: 9aab77681d97e2d829756dc63c8dc77c33c3c816
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand All @@ -12444,8 +12444,8 @@ trackedFiles:
pristine_git_object: 7a562e21c7e66c9db666ead83748b73adefe4278
src/openrouter/batch.py:
id: 148f61e34d5b
last_write_checksum: sha1:66bf7726b079d007ce8d6eaff76ab3a95a2ea88c
pristine_git_object: 1110b2127b77436a1b3ee7acda5ff3f5040fdf56
last_write_checksum: sha1:387696eb4007cb5fc7f5899d3affc5a0e0f3e667
pristine_git_object: 48894aa220b0f6019f003d8e42eb94890a25dc73
src/openrouter/benchmarks.py:
id: 178d2ad8d706
last_write_checksum: sha1:be86f24d07ba86e9585f7d2bc2c384dba5185727
Expand Down Expand Up @@ -17232,8 +17232,8 @@ trackedFiles:
pristine_git_object: 8efdffe07537894b87e3f0e2b54c53825dfd7b31
src/openrouter/operations/listorganizationmembers.py:
id: d40a3e0e2b38
last_write_checksum: sha1:849f30b995950cadbcb8b22b4e84ce122db2caf1
pristine_git_object: 52a74ececf52cb2ec789935dbf4c3cb0947b6cc5
last_write_checksum: sha1:9abf02bf6aa51e098cef126622a7dfa038b7a89a
pristine_git_object: 9b3800036125e1750b99811d4f37680b084a7771
src/openrouter/operations/listpresets.py:
id: ecdc7097aab7
last_write_checksum: sha1:ee7c1cccf1caafb6a0fc04efb16476db2301233b
Expand Down Expand Up @@ -22806,4 +22806,3 @@ examples:
"500":
application/json: {"error": {"code": 400, "message": "custom_id is required on requests[0]."}}
examplesVersion: 1.0.2
releaseNotes: "## Python SDK Changes:\n* `open_router.alpha.decisions.create()`: `request.provider` **Changed**\n* `open_router.alpha.extractions.create()`: `request.provider` **Changed**\n* `open_router.tts.create_speech()`: `request.provider` **Changed**\n* `open_router.stt.create_transcription()`: `request.provider` **Changed**\n* `open_router.stt.list_models()`: `response.data[].endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.stt.get_model()`: `response.endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.batch.create_batches()`: \n * `request.provider.only[].union(ProviderName).enum(celeris)` **Added**\n* `open_router.byok.list()`: \n * `request.provider` **Changed**\n * `response.data[].provider.enum(celeris)` **Added**\n* `open_router.byok.create()`: \n * `request.provider.enum(celeris)` **Added**\n * `response.data.provider.enum(celeris)` **Added**\n* `open_router.byok.get()`: `response.data.provider.enum(celeris)` **Added**\n* `open_router.byok.update()`: `response.data.provider.enum(celeris)` **Added**\n* `open_router.embeddings.generate()`: `request.provider` **Changed**\n* `open_router.embeddings.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].provider_name.enum(celeris)` **Added**\n* `open_router.endpoints.list()`: `response.data.endpoints[].provider_name.enum(celeris)` **Added**\n* `open_router.generations.get_generation()`: `response.data.provider_responses[].provider_name.enum(celeris)` **Added**\n* `open_router.images.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.images.list_model_endpoints()`: `response.endpoints[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.presets.create_presets_chat_completions()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_messages()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_responses()`: `request.provider` **Changed**\n* `open_router.rerank.rerank()`: `request.provider` **Changed**\n* `open_router.rerank.list_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n* `open_router.system_one.create()`: `request.provider` **Changed**\n* `open_router.video_generation.generate()`: `request.provider` **Changed**\n* `open_router.video_generation.list_videos_models()`: `response.data[].input_modalities[].union(audio).supported_inputs.formats.values[]` **Changed**\n"
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.231
version: 1.3.232
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
8 changes: 4 additions & 4 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44912,7 +44912,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/batches/{id}/cancel:
post:
description: 'Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished before the cancellation. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).'
description: 'Asks the provider to stop a batch that is still running. Cancellation is enabled per organization; other organizations get `403`. The response is the batch in its current status: it stays `in_progress` until the provider confirms, then becomes `cancelled`, or `completed`, `failed`, or `expired` when the provider job ended first. Poll until the batch has any final status. Repeating the call is safe while the batch is still `in_progress`; once it has a final status the call returns `409`. On OpenAI a cancelled batch keeps the requests that finished before the cancellation when OpenAI returns them: they are in `results` and billed like the rows of a completed batch. On every other provider OpenRouter returns no result rows for a cancelled batch, and the provider still charges for the requests that finished. When the batch wrote its output to your own storage, retrieving the batch can still return that location, and the rows the provider wrote there stay yours to read. See the [Batch API Quickstart](https://openrouter.ai/docs/batch-quickstart).'
operationId: 'cancelBatch'
parameters:
- description: 'The batch job id returned from submit.'
Expand Down Expand Up @@ -57796,7 +57796,7 @@ paths:
example:
data:
- email: 'jane.doe@example.com'
external_id: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF'
external_id: '00u1a2b3c4D5e6F7g8h9'
first_name: 'Jane'
id: 'user_2dHFtVWx2n56w6HkM0000000000'
last_name: 'Doe'
Expand All @@ -57813,8 +57813,8 @@ paths:
example: 'jane.doe@example.com'
type: 'string'
external_id:
description: 'The member''s SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization''s SCIM directory provisions, updates or syncs the member. Null when this organization''s directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization''s directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.'
example: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF'
description: 'The member''s user ID at your identity provider, recorded when they sign in through your organization''s SSO connection. Your identity provider must send the user ID attribute that connection reads (for Okta, `id` = `user.id`; for other identity providers, contact support). Set for members your organization''s SCIM directory provisioned, once OpenRouter syncs them after that sign-in. Null before then, or when this organization''s directory did not provision the member. Members can keep their last synced value after the directory is removed.'
example: '00u1a2b3c4D5e6F7g8h9'
type:
- 'string'
- 'null'
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:e3feb13debfff590c80473d7814843a09359ab68ca582e052aa2ee449519095a
sourceBlobDigest: sha256:b0cf4142e7752da647be68473c2a9b30b2959fa01181929caba77af48e74647d
sourceRevisionDigest: sha256:4a762dea357a37e8423f71c3c745b7edbe956f2a3606edd80737faf91c280e75
sourceBlobDigest: sha256:f80ba29051883c29805ea65d9d5887fc40f01dd858073f30ce37160228ec01aa
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:e3feb13debfff590c80473d7814843a09359ab68ca582e052aa2ee449519095a
sourceBlobDigest: sha256:b0cf4142e7752da647be68473c2a9b30b2959fa01181929caba77af48e74647d
sourceRevisionDigest: sha256:4a762dea357a37e8423f71c3c745b7edbe956f2a3606edd80737faf91c280e75
sourceBlobDigest: sha256:f80ba29051883c29805ea65d9d5887fc40f01dd858073f30ce37160228ec01aa
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:b9525a5b813a1815dbd3f9bf0df4e7320521015df5a2a129606ef83447d17cc4
codeSamplesRevisionDigest: sha256:4e156f75c98d3823f654b65c599090ba6b8ade726a640b506b28dc750fe60c84
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5079,4 +5079,14 @@ Based on:
### Generated
- [python v1.3.231] .
### Releases
- [PyPI v1.3.231] https://pypi.org/project/openrouter/1.3.231 - .
- [PyPI v1.3.231] https://pypi.org/project/openrouter/1.3.231 - .

## 2026-12-02 21:22:24
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.232] .
### Releases
- [PyPI v1.3.232] https://pypi.org/project/openrouter/1.3.232 - .
Loading