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
39 changes: 21 additions & 18 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: e01ffe7b661442f6d7676a411bf91c6c
docChecksum: 2f3c2d6332d03987fdded9c1782bd4b3
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.3.63
configChecksum: 42bea9cd112b3e4ca83bfb77b9aacde9
releaseVersion: 1.3.64
configChecksum: 93623c4550edd6d6c410e7601a3a4ab5
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: c2fb6894-3dc9-4017-b200-637267205747
pristine_commit_hash: ca2d50b74882f241b59c922176444c479a50a959
pristine_tree_hash: 74f35974ba3f61e26a12819f2de3474787c9fbd6
generation_id: d11a47cc-2faa-444b-b752-69db10b8d9b4
pristine_commit_hash: a5c05f68a37e017629b4ac48673f3d9e8ac1491e
pristine_tree_hash: 11a418f2ab39b15eafd49d69aa932fb1cc6feaa5
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -1580,8 +1580,8 @@ trackedFiles:
pristine_git_object: d25f8767c5f193ee085eca684f5af8c606392c17
docs/components/batchsubmitbody.mdx:
id: 2102d576a5e0
last_write_checksum: sha1:fa3a1334e13197b14bec1223e1e5a029435831c6
pristine_git_object: 5f85713cfa1bc27f312cfa9a40edd7c628b743d3
last_write_checksum: sha1:5cbfb92fe2511a231af84a80b84bf4a10b4e1fd4
pristine_git_object: 9b985919b35b254116b74a8da83ff9ca508d6e75
docs/components/batchsubmitbodycompletionwindow.mdx:
id: 71af0bee298c
last_write_checksum: sha1:8fbf3915f9a5f59a214bd5144758f57d7f9d2485
Expand Down Expand Up @@ -10180,8 +10180,8 @@ trackedFiles:
pristine_git_object: fb5a440518f114c99eb8a4bf306f33e07697e22c
docs/sdks/batch/README.mdx:
id: e367aa4f4295
last_write_checksum: sha1:03ef59395c1bc1a4ffa14dd68ca2a77a72601080
pristine_git_object: 9fb69f19b90c7db149f1f80f3bac20b4b155f904
last_write_checksum: sha1:17ebabdebf4160a3f2f1769daab0d6e06a2977e6
pristine_git_object: cf0f3a1fdfed48320443b7acc1df0bfa6630b169
docs/sdks/benchmarks/README.mdx:
id: 5b483a6770ba
last_write_checksum: sha1:885b70fcbd2be60f51a2f58e133fd6452eb21600
Expand Down Expand Up @@ -10324,8 +10324,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:3f99e30f16eea08c09f4c8554c6b3135182f6590
pristine_git_object: 25151a6717dbd9ed6289ec853a9c61c4ccdcd3cb
last_write_checksum: sha1:2d91c61a0c444376c90f8b6608c4dade6d98c621
pristine_git_object: c9e6bbb93276862ce8253e03467ada10705db3ec
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -10352,8 +10352,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:4691fc06ccdde0d099269056f70b2213abf918e5
pristine_git_object: ffcc6273611510a24e696a2d9b77fc6f0bc94230
last_write_checksum: sha1:e930798d37bc425ae1c9cfbc56cc80de636847a3
pristine_git_object: bc97c1931639824175f2506696a962fdbced468a
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
Expand All @@ -10372,8 +10372,8 @@ trackedFiles:
pristine_git_object: 7a562e21c7e66c9db666ead83748b73adefe4278
src/openrouter/batch.py:
id: 148f61e34d5b
last_write_checksum: sha1:d88ee31a648fa3027e7d6610d5b789a42ad80aae
pristine_git_object: 51b8ec5e8b4ebd204b5991bf767da38fcfb3ce5b
last_write_checksum: sha1:76413ab7c07fb6fed4895cacb148862821d32f60
pristine_git_object: 246c6fb9beb539d61925df849ae71dd506ecbfd4
src/openrouter/benchmarks.py:
id: 178d2ad8d706
last_write_checksum: sha1:15b8a7ea05a7550032afb15981958aa73b756881
Expand Down Expand Up @@ -11072,8 +11072,8 @@ trackedFiles:
pristine_git_object: b2bbac635f94d6fe9f4eba2eded41b1990a9d5da
src/openrouter/components/batchsubmitbody.py:
id: 26e5100bce4e
last_write_checksum: sha1:80dc631bcd20eacb2a96606b7b66e94026411017
pristine_git_object: 072a6220d737bd1dd4405ee25316d930607211e7
last_write_checksum: sha1:79d5faf2a9409736410fdaf809f93f157b0765a9
pristine_git_object: a2658ae96d5f95d4fa7cf4b31c33e07002689780
src/openrouter/components/booleancapability.py:
id: 6009fd660c03
last_write_checksum: sha1:2615f4f9eecdf753ece20adc9897553404c71cc1
Expand Down Expand Up @@ -18836,3 +18836,6 @@ examples:
"500":
application/json: {"error": {"code": 404, "message": "Intern not found"}}
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.batch.create_batches()`: `request.callback_url` **Added**
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.63
version: 1.3.64
additionalDependencies:
dev: {}
main: {}
Expand Down
4 changes: 4 additions & 0 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6503,6 +6503,10 @@ components:
BatchSubmitBody:
description: 'Batch submit request body.'
properties:
callback_url:
description: 'HTTPS URL that receives a `batch.completed`, `batch.failed`, `batch.cancelled` or `batch.expired` webhook event when the batch reaches a terminal status. Must appear before `requests` in the request body.'
format: 'uri'
type: 'string'
completion_window:
default: '24h'
enum:
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.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:2407e42f6fee99c7e0a6ba39f2f6bd4a84b5b8f4a78a42d767f0826e9f84a10d
sourceBlobDigest: sha256:d0440089b4e39c4571eb1cccd41c494cff997c7f7994e899aaf16a121354b10a
sourceRevisionDigest: sha256:fa064d6165a0f7e1d77909689f328e6d5226b7728c1729a64888da89e301c5a3
sourceBlobDigest: sha256:7c2b45cff7db069caa60641482cb12fd6c6324fcc52fd151ebfe6d0611d88991
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:2407e42f6fee99c7e0a6ba39f2f6bd4a84b5b8f4a78a42d767f0826e9f84a10d
sourceBlobDigest: sha256:d0440089b4e39c4571eb1cccd41c494cff997c7f7994e899aaf16a121354b10a
sourceRevisionDigest: sha256:fa064d6165a0f7e1d77909689f328e6d5226b7728c1729a64888da89e301c5a3
sourceBlobDigest: sha256:7c2b45cff7db069caa60641482cb12fd6c6324fcc52fd151ebfe6d0611d88991
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:f5aaf6363aa13833ea76a48e50b5324d0b3f81b5346e2e1093431f965f2f5692
codeSamplesRevisionDigest: sha256:c69acbacacf0daa4ecb22221d69e72688b629675c8360a9c4ca2353a75b71710
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3399,4 +3399,14 @@ Based on:
### Generated
- [python v1.3.63] .
### Releases
- [PyPI v1.3.63] https://pypi.org/project/openrouter/1.3.63 - .
- [PyPI v1.3.63] https://pypi.org/project/openrouter/1.3.63 - .

## 2026-10-17 21:42:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.64] .
### Releases
- [PyPI v1.3.64] https://pypi.org/project/openrouter/1.3.64 - .
15 changes: 8 additions & 7 deletions docs/components/batchsubmitbody.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Batch submit request body.

## Fields

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `completion_window` | [Optional[components.BatchSubmitBodyCompletionWindow]](../components/batchsubmitbodycompletionwindow.mdx) | βž– | N/A | |
| `endpoint` | [components.Endpoint](../components/endpoint.mdx) | βœ… | N/A | |
| `model` | *str* | βœ… | N/A | |
| `provider` | [OptionalNullable[components.BatchProviderPreferences]](../components/batchproviderpreferences.mdx) | βž– | Batch provider routing preferences. Only `provider.only` and `provider.allow_fallbacks` are supported. | \{<br/>"only": [<br/>"google-vertex"<br/>]<br/>} |
| `requests` | List[[components.Request](../components/request.mdx)] | βœ… | N/A | |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `callback_url` | *Optional[str]* | βž– | HTTPS URL that receives a `batch.completed`, `batch.failed`, `batch.cancelled` or `batch.expired` webhook event when the batch reaches a terminal status. Must appear before `requests` in the request body. | |
| `completion_window` | [Optional[components.BatchSubmitBodyCompletionWindow]](../components/batchsubmitbodycompletionwindow.mdx) | βž– | N/A | |
| `endpoint` | [components.Endpoint](../components/endpoint.mdx) | βœ… | N/A | |
| `model` | *str* | βœ… | N/A | |
| `provider` | [OptionalNullable[components.BatchProviderPreferences]](../components/batchproviderpreferences.mdx) | βž– | Batch provider routing preferences. Only `provider.only` and `provider.allow_fallbacks` are supported. | \{<br/>"only": [<br/>"google-vertex"<br/>]<br/>} |
| `requests` | List[[components.Request](../components/request.mdx)] | βœ… | N/A | |
Loading