Skip to content

Commit a33b0ce

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

12 files changed

Lines changed: 115 additions & 31 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 28 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: 45f28287fc894e5f53c0213327d3336f
4+
docChecksum: 9a21da776a63d8a1ab383c6a36668bf0
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.79
9-
configChecksum: 73a54cee83ddedc18a6df9d73800d4e2
8+
releaseVersion: 1.1.80
9+
configChecksum: e088bba216f88d55dcc05d4f3b5a999b
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: 29835c42-7944-4058-b133-37fe92227dab
15-
pristine_commit_hash: 1b4ebed440b4d6ce9f812b4994fddae919c22183
16-
pristine_tree_hash: 47b87eb2c3fb89a7e7b7e90bb4511994ad04d765
14+
generation_id: d2dc66ab-efe1-4319-b859-f7f49d99fec9
15+
pristine_commit_hash: d3a4e608a61c13740ca17462131298598ba29467
16+
pristine_tree_hash: b47f1a2e14b773ff8c6cd889832e02ced561f59a
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -4334,8 +4334,8 @@ trackedFiles:
43344334
pristine_git_object: e60ec6cfd7c0882a02067bfbe246e5cf6d5208c0
43354335
docs/components/pricingoverride.mdx:
43364336
id: 74675f38c1c6
4337-
last_write_checksum: sha1:ca4bf606df26dd9e2b636d7d9e9f0fd183b21145
4338-
pristine_git_object: 5fb1b765b2b0e46d40042f341bbcc91aa0d92762
4337+
last_write_checksum: sha1:eeb486b65e66a55269aeafcc60f310501a98dbd6
4338+
pristine_git_object: b7d539e20f7337822a45f726f451fac321f875f6
43394339
docs/components/primarymetric.mdx:
43404340
id: c6ec097bacaf
43414341
last_write_checksum: sha1:fc7d89ac02ff585424b5bc8cc9b0ac82338c7b6f
@@ -5604,6 +5604,10 @@ trackedFiles:
56045604
id: d197ccf2b36c
56055605
last_write_checksum: sha1:c7078ea2cd00c001dcef6ce68c790b9d3d718e2b
56065606
pristine_git_object: 2b1814dbe5bc4583007dd638b6a4a9c08c0c81ce
5607+
docs/components/utcday.mdx:
5608+
id: a0c417921ea8
5609+
last_write_checksum: sha1:dba97f2b96e20e9ea4c21f9298e0be1d2a0d5966
5610+
pristine_git_object: 535f547efad65780088e6098364532ec4c91a6dc
56075611
docs/components/variables.mdx:
56085612
id: 3312b9777716
56095613
last_write_checksum: sha1:6ba9bb63173376b0dcb7ac22b859bfef3e3820eb
@@ -7354,8 +7358,8 @@ trackedFiles:
73547358
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
73557359
pyproject.toml:
73567360
id: 5d07e7d72637
7357-
last_write_checksum: sha1:ef8b1ed8326062d20ca9d33b92592e6d531a0887
7358-
pristine_git_object: ef555080ec91fb70f367d33d4e2c4eaea4353041
7361+
last_write_checksum: sha1:4ad2ac0d52d1828dbb9feca2f7fa39206819134e
7362+
pristine_git_object: c6e255a167228b021666d308a5c52de689f8b63c
73597363
scripts/prepare_readme.py:
73607364
id: e0c5957a6035
73617365
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -7382,8 +7386,8 @@ trackedFiles:
73827386
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
73837387
src/openrouter/_version.py:
73847388
id: d8d15ad6c586
7385-
last_write_checksum: sha1:c3c8b84937417ea8966f8668493e9042cff43012
7386-
pristine_git_object: 99b80e5df96cadcdc9d243d57ca666bd5dc0ab00
7389+
last_write_checksum: sha1:7895593dcf93d43e317d6822db9b29cb6b1caf28
7390+
pristine_git_object: 18d71c63114f8321bdd7ae5a9019589fb4a5cd1c
73877391
src/openrouter/analytics.py:
73887392
id: cb406b5aaabb
73897393
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
@@ -7422,8 +7426,8 @@ trackedFiles:
74227426
pristine_git_object: ad3d247954547814054c01989a2dff3d12b3e4e1
74237427
src/openrouter/components/__init__.py:
74247428
id: 81754e97b3f4
7425-
last_write_checksum: sha1:d888cd088a96b318e3627db8b63566b319bd7ac9
7426-
pristine_git_object: a83396ab5dadab0e7dc11e20256867d319c7b9d4
7429+
last_write_checksum: sha1:ebd95cc90194d32d4141fc2396523f97938d7a21
7430+
pristine_git_object: 0d8caf88d87547770651198530fbddaaa428cb16
74277431
src/openrouter/components/aabenchmarkentry.py:
74287432
id: e2e0f0b48c82
74297433
last_write_checksum: sha1:fab4d9a24d2cea937bb749d46c5f83941e99d65c
@@ -9214,8 +9218,8 @@ trackedFiles:
92149218
pristine_git_object: 90bdb267893360608210843a5da0d5d68e80d41e
92159219
src/openrouter/components/pricingoverride.py:
92169220
id: 8984e4cc7422
9217-
last_write_checksum: sha1:0f72b9806164907aacce785f2d0c79a3e9374ac9
9218-
pristine_git_object: a7c4599ac6ab794f54968f12cd6b15c3137a5159
9221+
last_write_checksum: sha1:e12629320e02396a2aa1dfcbacd6873fba0d4aba
9222+
pristine_git_object: e86eb424bc592492f2903c8b3e30ec23de814991
92199223
src/openrouter/components/promptcachebreakpoint.py:
92209224
id: f1e589a13300
92219225
last_write_checksum: sha1:ea0f5d81093058c261edd1937b4c7148989a203a
@@ -12382,4 +12386,11 @@ examples:
1238212386
"503":
1238312387
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
1238412388
examplesVersion: 1.0.2
12385-
releaseNotes: "## Python SDK Changes:\n* `open_router.api_keys.list()`: `response.data[].external_user` **Added**\n* `open_router.api_keys.create()`: \n * `request.external_user` **Added**\n * `response.data.external_user` **Added**\n* `open_router.api_keys.get()`: `response.data.external_user` **Added**\n* `open_router.api_keys.update()`: `response.data.external_user` **Added**\n"
12389+
releaseNotes: |
12390+
## Python SDK Changes:
12391+
* `open_router.embeddings.list_models()`: `response.data[].pricing.overrides[].utc_days` **Added**
12392+
* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].pricing.overrides[].utc_days` **Added**
12393+
* `open_router.endpoints.list()`: `response.data.endpoints[].pricing.overrides[].utc_days` **Added**
12394+
* `open_router.models.get()`: `response.data.pricing.overrides[].utc_days` **Added**
12395+
* `open_router.models.list()`: `response.data[].pricing.overrides[].utc_days` **Added**
12396+
* `open_router.models.list_for_user()`: `response.data[].pricing.overrides[].utc_days` **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.79
39+
version: 1.1.80
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20704,6 +20704,21 @@ components:
2070420704
prompt:
2070520705
description: 'Overridden price in USD per token for prompt (input) processing'
2070620706
type: 'string'
20707+
utc_days:
20708+
description: 'Condition: UTC weekdays the entry applies on, evaluated at the request instant. Scopes the utc_start/utc_end window (or, without a window, the whole UTC day) to the listed days. Absent means every day.'
20709+
items:
20710+
enum:
20711+
- 'monday'
20712+
- 'tuesday'
20713+
- 'wednesday'
20714+
- 'thursday'
20715+
- 'friday'
20716+
- 'saturday'
20717+
- 'sunday'
20718+
type: 'string'
20719+
x-speakeasy-unknown-values: allow
20720+
minItems: 1
20721+
type: 'array'
2070720722
utc_end:
2070820723
description: 'Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00)'
2070920724
format: 'double'

‎.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:36607bb1ee0f8771c1af0da1b9a9fe072e5761cf4604980b25ab981833a26569
6-
sourceBlobDigest: sha256:feb9ccfde88d5358904e6a3b8ae255e6183ba70c6f5cd8078906aa54f572ee50
5+
sourceRevisionDigest: sha256:27ac577c51d9c3dd8ac762c0f89bf31858843e5f97f72a10dc8fa759a70f0b29
6+
sourceBlobDigest: sha256:189a5c201cb62e161821ada4cca930ea7ae4711df3dcf9001eac70ed152d61ac
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:36607bb1ee0f8771c1af0da1b9a9fe072e5761cf4604980b25ab981833a26569
15-
sourceBlobDigest: sha256:feb9ccfde88d5358904e6a3b8ae255e6183ba70c6f5cd8078906aa54f572ee50
14+
sourceRevisionDigest: sha256:27ac577c51d9c3dd8ac762c0f89bf31858843e5f97f72a10dc8fa759a70f0b29
15+
sourceBlobDigest: sha256:189a5c201cb62e161821ada4cca930ea7ae4711df3dcf9001eac70ed152d61ac
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:5c7956c63c0575911fdfb8a083ed89ac9153a446d4396a0372b4dee36a360108
17+
codeSamplesRevisionDigest: sha256:330bb94775f6450f65513e23e20a997ecd5d7cecd4a44f29a2ae282ace81ffed
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
@@ -1579,4 +1579,14 @@ Based on:
15791579
### Generated
15801580
- [python v1.1.79] .
15811581
### Releases
1582-
- [PyPI v1.1.79] https://pypi.org/project/openrouter/1.1.79 - .
1582+
- [PyPI v1.1.79] https://pypi.org/project/openrouter/1.1.79 - .
1583+
1584+
## 2026-08-24 19:33:30
1585+
### Changes
1586+
Based on:
1587+
- OpenAPI Doc
1588+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
1589+
### Generated
1590+
- [python v1.1.80] .
1591+
### Releases
1592+
- [PyPI v1.1.80] https://pypi.org/project/openrouter/1.1.80 - .

‎docs/components/pricingoverride.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ A conditional override of the base pricing. An entry applies only when all of it
1717
| `input_cache_write_1h` | *Optional[str]* | :heavy_minus_sign: | Overridden price in USD per 1-hour cache-write token |
1818
| `min_prompt_tokens` | *Optional[float]* | :heavy_minus_sign: | Condition: the entry applies when the total prompt tokens of a request are strictly greater than this threshold |
1919
| `prompt` | *Optional[str]* | :heavy_minus_sign: | Overridden price in USD per token for prompt (input) processing |
20+
| `utc_days` | List[[components.UtcDay](../components/utcday.mdx)] | :heavy_minus_sign: | Condition: UTC weekdays the entry applies on, evaluated at the request instant. Scopes the utc_start/utc_end window (or, without a window, the whole UTC day) to the listed days. Absent means every day. |
2021
| `utc_end` | *Optional[float]* | :heavy_minus_sign: | Condition: exclusive end of a daily UTC time window as an HHMM clock number (e.g. 400 = 04:00) |
2122
| `utc_start` | *Optional[float]* | :heavy_minus_sign: | Condition: inclusive start of a daily UTC time window as an HHMM clock number (e.g. 100 = 01:00, 1030 = 10:30). The entry applies while the current UTC time is inside the half-open window [utc_start, utc_end), which may wrap past midnight (utc_start > utc_end). |

‎docs/components/utcday.mdx‎

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "UtcDay"
3+
---
4+
5+
## Example Usage
6+
7+
```python
8+
from openrouter.components import UtcDay
9+
10+
# Open enum: unrecognized values are captured as UnrecognizedStr
11+
value: UtcDay = "monday"
12+
```
13+
14+
15+
## Values
16+
17+
This is an open enum. Unrecognized values will not fail type checks.
18+
19+
- `"monday"`
20+
- `"tuesday"`
21+
- `"wednesday"`
22+
- `"thursday"`
23+
- `"friday"`
24+
- `"saturday"`
25+
- `"sunday"`

‎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.79"
3+
version = "1.1.80"
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.79"
6+
__version__: str = "1.1.80"
77
__openapi_doc_version__: str = "1.0.0"
88
__gen_version__: str = "2.914.0"
9-
__user_agent__: str = "speakeasy-sdk/python 1.1.79 2.914.0 1.0.0 openrouter"
9+
__user_agent__: str = "speakeasy-sdk/python 1.1.80 2.914.0 1.0.0 openrouter"
1010

1111
try:
1212
if __package__ is not None:

‎src/openrouter/components/__init__.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2459,7 +2459,7 @@
24592459
PreviewWebSearchUserLocationType,
24602460
PreviewWebSearchUserLocationTypedDict,
24612461
)
2462-
from .pricingoverride import PricingOverride, PricingOverrideTypedDict
2462+
from .pricingoverride import PricingOverride, PricingOverrideTypedDict, UtcDay
24632463
from .promptcachebreakpoint import (
24642464
PromptCacheBreakpoint,
24652465
PromptCacheBreakpointMode,
@@ -5367,6 +5367,7 @@
53675367
"UsageTypedDict",
53685368
"UserLocation",
53695369
"UserLocationTypedDict",
5370+
"UtcDay",
53705371
"Variables",
53715372
"VariablesTypedDict",
53725373
"Verbosity",
@@ -7264,6 +7265,7 @@
72647265
"PreviewWebSearchUserLocationTypedDict": ".preview_websearchuserlocation",
72657266
"PricingOverride": ".pricingoverride",
72667267
"PricingOverrideTypedDict": ".pricingoverride",
7268+
"UtcDay": ".pricingoverride",
72677269
"PromptCacheBreakpoint": ".promptcachebreakpoint",
72687270
"PromptCacheBreakpointMode": ".promptcachebreakpoint",
72697271
"PromptCacheBreakpointTypedDict": ".promptcachebreakpoint",

0 commit comments

Comments
 (0)