diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index da2598bf..7d553b97 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: c48cf606-fb42-4a45-9c23-8f0555307828 management: - docChecksum: 590ee4e51c48434290d87d7d96273fd3 + docChecksum: 83e429de53a4fee5a314ce6f4fee6e11 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.3.47 - configChecksum: 43543058d993e1988e0a4687cc2e3914 + releaseVersion: 1.3.48 + configChecksum: 574e6b8f09ccafb395bf9a0882ed57ca repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 83f43f07-025f-44fa-9700-13fee2d23524 - pristine_commit_hash: 75d10fe87edad8d0062bddb49cc93772b6d10b4a - pristine_tree_hash: 34256ecd014b2bf3540a66988fb30e8fda2c7da4 + generation_id: 98b3fd9b-4bda-4d21-a442-d1c2cd3d096a + pristine_commit_hash: 88f54d4e230c2b39082b5f30633b5ae0c524994f + pristine_tree_hash: a48b9da40dbea051ee6ec8ca1f87efca364c1502 features: python: acceptHeaders: 3.0.0 @@ -10172,8 +10172,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:f302387820de8ea5d8f9976723fedac23ff3786f - pristine_git_object: c13e96323f81df701de49f39ffdae63fdcc8893b + last_write_checksum: sha1:0a19c66c31bbd6426529a7c28fc6803770c1357d + pristine_git_object: 0857e44ba23fc18992543cebeb5ed04b4ceb3e20 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -10200,8 +10200,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:25bedf5803d4341014f4cee51fc80909b92ac722 - pristine_git_object: 6c070152cd0c3bef0f757441bef2303b262fa377 + last_write_checksum: sha1:13f3db67f6f51752172b1f9aa2e0bb136c357ab3 + pristine_git_object: 0941bcdbba328d441ba36ce52c4cdc9fb3794440 src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a @@ -18576,4 +18576,3 @@ examples: "500": application/json: {"error": {"code": 404, "message": "Intern not found"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.guardrails.list()`: `response.data[].allow_safety_retention_other` **Added**\n* `open_router.guardrails.create()`: \n * `request.allow_safety_retention_other` **Added**\n * `response.data.allow_safety_retention_other` **Added**\n* `open_router.guardrails.get()`: `response.data.allow_safety_retention_other` **Added**\n* `open_router.guardrails.update()`: \n * `request.allow_safety_retention_other` **Added**\n * `response.data.allow_safety_retention_other` **Added**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 889ec2c4..e1e96622 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.47 + version: 1.3.48 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 308939d1..563eec52 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -27144,7 +27144,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27164,7 +27164,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27184,7 +27184,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27204,7 +27204,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27224,7 +27224,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27244,7 +27244,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27264,7 +27264,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27284,7 +27284,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27304,7 +27304,7 @@ components: throughput: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second. Only meaningful for text generation; null for workloads without token throughput.' + - description: 'Throughput percentiles in tokens per second; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only meaningful for text generation; null for workloads without token throughput.' required: - 'latency' - 'throughput' @@ -27401,7 +27401,7 @@ components: throughput_last_30m: allOf: - $ref: '#/components/schemas/PercentileStats' - - description: 'Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.' + - description: 'Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed; pN is the speed that N% of requests reached or exceeded, so p90 is lower than p50. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.' uptime_last_1d: description: 'Uptime percentage over the last day: the share of minutes in which at least 80% of provider attempts succeeded, counting only minutes with 10 or more attempts. Rate-limited and caller-caused failures are excluded. Null when no minute had enough traffic.' format: 'double' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c0bd7030..22091467 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.787.0 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:161f42347988ac28380d846491ee22302d2bb7500e2563f9e60d2ea1afa3685e - sourceBlobDigest: sha256:5f61af4b012495c01f9b365572e3b3b64003c76a7458f3c6941a8312885741da + sourceRevisionDigest: sha256:3d0eafbb6e8ff992618a1d4598519268545fd5daaddd5200307f87cee9c40340 + sourceBlobDigest: sha256:a692983daa7e1013de13d6ffa765b6ef78e0f8cb5243d7717de3a3a8339a5a3f tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:161f42347988ac28380d846491ee22302d2bb7500e2563f9e60d2ea1afa3685e - sourceBlobDigest: sha256:5f61af4b012495c01f9b365572e3b3b64003c76a7458f3c6941a8312885741da + sourceRevisionDigest: sha256:3d0eafbb6e8ff992618a1d4598519268545fd5daaddd5200307f87cee9c40340 + sourceBlobDigest: sha256:a692983daa7e1013de13d6ffa765b6ef78e0f8cb5243d7717de3a3a8339a5a3f codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:4ee6d292ec8a87493261eaa23428212f507c14960539f8a1d21be53716eda2ab + codeSamplesRevisionDigest: sha256:76968385a0d550282f81328bb38d90ec000c311e43fdcc484ba60ddfd9771e1f workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index c83fabe3..c1fd52f5 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -3239,4 +3239,14 @@ Based on: ### Generated - [python v1.3.47] . ### Releases -- [PyPI v1.3.47] https://pypi.org/project/openrouter/1.3.47 - . \ No newline at end of file +- [PyPI v1.3.47] https://pypi.org/project/openrouter/1.3.47 - . + +## 2026-10-14 00:07:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.48] . +### Releases +- [PyPI v1.3.48] https://pypi.org/project/openrouter/1.3.48 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index c13e9632..0857e44b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.47" +version = "1.3.48" description = "Official Python Client SDK for OpenRouter." authors = [{ name = "OpenRouter" },] readme = "README-PYPI.md" diff --git a/src/openrouter/_version.py b/src/openrouter/_version.py index 6c070152..0941bcdb 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.3.47" +__version__: str = "1.3.48" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.3.47 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.48 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/uv.lock b/uv.lock index 3609f5d6..d5cb258e 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.47" +version = "1.3.48" source = { editable = "." } dependencies = [ { name = "httpcore" },