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
20 changes: 10 additions & 10 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: 15ec258ef271a97cb724ed5943a62604
docChecksum: f611bdab224d0286fbaa5c8d9ee788d3
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.166
configChecksum: e7bd48e5b35be67e8115c656972562fc
releaseVersion: 1.3.167
configChecksum: 6f4174e9744dd1a79a9169c84bf46f7f
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: f00bffdd-6094-499a-870f-28558d53422b
pristine_commit_hash: cee92fd533b231c5aba258a7d107a12101c47842
pristine_tree_hash: f6453306c43265f360ce16d2e835a5f7119ef988
generation_id: 13e378c9-1e4e-4933-8b6f-740d4d09179e
pristine_commit_hash: 751a04fd6a50f7216cae4e29e6d9ff261f5abc57
pristine_tree_hash: 050ec9f9aacd7be4dbd8f55ec4abebb186f92339
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -11620,8 +11620,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:d2f64c244c07df2045098ac91eacb829dbe2b555
pristine_git_object: 53ab93ff9a221b933458f3f689bd5a76a773241c
last_write_checksum: sha1:1203dbc2c60a8c1ba4296f4619f203ed2de0ab7c
pristine_git_object: 47de851775601f74d2bccf94a92a722486a32121
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -11648,8 +11648,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:7473355f87874fa01800e69fa6bf7095e82eda03
pristine_git_object: af69252cbad2050a6373bd48d1391a72328906e3
last_write_checksum: sha1:d30bd7e48b70ac8fad34b1b243b17e93585c18d6
pristine_git_object: bb87867809391815626034883cd8f37e869e46e7
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down
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.166
version: 1.3.167
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
47 changes: 41 additions & 6 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11580,6 +11580,37 @@ components:
required:
- 'data'
type: 'object'
CreditPurchaseUnavailableResponse:
example:
error:
code: 503
message: 'The payment transfer could not be confirmed; poll the purchase before retrying'
metadata:
purchase_id: 'pi_3PqXyZ2eZvKYlo2C0abc1234'
properties:
error:
properties:
code:
type: 'integer'
message:
type: 'string'
metadata:
description: 'Present when the outcome of a paid request is unknown and its purchase is known.'
properties:
purchase_id:
description: 'The purchase to poll with `GET /api/v1/credits/purchases/{id}` before paying again.'
example: 'pi_3PqXyZ2eZvKYlo2C0abc1234'
type: 'string'
required:
- 'purchase_id'
type: 'object'
required:
- 'code'
- 'message'
type: 'object'
required:
- 'error'
type: 'object'
CustomTool:
description: 'Custom tool configuration'
example:
Expand Down Expand Up @@ -43407,13 +43438,17 @@ paths:
'503':
content:
application/json:
example:
error:
code: 503
message: 'Service temporarily unavailable'
schema:
$ref: '#/components/schemas/ServiceUnavailableResponse'
description: 'Service Unavailable - Service temporarily unavailable'
$ref: '#/components/schemas/CreditPurchaseUnavailableResponse'
description: 'Temporarily unavailable, or the outcome of a paid request is unknown. When the outcome is unknown and the purchase is known, `Location` and `error.metadata.purchase_id` name the purchase: poll it before paying again.'
headers:
Location:
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`. Present when the outcome of a paid request is unknown and its purchase is known.'
required: false
schema:
description: 'The purchase to poll: `GET /api/v1/credits/purchases/{id}`. Present when the outcome of a paid request is unknown and its purchase is known.'
example: '/api/v1/credits/purchases/pi_3PqXyZ2eZvKYlo2C0abc1234'
type: 'string'
security:
- bearerAuth: []
summary: 'Buy credits with a machine payment'
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:706a0d0dcd17f56d39627aed08c307d08ccbd3e8d0d62ad3b97edcfc700ed535
sourceBlobDigest: sha256:34a70575a45a7e8fde508049e1f43a9d304993d033fb5d5d3dd06a71552c0c34
sourceRevisionDigest: sha256:16d7ed4db920431d905f1a12e945b8f866f3f63622ee49e5fe7981d36b6bcb13
sourceBlobDigest: sha256:29d1d4a3143d0511f39920ff3e07c19c3fde928a7cbbefe29183066f0bb5390e
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:706a0d0dcd17f56d39627aed08c307d08ccbd3e8d0d62ad3b97edcfc700ed535
sourceBlobDigest: sha256:34a70575a45a7e8fde508049e1f43a9d304993d033fb5d5d3dd06a71552c0c34
sourceRevisionDigest: sha256:16d7ed4db920431d905f1a12e945b8f866f3f63622ee49e5fe7981d36b6bcb13
sourceBlobDigest: sha256:29d1d4a3143d0511f39920ff3e07c19c3fde928a7cbbefe29183066f0bb5390e
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:7c3d0717ac950056274d148e7b297e04596417071ea81ab27865a97a6117e860
codeSamplesRevisionDigest: sha256:6ca132ff16bd92b74b90eec43b2d75d0ce91994ff2c62ae539ba207586b35622
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 @@ -4429,4 +4429,14 @@ Based on:
### Generated
- [python v1.3.166] .
### Releases
- [PyPI v1.3.166] https://pypi.org/project/openrouter/1.3.166 - .
- [PyPI v1.3.166] https://pypi.org/project/openrouter/1.3.166 - .

## 2026-11-12 05:25:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.167] .
### Releases
- [PyPI v1.3.167] https://pypi.org/project/openrouter/1.3.167 - .
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "openrouter"
version = "1.3.166"
version = "1.3.167"
description = "Official Python Client SDK for OpenRouter."
authors = [{ name = "OpenRouter" },]
readme = "README-PYPI.md"
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "openrouter"
__version__: str = "1.3.166"
__version__: str = "1.3.167"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
__user_agent__: str = "speakeasy-sdk/python 1.3.166 2.950.13 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.3.167 2.950.13 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading