runapi-seedance 0.2.1 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 689fa6085316cf89495e92c1bee496f46600830b843bc3acb2ddc94d17c22689
|
|
4
|
+
data.tar.gz: ff960a6b298b19d9b0a2b8bbda0f92f39601d01be419232dad1986ee61573555
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3dfdde20cbf6972803d6d2306ca7d9521d48a4d62ecf89749f2e9084d01f9dbd0f67b69836f0d1b5f45b9f5672d4e41f90380fee7c81602e94bcdca9f968df7f
|
|
7
|
+
data.tar.gz: 0ab70a5d8eaf526669481af111c1262845e776a0214d095fcdc5fb4f73f3b75e001b655ff9ad59cf0be925b8e377d78e37e1edf15896f2f3d2cb16dd32094782
|
|
@@ -7,7 +7,7 @@ module RunApi
|
|
|
7
7
|
# @example
|
|
8
8
|
# client = RunApi::Seedance::Client.new(api_key: "your-api-key")
|
|
9
9
|
# result = client.text_to_video.run(
|
|
10
|
-
# model: "seedance-2", prompt: "A cat walking through a garden"
|
|
10
|
+
# model: "seedance-2.0", prompt: "A cat walking through a garden"
|
|
11
11
|
# )
|
|
12
12
|
class Client
|
|
13
13
|
# @return [Resources::TextToVideo] Video generation operations.
|
|
@@ -136,14 +136,14 @@ module RunApi
|
|
|
136
136
|
|
|
137
137
|
def validate_2!(params)
|
|
138
138
|
validate_optional!(params, :aspect_ratio, Types::ASPECT_RATIOS_2)
|
|
139
|
-
resolutions = (param(params, :model) == "seedance-2") ? Types::RESOLUTIONS_SEEDANCE_2 : Types::RESOLUTIONS_SEEDANCE_2_FAST
|
|
139
|
+
resolutions = (param(params, :model) == "seedance-2.0") ? Types::RESOLUTIONS_SEEDANCE_2 : Types::RESOLUTIONS_SEEDANCE_2_FAST
|
|
140
140
|
validate_optional!(params, :resolution, resolutions)
|
|
141
141
|
|
|
142
142
|
duration = param(params, :duration)
|
|
143
143
|
if duration
|
|
144
144
|
dur_int = duration.to_i
|
|
145
145
|
unless Types::DURATION_2_RANGE.cover?(dur_int)
|
|
146
|
-
raise Core::ValidationError, "Invalid duration for seedance-2: #{duration}. Must be an integer between 4 and 15"
|
|
146
|
+
raise Core::ValidationError, "Invalid duration for seedance-2.0: #{duration}. Must be an integer between 4 and 15"
|
|
147
147
|
end
|
|
148
148
|
end
|
|
149
149
|
|
|
@@ -4,7 +4,7 @@ module RunApi
|
|
|
4
4
|
module Seedance
|
|
5
5
|
module Types
|
|
6
6
|
V1_MODELS = %w[seedance-v1-lite seedance-v1-pro seedance-v1-pro-fast].freeze
|
|
7
|
-
MODELS = (%w[seedance-1.5-pro seedance-2 seedance-2-fast] + V1_MODELS).freeze
|
|
7
|
+
MODELS = (%w[seedance-1.5-pro seedance-2.0 seedance-2.0-fast] + V1_MODELS).freeze
|
|
8
8
|
|
|
9
9
|
ASPECT_RATIOS_1_5 = %w[1:1 4:3 3:4 16:9 9:16 21:9].freeze
|
|
10
10
|
ASPECT_RATIOS_2 = [ *ASPECT_RATIOS_1_5, "auto" ].freeze
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-seedance
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- RunAPI
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version:
|
|
18
|
+
version: 0.2.4
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version:
|
|
25
|
+
version: 0.2.4
|
|
26
26
|
description: RunAPI Seedance SDK for JavaScript, Ruby, and Go
|
|
27
27
|
email:
|
|
28
28
|
- contact@runapi.ai
|
|
@@ -41,7 +41,7 @@ licenses:
|
|
|
41
41
|
- Apache-2.0
|
|
42
42
|
metadata:
|
|
43
43
|
homepage_uri: https://runapi.ai/models/seedance
|
|
44
|
-
documentation_uri: https://runapi
|
|
44
|
+
documentation_uri: https://github.com/runapi-ai/seedance-sdk/blob/main/README.md
|
|
45
45
|
source_code_uri: https://github.com/runapi-ai/seedance-sdk
|
|
46
46
|
changelog_uri: https://github.com/runapi-ai/seedance-sdk/blob/main/CHANGELOG.md
|
|
47
47
|
rdoc_options: []
|
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
59
|
version: '0'
|
|
60
60
|
requirements: []
|
|
61
|
-
rubygems_version: 4.0.
|
|
61
|
+
rubygems_version: 4.0.10
|
|
62
62
|
specification_version: 4
|
|
63
63
|
summary: Seedance API SDKs for JavaScript, Ruby, and Go on RunAPI.
|
|
64
64
|
test_files: []
|