From 241d5b0c236587075960140a6e0c01af20d7b59b Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 5 Aug 2026 15:20:28 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.787.0 --- .speakeasy/gen.lock | 29 ++++++++++++++--------------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 2 +- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/sdks/files/README.mdx | 2 +- pyproject.toml | 2 +- src/openrouter/_version.py | 4 ++-- src/openrouter/files.py | 4 ++-- uv.lock | 2 +- 10 files changed, 39 insertions(+), 30 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 179620f4..fe559538 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: de65a7aa9d84348d3d2803fd17763c50 + docChecksum: 69ede7bb1a407d4f7509f76454b8ea14 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.1.29 - configChecksum: 69737fdbf335c1a4d255de632c8d2cd9 + releaseVersion: 1.1.30 + configChecksum: 3c03b37198222ebb069b6628e8cc8b4b repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: c9c1d12d-ccde-4410-a7aa-afb0beff72b6 - pristine_commit_hash: 505412e05b4e22cde94361c99b5262f0b59d3e55 - pristine_tree_hash: e716081153f63fc31c2d0869205074537241ec06 + generation_id: 0b47244c-c638-4f0f-808e-7fb613519d3b + pristine_commit_hash: 39c2a2efa68d6c62d47206cb9cd3b5a4fa675455 + pristine_tree_hash: 7f8455c076cf7de116143f21e1c0934c6dbef483 features: python: acceptHeaders: 3.0.0 @@ -7030,8 +7030,8 @@ trackedFiles: pristine_git_object: f8cebc2061d7428904766956be45ca70e5519be4 docs/sdks/files/README.mdx: id: 1a0c257e330c - last_write_checksum: sha1:de776967e4a75eaa47f3652f11dbbb1958f08c81 - pristine_git_object: d953a363ad8ad5ebdc689a75d5b4753ec0069e79 + last_write_checksum: sha1:f92d58e58f2ac2048faa8b4420c1663a48e20959 + pristine_git_object: d9aef34c11d538fe9d54a41f27a913181cc4f1f5 docs/sdks/generations/README.mdx: id: a754fecc8514 last_write_checksum: sha1:b5f8035c676b5eb050472ed9697b64718aed8f17 @@ -7102,8 +7102,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:cbfae3caa1f867c37e01f36c585aac069cc7f209 - pristine_git_object: 913be7fd10a47505aebc4f5e4c51d7e5fe3a3f52 + last_write_checksum: sha1:2101db140f8b8aa17bf444077d8ab5e6c8488024 + pristine_git_object: cc59b34480bfd68d6b575369865146fc386604d7 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -7130,8 +7130,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:3e765bb384b287767a1f6e2676c46555e35559cf - pristine_git_object: 2ca97ab48e006508e18ec140c560862ec7dd250e + last_write_checksum: sha1:66ced41e710fd1ec87eeb5356ee5d2ec505977d0 + pristine_git_object: 150cb85d15724154144c3a36a54ccb5fecd469d2 src/openrouter/analytics.py: id: cb406b5aaabb last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a @@ -9654,8 +9654,8 @@ trackedFiles: pristine_git_object: 51b56d9ca5e27c49a98d05f0414573ac5243c580 src/openrouter/files.py: id: 7baf7ee1f5b3 - last_write_checksum: sha1:647c71674fef51cb83996b3a8dafa1e04cd156ee - pristine_git_object: abd0225d2d8651a20369fcedd1ca6fe7f02aa342 + last_write_checksum: sha1:2e69503c45aa248c029db25cc4d024d73621f573 + pristine_git_object: 268e617de41c88c6393b791a4c04048de4d7ce3c src/openrouter/generations.py: id: 70e1c21042bc last_write_checksum: sha1:00b190db603c57571f77ccfe5d5612a3f42c62a0 @@ -11929,4 +11929,3 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.beta.analytics.query_analytics()`: \n * `request.filters[].include_unset` **Added**\n* `open_router.presets.create_presets_messages()`: `request` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 28be34e8..1d2b0155 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.1.29 + version: 1.1.30 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 7942d802..5c560b6e 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -28930,7 +28930,7 @@ paths: results: '$.data' type: 'cursor' post: - description: 'Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB.' + description: 'Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents — not the filename or the declared content type — and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as `application/json`, `application/x-ndjson`, `text/csv`, `text/markdown`, or `text/plain`.' operationId: 'uploadFile' parameters: - description: 'Workspace to scope the request to. Defaults to the caller’s default workspace.' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 0a949ca2..eaad72b1 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:dd29911e23a58bcd935d9c8aeeafbffc0cda31d9c79c2b2ca821b8fb61c3e0ee - sourceBlobDigest: sha256:0d2d3a0f42dedc35eb67a5c6359032ef42fe95a035426451c98cb4be96a2896f + sourceRevisionDigest: sha256:a8207305b2e641915926ee732e79367d6785311bfd09d0b091cb4fe256d8e060 + sourceBlobDigest: sha256:ef9923f697012ff3cfade392822ee0bb745c714c08cd18818bc6255e371a2288 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:dd29911e23a58bcd935d9c8aeeafbffc0cda31d9c79c2b2ca821b8fb61c3e0ee - sourceBlobDigest: sha256:0d2d3a0f42dedc35eb67a5c6359032ef42fe95a035426451c98cb4be96a2896f + sourceRevisionDigest: sha256:a8207305b2e641915926ee732e79367d6785311bfd09d0b091cb4fe256d8e060 + sourceBlobDigest: sha256:ef9923f697012ff3cfade392822ee0bb745c714c08cd18818bc6255e371a2288 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:c77943d0c16cbf6c66adbedd00b884b46030dfb072462fef82e9dd12bf0120da + codeSamplesRevisionDigest: sha256:bb4a2bf258b63bc175e3fac4f2481f9cb954bebe2ccd20cd45bbeb23379a0ae6 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index ded7b729..5d0ff8f4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1079,4 +1079,14 @@ Based on: ### Generated - [python v1.1.29] . ### Releases -- [PyPI v1.1.29] https://pypi.org/project/openrouter/1.1.29 - . \ No newline at end of file +- [PyPI v1.1.29] https://pypi.org/project/openrouter/1.1.29 - . + +## 2026-08-05 15:18:28 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.1.30] . +### Releases +- [PyPI v1.1.30] https://pypi.org/project/openrouter/1.1.30 - . \ No newline at end of file diff --git a/docs/sdks/files/README.mdx b/docs/sdks/files/README.mdx index d953a363..d9aef34c 100644 --- a/docs/sdks/files/README.mdx +++ b/docs/sdks/files/README.mdx @@ -78,7 +78,7 @@ with OpenRouter( ## upload -Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB. +Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents — not the filename or the declared content type — and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as `application/json`, `application/x-ndjson`, `text/csv`, `text/markdown`, or `text/plain`. ### Example Usage diff --git a/pyproject.toml b/pyproject.toml index 913be7fd..cc59b344 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.1.29" +version = "1.1.30" 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 2ca97ab4..150cb85d 100644 --- a/src/openrouter/_version.py +++ b/src/openrouter/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "openrouter" -__version__: str = "1.1.29" +__version__: str = "1.1.30" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.1.29 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.1.30 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/files.py b/src/openrouter/files.py index abd0225d..268e617d 100644 --- a/src/openrouter/files.py +++ b/src/openrouter/files.py @@ -443,7 +443,7 @@ def upload( ) -> components.FileResponse: r"""Upload a file - Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB. + Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents — not the filename or the declared content type — and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as `application/json`, `application/x-ndjson`, `text/csv`, `text/markdown`, or `text/plain`. :param file: :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. @@ -611,7 +611,7 @@ async def upload_async( ) -> components.FileResponse: r"""Upload a file - Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB. + Uploads a file to be referenced in future API calls. The file is stored under the workspace of the authenticating API key. Maximum file size: 100 MB; empty files are rejected. The file type is determined from the file contents — not the filename or the declared content type — and must be a PDF, a PNG/JPEG/GIF/WebP image, a DOCX/XLSX/PPTX document, an MP3/WAV/FLAC/OGG audio file, or UTF-8 text. Text is reported by its structure as `application/json`, `application/x-ndjson`, `text/csv`, `text/markdown`, or `text/plain`. :param file: :param http_referer: The app identifier should be your app's URL and is used as the primary identifier for rankings. diff --git a/uv.lock b/uv.lock index 394485d8..703a042d 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.1.29" +version = "1.1.30" source = { editable = "." } dependencies = [ { name = "httpcore" }, From 1f6fd9be3fb8c9e7afd00c6d134ba46118cf9c6f Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 5 Aug 2026 15:20:35 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow