diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3eeac571..a88ab2f9 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: 2fe567942733dd3f020b7f1ff0fd02d8 + docChecksum: 2aeac254864846e1f6feedd74ba2049a docVersion: 1.0.0 speakeasyVersion: 1.803.2 generationVersion: 2.950.13 - releaseVersion: 1.3.124 - configChecksum: 4c8fc1e57b2cdff5192d1b5b7e2fb166 + releaseVersion: 1.3.125 + configChecksum: 8d8de3c5db20824c88bbb443ab2a222d repoURL: https://github.com/OpenRouterTeam/python-sdk.git installationURL: https://github.com/OpenRouterTeam/python-sdk.git published: true persistentEdits: - generation_id: 14a992de-7a74-4727-80d9-47c17f828af9 - pristine_commit_hash: d5164283e00654cebdf94937e24b9726333a4e28 - pristine_tree_hash: 1685aba1ff2cab7e07a13a12174161c55a6008db + generation_id: 3e456a50-8a6f-4b1a-99b2-9494178ed543 + pristine_commit_hash: dae2c1d8039d12ec6c5f92e3c498124810a34097 + pristine_tree_hash: ade7cb61118d291f270794f8d0a6fdf746a2babd features: python: acceptHeaders: 3.0.0 @@ -6704,8 +6704,8 @@ trackedFiles: pristine_git_object: 3dd7a71ab2606b2dd52b7cc13b7f29daa8f4372f docs/components/privateendpointcheck.mdx: id: 8221e9b4d716 - last_write_checksum: sha1:08bc740bc7eb5a33e627561b33a36cdead042500 - pristine_git_object: d5b252aaab552f45b0b80a4b58effed72022e17d + last_write_checksum: sha1:a64e20e212cac118bef1fdabdb53c58f534f390a + pristine_git_object: 3395d3b7f664902dc0277a5ebd3cd2d3ce35d76a docs/components/privateendpointcheckreason.mdx: id: "287778805047" last_write_checksum: sha1:b74afe4459b4505186ec53978982afa6cf7f0e75 @@ -10828,8 +10828,8 @@ trackedFiles: pristine_git_object: 3e38f1a929f7d6b1d6de74604aa87e3d8f010544 pyproject.toml: id: 5d07e7d72637 - last_write_checksum: sha1:c5e1924981838851b3d839d32f63ec62d8996265 - pristine_git_object: a33e8a445cb823382ff26f6e7ab63382970abdf6 + last_write_checksum: sha1:169ede6c9b1edaf2619a103b865f054bc245e858 + pristine_git_object: 275d6fb948bc2a3ca2acc85a9b6e840382e4f54b scripts/prepare_readme.py: id: e0c5957a6035 last_write_checksum: sha1:77f44b60b98bc126557ec27391f91dfba764bb54 @@ -10856,8 +10856,8 @@ trackedFiles: pristine_git_object: 86713cfea633e09d33b3d4e65281071fe20e6137 src/openrouter/_version.py: id: d8d15ad6c586 - last_write_checksum: sha1:83dce9640df4a5aa9d044290ff5f65c7a0ff1e50 - pristine_git_object: b01419c49ec9beca4349bc329325b37cd378374c + last_write_checksum: sha1:17abfe71c9fe48b6381d2fc12e3b3c0fd8ad4012 + pristine_git_object: a4e54a0fa597a3b7f12343506ff9c33a011d996e src/openrouter/alpha.py: id: 306c4d93308d last_write_checksum: sha1:80cc0f39649445431cc2247ed0e0765438467766 @@ -13544,8 +13544,8 @@ trackedFiles: pristine_git_object: 55d1f8afc4053201160cb9a2042e43c4dee98ccb src/openrouter/components/privateendpointcheck.py: id: e36ad99df8c6 - last_write_checksum: sha1:0269e31406ee46a58f2a2f55e7767229d6727428 - pristine_git_object: 485ab4af399229e11a9986b5329b1451591740c5 + last_write_checksum: sha1:cb66ae7f5fb9076484e17fc93ea4cc0a767e0f22 + pristine_git_object: 49f3e5a1cbf0810b0d214576fd59d18e46a58731 src/openrouter/components/privateendpointcheckreason.py: id: 52f81232e913 last_write_checksum: sha1:494026537044fbe1da8740fff300e8ea8b260a5d @@ -19972,4 +19972,3 @@ examples: "500": application/json: {"error": {"code": 500, "message": "Internal Server Error"}} examplesVersion: 1.0.2 -releaseNotes: "## Python SDK Changes:\n* `open_router.batch.create_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed**\n* `open_router.batch.get_batches()`: `response.results[].response.body.union(OpenResponsesResult)` **Changed**\n* `open_router.organization.list_members()`: `response.data[].role.enum(org:viewer)` **Added**\n* `open_router.presets.create_presets_chat_completions()`: \n * `request.deferred_tools.profile.enum(universal)` **Added**\n* `open_router.presets.create_presets_messages()`: \n * `request.deferred_tools.profile.enum(universal)` **Added**\n* `open_router.presets.create_presets_responses()`: `request` **Changed**\n" diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index fc03d110..a90f8c43 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -37,7 +37,7 @@ generation: documentation: mintlify preApplyUnionDiscriminators: true python: - version: 1.3.124 + version: 1.3.125 additionalDependencies: dev: pytest: '>=8.3' diff --git a/.speakeasy/out.openapi.yaml b/.speakeasy/out.openapi.yaml index 700ccf02..b8eb1e93 100644 --- a/.speakeasy/out.openapi.yaml +++ b/.speakeasy/out.openapi.yaml @@ -27328,7 +27328,8 @@ components: passed: true properties: actual_model: - description: 'Model the upstream reported serving, when it differs from the request.' + deprecated: true + description: 'Deprecated: validation no longer compares the model the upstream reports, so this field is never returned.' type: - 'string' - 'null' diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 90f9915e..60e3e978 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.803.2 sources: OpenRouter API: sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:b0702bea14c14c62d23f2a99482e4f39b9934e5091fe1ad463128671abfb08e1 - sourceBlobDigest: sha256:1497f72360880691a966e318272e68b27d573cc4ed89f0a4a2b1ed692dcf6e25 + sourceRevisionDigest: sha256:8da57cbc8513b9fbc74fd3ba8b4c5924086733c7ae58d27a39bce828c52db020 + sourceBlobDigest: sha256:b97ba984983544ac807e60ab643e2639219d4b9739a81d62b24e7517a3245d82 tags: - latest - 1.0.0 @@ -11,10 +11,10 @@ targets: open-router: source: OpenRouter API sourceNamespace: open-router-chat-completions-api - sourceRevisionDigest: sha256:b0702bea14c14c62d23f2a99482e4f39b9934e5091fe1ad463128671abfb08e1 - sourceBlobDigest: sha256:1497f72360880691a966e318272e68b27d573cc4ed89f0a4a2b1ed692dcf6e25 + sourceRevisionDigest: sha256:8da57cbc8513b9fbc74fd3ba8b4c5924086733c7ae58d27a39bce828c52db020 + sourceBlobDigest: sha256:b97ba984983544ac807e60ab643e2639219d4b9739a81d62b24e7517a3245d82 codeSamplesNamespace: open-router-python-code-samples - codeSamplesRevisionDigest: sha256:1b2625a1c2ec06a271fa89696cd45cbd537cddb04f2d5ccce4a6ab3ac6d24418 + codeSamplesRevisionDigest: sha256:1b460fa666ee5b3e06630e66e4694405b5770019f95085d5c9571240f6f024fa workflow: workflowVersion: 1.0.0 speakeasyVersion: 1.803.2 diff --git a/RELEASES.md b/RELEASES.md index 0baae360..018599fd 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -4009,4 +4009,14 @@ Based on: ### Generated - [python v1.3.124] . ### Releases -- [PyPI v1.3.124] https://pypi.org/project/openrouter/1.3.124 - . \ No newline at end of file +- [PyPI v1.3.124] https://pypi.org/project/openrouter/1.3.124 - . + +## 2026-11-05 05:06:50 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v1.3.125] . +### Releases +- [PyPI v1.3.125] https://pypi.org/project/openrouter/1.3.125 - . \ No newline at end of file diff --git a/docs/components/privateendpointcheck.mdx b/docs/components/privateendpointcheck.mdx index d5b252aa..3395d3b7 100644 --- a/docs/components/privateendpointcheck.mdx +++ b/docs/components/privateendpointcheck.mdx @@ -4,11 +4,11 @@ title: "PrivateEndpointCheck" ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `actual_model` | *OptionalNullable[str]* | ➖ | Model the upstream reported serving, when it differs from the request. | | -| `name` | *str* | ✔️ | Check name. | auth_ok | -| `passed` | *bool* | ✔️ | N/A | | -| `reason` | [Optional[components.PrivateEndpointCheckReason]](../components/privateendpointcheckreason.mdx) | ➖ | Why the check failed. | no_byok_key | -| `upstream_message` | *OptionalNullable[str]* | ➖ | Error message returned by your deployment when the call failed. | | -| `upstream_status` | *Optional[int]* | ➖ | HTTP status returned by your deployment when the call failed. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| ~~`actual_model`~~ | *OptionalNullable[str]* | ➖ | ⚠️ **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible.

