mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
chore: 🐝 Update SDK - Generate (spec change merged) 0.10.8 (#380)
Co-authored-by: speakeasybot <bot@speakeasyapi.dev> Co-authored-by: speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
speakeasybot
speakeasy-github[bot] <128539517+speakeasy-github[bot]@users.noreply.github.com>
parent
14f262fa66
commit
778e2e36fb
+16
-17
@@ -1,19 +1,19 @@
|
||||
lockVersion: 2.0.0
|
||||
id: c48cf606-fb42-4a45-9c23-8f0555307828
|
||||
management:
|
||||
docChecksum: cddcae9b4e616315fb557df6404b4868
|
||||
docChecksum: e7ae838af3f89aafec730d6f56a6264b
|
||||
docVersion: 1.0.0
|
||||
speakeasyVersion: 1.680.0
|
||||
generationVersion: 2.788.4
|
||||
releaseVersion: 0.10.7
|
||||
configChecksum: d7f0cac9aaaf632306fb2541355a2821
|
||||
releaseVersion: 0.10.8
|
||||
configChecksum: 8243c4a0e55e45da047a1d60c75a497d
|
||||
repoURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
installationURL: https://github.com/OpenRouterTeam/python-sdk.git
|
||||
published: true
|
||||
persistentEdits:
|
||||
generation_id: f0dde523-5fb9-45aa-ae0f-98c78b96933b
|
||||
pristine_commit_hash: 790ef7ce291dde4bc6496b02effdafb41c0069bb
|
||||
pristine_tree_hash: bb12a2f1ef846a84b308d3e30b03e081b9674a5e
|
||||
generation_id: 941715a1-02fc-4177-a705-0f0a75de97ec
|
||||
pristine_commit_hash: d3f06b10deb99bed3a70737944b76cb45ba18876
|
||||
pristine_tree_hash: 7e30bc063f631c35e1645f8790acc79f301f383f
|
||||
features:
|
||||
python:
|
||||
acceptHeaders: 3.0.0
|
||||
@@ -774,12 +774,12 @@ trackedFiles:
|
||||
pristine_git_object: 79909c48a34888496f9051cf33899ca1b9a7b4fc
|
||||
docs/components/chatcontentimagedetail.md:
|
||||
id: 3f26a1053cda
|
||||
last_write_checksum: sha1:c074cafc4780c4bc7e6d4a053c886020a89c4e42
|
||||
pristine_git_object: 9653ab78adb9b8b9ccfcd46d186d4f9c5a2ace85
|
||||
last_write_checksum: sha1:296d52deb9b5223ed17cfb8ff3300727e671e001
|
||||
pristine_git_object: 1c2cfb3ab7c7f2226e3c00c65af8fb9b79ca7740
|
||||
docs/components/chatcontentimageimageurl.md:
|
||||
id: 7c66172651cc
|
||||
last_write_checksum: sha1:f0382f65b65ec13b0747b9f7ca6aaf235c7d39d4
|
||||
pristine_git_object: e1e9f886d59c9580dd2b0556b737508573ec03d4
|
||||
last_write_checksum: sha1:035c15e90cd89d8a8f20a27e28cf19551df62ecd
|
||||
pristine_git_object: 9915ffe26c36a6a8ad5054389f960f7ea3c4e7bf
|
||||
docs/components/chatcontentimagetype.md:
|
||||
id: b92a4757efe6
|
||||
last_write_checksum: sha1:ce2d8002a22bf03477cbbd88c68fc4eace9b392b
|
||||
@@ -6342,8 +6342,8 @@ trackedFiles:
|
||||
pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544
|
||||
pyproject.toml:
|
||||
id: 5d07e7d72637
|
||||
last_write_checksum: sha1:9b65dbc3d45846371aa00f643e177af228862884
|
||||
pristine_git_object: 95bc7178949e81a4db246aec1ad4018331422267
|
||||
last_write_checksum: sha1:83883613f4ce5a35940a61255018ae96c5b161a3
|
||||
pristine_git_object: 2c73ae5647842e85c54240de3c2634ef1644c424
|
||||
scripts/prepare_readme.py:
|
||||
id: e0c5957a6035
|
||||
last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54
|
||||
@@ -6370,8 +6370,8 @@ trackedFiles:
|
||||
pristine_git_object: 07ace03229fd3267623c8f48665d2c3a67c3565d
|
||||
src/openrouter/_version.py:
|
||||
id: d8d15ad6c586
|
||||
last_write_checksum: sha1:933d4821e7582d4c23d068f63df4d680dffb54d2
|
||||
pristine_git_object: eb386f771bf1a2fe478721b946d9048bddec763f
|
||||
last_write_checksum: sha1:9191ddd2824cab64aba72a37907c39c13bae5e7b
|
||||
pristine_git_object: ae046a12bfe3757e47b922caa4ee98754663db43
|
||||
src/openrouter/analytics.py:
|
||||
id: cb406b5aaabb
|
||||
last_write_checksum: sha1:6d47d1ab3da9cb4ac9f0a2bfe442f1a82a614f35
|
||||
@@ -6774,8 +6774,8 @@ trackedFiles:
|
||||
pristine_git_object: e737cbd7318fb553946f2c5a9986a9630415016e
|
||||
src/openrouter/components/chatcontentimage.py:
|
||||
id: 6897abcd5da0
|
||||
last_write_checksum: sha1:e60f0f980421fe82190850b65948bdca3b0a7859
|
||||
pristine_git_object: 6219f8400d09673322eaa3068c0b57dbcd662e5c
|
||||
last_write_checksum: sha1:3e4d1947edd8b77f1ebd804e91423221e6d33682
|
||||
pristine_git_object: 45430fd36f0e76600b818778af749de0969ae34f
|
||||
src/openrouter/components/chatcontentitems.py:
|
||||
id: c4253e14cbd3
|
||||
last_write_checksum: sha1:e17966663f37a773e5ab5fc0c5e7e09f3ab9aef4
|
||||
@@ -10568,4 +10568,3 @@ examples:
|
||||
"500":
|
||||
application/json: {"error": {"code": 500, "message": "Internal Server Error"}}
|
||||
examplesVersion: 1.0.2
|
||||
releaseNotes: "## Python SDK Changes:\n* `open_router.beta.responses.send()`: \n * `request.input.[array].[].[output_fusion_server_tool_item].sources` **Added**\n * `response` **Changed**\n* `open_router.presets.create_presets_responses()`: \n * `request.input.[array].[].[output_fusion_server_tool_item].sources` **Added**\n"
|
||||
|
||||
+1
-1
@@ -32,7 +32,7 @@ generation:
|
||||
skipResponseBodyAssertions: false
|
||||
preApplyUnionDiscriminators: true
|
||||
python:
|
||||
version: 0.10.7
|
||||
version: 0.10.8
|
||||
additionalDependencies:
|
||||
dev: {}
|
||||
main: {}
|
||||
|
||||
@@ -4267,11 +4267,13 @@ components:
|
||||
image_url:
|
||||
properties:
|
||||
detail:
|
||||
description: Image detail level for vision models
|
||||
description: >-
|
||||
Image detail level for vision models. `original` is an OpenRouter extension (not in the OpenAI Chat Completions spec) requesting true original-resolution media; it is downgraded to `high` for providers that lack an original-resolution tier.
|
||||
enum:
|
||||
- auto
|
||||
- low
|
||||
- high
|
||||
- original
|
||||
type: string
|
||||
x-speakeasy-unknown-values: allow
|
||||
url:
|
||||
|
||||
@@ -2,20 +2,20 @@ speakeasyVersion: 1.680.0
|
||||
sources:
|
||||
OpenRouter API:
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:c668cc885c117987e3c561af619ec3ad21dbb47bffdc491f06d93b8af0c122d3
|
||||
sourceBlobDigest: sha256:da0dd6040f1f11463b596a1425a6ed5c6f86b5b5e3de2b761cb426f3dcc1660c
|
||||
sourceRevisionDigest: sha256:ed6981b24a0f8df827afac0f83d7dae4d8f7df331ae6e72664e03800cb7a0244
|
||||
sourceBlobDigest: sha256:5961e537bd3160eb3f541232a5e7cb43704fed5e9ce76b342c08f6c52d4fefe9
|
||||
tags:
|
||||
- latest
|
||||
- speakeasy-sdk-regen-1782517441
|
||||
- speakeasy-sdk-regen-1782660460
|
||||
- 1.0.0
|
||||
targets:
|
||||
open-router:
|
||||
source: OpenRouter API
|
||||
sourceNamespace: open-router-chat-completions-api
|
||||
sourceRevisionDigest: sha256:c668cc885c117987e3c561af619ec3ad21dbb47bffdc491f06d93b8af0c122d3
|
||||
sourceBlobDigest: sha256:da0dd6040f1f11463b596a1425a6ed5c6f86b5b5e3de2b761cb426f3dcc1660c
|
||||
sourceRevisionDigest: sha256:ed6981b24a0f8df827afac0f83d7dae4d8f7df331ae6e72664e03800cb7a0244
|
||||
sourceBlobDigest: sha256:5961e537bd3160eb3f541232a5e7cb43704fed5e9ce76b342c08f6c52d4fefe9
|
||||
codeSamplesNamespace: open-router-python-code-samples
|
||||
codeSamplesRevisionDigest: sha256:163ae66544ac5b5162821baae4129dd200441bac24bdacca44316db38a9b178f
|
||||
codeSamplesRevisionDigest: sha256:d3f20480ea1c0bcb8d872ae696b7a8b2c16d1469ee95b6df12b03b7004ce1c9c
|
||||
workflow:
|
||||
workflowVersion: 1.0.0
|
||||
speakeasyVersion: 1.680.0
|
||||
|
||||
+11
-1
@@ -98,4 +98,14 @@ Based on:
|
||||
### Generated
|
||||
- [python v0.10.7] .
|
||||
### Releases
|
||||
- [PyPI v0.10.7] https://pypi.org/project/openrouter/0.10.7 - .
|
||||
- [PyPI v0.10.7] https://pypi.org/project/openrouter/0.10.7 - .
|
||||
|
||||
## 2026-06-28 15:27:21
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc
|
||||
- Speakeasy CLI 1.680.0 (2.788.4) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [python v0.10.8] .
|
||||
### Releases
|
||||
- [PyPI v0.10.8] https://pypi.org/project/openrouter/0.10.8 - .
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "openrouter"
|
||||
version = "0.10.7"
|
||||
version = "0.10.8"
|
||||
description = "Official Python Client SDK for OpenRouter."
|
||||
authors = [{ name = "OpenRouter" },]
|
||||
readme = "README-PYPI.md"
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
import importlib.metadata
|
||||
|
||||
__title__: str = "openrouter"
|
||||
__version__: str = "0.10.7"
|
||||
__version__: str = "0.10.8"
|
||||
__openapi_doc_version__: str = "1.0.0"
|
||||
__gen_version__: str = "2.788.4"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.7 2.788.4 1.0.0 openrouter"
|
||||
__user_agent__: str = "speakeasy-sdk/python 0.10.8 2.788.4 1.0.0 openrouter"
|
||||
|
||||
try:
|
||||
if __package__ is not None:
|
||||
|
||||
@@ -13,17 +13,18 @@ ChatContentImageDetail = Union[
|
||||
"auto",
|
||||
"low",
|
||||
"high",
|
||||
"original",
|
||||
],
|
||||
UnrecognizedStr,
|
||||
]
|
||||
r"""Image detail level for vision models"""
|
||||
r"""Image detail level for vision models. `original` is an OpenRouter extension (not in the OpenAI Chat Completions spec) requesting true original-resolution media; it is downgraded to `high` for providers that lack an original-resolution tier."""
|
||||
|
||||
|
||||
class ChatContentImageImageURLTypedDict(TypedDict):
|
||||
url: str
|
||||
r"""URL of the image (data: URLs supported)"""
|
||||
detail: NotRequired[ChatContentImageDetail]
|
||||
r"""Image detail level for vision models"""
|
||||
r"""Image detail level for vision models. `original` is an OpenRouter extension (not in the OpenAI Chat Completions spec) requesting true original-resolution media; it is downgraded to `high` for providers that lack an original-resolution tier."""
|
||||
|
||||
|
||||
class ChatContentImageImageURL(BaseModel):
|
||||
@@ -33,7 +34,7 @@ class ChatContentImageImageURL(BaseModel):
|
||||
detail: Annotated[
|
||||
Optional[ChatContentImageDetail], PlainValidator(validate_open_enum(False))
|
||||
] = None
|
||||
r"""Image detail level for vision models"""
|
||||
r"""Image detail level for vision models. `original` is an OpenRouter extension (not in the OpenAI Chat Completions spec) requesting true original-resolution media; it is downgraded to `high` for providers that lack an original-resolution tier."""
|
||||
|
||||
|
||||
ChatContentImageType = Literal["image_url",]
|
||||
|
||||
@@ -76,7 +76,7 @@ name = "exceptiongroup"
|
||||
version = "1.3.0"
|
||||
source = { registry = "https://pypi.org/simple" }
|
||||
dependencies = [
|
||||
{ name = "typing-extensions", marker = "python_full_version < '3.11'" },
|
||||
{ name = "typing-extensions" },
|
||||
]
|
||||
sdist = { url = "https://files.pythonhosted.org/packages/0b/9f/a65090624ecf468cdca03533906e7c69ed7588582240cfe7cc9e770b50eb/exceptiongroup-1.3.0.tar.gz", hash = "sha256:b241f5885f560bc56a59ee63ca4c6a8bfa46ae4ad651af316d4e81817bb9fd88", size = 29749, upload-time = "2025-05-10T17:42:51.123Z" }
|
||||
wheels = [
|
||||
@@ -220,7 +220,7 @@ wheels = [
|
||||
|
||||
[[package]]
|
||||
name = "openrouter"
|
||||
version = "0.10.7"
|
||||
version = "0.10.8"
|
||||
source = { editable = "." }
|
||||
dependencies = [
|
||||
{ name = "httpcore" },
|
||||
|
||||
Reference in New Issue
Block a user