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
29 changes: 14 additions & 15 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: 44e816121f7386c21e0c62d08d159a7f
docChecksum: 3534d2fc1b56a60cfb5155d193ebbbae
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.248
configChecksum: 3b85946ca2851499a18603a125e13ee7
releaseVersion: 1.3.249
configChecksum: 9c96a31f744f8d97ae49afb34c00f652
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 2dce75bd-d14c-435f-9fb6-d0b6378f1073
pristine_commit_hash: 1ed625264b0ece58a2e21c7aea790df8b1678689
pristine_tree_hash: c928982858c19ce36478eb05df4806864c5511c2
generation_id: 53118a64-20f8-4d36-b99a-bc3184324885
pristine_commit_hash: 6a8793a6eb7a14a4d0f2837127b8b3557d4672a4
pristine_tree_hash: 3800d01506b9490b5afb3b3a16a2bd3be9290ec2
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -12600,8 +12600,8 @@ trackedFiles:
pristine_git_object: 7ec17f429d4a03eb91f993e592edd019caeeb451
docs/sdks/guardrailpolicies/README.mdx:
id: 0e5ed6ce5965
last_write_checksum: sha1:1b84e58562930a8c90da470ca374e706a85a6aa6
pristine_git_object: 0487a345570c6825ff5f920a6e81a3f6e8a20f8a
last_write_checksum: sha1:b904187d544cc7777bd60d680bada694d657c8ec
pristine_git_object: b6ff17f72f594b40aa22e3fc0df732c776ebe768
docs/sdks/guardrails/README.mdx:
id: a0cd4218b8fa
last_write_checksum: sha1:d5af5863ad27cfa25e66f238d58c53422282e73a
Expand Down Expand Up @@ -12688,8 +12688,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:fd7fe0384911d4eb15199a8261b1db34b4a20af0
pristine_git_object: 13352aa96fb0d98ff097db96d3d810ebab7b7e08
last_write_checksum: sha1:99912460d4173130845589c3161201af31dd33ab
pristine_git_object: ec4076d23f45b1a0290e2fdfdf483fa4974533d7
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -12716,8 +12716,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:a69a3e89c74fdf99e249c8784bf55b4ac1be3ac9
pristine_git_object: 1f21bad301f60965eb2c4828b5298e417eb7c43f
last_write_checksum: sha1:652aea765469397ebfde8093c3195ab4bc5edef3
pristine_git_object: 4c3aa128edd8f808bcd0193bc76509b425db3cea
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -17024,8 +17024,8 @@ trackedFiles:
pristine_git_object: 67c135fcabfa563a3f7e2721d2618041ef8d7650
src/openrouter/guardrail_policies.py:
id: 0505548eb66e
last_write_checksum: sha1:16f5f8055ac33690f85d15ada1ca2b3619c39bc7
pristine_git_object: 724c517913837ea635fe2c33d68c00a4e371e14e
last_write_checksum: sha1:cc2844ab420956f2c625fe72ffbd1d3ae5ecb004
pristine_git_object: 682e02dded6ae838155af717788529bb5a37fdbe
src/openrouter/guardrails.py:
id: 705839f34e66
last_write_checksum: sha1:69bf7403b0ab33a52b621377a3ee404f47f8983b
Expand Down Expand Up @@ -23427,4 +23427,3 @@ examples:
"500":
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
examplesVersion: 1.0.2
releaseNotes: "## Python SDK Changes:\n* `open_router.analytics.query_analytics()`: `request.api_key_tag_key` **Added**\n* `open_router.api_keys.list()`: \n * `request.tag` **Added**\n * `response.data[].tags` **Added**\n* `open_router.api_keys.create()`: \n * `request.tags` **Added**\n * `response.data.tags` **Added**\n* `open_router.api_keys.get()`: `response.data.tags` **Added**\n* `open_router.api_keys.update()`: \n * `request.tags` **Added**\n * `response.data.tags` **Added**\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.248
version: 1.3.249
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
30 changes: 15 additions & 15 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54034,7 +54034,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/guardrails/policies/capacity:
get:
description: 'List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
description: 'List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'listCapacityPolicies'
parameters:
- description: 'Number of records to skip for pagination. When both offset and limit are omitted, the full list is returned'
Expand Down Expand Up @@ -54099,10 +54099,10 @@ paths:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
message: 'Capacity policies are only available to Enterprise customers in the private beta.'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta'
'404':
content:
application/json:
Expand Down Expand Up @@ -54139,7 +54139,7 @@ paths:
results: '$.data'
type: 'offsetLimit'
post:
description: 'Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
description: 'Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'createCapacityPolicy'
requestBody:
content:
Expand Down Expand Up @@ -54180,10 +54180,10 @@ paths:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
message: 'Capacity policies are only available to Enterprise customers in the private beta.'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta'
'404':
content:
application/json:
Expand Down Expand Up @@ -54224,7 +54224,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/guardrails/policies/capacity/{id}:
delete:
description: 'Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
description: 'Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'deleteCapacityPolicy'
parameters:
- description: 'Policy ID'
Expand Down Expand Up @@ -54278,10 +54278,10 @@ paths:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
message: 'Capacity policies are only available to Enterprise customers in the private beta.'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta'
'404':
content:
application/json:
Expand Down Expand Up @@ -54317,7 +54317,7 @@ paths:
- 'Guardrail Policies'
x-speakeasy-name-override: 'deleteCapacityPolicy'
get:
description: 'Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
description: 'Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'getCapacityPolicy'
parameters:
- description: 'Policy ID'
Expand Down Expand Up @@ -54371,10 +54371,10 @@ paths:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
message: 'Capacity policies are only available to Enterprise customers in the private beta.'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta'
'404':
content:
application/json:
Expand All @@ -54400,7 +54400,7 @@ paths:
- 'Guardrail Policies'
x-speakeasy-name-override: 'getCapacityPolicy'
put:
description: 'Replace a capacity policy''s name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
description: 'Replace a capacity policy''s name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
operationId: 'updateCapacityPolicy'
parameters:
- description: 'Policy ID'
Expand Down Expand Up @@ -54451,10 +54451,10 @@ paths:
example:
error:
code: 403
message: 'Only management keys can perform this operation'
message: 'Capacity policies are only available to Enterprise customers in the private beta.'
schema:
$ref: '#/components/schemas/ForbiddenResponse'
description: 'Forbidden - Authentication successful but insufficient permissions'
description: 'Forbidden - Insufficient permissions, or the organization does not have access to the Enterprise private beta'
'404':
content:
application/json:
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:ef54628eec226fb9a27fb9f62f76b00199afae0ccb8cda126c2a3660f18cf07e
sourceBlobDigest: sha256:84db5b4d90dc3fc96f5774ea337beabaca528058d776a084cf8e920aa92d8710
sourceRevisionDigest: sha256:898831486e74b7b1fdc330f2b661b2dc3bf23385aafa524379986c07424c3c66
sourceBlobDigest: sha256:d0244ee95fd73eb73950dece5f5442c8609b49389be838d08f99bc9c983576dd
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:ef54628eec226fb9a27fb9f62f76b00199afae0ccb8cda126c2a3660f18cf07e
sourceBlobDigest: sha256:84db5b4d90dc3fc96f5774ea337beabaca528058d776a084cf8e920aa92d8710
sourceRevisionDigest: sha256:898831486e74b7b1fdc330f2b661b2dc3bf23385aafa524379986c07424c3c66
sourceBlobDigest: sha256:d0244ee95fd73eb73950dece5f5442c8609b49389be838d08f99bc9c983576dd
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:133780529bb319337ea0c3509deeb4e5551a755b43cd1e7a343780a3cdeec3e0
codeSamplesRevisionDigest: sha256:22ef2e2ab712db95bd12305ba9a593a1fe08d53f72b51f25da19950f14cfdda6
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 @@ -5249,4 +5249,14 @@ Based on:
### Generated
- [python v1.3.248] .
### Releases
- [PyPI v1.3.248] https://pypi.org/project/openrouter/1.3.248 - .
- [PyPI v1.3.248] https://pypi.org/project/openrouter/1.3.248 - .