Deprecated: validation no longer compares the model the upstream reports, so this field is never returned. | | +| `name` | *str* | ✔️ | Check name. | auth_ok | +| `passed` | *bool* | ✔️ | N/A | | +| `reason` | [Optional[components.PrivateEndpointCheckReason]](../components/privateendpointcheckreason.mdx) | ➖ | Why the check failed. | no_byok_key | +| `upstream_message` | *OptionalNullable[str]* | ➖ | Error message returned by your deployment when the call failed. | | +| `upstream_status` | *Optional[int]* | ➖ | HTTP status returned by your deployment when the call failed. | | \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a33e8a44..275d6fb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "openrouter" -version = "1.3.124" +version = "1.3.125" 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 b01419c4..a4e54a0f 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.124" +__version__: str = "1.3.125" __openapi_doc_version__: str = "1.0.0" __gen_version__: str = "2.950.13" -__user_agent__: str = "speakeasy-sdk/python 1.3.124 2.950.13 1.0.0 openrouter" +__user_agent__: str = "speakeasy-sdk/python 1.3.125 2.950.13 1.0.0 openrouter" try: if __package__ is not None: diff --git a/src/openrouter/components/privateendpointcheck.py b/src/openrouter/components/privateendpointcheck.py index 485ab4af..49f3e5a1 100644 --- a/src/openrouter/components/privateendpointcheck.py +++ b/src/openrouter/components/privateendpointcheck.py @@ -9,9 +9,10 @@ UNSET, UNSET_SENTINEL, ) +import pydantic from pydantic import model_serializer from typing import Optional -from typing_extensions import NotRequired, TypedDict +from typing_extensions import Annotated, NotRequired, TypedDict class PrivateEndpointCheckTypedDict(TypedDict): @@ -19,7 +20,7 @@ class PrivateEndpointCheckTypedDict(TypedDict): r"""Check name.""" passed: bool actual_model: NotRequired[Nullable[str]] - r"""Model the upstream reported serving, when it differs from the request.""" + r"""Deprecated: validation no longer compares the model the upstream reports, so this field is never returned.""" reason: NotRequired[PrivateEndpointCheckReason] r"""Why the check failed.""" upstream_message: NotRequired[Nullable[str]] @@ -34,8 +35,13 @@ class PrivateEndpointCheck(BaseModel): passed: bool - actual_model: OptionalNullable[str] = UNSET - r"""Model the upstream reported serving, when it differs from the request.""" + actual_model: Annotated[ + OptionalNullable[str], + pydantic.Field( + deprecated="warning: ** DEPRECATED ** - This will be removed in a future release, please migrate away from it as soon as possible." + ), + ] = UNSET + r"""Deprecated: validation no longer compares the model the upstream reports, so this field is never returned.""" reason: Optional[PrivateEndpointCheckReason] = None r"""Why the check failed.""" diff --git a/uv.lock b/uv.lock index 7c142354..40348ef1 100644 --- a/uv.lock +++ b/uv.lock @@ -231,7 +231,7 @@ wheels = [ [[package]] name = "openrouter" -version = "1.3.124" +version = "1.3.125" source = { editable = "." } dependencies = [ { name = "httpcore" },