From 4911ae91acee936094910c604fa01677149f3211 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 2 Dec 2026 01:38:15 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 32 +++++++++++--------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 2 +- .speakeasy/workflow.lock | 10 ++++---- RELEASES.md | 12 +++++++++- docs/components/keybudget.mdx | 2 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/components/keybudget.py | 4 ++-- uv.lock | 2 +- 10 files changed, 39 insertions(+), 33 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8fc89246e..8252961a5 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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** diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 719293f90..f9565be3b 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.226 + version: 1.3.227 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 5336b6d34..1de2beaf0 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -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' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 15d0e7158..6d3746365 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ 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 @@ -11,10 +11,10 @@ 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 diff --git a/RELEASES.md b/RELEASES.md index 10551bbde..3d85db349 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5029,4 +5029,14 @@ Based on: ### Generated - [python v1.3.226] . ### Releases -- [PyPI v1.3.226] https://pypi.org/project/openrouter/1.3.226 - . \ No newline at end of file +- [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 - . \ No newline at end of file diff --git a/docs/components/keybudget.mdx b/docs/components/keybudget.mdx index c73467727..3e7f8d5d8 100644 --- a/docs/components/keybudget.mdx +++ b/docs/components/keybudget.mdx @@ -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 | diff --git a/pyproject.toml b/pyproject.toml index 6503b096b..aa5f96e31 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.226" +version = "1.3.227" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 41968b1bc..6e700225e 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.226" +__version__: str = "1.3.227" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.226 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.227 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/keybudget.py b/src/openrouter/components/keybudget.py index 096c1f5b2..fa6d2afb6 100644 --- a/src/openrouter/components/keybudget.py +++ b/src/openrouter/components/keybudget.py @@ -39,7 +39,7 @@ class KeyBudgetTypedDict(TypedDict): budget_id: Nullable[str] r"""ID of the workspace budget for the `workspace` scope; null for other scopes.""" guardrail_id: Nullable[str] - r"""ID of the guardrail that carries this budget; null for other scopes.""" + r"""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.""" include_byok: bool r"""Whether external BYOK inference spend counts toward this budget.""" limit_usd: float @@ -63,7 +63,7 @@ class KeyBudget(BaseModel): r"""ID of the workspace budget for the `workspace` scope; null for other scopes.""" guardrail_id: Nullable[str] - r"""ID of the guardrail that carries this budget; null for other scopes.""" + r"""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.""" include_byok: bool r"""Whether external BYOK inference spend counts toward this budget.""" diff --git a/uv.lock b/uv.lock index 408c11b20..0c48573c0 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.226" +version = "1.3.227" source = { editable = "." } dependencies = [ { name = "httpcore" },