## 2026-12-05 05:20:36
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.249] .
### Releases
- [PyPI v1.3.249] https://pypi.org/project/openrouter/1.3.249 - .
10 changes: 5 additions & 5 deletions docs/sdks/guardrailpolicies/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ with OpenRouter(

## list_capacity_policies

List the capacity policies in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.
List the capacity policies in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.

### Example Usage

Expand Down Expand Up @@ -1094,7 +1094,7 @@ with OpenRouter(

## create_capacity_policy

Create a capacity policy in a workspace. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Create a capacity policy in a workspace. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.

### Example Usage

Expand Down Expand Up @@ -1166,7 +1166,7 @@ with OpenRouter(

## delete_capacity_policy

Delete a capacity policy. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Delete a capacity policy. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.

### Example Usage

Expand Down Expand Up @@ -1218,7 +1218,7 @@ with OpenRouter(

## get_capacity_policy

Get a capacity policy with its member and API key assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Get a capacity policy with its member and API key assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.

### Example Usage

Expand Down Expand Up @@ -1269,7 +1269,7 @@ with OpenRouter(

## update_capacity_policy

Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature. [Management key](/docs/guides/overview/auth/management-api-keys) required.
Replace a capacity policy's name and config, and optionally its assignments. Enterprise private beta feature: organizations without access receive 403. [Management key](/docs/guides/overview/auth/management-api-keys) required.

### Example Usage

Expand Down
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.248"
version = "1.3.249"
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.248"
__version__: str = "1.3.249"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
__user_agent__: str = "speakeasy-sdk/python 1.3.248 2.950.13 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.3.249 2.950.13 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
Loading