diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0860ea27..62ff1ed6 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: d295c0e06671ab47f0762f669e11ea1a + docChecksum: 5079eb00ca1eb970dce6128009b273f3 docVersion: 1.0.0 speakeasyVersion: 1.787.0 generationVersion: 2.914.0 - releaseVersion: 1.3.71 - configChecksum: c045c2f1c14480f67ba84a2b5f117fe6 + releaseVersion: 1.3.72 + configChecksum: f694de07da25d85e9c11f82d0da9ebb1 repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: ae7ddf9e-dcb7-4439-b5ab-3d48a3e0ae4d - pristine_commit_hash: 4b579ac47ed47051ca1c01b09eb77e8e8b8290bb - pristine_tree_hash: 4162185defe65ec724fe9796cb3390f4b1af23fe + generation_id: ca012085-b807-4a32-a8a8-eb55fa87fab8 + pristine_commit_hash: 652242151c5b6f4c3dc2e34094c689d7c597c83b + pristine_tree_hash: efdfda9840130060732935490643c1c027b0fea5 features: python: acceptHeaders: 3.0.0 @@ -10400,8 +10400,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:466fa425157848d33c61096c0f1e07fed0a04055 - pristine_git_object: eea7c851acbca4bb66b5e48094093e1c286672a6 + last_write_checksum: sha1:b12bd325c9d171cffb89638fe400fec91337f464 + pristine_git_object: 93cb885778a1728106f84669753cfecd37002996 scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -10428,8 +10428,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:568c8e9f267e3a340ec6e8fed31e911ce32655bf - pristine_git_object: 5848b5acc5cc9d9a4d979d78de0c18162f922343 + last_write_checksum: sha1:731a83cb71c84efb1628f7fdc686e220673b8e0b + pristine_git_object: a966ba4b6e32b2639d42909101205276a1fe9574 src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:30f55a360f41376ab194b9ea725fe4e001a5ae1a @@ -19167,4 +19167,3 @@ examples: "500": application/json: {"error": {"code": 404, "message": "Intern not found"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.interns.get_intern_connections()`: **Added**\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult).instructions.union(Array<>)[].union(OpenAIResponseInputMessageItem).content[].union(input_text).prompt_cache_breakpoint.ttl` **Added**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult).instructions.union(Array<>)[].union(OpenAIResponseCustomToolCallOutput).output.union(Array<>)[].union(input_text).prompt_cache_breakpoint.ttl` **Added**\n* `open_router.chat.send()`: \n * `request.messages[].union(system).content.union(Array)[].prompt_cache_breakpoint.ttl` **Added**\n * `response.choices[].message.content.union(Array)[].union(text).prompt_cache_breakpoint.ttl` **Added**\n* `open_router.interns.list_interns()`: `response.data[].can_edit` **Added**\n* `open_router.interns.create_intern()`: `response.can_edit` **Added**\n* `open_router.interns.get_intern()`: `response.can_edit` **Added**\n* `open_router.interns.update_intern()`: `response.can_edit` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.messages[].union(user).content.union(Array)[].union(text).prompt_cache_breakpoint.ttl` **Added**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.union(Array<>)[].union(FunctionCallOutputItem).output.union(Array<>)[].union(input_text).prompt_cache_breakpoint.ttl` **Added**\n* `open_router.responses.send()`: \n * `request.input.union(Array<>)[].union(InputMessageItem).content[].union(input_text).prompt_cache_breakpoint.ttl` **Added**\n * `response` **Changed**\n* `open_router.beta.responses.send()`: \n * `request.input.union(Array<>)[].union(AgentMessageItem).content[].union(input_text).prompt_cache_breakpoint.ttl` **Added**\n * `response` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 9c2af911..7482fe93 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -36,7 +36,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.71 + version: 1.3.72 additionalDependencies: dev: {} main: {} diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index ea34b5e5..16a8c2bd 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -6643,6 +6643,7 @@ components: items: minLength: 1 type: 'string' + maxItems: 500 minItems: 1 type: 'array' required: @@ -6732,6 +6733,7 @@ components: items: minLength: 1 type: 'string' + maxItems: 500 minItems: 1 type: 'array' required: @@ -46774,7 +46776,6 @@ paths: event: 'content_block_delta' schema: $ref: '#/components/schemas/MessagesStreamingResponse' - x-speakeasy-sse-sentinel: '[DONE]' description: 'Successful response' '400': content: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 616fe1e3..7573f0f2 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:4c1bf80ad069a003e7b232202da907c7ad80d096d0a0111d95e4d1c696225b1c - sourceBlobDigest: sha256:f86a62aafe6b3f44673578ea274d11cea6ab4851211e2c669e376a3d399cd23b + sourceRevisionDigest: sha256:a74d093cb783cef559f268a64fd24e6abaf5af0fc2f47f34fdbff5160ff4621f + sourceBlobDigest: sha256:3ae8ecf6f055b72ac8eb8b5d1d52913ddef2fa1f7f5388da571886f08fbcd88b tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:4c1bf80ad069a003e7b232202da907c7ad80d096d0a0111d95e4d1c696225b1c - sourceBlobDigest: sha256:f86a62aafe6b3f44673578ea274d11cea6ab4851211e2c669e376a3d399cd23b + sourceRevisionDigest: sha256:a74d093cb783cef559f268a64fd24e6abaf5af0fc2f47f34fdbff5160ff4621f + sourceBlobDigest: sha256:3ae8ecf6f055b72ac8eb8b5d1d52913ddef2fa1f7f5388da571886f08fbcd88b codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:50416a548f944df084bcd75240de5e214000a8f204f464d6845745a11fe83614 + codeSamplesRevisionDigest: sha256:e390166b4fdc2149e0d9ea9ae4a0590d0465f083ae025c5efc4379430a6966b2 workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.787.0 diff --git a/RELEASES.md b/RELEASES.md index 6c50d8c2..347eb216 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -3479,4 +3479,14 @@ Based on: ### Generated - [python v1.3.71] . ### Releases -- [PyPI v1.3.71] https://pypi.org/project/openrouter/1.3.71 - . \ No newline at end of file +- [PyPI v1.3.71] https://pypi.org/project/openrouter/1.3.71 - . + +## 2026-10-21 16:17:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.72] . +### Releases +- [PyPI v1.3.72] https://pypi.org/project/openrouter/1.3.72 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index eea7c851..93cb8857 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.71" +version = "1.3.72" 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 5848b5ac..a966ba4b 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.71" +__version__: str = "1.3.72" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.914.0" -__user_agent__: str = "speakeasy-sdk/python 1.3.71 2.914.0 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.72 2.914.0 1.0.0 openrouter" try: if __package__ is not None: diff --git a/uv.lock b/uv.lock index b97b246b..453efbe2 100644 --- a/uv.lock +++ b/uv.lock @@ -213,7 +213,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.71" +version = "1.3.72" source = { editable = "." } dependencies = [ { name = "httpcore" },