Skip to content

Commit 12cf665

Browse files
chore(gen): use BYOK/TTS/STT initialisms in generated symbol names
1 parent e57a5cb commit 12cf665

13 files changed

Lines changed: 52 additions & 46 deletions

File tree

‎.speakeasy/gen.lock‎

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ management:
55
docVersion: 1.0.0
66
speakeasyVersion: 1.787.0
77
generationVersion: 2.914.0
8-
releaseVersion: 1.1.13
9-
configChecksum: 88ec6fe9bd229f08276aa4317354d590
8+
releaseVersion: 1.1.14
9+
configChecksum: 7a02a12bd407adad9710f4b3c0dbf2d0
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: a3ac8261-d0d7-452a-9d8e-70b44e95972a
15-
pristine_commit_hash: 320557cfe72f3805621c879a9de1f50ee75710bf
16-
pristine_tree_hash: e1eef35e9fa65278ee9b4e4b7697eea357de7268
14+
generation_id: 7f5ae0cc-e2a5-4a76-b1b1-a3686ff578fd
15+
pristine_commit_hash: a54e1843a2691c4f8a4ff4758afdffdeba7856c4
16+
pristine_tree_hash: 4456975f6d3b002ba0d148adbf2a1f76485f5f35
1717
features:
1818
python:
1919
acceptHeaders: 3.0.0
@@ -6826,8 +6826,8 @@ trackedFiles:
68266826
pristine_git_object: 3b452fc5a627e83c4d3ac6282add1193ea1f2bc0
68276827
docs/sdks/byok/README.mdx:
68286828
id: 17792f3b180d
6829-
last_write_checksum: sha1:e2871404d5619b9a2adbdf02be1dd26e7e2bcd5e
6830-
pristine_git_object: 4cc46421714dbd2c155d4df6db12cd612c876f49
6829+
last_write_checksum: sha1:2ba79baccc659bbdce058ce833af31da689f7b02
6830+
pristine_git_object: dbbd72608c5b05c2c44c7e33ab9f44ef3cf7ec76
68316831
docs/sdks/chat/README.mdx:
68326832
id: 1dd859c23fe1
68336833
last_write_checksum: sha1:ef65bc7054bb9c30f77091fe6e3b437afbe0ea97
@@ -6902,12 +6902,12 @@ trackedFiles:
69026902
pristine_git_object: 356232d47db82bebc0de98789226f8246dce647e
69036903
docs/sdks/stt/README.mdx:
69046904
id: 190b0dc9a5d1
6905-
last_write_checksum: sha1:a8e68ac2b0bb8640e01d962177b42ab47b24898b
6906-
pristine_git_object: 003f85994a515547fe80dcc316ccc19d81c5322d
6905+
last_write_checksum: sha1:0280bf119668798bf78f662fd41364b573c7fe53
6906+
pristine_git_object: 9d4c7d757474f113855db5b61136b5add011b144
69076907
docs/sdks/tts/README.mdx:
69086908
id: cd1132543884
6909-
last_write_checksum: sha1:748da68a8d8e057dabb7af4297b5d8adf737f8b0
6910-
pristine_git_object: f02ae88383dec340e4cd0f20d82363155bc08852
6909+
last_write_checksum: sha1:3bb682aabb538bc13fbbed0e7c8dab286ac2e378
6910+
pristine_git_object: c9efe9dc9ed2dc112cc5e304c0e3d25cf0665b2b
69116911
docs/sdks/videogeneration/README.mdx:
69126912
id: 9a8fa04c3872
69136913
last_write_checksum: sha1:9309c04448f4c1b19add066a36d53ddb0223b49e
@@ -6922,8 +6922,8 @@ trackedFiles:
69226922
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
69236923
pyproject.toml:
69246924
id: 5d07e7d72637
6925-
last_write_checksum: sha1:b081ccece9d496acc6c4d7d86cbf51f860209c33
6926-
pristine_git_object: 907de0161af7a4407b8b791ca14e088dc97d7977
6925+
last_write_checksum: sha1:ac37c31e9dbc6f587cd51437e2106cccaff80954
6926+
pristine_git_object: 948b23ed9da20606fd1d4998523e137dcc4ad434
69276927
scripts/prepare_readme.py:
69286928
id: e0c5957a6035
69296929
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
@@ -6950,8 +6950,8 @@ trackedFiles:
69506950
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
69516951
src/openrouter/_version.py:
69526952
id: d8d15ad6c586
6953-
last_write_checksum: sha1:df58acfa72145e3100f5c3a8707c3acda291f888
6954-
pristine_git_object: 18c2e2b4b20740c74dc07f3b2c993098ca2de95c
6953+
last_write_checksum: sha1:707448bafc2810674f0df17ff50e48540b9ed587
6954+
pristine_git_object: 94318b0151291065184cb13c1ad612d116b0cf30
69556955
src/openrouter/analytics.py:
69566956
id: cb406b5aaabb
69576957
last_write_checksum: sha1:9e709b71dd0611056dc0cec6150b578defe32841
@@ -6982,8 +6982,8 @@ trackedFiles:
69826982
pristine_git_object: fd5f02fb9ad711afeb16e91331097d06bc6ae02d
69836983
src/openrouter/byok.py:
69846984
id: bec352462ae1
6985-
last_write_checksum: sha1:b6e23eeb00a67208ad47b0ea77d56e92933af2b7
6986-
pristine_git_object: afa29b7f2224546b46df7a7ccb1e51b1f748cfe0
6985+
last_write_checksum: sha1:fd64fc0dbaec3e03966737417cfb02b61e13011d
6986+
pristine_git_object: 63fab85e63ac2d40fb05e71c47a3f3a14d9620a3
69876987
src/openrouter/chat.py:
69886988
id: 723fdce15c1d
69896989
last_write_checksum: sha1:5b20d502606ce07fae75208e58eda2cf554e48f9
@@ -9826,20 +9826,20 @@ trackedFiles:
98269826
pristine_git_object: 0376b684fe0a28516ea79f0d036668163fc9ed4d
98279827
src/openrouter/sdk.py:
98289828
id: ee9846c4c9c5
9829-
last_write_checksum: sha1:9429894fe86233cd237e03bb32c69f319e5934bd
9830-
pristine_git_object: 6472a1b8c7f71d13fb3fbd1e4cdb3771f9ef13df
9829+
last_write_checksum: sha1:cfd9ed072cc69753aeb8142c70a6b54d5be69514
9830+
pristine_git_object: 9fdcc2fce0bff737021a66cb2c2548473036a973
98319831
src/openrouter/sdkconfiguration.py:
98329832
id: 55773bb98d7c
98339833
last_write_checksum: sha1:c01826125c31a8b8bc99d9d679782c8758fae001
98349834
pristine_git_object: 26433165a0b1c25d7bd3115b9b129b18f2dc9387
98359835
src/openrouter/stt.py:
98369836
id: fc0c2f669423
9837-
last_write_checksum: sha1:22247925e3c44234947eadbd409603292d4f9efe
9838-
pristine_git_object: 4bcc6d0314a17f48bc9735e2720e5b0b5f4bca22
9837+
last_write_checksum: sha1:155645ebde81f259a2b94811dd8d5581ccb970ac
9838+
pristine_git_object: 01f61f8dcefb140225a8919a0ad5416c4ce9262d
98399839
src/openrouter/tts.py:
98409840
id: 5055d4b95f1d
9841-
last_write_checksum: sha1:1561bf5c436e6912dfde6bfec7516aa85e24db9c
9842-
pristine_git_object: 5ccc4b9bad1c3db1c901d7df2d7f8d7e2d12df57
9841+
last_write_checksum: sha1:1f2d3c8d7451dda9bc3c75c7107caefbeb77e42f
9842+
pristine_git_object: dd3445ae2714c97f93157031fba6935dcc59046a
98439843
src/openrouter/types/__init__.py:
98449844
id: 5eab536205b7
98459845
last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9
@@ -11529,4 +11529,3 @@ examples:
1152911529
"500":
1153011530
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
1153111531
examplesVersion: 1.0.2
11532-
releaseNotes: "## Python SDK Changes:\n* `open_router.files.list()`: \n * `request` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `open_router.files.upload()`: \n * `request.provider` **Added**\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `open_router.files.delete()`: \n * `request.provider` **Added**\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `open_router.files.retrieve()`: \n * `request.provider` **Added**\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed**\n* `open_router.files.download()`: \n * `request.provider` **Added**\n * `error` **Changed**\n"

