Skip to content

Commit a329560

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

10 files changed

Lines changed: 65 additions & 42 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 16 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: db5d16fc32dae841671e0c284a3e74b4
4+
docChecksum: 8418d8ac8a0816998245098e8945e4da
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.3.16
9-
configChecksum: 8c445214e70cd25ef7c941d59d5d5269
8+
releaseVersion: 1.3.17
9+
configChecksum: 37d2b4d00364742d875703d9ffcdd68d
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: 7e9fbdb9-c775-4bc8-8565-739609edbb94
15-
pristine_commit_hash: a664b930e07a08cb7d45bc35df0d7e1c96078ae9
16-
pristine_tree_hash: 2d585312bc84caf58e056ce8ea2c23f807ca82fb
14+
generation_id: 51b6d41c-8e74-47a2-b89c-bd8f474c2de4
15+
pristine_commit_hash: 291e2569c4ff1314e7c4df3131966ee300220782
16+
pristine_tree_hash: 8251c7f52db4337ed4fd35bc7ab9da1b86f80cdb
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -88,8 +88,8 @@ trackedFiles:
8888
pristine_git_object: 9bed0a58221b443b943524232117bdc43e6c4014
8989
docs/components/activityitem.mdx:
9090
id: 20be851aee8a
91-
last_write_checksum: sha1:4aef3633b891fc44c92cb8307adb8d3ce3e7cecd
92-
pristine_git_object: 595c3f1bcc1bb17e920c06fb11df7dae95b6b858
91+
last_write_checksum: sha1:9faa9e2c8b059ddff8d3ad1bb2320574c732d2a8
92+
pristine_git_object: c18a6d10bc6c91827223b4c7464c9e7ac68c7e05
9393
docs/components/activityresponse.mdx:
9494
id: 5886155bc810
9595
last_write_checksum: sha1:64acd6c3d2db5593d8359474c4e2e31e4db62453
@@ -9948,8 +9948,8 @@ trackedFiles:
99489948
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
99499949
pyproject.toml:
99509950
id: 5d07e7d72637
9951-
last_write_checksum: sha1:a7f8282814d3a962587a530ebfd6cb5f8a994f21
9952-
pristine_git_object: da03951c817d1f9bc2c89224110466660b263ffd
9951+
last_write_checksum: sha1:0175860b3f1b2c4fe0ecd29ce9c2117cd55bd351
9952+
pristine_git_object: b71a3038fdf38463d61c72a645fb977a3234420e
99539953
scripts/prepare_readme.py:
99549954
id: e0c5957a6035
99559955
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -9976,8 +9976,8 @@ trackedFiles:
99769976
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
99779977
src/openrouter/_version.py:
99789978
id: d8d15ad6c586
9979-
last_write_checksum: sha1:b88ba320acfa6e84395801080f1845a445b8573a
9980-
pristine_git_object: 04c07c48d8aafb0e60a892bde66c111fcf0ed5b3
9979+
last_write_checksum: sha1:360148d6fcae9949a9054166185b7d8cf5ba88c2
9980+
pristine_git_object: cb8eed80311c01eefa335ad2ce99e29a4c693f10
99819981
src/openrouter/alpha.py:
99829982
id: 306c4d93308d
99839983
last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a
@@ -10032,8 +10032,8 @@ trackedFiles:
1003210032
pristine_git_object: ad39bd9765938465f06b5422706fc867db11e468
1003310033
src/openrouter/components/activityitem.py:
1003410034
id: 3bbe7d35f459
10035-
last_write_checksum: sha1:96430ac2c3aab411c5a05f50ee31ad25eea0790f
10036-
pristine_git_object: 3fecf83b2b307a1a9ef7714d5111ab724abba6a6
10035+
last_write_checksum: sha1:ad3ecdeb41d51f3e1698f0828df6cf2eca94d72d
10036+
pristine_git_object: f46f04b35d85a73e61fa1e06b8b6a8f4e802a7e7
1003710037
src/openrouter/components/activityresponse.py:
1003810038
id: 0bd8d79c3144
1003910039
last_write_checksum: sha1:db8e3247cf9eb2c235d32949d36f7ae95870e8ed
@@ -14378,7 +14378,7 @@ examples:
1437814378
speakeasy-default-get-user-activity:
1437914379
responses:
1438014380
"200":
14381-
application/json: {"data": [{"byok_usage_inference": 0.012, "completion_tokens": 125, "date": "2025-08-24", "endpoint_id": "550e8400-e29b-41d4-a716-446655440000", "model": "openai/gpt-4.1", "model_permaslug": "openai/gpt-4.1-2025-04-14", "prompt_tokens": 50, "provider_name": "OpenAI", "reasoning_tokens": 25, "requests": 5, "usage": 0.015}]}
14381+
application/json: {"data": [{"byok_usage_inference": 0.012, "cached_tokens": 10, "completion_tokens": 125, "date": "2025-08-24", "endpoint_id": "550e8400-e29b-41d4-a716-446655440000", "model": "openai/gpt-4.1", "model_permaslug": "openai/gpt-4.1-2025-04-14", "prompt_tokens": 50, "provider_name": "OpenAI", "reasoning_tokens": 25, "requests": 5, "usage": 0.015}]}
1438214382
"400":
1438314383
application/json: {"error": {"code": 400, "message": "Invalid request parameters"}}
1438414384
"401":
@@ -18226,5 +18226,4 @@ examples:
1822618226
examplesVersion: 1.0.2
1822718227
releaseNotes: |
1822818228
## Python SDK Changes:
18229-
* `open_router.generations.get_generation()`: `error.status[400]` **Added**
18230-
* `open_router.generations.list_generation_content()`: `error.status[400]` **Added**
18229+
* `open_router.analytics.get_user_activity()`: `response.data[].cached_tokens` **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.3.16
39+
version: 1.3.17
4040
additionalDependencies:
4141
dev: {}
4242
main: {}

