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
28 changes: 14 additions & 14 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: b89cc65bbf379613ceec7456e87307bb
docChecksum: 8c4d4967819782de637ac877bf680bb4
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.1.98
configChecksum: d6e65bf56d0b6ff5a1206ebef54ee43f
releaseVersion: 1.1.99
configChecksum: 1934b1366779d2fd11e23ef757079a67
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: a47a85b3-6f80-434b-9e48-9c2fc68d27cd
pristine_commit_hash: e0b4dfabf4b2a71883ccfb81d6bc7c889e3f946e
pristine_tree_hash: fe5cb6d27edf8d50f0c8f4d1c0b1bb3edb59de5f
generation_id: f79644c8-8faa-4aac-9971-da3177741570
pristine_commit_hash: 4b94f324af3cc637aabc2d65eed38ad86cbfe0ce
pristine_tree_hash: c24fd5861a7734f941a68257c1a5e1752ac371ac
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -7302,8 +7302,8 @@ trackedFiles:
pristine_git_object: bed5f74e5e8269cbba66943524ffa5206c933de3
docs/sdks/containers/README.mdx:
id: cc963972ad75
last_write_checksum: sha1:e98902490b924d55601ebc5d6a76aa7271edaccb
pristine_git_object: 05e2d9345a19a297d29482462ca718fba4b6cc3d
last_write_checksum: sha1:37ddd77ce960000f8d6b5a4ed8aa47fcecd1bf0a
pristine_git_object: 6c2119cad00e2ae8009e1349851fd0c915b89bc8
docs/sdks/credits/README.mdx:
id: 2ba51de8de3f
last_write_checksum: sha1:08de2963f78b645eaa14fa8511552bae2ddccd75
Expand Down Expand Up @@ -7394,8 +7394,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:7c7ccb7bb86ee6b0388c7df5d7179909a5097a3c
pristine_git_object: 46d9f228916bbadc82bb1aeb476ef431070ae053
last_write_checksum: sha1:8a1ac5ce02efb21b0be26eb68cfa84e3b3dcc49b
pristine_git_object: cb27695fa28b45f4f7b4ccbabbb2522440bde938
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -7422,8 +7422,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:11bec47eb6d37171d7dacfe6e37165e3636e7a1d
pristine_git_object: ebe650d899bbb22325c8c9995ec6aa1b1147eea9
last_write_checksum: sha1:46e9c850f3080f65041bc77aed50f4d962e185dd
pristine_git_object: 5a7265f202b696bc58b9d6089e8889b3d2758d4c
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
Expand Down Expand Up @@ -9938,8 +9938,8 @@ trackedFiles:
pristine_git_object: ad78361d147d2edb7b5772c14501d9c25a2000b0
src/openrouter/containers.py:
id: 5edae5db57e9
last_write_checksum: sha1:dca529a8a49b60c94d59bc497423d9c983dcee95
pristine_git_object: 40cf9e34645544968d4c84dddc659445c6528fd2
last_write_checksum: sha1:b8bbbc0adfb30c63c1d6c304f204057034c9319c
pristine_git_object: 6cf0e3473384453e37fd5c199a3c680e97dc8a21
src/openrouter/credits.py:
id: cdc961937101
last_write_checksum: sha1:7ac37671d3de537eb98f15239d531e3ab3928a59
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.1.98
version: 1.1.99
additionalDependencies:
dev: {}
main: {}
Expand Down
4 changes: 2 additions & 2 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29723,7 +29723,7 @@ paths:
- $ref: "#/components/parameters/AppCategories"
/containers/{container_id}/files/{file_id}/promote:
post:
description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota exactly like an upload.'
description: 'Copies a file from the container''s sandbox prefix into the workspace''s durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace''s storage quota. Unlike a direct upload, promoted files are downloadable.'
operationId: 'promoteContainerFile'
parameters:
- description: 'The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.'
Expand All @@ -29749,7 +29749,7 @@ paths:
example:
_shape: 'openrouter'
created_at: '2026-08-23T00:00:00Z'
downloadable: false
downloadable: true
filename: 'out/report.csv'
id: 'or_file_011CNha8iCJcU1wXNR6q4V8w'
mime_type: 'text/csv'
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.787.0
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:57fa65a6ffb4a0be0dbf02e6d0c455960dd2591c66515e4a18f1a16471db8a70
sourceBlobDigest: sha256:3b2708d5b55152f9aa45a7115e67d5ac67cdd4d8a4352c3bb46c99b82146cc59
sourceRevisionDigest: sha256:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e
sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:57fa65a6ffb4a0be0dbf02e6d0c455960dd2591c66515e4a18f1a16471db8a70
sourceBlobDigest: sha256:3b2708d5b55152f9aa45a7115e67d5ac67cdd4d8a4352c3bb46c99b82146cc59
sourceRevisionDigest: sha256:05fdf5ad1168fb8b389b6e43c0923738bc18c6ad94e238e8841d494b6feeae1e
sourceBlobDigest: sha256:b311b2470a0d14077e5043ac92fe525a1530aad37faae4926f19fc0a1479264a
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:64561b451d9155cb6e3b42bbc0dc80c2a79a08e22a61e309fa2c7856c9d95026
codeSamplesRevisionDigest: sha256:7cb22388bca22a387a7fd7f5e256223d7cd0376ff37e6e535c3b06b7e90f5380
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.787.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1769,4 +1769,14 @@ Based on:
### Generated
- [python v1.1.98] .
### Releases
- [PyPI v1.1.98] https://pypi.org/project/openrouter/1.1.98 - .
- [PyPI v1.1.98] https://pypi.org/project/openrouter/1.1.98 - .

## 2026-08-27 21:09:37
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.99] .
### Releases
- [PyPI v1.1.99] https://pypi.org/project/openrouter/1.1.99 - .
2 changes: 1 addition & 1 deletion docs/sdks/containers/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ with OpenRouter(

## promote_container_file

Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload.
Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable.

### Example Usage

Expand Down
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.1.98"
version = "1.1.99"
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.1.98"
__version__: str = "1.1.99"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 1.1.98 2.914.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.1.99 2.914.0 1.0.0 openrouter"

try:
if __package__ is not None:
Expand Down
4 changes: 2 additions & 2 deletions src/openrouter/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -972,7 +972,7 @@ def promote_container_file(
) -> components.FileResponse:
r"""Promote a container file into workspace documents

Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload.
Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable.

:param container_id: The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.
:param file_id: Container file id (`cfile_` + base64url of the file path).
Expand Down Expand Up @@ -1128,7 +1128,7 @@ async def promote_container_file_async(
) -> components.FileResponse:
r"""Promote a container file into workspace documents

Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota exactly like an upload.
Copies a file from the container's sandbox prefix into the workspace's durable document storage, so it outlives the container. Returns the new document in the Files API shape, with a durable file id in the documents namespace. The copy counts against the workspace's storage quota. Unlike a direct upload, promoted files are downloadable.

:param container_id: The canonical container id, exactly as returned in a bash/shell tool result — a restarted session has its own `-r<nonce>`-suffixed id. A session-derived id is always `sess_` + the sanitized session key, which is not necessarily the raw session id that was sent.
:param file_id: Container file id (`cfile_` + base64url of the file path).
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.

Loading