‎.speakeasy/gen.yaml‎

Lines changed: 8 additions & 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.13
39+
version: 1.1.14
4040
additionalDependencies:
4141
dev: {}
4242
main: {}
@@ -53,6 +53,13 @@ python:
5353
bodyVariantOverloads: false
5454
clientServerStatusCodesAsErrors: true
5555
constFieldCasing: upper
56+
customCasings:
57+
byok:
58+
initialism: true
59+
stt:
60+
initialism: true
61+
tts:
62+
initialism: true
5663
defaultErrorName: OpenRouterDefaultError
5764
description: Official Python Client SDK for OpenRouter.
5865
enableCustomCodeRegions: false

‎.speakeasy/workflow.lock‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ targets:
1414
sourceRevisionDigest: sha256:aa12cc112c23a77dfc1e10bf22756b6bd1975957da8bea3f11fafcefd3359811
1515
sourceBlobDigest: sha256:6bdf84189b2aa0a695d778dc3d73a700de1fef130cdc93b96935bfba582cfb91
1616
codeSamplesNamespace: open-router-python-code-samples
17-
codeSamplesRevisionDigest: sha256:a787dfbbc918360e86780e75413b597b8ff9d2118d77c0fbe692b645362f2979
17+
codeSamplesRevisionDigest: sha256:4550dde76c09e071ab03cd17f7085561f8392ef4184e3d43eb35d98827f95518
1818
workflow:
1919
workflowVersion: 1.0.0
2020
speakeasyVersion: 1.787.0

