From 87da960463c611950c003d2222ad8fdc934ad1ce Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 2 Dec 2026 05:49:51 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.803.2 --- .speakeasy/gen.lock | 33 +++++++++---------- .speakeasy/gen.yaml | 2 +- .speakeasy/out.openapi.yaml | 11 ++++--- .speakeasy/workflow.lock | 10 +++--- RELEASES.md | 12 ++++++- docs/components/videogenerationresponse.mdx | 4 +-- pyproject.toml | 2 +- src/openrouter/_version.py | 4 +-- .../components/videogenerationresponse.py | 6 ++-- uv.lock | 2 +- 10 files changed, 49 insertions(+), 37 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0787488f..42d22d1c 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: eac1b67fb3c6e6bb23f747814371a9b5 + docChecksum: d400e55b15e2a2ae2a255ae0774a55ca docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.228 - configChecksum: a6604d6334d343505e7936eb004b2987 + releaseVersion: 1.3.229 + configChecksum: bc7bc68b68a0b355a7076fc106a19ac7 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 4f45acc8-a6c6-478a-8c3d-aa075c13fbeb - pristine_commit_hash: 2e1551d51d6b994612744cc6a86794e60183120c - pristine_tree_hash: 6967e075797c4b2ce6be47787695cea06c97dc84 + generation_id: 77639645-43cf-4375-b62c-4575579fe4df + pristine_commit_hash: b2124ee8c2e1856217922344a1fc7caaae8efdd8 + pristine_tree_hash: da1233bc3553a5e1def1838fec5b734a55d1aa48 features: python: acceptHeaders: 3.0.0 @@ -9848,8 +9848,8 @@ trackedFiles: pristine_git_object: 050aab049bb847e511ea272a5d238d7e64e6f137 docs/components/videogenerationresponse.mdx: id: 3a932213188e - last_write_checksum: sha1:303c2be56f1091f577b090034b2da583b6e6607a - pristine_git_object: d3988005a00e52b40678840e60c0ec6c7182efb9 + last_write_checksum: sha1:78521fc9af86ee9dab3d2255917b84033290facf + pristine_git_object: 6b2a43ef9ac3f966469d68bfb22a7e5d89075bff docs/components/videogenerationresponsestatus.mdx: id: 637442fde0ff last_write_checksum: sha1:9368ca45d569e511e5faf18118efd7e3341473a7 @@ -12388,8 +12388,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:60ec7e3793bdeb1c8de51d63edddc2acc244c2ab - pristine_git_object: 1458c6ebbccc7ed7dacbe26758f27ce37ef438a4 + last_write_checksum: sha1:f2c7d0d17b7ffa44991a632dfac10508c764fd02 + pristine_git_object: 1372fe6a79dd3e463a09a2e5507f5dfa92afa93a scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -12416,8 +12416,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:2f6b68d7059edbd93a812cdf7519016d5cc2b0e8 - pristine_git_object: c7908b20dbc62e7732b8c234e8227de2b654d39b + last_write_checksum: sha1:0d714c038e6c572201ae52e2972e78a332ad81b9 + pristine_git_object: 200b7a2dc144afdf65fe9dde05f9625bc349efbf src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -16368,8 +16368,8 @@ trackedFiles: pristine_git_object: 20137aab4e056c7dfaedcf0e172e472cc49512f0 src/openrouter/components/videogenerationresponse.py: id: 541f1321b072 - last_write_checksum: sha1:6b21b862a2da1009f5506144da69ecdbbd32fdf3 - pristine_git_object: bd252d41ed2c8206e95e8e3188d0c4db33020e9a + last_write_checksum: sha1:ade64d372a44e23b6a0237ba2a5a860d6868e72a + pristine_git_object: 2df3f41913e30e3b6b730bcbe9cbb66792839226 src/openrouter/components/videogenerationusage.py: id: dded36eba597 last_write_checksum: sha1:a19d286bfda3ca9a373128c5118f3e6715060470 @@ -18323,7 +18323,7 @@ examples: application/json: {"model": "google/veo-3.1"} responses: "202": - application/json: {"id": "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "polling_url": "/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "status": "pending"} + application/json: {"id": "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "polling_url": "https://eu.openrouter.ai/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "status": "pending"} "400": application/json: {"error": {"code": 400, "message": "Invalid request parameters"}} "401": @@ -18351,7 +18351,7 @@ examples: jobId: "job-abc123" responses: "200": - application/json: {"id": "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "polling_url": "/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "status": "pending"} + application/json: {"id": "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "polling_url": "https://eu.openrouter.ai/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt", "status": "pending"} "401": application/json: {"error": {"code": 401, "message": "Missing Authentication header"}} "404": @@ -22782,4 +22782,3 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.alpha.decisions.create()`: `request.provider` **Changed**\n* `open_router.alpha.extractions.create()`: `request.provider` **Changed**\n* `open_router.tts.create_speech()`: `request.provider` **Changed**\n* `open_router.stt.create_transcription()`: `request.provider` **Changed**\n* `open_router.batch.create_batches()`: \n * `request.provider.only[].union(ProviderName).enum(lang_chain)` **Added**\n* `open_router.byok.list()`: \n * `request.provider` **Changed**\n * `response.data[].provider.enum(langchain)` **Added**\n* `open_router.byok.create()`: \n * `request.provider.enum(langchain)` **Added**\n * `response.data.provider.enum(langchain)` **Added**\n* `open_router.byok.get()`: `response.data.provider.enum(langchain)` **Added**\n* `open_router.byok.update()`: `response.data.provider.enum(langchain)` **Added**\n* `open_router.embeddings.generate()`: `request.provider` **Changed**\n* `open_router.endpoints.list_zdr_endpoints()`: `response.data[].provider_name.enum(lang_chain)` **Added**\n* `open_router.endpoints.list()`: `response.data.endpoints[].provider_name.enum(lang_chain)` **Added**\n* `open_router.generations.get_generation()`: `response.data.provider_responses[].provider_name.enum(lang_chain)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_messages()`: `request.provider` **Changed**\n* `open_router.presets.create_presets_responses()`: `request.provider` **Changed**\n* `open_router.rerank.rerank()`: `request.provider` **Changed**\n* `open_router.system_one.create()`: `request.provider` **Changed**\n* `open_router.video_generation.generate()`: `request.provider` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 321d47fd..6164c316 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.228 + version: 1.3.229 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 82cd2312..7fffdc4f 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -41074,7 +41074,7 @@ components: example: generation_id: 'gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt' id: 'gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt' - polling_url: '/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt' + polling_url: 'https://eu.openrouter.ai/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt' status: 'pending' status_detail: 'queued_at_provider' properties: @@ -41090,6 +41090,7 @@ components: description: 'The video job ID, in the `gen-vid--<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation.' type: 'string' polling_url: + description: 'Absolute URL on the job’s OpenRouter regional host. Use it as returned to poll the job with your API key.' type: 'string' progress: description: 'Percent complete, from 0 to 100 and possibly fractional, reported by the provider while `status_detail` is `generating`. Present only for providers that report it, and absent once the job moves to `finalizing`.' @@ -41117,7 +41118,7 @@ components: type: 'string' x-speakeasy-unknown-values: allow unsigned_urls: - description: 'OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available.' + description: 'Absolute URLs on the job’s OpenRouter regional host, one per output. Use the selected URL as returned with your API key in the `Authorization` header. It works while the output is available.' items: type: 'string' type: 'array' @@ -65150,7 +65151,7 @@ paths: example: generation_id: 'gen-xyz789' id: 'job-abc123' - polling_url: '/api/v1/videos/job-abc123' + polling_url: 'https://eu.openrouter.ai/api/v1/videos/job-abc123' status: 'pending' schema: $ref: '#/components/schemas/VideoGenerationResponse' @@ -65282,10 +65283,10 @@ paths: example: generation_id: 'gen-xyz789' id: 'job-abc123' - polling_url: '/api/v1/videos/job-abc123' + polling_url: 'https://eu.openrouter.ai/api/v1/videos/job-abc123' status: 'completed' unsigned_urls: - - 'https://storage.example.com/video.mp4' + - 'https://eu.openrouter.ai/api/v1/videos/job-abc123/content?index=0' usage: cost: 0.5 schema: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index aed42299..68c11c10 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:c034d64c59bcbab4bd0d445b703f692ba93ba55943248b273d658a89d2fb8878 - sourceBlobDigest: sha256:35126ade6d33358468fe1136417240d0e5c1a5fa6f7bd9981e2688d161929077 + sourceRevisionDigest: sha256:9e232dde7b839ff47f4658c5dc38abaeb319267cd015acc54c297adcfa8eb791 + sourceBlobDigest: sha256:e69e7c1ef60161df4f8f7f234ed0d6edbdc236458b1e7377f191437096cb2b37 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:c034d64c59bcbab4bd0d445b703f692ba93ba55943248b273d658a89d2fb8878 - sourceBlobDigest: sha256:35126ade6d33358468fe1136417240d0e5c1a5fa6f7bd9981e2688d161929077 + sourceRevisionDigest: sha256:9e232dde7b839ff47f4658c5dc38abaeb319267cd015acc54c297adcfa8eb791 + sourceBlobDigest: sha256:e69e7c1ef60161df4f8f7f234ed0d6edbdc236458b1e7377f191437096cb2b37 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:14161a11c40ca04e7033acb0971964cbeedd47fecb5a2e8ccb0747f348de294f + codeSamplesRevisionDigest: sha256:7a85751b9e3754b126cd72b5741151420b92924b7469f656ce6c9d2e81b340f1 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 8b302e02..2e9b8146 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -5049,4 +5049,14 @@ Based on: ### Generated - [python v1.3.228] . ### Releases -- [PyPI v1.3.228] https://pypi.org/project/openrouter/1.3.228 - . \ No newline at end of file +- [PyPI v1.3.228] https://pypi.org/project/openrouter/1.3.228 - . + +## 2026-12-02 05:47:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.229] . +### Releases +- [PyPI v1.3.229] https://pypi.org/project/openrouter/1.3.229 - . \ No newline at end of file diff --git a/docs/components/videogenerationresponse.mdx b/docs/components/videogenerationresponse.mdx index d3988005..6b2a43ef 100644 --- a/docs/components/videogenerationresponse.mdx +++ b/docs/components/videogenerationresponse.mdx @@ -10,10 +10,10 @@ title: "VideoGenerationResponse" | `expires_at` | *Optional[int]* | ➖ | Unix timestamp in seconds when OpenRouter's stored copy of the outputs stops being available. Present only when that copy exists. | | | `generation_id` | *Optional[str]* | ➖ | The generation ID associated with this video generation job. Available once the job has been processed. | | | `id` | *str* | ✔️ | The video job ID, in the `gen-vid--<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation. | | -| `polling_url` | *str* | ✔️ | N/A | | +| `polling_url` | *str* | ✔️ | Absolute URL on the job’s OpenRouter regional host. Use it as returned to poll the job with your API key. | | | `progress` | *Optional[float]* | ➖ | Percent complete, from 0 to 100 and possibly fractional, reported by the provider while `status_detail` is `generating`. Present only for providers that report it, and absent once the job moves to `finalizing`. | | | `status` | [components.VideoGenerationResponseStatus](../components/videogenerationresponsestatus.mdx) | ✔️ | N/A | | | `status_detail` | [Optional[components.StatusDetail]](../components/statusdetail.mdx) | ➖ | The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished. | | -| `unsigned_urls` | List[*str*] | ➖ | OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available. | | +| `unsigned_urls` | List[*str*] | ➖ | Absolute URLs on the job’s OpenRouter regional host, one per output. Use the selected URL as returned with your API key in the `Authorization` header. It works while the output is available. | | | `urls` | List[*str*] | ➖ | Signed download URLs for OpenRouter's stored copy of each output, usable without an API key until `expires_at`. Anyone holding a URL can download that output until it expires, so treat it like a secret. Present only when the stored copy exists. | | | `usage` | [Optional[components.VideoGenerationUsage]](../components/videogenerationusage.mdx) | ➖ | Usage and cost information for the video generation. Available once the job has completed. | \{
"cost": 0.5,
"is_byok": false
} | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 1458c6eb..1372fe6a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.228" +version = "1.3.229" 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 c7908b20..200b7a2d 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.228" +__version__: str = "1.3.229" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.228 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.229 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/videogenerationresponse.py b/src/openrouter/components/videogenerationresponse.py index bd252d41..2df3f419 100644 --- a/src/openrouter/components/videogenerationresponse.py +++ b/src/openrouter/components/videogenerationresponse.py @@ -37,6 +37,7 @@ class VideoGenerationResponseTypedDict(TypedDict): id: str r"""The video job ID, in the `gen-vid--<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation.""" polling_url: str + r"""Absolute URL on the job’s OpenRouter regional host. Use it as returned to poll the job with your API key.""" status: VideoGenerationResponseStatus error: NotRequired[str] expires_at: NotRequired[int] @@ -48,7 +49,7 @@ class VideoGenerationResponseTypedDict(TypedDict): status_detail: NotRequired[StatusDetail] r"""The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished.""" unsigned_urls: NotRequired[List[str]] - r"""OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available.""" + r"""Absolute URLs on the job’s OpenRouter regional host, one per output. Use the selected URL as returned with your API key in the `Authorization` header. It works while the output is available.""" urls: NotRequired[List[str]] r"""Signed download URLs for OpenRouter's stored copy of each output, usable without an API key until `expires_at`. Anyone holding a URL can download that output until it expires, so treat it like a secret. Present only when the stored copy exists.""" usage: NotRequired[VideoGenerationUsageTypedDict] @@ -60,6 +61,7 @@ class VideoGenerationResponse(BaseModel): r"""The video job ID, in the `gen-vid--<20 alphanumerics>` generation ID format. Pass it as `previous_job_id` to continue the generation.""" polling_url: str + r"""Absolute URL on the job’s OpenRouter regional host. Use it as returned to poll the job with your API key.""" status: VideoGenerationResponseStatus @@ -78,7 +80,7 @@ class VideoGenerationResponse(BaseModel): r"""The step within `status` for a job that is not finished: `submitting` and `queued_at_provider` under `pending`, `generating` and `finalizing` under `in_progress`. When present, it only moves forward, and steps may be skipped between polls. It is absent once the job is finished and can also be absent mid-job when the step is unknown, so use `status` to tell whether the job is finished.""" unsigned_urls: Optional[List[str]] = None - r"""OpenRouter content URLs for each output. They need your API key in the `Authorization` header and keep working for as long as the output is available.""" + r"""Absolute URLs on the job’s OpenRouter regional host, one per output. Use the selected URL as returned with your API key in the `Authorization` header. It works while the output is available.""" urls: Optional[List[str]] = None r"""Signed download URLs for OpenRouter's stored copy of each output, usable without an API key until `expires_at`. Anyone holding a URL can download that output until it expires, so treat it like a secret. Present only when the stored copy exists.""" diff --git a/uv.lock b/uv.lock index 0a2f01a3..bf0df537 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.228" +version = "1.3.229" source = { editable = "." } dependencies = [ { name = "httpcore" },