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
32 changes: 16 additions & 16 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: f789c2aa1b196ab1119a66a58241adce
docChecksum: 1fb36d8fe6994efc875680f153470832
docVersion: 1.0.0
speakeasyVersion: 1.803.2
generationVersion: 2.950.13
releaseVersion: 1.3.244
configChecksum: bde88a04cadc45c76bfe5f1bf7458769
releaseVersion: 1.3.245
configChecksum: 6338d4a43a124214f78f5298a6854178
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: d289e1ab-5ac2-44e1-bb10-7a98d1e5b80f
pristine_commit_hash: 59b1470526c9265a021a593caa8eeddaeae5009a
pristine_tree_hash: 6f1723c16973202f988d209bb87c6e98c060c241
generation_id: f9afa0a4-3416-49a0-96b8-02d74b9f599a
pristine_commit_hash: 62ccc3fb84ee4d1f3c42fad184589190a3a50a34
pristine_tree_hash: ea647dc6e16e01d457e89add465d6e5e0d857f45
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -12660,8 +12660,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:1f4dd3fa30629cff40ba23b19e04013a21e7a151
pristine_git_object: c0ed6597f551cd42d92e4cfcebd1ad317597b0ea
last_write_checksum: sha1:a25a37f94607cea1f1a1e29a8fe07b7782a9ba5e
pristine_git_object: cf2c0ea4c4d168070dade5b8faacf0487f69cc15
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -12688,8 +12688,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:ac6d620946c7c675528e08cb6c822162d2f91a3f
pristine_git_object: be6ef088b6f383894681e8bd40ca3d39dbb8f203
last_write_checksum: sha1:80be0f28207ade97310f5873fbc1a8135cc8ea47
pristine_git_object: 149b72e6a644f4f5f1efddc7f967bb8f6182d84b
src/openrouter/alpha.py:
id: 306c4d93308d
last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766
Expand Down Expand Up @@ -16280,8 +16280,8 @@ trackedFiles:
pristine_git_object: 69c0355e7d575e6b7c52183d3cd5696611e4e8bf
src/openrouter/components/speechrequest.py:
id: 2a9400167112
last_write_checksum: sha1:ad13db254847e479ccdbf8d09646f130ef52cb6c
pristine_git_object: 47a21c98f92a07c1fc35472f751753e678f9d05c
last_write_checksum: sha1:bb959c5995e0d83ef9932e178c46e297d133fc85
pristine_git_object: 36c32a68f1b0d37c3ce89aea6e2eb3e4297170a7
src/openrouter/components/speechsupportedparameters.py:
id: 618f33cc9229
last_write_checksum: sha1:6f3fe1b11d56407227306a93fb6d232066158913
Expand Down Expand Up @@ -17848,8 +17848,8 @@ trackedFiles:
pristine_git_object: 701fa8597ff85f41a60736ade55fcb32f9ec7125
src/openrouter/tts.py:
id: 5055d4b95f1d
last_write_checksum: sha1:c6759fe4b36959d756e94f5817a2d3e3f1f4e198
pristine_git_object: 3f8339d0d07dd3807fc7263a75375d6057bcc5bf
last_write_checksum: sha1:f9d243bf8c8e10939d0ca1e4cf5bad9806012e6d
pristine_git_object: d88e0167943fe165376884e9634c47a37a04c1f2
src/openrouter/types/__init__.py:
id: 5eab536205b7
last_write_checksum: sha1:f9ad14217f832e74f594285960125add50324be9
Expand Down Expand Up @@ -18827,7 +18827,7 @@ examples:
createAudioSpeech:
speakeasy-default-create-audio-speech:
requestBody:
application/json: {"input": "Hello world", "model": "mistralai/voxtral-mini-tts-2603", "response_format": "pcm"}
application/json: {"input": "Hello world", "model": "mistralai/voxtral-mini-tts-2603"}
responses:
"200":
audio/*: "<binary audio data>"
Expand Down Expand Up @@ -23401,4 +23401,4 @@ examples:
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.images.list_model_endpoints()`: `response.endpoints[].input_image_role` **Added**
* `open_router.tts.create_speech()`: `request.response_format` **Changed**
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.244
version: 1.3.245
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
1 change: 0 additions & 1 deletion .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37123,7 +37123,6 @@ components:
- 'null'
type: 'object'
response_format:
default: 'pcm'
description: 'Audio output format. Defaults to `pcm`, or to `mp3` when `timestamp_granularities` is nonempty.'
enum:
- 'mp3'
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:104e05c9ccb0764c3976195e839b42127ef778f73bf7e11dba495a2bb02703f4
sourceBlobDigest: sha256:780e4e87c2f64322ecf1a2ed2914460d923c452a80b7fc06f9feaf590b8369b1
sourceRevisionDigest: sha256:abd848ab874b2178f5ef217b5ab1bca1dd3d8cc83576ff06724b7662046252e8
sourceBlobDigest: sha256:0810de5494b24165640c0d306ea7c21db614f0256076ed663b82c9787eca1627
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:104e05c9ccb0764c3976195e839b42127ef778f73bf7e11dba495a2bb02703f4
sourceBlobDigest: sha256:780e4e87c2f64322ecf1a2ed2914460d923c452a80b7fc06f9feaf590b8369b1
sourceRevisionDigest: sha256:abd848ab874b2178f5ef217b5ab1bca1dd3d8cc83576ff06724b7662046252e8
sourceBlobDigest: sha256:0810de5494b24165640c0d306ea7c21db614f0256076ed663b82c9787eca1627
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:fbd2263cc835257060a4ef49c9a36198dfdfa2036cc7b3706431187c03cd5df4
codeSamplesRevisionDigest: sha256:5c76b483511f9673002b40469512060c4181e44ccab7b4b8c6c3561563168570
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 @@ -5209,4 +5209,14 @@ Based on:
### Generated
- [python v1.3.244] .
### Releases
- [PyPI v1.3.244] https://pypi.org/project/openrouter/1.3.244 - .
- [PyPI v1.3.244] https://pypi.org/project/openrouter/1.3.244 - .

## 2026-12-04 17:22:30
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.245] .
### Releases
- [PyPI v1.3.245] https://pypi.org/project/openrouter/1.3.245 - .
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.244"
version = "1.3.245"
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.244"
__version__: str = "1.3.245"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.950.13"
__user_agent__: str = "speakeasy-sdk/python 1.3.244 2.950.13 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.3.245 2.950.13 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
2 changes: 1 addition & 1 deletion src/openrouter/components/speechrequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class SpeechRequest(BaseModel):
provider: Optional[SpeechRequestProvider] = None
r"""Provider configuration: provider routing preferences (`order`, `only`, `ignore`, `allow_fallbacks`), data policy routing preferences (`zdr`, `data_collection`) and provider-specific passthrough options"""

response_format: Optional[SpeechRequestResponseFormat] = "pcm"
response_format: Optional[SpeechRequestResponseFormat] = None
r"""Audio output format. Defaults to `pcm`, or to `mp3` when `timestamp_granularities` is nonempty."""

session_id: Optional[str] = None
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def create_speech(
components.SpeechRequestProviderTypedDict,
]
] = None,
response_format: Optional[components.SpeechRequestResponseFormat] = "pcm",
response_format: Optional[components.SpeechRequestResponseFormat] = None,
session_id: Optional[str] = None,
speed: Optional[float] = None,
timestamp_granularities: Optional[
Expand Down Expand Up @@ -310,7 +310,7 @@ async def create_speech_async(
components.SpeechRequestProviderTypedDict,
]
] = None,
response_format: Optional[components.SpeechRequestResponseFormat] = "pcm",
response_format: Optional[components.SpeechRequestResponseFormat] = None,
session_id: Optional[str] = None,
speed: Optional[float] = None,
timestamp_granularities: Optional[
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.