‎.speakeasy/out.openapi.yaml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ components:
5959
ActivityItem:
6060
example:
6161
byok_usage_inference: 0.012
62+
cached_tokens: 10
6263
completion_tokens: 125
6364
date: '2025-08-24'
6465
endpoint_id: '550e8400-e29b-41d4-a716-446655440000'
@@ -75,6 +76,10 @@ components:
7576
example: 0.012
7677
format: 'double'
7778
type: 'number'
79+
cached_tokens:
80+
description: 'Total prompt tokens read from the provider prompt cache (cache hits). Generally a subset of `prompt_tokens`; for replayed response-cache hits the provider may report the two counters over disjoint token sets, so `cached_tokens` can exceed `prompt_tokens`.'
81+
example: 10
82+
type: 'integer'
7883
completion_tokens:
7984
description: 'Total completion tokens generated'
8085
example: 125
@@ -132,11 +137,13 @@ components:
132137
- 'prompt_tokens'
133138
- 'completion_tokens'
134139
- 'reasoning_tokens'
140+
- 'cached_tokens'
135141
type: 'object'
136142
ActivityResponse:
137143
example:
138144
data:
139145
- byok_usage_inference: 0.012
146+
cached_tokens: 10
140147
completion_tokens: 125
141148
date: '2025-08-24'
142149
endpoint_id: '550e8400-e29b-41d4-a716-446655440000'
@@ -33272,6 +33279,7 @@ paths:
3327233279
example:
3327333280
data:
3327433281
- byok_usage_inference: 0.012
33282+
cached_tokens: 10
3327533283
completion_tokens: 125
3327633284
date: '2025-08-24'
3327733285
endpoint_id: '550e8400-e29b-41d4-a716-446655440000'

‎.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:ce23790edfaffc0a537784d8535152708f0d3c5fc9789e7b173cc6a6525094ce
6-
sourceBlobDigest: sha256:f0cdcda8afd64f749176ada8505daea308dc590d5441fc1a8cd72aa3e37d054a
5+
sourceRevisionDigest: sha256:075c5db7b965cedf544f79f7fd4ecd5baa33cad4ea653cbc6fd871f869aeddab
6+
sourceBlobDigest: sha256:9781f963a634a11eb740145be6e1d262af486605ee98e5fc0448d37b3e94a488
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:ce23790edfaffc0a537784d8535152708f0d3c5fc9789e7b173cc6a6525094ce
15-
sourceBlobDigest: sha256:f0cdcda8afd64f749176ada8505daea308dc590d5441fc1a8cd72aa3e37d054a
14+
sourceRevisionDigest: sha256:075c5db7b965cedf544f79f7fd4ecd5baa33cad4ea653cbc6fd871f869aeddab
15+
sourceBlobDigest: sha256:9781f963a634a11eb740145be6e1d262af486605ee98e5fc0448d37b3e94a488
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:7478c6f034a1e48bf1a0829fdf24b40c068e4a192db9d38a424bb962fcc38d38
17+
codeSamplesRevisionDigest: sha256:f8277ef7e169f7b54df9d968058ef59f4ec9081aa938a564b6e96a5bef900774
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
@@ -2929,4 +2929,14 @@ Based on:
29292929
### Generated
29302930
- [python v1.3.16] .
29312931
### Releases
2932-
- [PyPI v1.3.16] https://pypi.org/project/openrouter/1.3.16 - .
2932+
- [PyPI v1.3.16] https://pypi.org/project/openrouter/1.3.16 - .
2933+
2934+
## 2026-10-01 15:26:20
2935+
### Changes
2936+
Based on:
2937+
- OpenAPI Doc
2938+
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
2939+
### Generated
2940+
- [python v1.3.17] .
2941+
### Releases
2942+
- [PyPI v1.3.17] https://pypi.org/project/openrouter/1.3.17 - .

0 commit comments

Comments
 (0)