‎docs/sdks/byok/README.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Byok"
2+
title: "BYOK"
33
description: "BYOK endpoints"
44
---
55

‎docs/sdks/stt/README.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Stt"
2+
title: "STT"
33
description: "Speech-to-text endpoints"
44
---
55

‎docs/sdks/tts/README.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Tts"
2+
title: "TTS"
33
description: "Text-to-speech endpoints"
44
---
55

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

1111
try:
1212
if __package__ is not None:

‎src/openrouter/byok.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from typing import Any, Awaitable, Dict, Iterable, List, Mapping, Optional, Union
1111

1212

13-
class Byok(BaseSDK):
13+
class BYOK(BaseSDK):
1414
r"""BYOK endpoints"""
1515

1616
def list(

‎src/openrouter/sdk.py‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from openrouter.api_keys import APIKeys
2121
from openrouter.benchmarks import Benchmarks
2222
from openrouter.beta import Beta
23-
from openrouter.byok import Byok
23+
from openrouter.byok import BYOK
2424
from openrouter.chat import Chat
2525
from openrouter.classifications import Classifications
2626
from openrouter.credits import Credits
@@ -39,8 +39,8 @@
3939
from openrouter.providers import Providers
4040
from openrouter.rerank import Rerank
4141
from openrouter.responses import Responses
42-
from openrouter.stt import Stt
43-
from openrouter.tts import Tts
42+
from openrouter.stt import STT
43+
from openrouter.tts import TTS
4444
from openrouter.video_generation import VideoGeneration
4545
from openrouter.workspaces import Workspaces
4646

@@ -53,15 +53,15 @@ class OpenRouter(BaseSDK):
5353
analytics: "Analytics"
5454
r"""Analytics and usage endpoints"""
5555
beta: "Beta"
56-
tts: "Tts"
56+
tts: "TTS"
5757
r"""Text-to-speech endpoints"""
58-
stt: "Stt"
58+
stt: "STT"
5959
r"""Speech-to-text endpoints"""
6060
o_auth: "OAuth"
6161
r"""OAuth authentication endpoints"""
6262
benchmarks: "Benchmarks"
6363
r"""Benchmarks endpoints"""
64-
byok: "Byok"
64+
byok: "BYOK"
6565
r"""BYOK endpoints"""
6666
chat: "Chat"
6767
classifications: "Classifications"
@@ -105,11 +105,11 @@ class OpenRouter(BaseSDK):
105105
_sub_sdk_map = {
106106
"analytics": ("openrouter.analytics", "Analytics"),
107107
"beta": ("openrouter.beta", "Beta"),
108-
"tts": ("openrouter.tts", "Tts"),
109-
"stt": ("openrouter.stt", "Stt"),
108+
"tts": ("openrouter.tts", "TTS"),
109+
"stt": ("openrouter.stt", "STT"),
110110
"o_auth": ("openrouter.oauth", "OAuth"),
111111
"benchmarks": ("openrouter.benchmarks", "Benchmarks"),
112-
"byok": ("openrouter.byok", "Byok"),
112+
"byok": ("openrouter.byok", "BYOK"),
113113
"chat": ("openrouter.chat", "Chat"),
114114
"classifications": ("openrouter.classifications", "Classifications"),
115115
"credits": ("openrouter.credits", "Credits"),

0 commit comments

Comments
 (0)