diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 1269f90..b20ed36 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "4.6.0" + ".": "4.6.1" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 71483b0..757c5d2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 14 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-b96a5445f210ea11234f0c3c5064a8cf184389c7f52126dcdc9cb0a5441193fc.yml -openapi_spec_hash: 6ed349171fbd6f146f345d40874fe007 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runwayml%2Frunwayml-b3276a8508268090b14e297f5cb18448da7a763653c6d38c23f0eea0984d8008.yml +openapi_spec_hash: 95ae975f17217c8d144c4ba80846beca config_hash: c6562115ceb43e1cbae4b54e1618676e diff --git a/CHANGELOG.md b/CHANGELOG.md index c5a119f..c88931d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 4.6.1 (2026-02-13) + +Full Changelog: [v4.6.0...v4.6.1](https://github.com/runwayml/sdk-python/compare/v4.6.0...v4.6.1) + +### Bug Fixes + +* **api:** Remove invalid 4.5 i2v ratio ([f2fa3d1](https://github.com/runwayml/sdk-python/commit/f2fa3d1703fedf53aff177b2650fd96cf84116ce)) + + +### Chores + +* format all `api.md` files ([83ca516](https://github.com/runwayml/sdk-python/commit/83ca516ce15c5d307eebadf0633e203b4a84b395)) +* **internal:** fix lint error on Python 3.14 ([73b877b](https://github.com/runwayml/sdk-python/commit/73b877b4d6a4b46161cb10f3beb863ac53f2eba8)) + ## 4.6.0 (2026-02-11) Full Changelog: [v4.5.0...v4.6.0](https://github.com/runwayml/sdk-python/compare/v4.5.0...v4.6.0) diff --git a/pyproject.toml b/pyproject.toml index f356f33..87fce3d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "runwayml" -version = "4.6.0" +version = "4.6.1" description = "The official Python library for the runwayml API" dynamic = ["readme"] license = "Apache-2.0" @@ -69,7 +69,7 @@ format = { chain = [ # run formatting again to fix any inconsistencies when imports are stripped "format:ruff", ]} -"format:docs" = "python scripts/utils/ruffen-docs.py README.md api.md" +"format:docs" = "bash -c 'python scripts/utils/ruffen-docs.py README.md $(find . -type f -name api.md)'" "format:ruff" = "ruff format" "lint" = { chain = [ diff --git a/src/runwayml/_utils/_compat.py b/src/runwayml/_utils/_compat.py index dd70323..2c70b29 100644 --- a/src/runwayml/_utils/_compat.py +++ b/src/runwayml/_utils/_compat.py @@ -26,7 +26,7 @@ def is_union(tp: Optional[Type[Any]]) -> bool: else: import types - return tp is Union or tp is types.UnionType + return tp is Union or tp is types.UnionType # type: ignore[comparison-overlap] def is_typeddict(tp: Type[Any]) -> bool: diff --git a/src/runwayml/_version.py b/src/runwayml/_version.py index bc34164..846a7a3 100644 --- a/src/runwayml/_version.py +++ b/src/runwayml/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "runwayml" -__version__ = "4.6.0" # x-release-please-version +__version__ = "4.6.1" # x-release-please-version diff --git a/src/runwayml/resources/image_to_video.py b/src/runwayml/resources/image_to_video.py index 970085e..1f032ea 100644 --- a/src/runwayml/resources/image_to_video.py +++ b/src/runwayml/resources/image_to_video.py @@ -58,7 +58,7 @@ def create( model: Literal["gen4.5"], prompt_image: Union[str, Iterable[image_to_video_create_params.Gen4_5PromptImagePromptImage]], prompt_text: str, - ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672", "672:1584"], + ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672"], content_moderation: image_to_video_create_params.Gen4_5ContentModeration | Omit = omit, seed: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -342,7 +342,7 @@ def create( | Union[str, Iterable[image_to_video_create_params.Veo3_1FastPromptImagePromptImage]] | Union[str, Iterable[image_to_video_create_params.Veo3PromptImagePromptImage]], prompt_text: str | Omit = omit, - ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672", "672:1584"] + ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672"] | Literal["1280:720", "720:1280", "1104:832", "832:1104", "960:960", "1584:672"] | Literal["1280:720", "720:1280", "1080:1920", "1920:1080"] | Literal["768:1280", "1280:768"] @@ -410,7 +410,7 @@ async def create( model: Literal["gen4.5"], prompt_image: Union[str, Iterable[image_to_video_create_params.Gen4_5PromptImagePromptImage]], prompt_text: str, - ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672", "672:1584"], + ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672"], content_moderation: image_to_video_create_params.Gen4_5ContentModeration | Omit = omit, seed: int | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -694,7 +694,7 @@ async def create( | Union[str, Iterable[image_to_video_create_params.Veo3_1FastPromptImagePromptImage]] | Union[str, Iterable[image_to_video_create_params.Veo3PromptImagePromptImage]], prompt_text: str | Omit = omit, - ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672", "672:1584"] + ratio: Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672"] | Literal["1280:720", "720:1280", "1104:832", "832:1104", "960:960", "1584:672"] | Literal["1280:720", "720:1280", "1080:1920", "1920:1080"] | Literal["768:1280", "1280:768"] diff --git a/src/runwayml/types/image_to_video_create_params.py b/src/runwayml/types/image_to_video_create_params.py index b0aae0a..d64c411 100644 --- a/src/runwayml/types/image_to_video_create_params.py +++ b/src/runwayml/types/image_to_video_create_params.py @@ -47,7 +47,7 @@ class Gen4_5(TypedDict, total=False): This should describe in detail what should appear in the output. """ - ratio: Required[Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672", "672:1584"]] + ratio: Required[Literal["1280:720", "720:1280", "1104:832", "960:960", "832:1104", "1584:672"]] """The resolution of the output video.""" content_moderation: Annotated[Gen4_5ContentModeration, PropertyInfo(alias="contentModeration")]