Skip to content

Commit f0d41fa

Browse files
github-actions[bot]speakeasybotspeakeasy-github[bot]
authored
chore: 🐝 Update SDK - Generate (spec change merged) 1.1.121 (#796)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
1 parent 00cd7e8 commit f0d41fa

10 files changed

Lines changed: 44 additions & 33 deletions

File tree

β€Ž.speakeasy/gen.lockβ€Ž

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: c48cf606-fb42-4a45-9c23-8f0555307828
33
management:
4-
docChecksum: ce5f8d5996391569ed1a685721f7046c
4+
docChecksum: ef4375b6fadf3fd807dbc6d6bb621ffe
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.120
9-
configChecksum: 8357d85eb9f5bac84298c0e227a6b984
8+
releaseVersion: 1.1.121
9+
configChecksum: 3ecb2bfd311c2325ca10fbfa565c4a7d
1010
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
1111
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
1212
published: true
1313
persistentEdits:
14-
generation_id: 879edd87-e0e3-485b-83f6-9b19a99c9830
15-
pristine_commit_hash: fb33c12a82fe10127a23bb2621acecac1dfeab9f
16-
pristine_tree_hash: 32c744f7564cd3e8014d258525cef3e97c325ef9
14+
generation_id: d4f7b119-f988-4d34-8936-080d88b21a5e
15+
pristine_commit_hash: ad13f373445625ca137002321b070c42e15d2899
16+
pristine_tree_hash: c97341de08acfad5b07fd67e4beec8213b65f549
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -7494,8 +7494,8 @@ trackedFiles:
74947494
pristine_git_object: 064751ea194bff6b8111575603f804362960b886
74957495
docs/sdks/guardrails/README.mdx:
74967496
id: a0cd4218b8fa
7497-
last_write_checksum: sha1:38528ebab7b27c8a9573213e6a35986c40c09770
7498-
pristine_git_object: d0e5b6f5dc99709bb57448b98401d8f1fee98d04
7497+
last_write_checksum: sha1:02fb13bacf932379fb2d9169a3d6664b9d6fc4cc
7498+
pristine_git_object: 8dc183423168c2d7a9fa42306793a6e9c6d3f8f3
74997499
docs/sdks/images/README.mdx:
75007500
id: 534a6c102c4f
75017501
last_write_checksum: sha1:bc62f91590ac816c58ad954f4a888a46aee71bb9
@@ -7558,8 +7558,8 @@ trackedFiles:
75587558
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
75597559
pyproject.toml:
75607560
id: 5d07e7d72637
7561-
last_write_checksum: sha1:2765676781474b4d3b41566bb0c4ea7d587b226b
7562-
pristine_git_object: 8a72681c7b253c3d9226466f122b38d098eed74d
7561+
last_write_checksum: sha1:b9558fa5e54f3bfda623b3e937ad439666908ea6
7562+
pristine_git_object: 02ce090a3c2f76182393f20accee3011ad91e2f5
75637563
scripts/prepare_readme.py:
75647564
id: e0c5957a6035
75657565
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7586,8 +7586,8 @@ trackedFiles:
75867586
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
75877587
src/openrouter/_version.py:
75887588
id: d8d15ad6c586
7589-
last_write_checksum: sha1:18c1a65cc4fadc02dba9801979adfe6f0078b39b
7590-
pristine_git_object: 649f736d9a9057d5204c17e6ac936b088de48beb
7589+
last_write_checksum: sha1:6c64daaa0828ff88d83e2ed3d8cc43fe56447d61
7590+
pristine_git_object: 604e929d7d0a86c4d9fe73ae21e65071b2fe4400
75917591
src/openrouter/analytics.py:
75927592
id: cb406b5aaabb
75937593
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -10254,8 +10254,8 @@ trackedFiles:
1025410254
pristine_git_object: d5990c4254d4b3c5dae3f548bbec02558adadae1
1025510255
src/openrouter/guardrails.py:
1025610256
id: 705839f34e66
10257-
last_write_checksum: sha1:375746bca04b2636732a777a26da1e59bccbbd2a
10258-
pristine_git_object: c6397aa3dd46a1ce6b447b0cd0d2228a9c005c08
10257+
last_write_checksum: sha1:274067b0de8dba4d5af46e7e7edf72cd5396c1e6
10258+
pristine_git_object: 70c362641e5c358472bcc9a09d9546b042915b94
1025910259
src/openrouter/httpclient.py:
1026010260
id: e9311185443d
1026110261
last_write_checksum: sha1:5e55338d6ee9f01ab648cad4380201a8a3da7dd7
@@ -12715,6 +12715,3 @@ examples:
1271512715
"500":
1271612716
application/json: {"error": "invalid_grant", "error_description": "The subject token was not accepted."}
1271712717
examplesVersion: 1.0.2
12718-
releaseNotes: |
12719-
## Python SDK Changes:
12720-
* `open_router.api_keys.create()`: `request.external` **Added**

β€Ž.speakeasy/gen.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ generation:
3636
documentation: mintlify
3737
preApplyUnionDiscriminators: true
3838
python:
39-
version: 1.1.120
39+
version: 1.1.121
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

β€Ž.speakeasy/out.openapi.yamlβ€Ž

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32837,12 +32837,14 @@ paths:
3283732837
results: '$.data'
3283832838
type: 'offsetLimit'
3283932839
post:
32840-
description: 'Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace''s traffic. To restrict all traffic in a workspace, update the workspace''s default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
32840+
description: 'Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace''s traffic. To restrict all traffic in a workspace, update the workspace''s default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.'
3284132841
operationId: 'createGuardrail'
3284232842
requestBody:
3284332843
content:
3284432844
application/json:
3284532845
example:
32846+
allowed_data_regions:
32847+
- 'europe'
3284632848
allowed_models: null
3284732849
allowed_providers:
3284832850
- 'openai'

β€Ž.speakeasy/workflow.lockβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@ speakeasyVersion: 1.787.0
22
sources:
33
OpenRouter API:
44
sourceNamespace: open-router-chat-completions-api
5-
sourceRevisionDigest: sha256:390305318c4533d383dc9c88de415c2542a7caf6ac9bc01db93781a99a394bdc
6-
sourceBlobDigest: sha256:7c6b932ad65bf10271c6384063c1d55781f75fefa9780aff01f32c3155162943
5+
sourceRevisionDigest: sha256:1ce443cecaa0e23482575ffa2342f19f9bd70095f0d810123b804bfa51d57ac9
6+
sourceBlobDigest: sha256:37a924029ae8b5c2df769bee916c09b5c7afd32f07b0a0fb4fb33ef738364ae8
77
tags:
88
- latest
99
- 1.0.0
1010
targets:
1111
open-router:
1212
source: OpenRouter API
1313
sourceNamespace: open-router-chat-completions-api
14-
sourceRevisionDigest: sha256:390305318c4533d383dc9c88de415c2542a7caf6ac9bc01db93781a99a394bdc
15-
sourceBlobDigest: sha256:7c6b932ad65bf10271c6384063c1d55781f75fefa9780aff01f32c3155162943
14+
sourceRevisionDigest: sha256:1ce443cecaa0e23482575ffa2342f19f9bd70095f0d810123b804bfa51d57ac9
15+
sourceBlobDigest: sha256:37a924029ae8b5c2df769bee916c09b5c7afd32f07b0a0fb4fb33ef738364ae8
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:40c3ec0b19f0e0bf2aa8d48616aafb27e782f71ffef33a5ffc765829ff9bf46e
17+
codeSamplesRevisionDigest: sha256:496c6b959e03f2c742c15a6672fe866b4d3f644add259d2722a02ce3bca99f94
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

β€ŽRELEASES.mdβ€Ž

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,4 +1989,14 @@ Based on:
19891989
### Generated
19901990
- [python v1.1.120] .
19911991
### Releases
1992-
- [PyPI v1.1.120] https://pypi.org/project/openrouter/1.1.120 - .
1992+
- [PyPI v1.1.120] https://pypi.org/project/openrouter/1.1.120 - .
1993+
1994+
## 2026-09-03 16:48:13
1995+
### Changes
1996+
Based on:
1997+
- OpenAPI Doc
1998+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1999+
### Generated
2000+
- [python v1.1.121] .
2001+
### Releases
2002+
- [PyPI v1.1.121] https://pypi.org/project/openrouter/1.1.121 - .

β€Ždocs/sdks/guardrails/README.mdxβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ with OpenRouter(
7777

7878
## create
7979

80-
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
80+
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.
8181

8282
### Example Usage
8383

@@ -93,7 +93,9 @@ with OpenRouter(
9393
api_key=os.getenv("OPENROUTER_API_KEY", ""),
9494
) as open_router:
9595

96-
res = open_router.guardrails.create(name="My New Guardrail", allowed_models=None, allowed_providers=[
96+
res = open_router.guardrails.create(name="My New Guardrail", allowed_data_regions=[
97+
"europe",
98+
], allowed_models=None, allowed_providers=[
9799
"openai",
98100
"anthropic",
99101
"deepseek",

β€Žpyproject.tomlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "openrouter"
3-
version = "1.1.120"
3+
version = "1.1.121"
44
description = "Official Python Client SDK for OpenRouter."
55
authors = [{ name = "OpenRouter" },]
66
readme = "README-PYPI.md"

β€Žsrc/openrouter/_version.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "openrouter"
6-
__version__: str = "1.1.120"
6+
__version__: str = "1.1.121"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.1.120 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.1.121 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

β€Žsrc/openrouter/guardrails.pyβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def create(
397397
) -> components.CreateGuardrailResponse:
398398
r"""Create a guardrail
399399
400-
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
400+
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.
401401
402402
:param name: Name for the new guardrail
403403
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.
@@ -631,7 +631,7 @@ async def create_async(
631631
) -> components.CreateGuardrailResponse:
632632
r"""Create a guardrail
633633
634-
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. [Management key](/docs/guides/overview/auth/management-api-keys) required.
634+
Create a new guardrail for the authenticated user. A newly created guardrail enforces nothing until it is assigned to API keys or organization members; `workspace_id` places the guardrail in a workspace but does not apply it to that workspace's traffic. To restrict all traffic in a workspace, update the workspace's default guardrail instead. Set `allowed_data_regions` to enforce [In-Region Routing](/docs/guides/features/in-region-routing#enforcing-in-region-routing-with-guardrails): governed requests must arrive through one of the listed OpenRouter domains and are rejected with a 403 otherwise. [Management key](/docs/guides/overview/auth/management-api-keys) required.
635635
636636
:param name: Name for the new guardrail
637637
:param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings.

β€Žuv.lockβ€Ž

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
Β (0)