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
23 changes: 10 additions & 13 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: df666deb9eaab1df74f56a0778d53881
docChecksum: d549f1f1851d3b8566a88c2c51dca446
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.1.110
configChecksum: bfa3574af2178aad906640417b26c0c8
releaseVersion: 1.1.111
configChecksum: 644f7660e9e2fb0ebeee1312909073a7
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 62d17f42-2a5c-4339-b577-825d2a5ed84b
pristine_commit_hash: 940464cb469716dac779e7de02efde754009896f
pristine_tree_hash: 8047514c6c874bd993d00b74bdae280ca60f846e
generation_id: 7ebc9620-c5b3-4fdc-b549-4e222b9db662
pristine_commit_hash: a7776ac3a07a59ba746e8d4accb93f38725ed124
pristine_tree_hash: 947f90afadc7b47906211180266c3e331a0827cd
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -7458,8 +7458,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:70bced593dbea8641583c11dfff95039b48e120f
pristine_git_object: 7cbf8e9d296dca294454619141acbfdc8182b9c4
last_write_checksum: sha1:efbcdc29ac4bfee3f46ae11671b08559d41130fb
pristine_git_object: 1ed6cdf52cf082be603cab094955982904ff9ea9
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -7486,8 +7486,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:4976319f5f24f85f03c626d1a921e55a7152c7bc
pristine_git_object: 6753ace2ec4b00425829f7b5b0001462cba23d79
last_write_checksum: sha1:cb3f1aedcbfc00d2af7b97c32d0e14a2899ef8d0
pristine_git_object: 6edf25f6e9267720fa61ef6382d2972490018d1f
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:1e0004d8d1d5d797e2b54cd1cabeb7f9489d08e9
Expand Down Expand Up @@ -12549,6 +12549,3 @@ examples:
"503":
application/json: {"error": {"code": 503, "message": "Service temporarily unavailable"}}
examplesVersion: 1.0.2
releaseNotes: |
## Python SDK Changes:
* `open_router.presets.create_presets_messages()`: `request` **Changed**
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.110
version: 1.1.111
additionalDependencies:
dev: {}
main: {}
Expand Down
35 changes: 24 additions & 11 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13040,17 +13040,7 @@ components:
output_tokens_details:
$ref: '#/components/schemas/AnthropicOutputTokensDetails'
server_tool_use:
properties:
web_fetch_requests:
type: 'integer'
web_search_requests:
type: 'integer'
required:
- 'web_search_requests'
- 'web_fetch_requests'
type:
- 'object'
- 'null'
$ref: '#/components/schemas/ORAnthropicServerToolUsage'
required:
- 'input_tokens'
- 'output_tokens'
Expand Down Expand Up @@ -13873,6 +13863,8 @@ components:
items:
$ref: '#/components/schemas/AnthropicUsageIteration'
type: 'array'
server_tool_use:
$ref: '#/components/schemas/ORAnthropicServerToolUsage'
service_tier:
type:
- 'string'
Expand Down Expand Up @@ -18440,6 +18432,27 @@ components:
- $ref: '#/components/schemas/AnthropicCodeExecution20250825Caller'
- $ref: '#/components/schemas/AnthropicCodeExecution20260120Caller'
- type: 'null'
ORAnthropicServerToolUsage:
example:
tool_calls_executed: 1
tool_calls_requested: 1
web_fetch_requests: 0
web_search_requests: 0
properties:
tool_calls_executed:
type: 'integer'
tool_calls_requested:
type: 'integer'
web_fetch_requests:
type: 'integer'
web_search_requests:
type: 'integer'
required:
- 'web_search_requests'
- 'web_fetch_requests'
type:
- 'object'
- 'null'
ORAnthropicServerToolUseBlock:
example:
caller:
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:2ff947cfd48e39a63dff7918253a27a21eb2f152c043a344bbeb7ab892ac7040
sourceBlobDigest: sha256:e826a0cd65609a9f47abde5dc5bbc4a0c6293594bcd7314f17a58ed2dbdd2021
sourceRevisionDigest: sha256:3aba076b4407c0cc88e6ad82c88b599ff63c04523aa833dafaa633110284a608
sourceBlobDigest: sha256:8b34e54f118e69e069dc211b1efb1eafed44aa7df8173192a1763f301934f3f1
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:2ff947cfd48e39a63dff7918253a27a21eb2f152c043a344bbeb7ab892ac7040
sourceBlobDigest: sha256:e826a0cd65609a9f47abde5dc5bbc4a0c6293594bcd7314f17a58ed2dbdd2021
sourceRevisionDigest: sha256:3aba076b4407c0cc88e6ad82c88b599ff63c04523aa833dafaa633110284a608
sourceBlobDigest: sha256:8b34e54f118e69e069dc211b1efb1eafed44aa7df8173192a1763f301934f3f1
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:b05f16c33817996685827938e3849d250b68bdafd9c4b36acd4f3133ff811af9
codeSamplesRevisionDigest: sha256:3feac6de4e8259cd5d354fbcb39c304e73504d746c4b7acd80b52dc04cd3e9b5
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 @@ -1889,4 +1889,14 @@ Based on:
### Generated
- [python v1.1.110] .
### Releases
- [PyPI v1.1.110] https://pypi.org/project/openrouter/1.1.110 - .
- [PyPI v1.1.110] https://pypi.org/project/openrouter/1.1.110 - .

## 2026-09-01 19:32:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.111] .
### Releases
- [PyPI v1.1.111] https://pypi.org/project/openrouter/1.1.111 - .
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.110"
version = "1.1.111"
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.110"
__version__: str = "1.1.111"
__openapi_doc_version__: str = "1.0.0"
__gen_version__: str = "2.914.0"
__user_agent__: str = "speakeasy-sdk/python 1.1.110 2.914.0 1.0.0 openrouter"
__user_agent__: str = "speakeasy-sdk/python 1.1.111 2.914.0 1.0.0 openrouter"

try:
if __package__ is not None:
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