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
32 changes: 14 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: 4babeec89624af04f991bf3ffbb2a71f
docChecksum: e0dc4a6da678e16a868451b310fd2be8
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.226
configChecksum: ba299176bf8c6e375318c81a4a1bb746
releaseVersion: 1.3.227
configChecksum: a658beec670bf670bb68bfb0cd831e0c
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 7408ab10-2e36-443c-9429-7ac4417ec808
pristine_commit_hash: 5f14a95f56348614d20c90e04b87914d17522934
pristine_tree_hash: 5d82834fdc0ef045b2663bb503fff84580d77910
generation_id: b04d0836-4521-48ca-82f0-b6a5686076f7
pristine_commit_hash: 6b4bdb639aab3a2bd63a496c9ccb2a03d65dbb54
pristine_tree_hash: 57c1037bc2cc3764d47123226b7710a1fcd21128
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -4924,8 +4924,8 @@ trackedFiles:
pristine_git_object: cb06254f868dcd6382020a51f98e9dbed083ee0f
docs/components/keybudget.mdx:
id: 97c09b7c00bb
last_write_checksum: sha1:dd65a444558a94adfcee3862d4e477beadbfd4b9
pristine_git_object: c73467727abe8054a349cb2a639b626b90649c7a
last_write_checksum: sha1:1fa72462ba13f2c1af4238df7a973165fd062571
pristine_git_object: 3e7f8d5d8f75a3cc94b43d023fda07eeb414001b
docs/components/keybudgetresetinterval.mdx:
id: 04c5a5d5c2de
last_write_checksum: sha1:6461a5c207b783acbaf11733a89c2091bba302cb
Expand Down Expand Up @@ -12388,8 +12388,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:ae20ef478ac334c757316ff2c14c159f88c72c16
pristine_git_object: 6503b096bfd61f095dee77bf17e5da282c877f0f
last_write_checksum: sha1:0b902d6d815fb90af72e7b899ba19acea439a647
pristine_git_object: aa5f96e31657d63a7a25efb5a28ccf21f5c30f76
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -12416,8 +12416,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:fbdf3b4ac61171b8927fc5824100c74fc2538753
pristine_git_object: 41968b1bcf02d9746d4daa9865a11d92b09a7f3c
last_write_checksum: sha1:f04f6c58f9f0df0b825d1145713ca7e9b561295d
pristine_git_object: 6e700225eea366ea14738f07595ef5b6829867ca
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -14500,8 +14500,8 @@ trackedFiles:
pristine_git_object: d334197ca0822a32f5f98a7548b254a37ee7d110
src/openrouter/components/keybudget.py:
id: 02da5af09bac
last_write_checksum: sha1:ef48846d18fc6947160152a2bdb62e447e115e52
pristine_git_object: 096c1f5b2de33c1a6f0ab5cd0c0c51ecb0ee7db4
last_write_checksum: sha1:632ab020f155709442e00a7236a1922344c272ac
pristine_git_object: fa6d2afb6c63b3a2dd468f765083f9d8a27c56b7
src/openrouter/components/legacy_chatcontentvideo.py:
id: b06bf8b4b644
last_write_checksum: sha1:59cab32b6634299755ba92b46c90ee4495e6e86a
Expand Down Expand Up @@ -22782,7 +22782,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.guardrails.delete()`: `error.status[400]` **Added**
* `open_router.guardrails.get()`: `error.status[400]` **Added**
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.226
version: 1.3.227
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18978,7 +18978,7 @@ components:
- 'string'
- 'null'
guardrail_id:
description: 'ID of the guardrail that carries this budget; null for other scopes.'
description: 'ID of the budget that applies at this layer: a guardrail policy ID (look it up with `GET /api/v1/guardrails/policies`) or, for accounts still on v1 guardrails, a guardrail ID. Null for the `workspace` and `key_limit` scopes.'
example: '0df9e665-d932-5740-b2c7-b52af166bc11'
type:
- 'string'
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:fa39c8edacf1998e475a5311bee64438788b79840819d50f2bb74869ff38e526
sourceBlobDigest: sha256:a531bed493c48dd2329832b376d77845b9c1e6ad7587285ee94f995a84ce9f6f
sourceRevisionDigest: sha256:fed68ab1979cb36b6dcb3d78f5c4c94d6b8bdd1c84d8a2746edfc6e8120b82fe
sourceBlobDigest: sha256:111dd67d067a6edfa686f338f00397251e2eed542000cbde283da0853206d8fa
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:fa39c8edacf1998e475a5311bee64438788b79840819d50f2bb74869ff38e526
sourceBlobDigest: sha256:a531bed493c48dd2329832b376d77845b9c1e6ad7587285ee94f995a84ce9f6f
sourceRevisionDigest: sha256:fed68ab1979cb36b6dcb3d78f5c4c94d6b8bdd1c84d8a2746edfc6e8120b82fe
sourceBlobDigest: sha256:111dd67d067a6edfa686f338f00397251e2eed542000cbde283da0853206d8fa
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:c990856095d95236bdad295c34e68dde689911cdc248866185d101ff64a0f21e
codeSamplesRevisionDigest: sha256:8fa393309f409de6958a395164463b476bb845e0b547cf762e78e353e97890fc
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 @@ -5029,4 +5029,14 @@ Based on:
### Generated
- [python v1.3.226] .
### Releases
- [PyPI v1.3.226] https://pypi.org/project/openrouter/1.3.226 - .
- [PyPI v1.3.226] https://pypi.org/project/openrouter/1.3.226 - .

## 2026-12-02 01:34:48
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.227] .
### Releases
- [PyPI v1.3.227] https://pypi.org/project/openrouter/1.3.227 - .
2 changes: 1 addition & 1 deletion docs/components/keybudget.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ One budget layer that applies to requests made with this key, with the spend enf
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `budget_id` | *Nullable[str]* | ✔️ | ID of the workspace budget for the `workspace` scope; null for other scopes. | null |
| `guardrail_id` | *Nullable[str]* | ✔️ | ID of the guardrail that carries this budget; null for other scopes. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
| `guardrail_id` | *Nullable[str]* | ✔️ | ID of the budget that applies at this layer: a guardrail policy ID (look it up with `GET /api/v1/guardrails/policies`) or, for accounts still on v1 guardrails, a guardrail ID. Null for the `workspace` and `key_limit` scopes. | 0df9e665-d932-5740-b2c7-b52af166bc11 |
| `include_byok` | *bool* | ✔️ | Whether external BYOK inference spend counts toward this budget. | false |
| `limit_usd` | *float* | ✔️ | Budget limit in USD for the current window. | 50 |
| `remaining_usd` | *float* | ✔️ | `limit_usd - spend_usd`. Zero or negative means this layer rejects requests with a 403 until it resets. | 17.5 |
Expand Down
Loading