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
44 changes: 22 additions & 22 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: cf4f2577fb6aa3e9b6c9749ea7a11b7a
docChecksum: 8ede64aad6d17e4f87c4b39ce933ada2
docVersion: 1.0.0
speakeasyVersion: 1.787.0
generationVersion: 2.914.0
releaseVersion: 1.1.38
configChecksum: 852b26b5c60d1a2e7881165023644389
releaseVersion: 1.1.39
configChecksum: 7f9824cc3197d73cf65c172ce031d036
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
published: true
persistentEdits:
generation_id: 68678169-ef2a-428f-be67-92b8f3fd798d
pristine_commit_hash: 516d29e2b74ee99293e1396768864268fe069aed
pristine_tree_hash: c10e55b58ee70ce7d19bfc7581098cd04d82f7b2
generation_id: 48616d01-e54c-4095-8f95-f422376258d5
pristine_commit_hash: 7ac7061ac11b14ce0a8b53e9cf88dbf29c3a4727
pristine_tree_hash: e3f44e92e87d7b7bddc0a758a6e35aaedf9a2bfb
features:
python:
acceptHeaders: 3.0.0
Expand Down Expand Up @@ -650,24 +650,24 @@ trackedFiles:
pristine_git_object: ef98b1de499df79940ccacaf5da0be2d635b104e
docs/components/autobetarouterplugin.mdx:
id: 036f0e51d7c9
last_write_checksum: sha1:f69a1c5c8d69de1c36b710fca3b5f34e7d2ddbf4
pristine_git_object: 0ad5b6f463784919f5b9b1d0946de05e02a91ab1
last_write_checksum: sha1:94f02925c23cb90fe0b3532357c8d706d99388fb
pristine_git_object: dd8c11875eb91ee521e3c8dbd01351c88b462501
docs/components/autobetarouterplugincosttier.mdx:
id: b56ac3529805
last_write_checksum: sha1:f5e869ca0629601f0367ca1e5614bb1d1f58f70f
pristine_git_object: b2e319282c4ebbb4eb7eb01115c54021916e287e
last_write_checksum: sha1:6c9910aa8bbd3d32206e3a30baa0a9d1d7d78844
pristine_git_object: 201351d70b5c298e8e64f52048b89ad0bd261cd7
docs/components/autobetarouterpluginid.mdx:
id: 619eb7d92a83
last_write_checksum: sha1:47b80552a64dbc3dc37421630fddf931ffe5c795
pristine_git_object: 800b8e4a3fd07f10592e3ee8f9c15c7e57398d4c
docs/components/autorouterplugin.mdx:
id: 4d62f9b36bc2
last_write_checksum: sha1:1e62c64377f4f961f678ef7da29d14cb80f0bb48
pristine_git_object: 5e2e372cdebdae0ce6f6758ed7656517b15a173d
last_write_checksum: sha1:7197e6355a37b1a44e5baa9a3a3d76a72e6ae648
pristine_git_object: f128f4a8af060555106cf2c1b9e3e98c67ef629b
docs/components/autorouterplugincosttier.mdx:
id: 72049c1ccaf4
last_write_checksum: sha1:88c357901d1b51ef575f21ee957f6aa16bba7b83
pristine_git_object: 77c913f91b03aefe7f6997bb588080a84960b777
last_write_checksum: sha1:e39aa2557889658bd06007f9731c277e9b537e12
pristine_git_object: b06654b8292488471ec316b3f2aceec6eacf5db8
docs/components/autorouterpluginid.mdx:
id: ea9862a88ce8
last_write_checksum: sha1:51d6cd6296501209ebc8b721adb3feadeb798f9a
Expand Down Expand Up @@ -7106,8 +7106,8 @@ trackedFiles:
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
pyproject.toml:
id: 5d07e7d72637
last_write_checksum: sha1:9bdd842ddb4463c974aecfd9be8c46c99bb68480
pristine_git_object: 7bcca3ad227ca6e5cc80284e4b3aec20164c90a3
last_write_checksum: sha1:d8d63f40b234f19da09326afcde5a467253c45d9
pristine_git_object: ce5d9656dcb74b9b09f66619f39bd0cf58bff036
scripts/prepare_readme.py:
id: e0c5957a6035
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
Expand All @@ -7134,8 +7134,8 @@ trackedFiles:
pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137
src/openrouter/_version.py:
id: d8d15ad6c586
last_write_checksum: sha1:cccf07809887714e342029e1df6ec25d54eb19e9
pristine_git_object: 590bde78735894705b30be7be589833ac3180a39
last_write_checksum: sha1:c4d146d77cb18189d6d83253caee92c73bad220b
pristine_git_object: 682398c0d1af843933d8a689c8bdeaac7d10e421
src/openrouter/analytics.py:
id: cb406b5aaabb
last_write_checksum: sha1:3ea0f1c73fb9c101b7bc5719da4dd7bf62ff469a
Expand Down Expand Up @@ -7446,12 +7446,12 @@ trackedFiles:
pristine_git_object: 2ccc3d9be586133e5d5138c77eacefa243987fb5
src/openrouter/components/autobetarouterplugin.py:
id: bb4119e5d4dc
last_write_checksum: sha1:9a7b53ebff8cffc9c9bb0e91380c7bf450978ad5
pristine_git_object: e1ae76a7b02d866e99ec3a58dbd8d01d786b65dd
last_write_checksum: sha1:92887f17869e070ae3940b9a7d8356598c56b05a
pristine_git_object: 65885e4d922d989d42799f52e98b7132d0eee5d4
src/openrouter/components/autorouterplugin.py:
id: cf49add5d1ae
last_write_checksum: sha1:63f3397389da14c253bdda100e1984c4f5556efb
pristine_git_object: 414a9ca4bcd0783e976ca6834132d002a696d5d6
last_write_checksum: sha1:65289971dae58e7b3acd8a7763b5ad98d87b9ea4
pristine_git_object: 85caa0a03eb4b855a0e12f88b8b94efd5355ccf9
src/openrouter/components/badgatewayresponseerrordata.py:
id: f7a33d30d269
last_write_checksum: sha1:d85ab25a06594703cb353767f07f4e1d44e0181c
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.38
version: 1.1.39
additionalDependencies:
dev: {}
main: {}
Expand Down
18 changes: 9 additions & 9 deletions .speakeasy/out.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2980,7 +2980,7 @@ components:
id: 'auto-beta-router'
properties:
allowed_models:
description: 'List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list.'
description: 'List of model patterns to filter which models the auto-beta-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.'
example:
- 'anthropic/*'
- 'openai/gpt-4o'
Expand All @@ -2990,13 +2990,13 @@ components:
type: 'array'
cost_quality_tradeoff:
deprecated: true
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9. Numeric cost_quality_tradeoff remains supported, retains ceiling behavior, and takes precedence over cost_tier when both are provided.'
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-beta-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.'
example: 9
maximum: 10
minimum: 0
type: 'integer'
cost_tier:
description: 'Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Numeric cost_quality_tradeoff takes precedence and retains ceiling behavior.'
description: 'Named cost/quality setting. For auto-beta-router, tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.'
enum:
- 'low'
- 'medium'
Expand Down Expand Up @@ -3029,15 +3029,15 @@ components:
allowed_models:
- 'anthropic/*'
- 'openai/*'
cost_tier: 'medium'
cost_tier: 'low'
enabled: true
excluded_models:
- 'openai/gpt-4o'
id: 'auto-router'
pin_model: false
properties:
allowed_models:
description: 'List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list.'
description: 'List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, every model ranked for the classified task type is a candidate, falling back to a default model set when rankings are unavailable.'
example:
- 'anthropic/*'
- 'openai/gpt-4o'
Expand All @@ -3047,20 +3047,20 @@ components:
type: 'array'
cost_quality_tradeoff:
deprecated: true
description: 'Deprecated: Use cost_tier instead. Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. Numeric cost_quality_tradeoff remains supported and takes precedence over cost_tier when both are provided.'
example: 7
description: 'Deprecated: Use cost_tier instead. Balances routing between cost and quality on a 0-10 scale. The auto-router ranks models for the classified task type by community spend share, then filters candidates by their average cost per generation for that task. Higher values favor cheaper models: 10 keeps only models around the cheapest 10th percentile, while 0 permits models up to the 90th percentile for cost. Defaults to 9 when no cost setting is provided. It remains supported and retains ceiling behavior, but cost_tier takes precedence when both are provided.'
example: 9
maximum: 10
minimum: 0
type: 'integer'
cost_tier:
description: 'Shorthand for cost_quality_tradeoff. Higher tiers spend more on better models: low = 9, medium = 7, high = 5, xhigh = 3, and max = 1. Numeric cost_quality_tradeoff takes precedence when both are provided.'
description: 'Named cost/quality setting. Tiers select cost-percentile bands: low = [0, 20), medium = [20, 40), high = [40, 60), xhigh = [60, 80), and max = [80, 100]. Takes precedence over the deprecated numeric cost_quality_tradeoff when both are provided.'
enum:
- 'low'
- 'medium'
- 'high'
- 'xhigh'
- 'max'
example: 'medium'
example: 'low'
type: 'string'
x-speakeasy-unknown-values: allow
enabled:
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:ba591e9a42e8b6408d22788658dcdc0fd4d75c65985beed024f52e116587ef4b
sourceBlobDigest: sha256:920f108528fa073be18dea836b219bd2fcadb26e3e70f1dd7fe3701152ea7b77
sourceRevisionDigest: sha256:6849054eae332165a01616dd2091d05f0a57a524efac24db416762aef06f8a21
sourceBlobDigest: sha256:4d5de277c3c9e905f111de416fc5de6f4a0a5d795933f5b1d4726acd5ebdea58
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:ba591e9a42e8b6408d22788658dcdc0fd4d75c65985beed024f52e116587ef4b
sourceBlobDigest: sha256:920f108528fa073be18dea836b219bd2fcadb26e3e70f1dd7fe3701152ea7b77
sourceRevisionDigest: sha256:6849054eae332165a01616dd2091d05f0a57a524efac24db416762aef06f8a21
sourceBlobDigest: sha256:4d5de277c3c9e905f111de416fc5de6f4a0a5d795933f5b1d4726acd5ebdea58
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:f4ed1d1626d5bec0fec777705eb14e798019d4402eb028fb51dfebd4481411a3
codeSamplesRevisionDigest: sha256:2366bc5b32aa50e28b3d02521973ce550603c24d4079d8ea94ac81326bfa5754
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 @@ -1169,4 +1169,14 @@ Based on:
### Generated
- [python v1.1.38] .
### Releases
- [PyPI v1.1.38] https://pypi.org/project/openrouter/1.1.38 - .
- [PyPI v1.1.38] https://pypi.org/project/openrouter/1.1.38 - .

## 2026-08-10 15:19:21
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.787.0 (2.914.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.1.39] .
### Releases
- [PyPI v1.1.39] https://pypi.org/project/openrouter/1.1.39 - .
Loading
Loading