runapi-seedance 0.2.8 → 0.2.9
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: 48c76b0bc910fbd88bc58af4cf309a7d7913182a280a0a3828161a10980b615b
|
|
4
|
+
data.tar.gz: 4a5a0851fc0b6b0b44644b7ef4cdbb4905473b2ae7eea5e6bbbb7fda148bf997
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 37da2c484e0a18208e46d6c21ffd5c78703d08da453adbb0b0db0546328b72bc4d8f96fd188ea7cc32060a216eabd32f5fe9b5fb727be668e9adead865cc1b5d
|
|
7
|
+
data.tar.gz: 7dfb1924534a6c634961ff24507f2354fb171c9dd7839fbc5e53dc770b654bc8d5d92cf1ed128205db698bfc584ef46d0ce69fa8fc26346f240e44bfaa2336cf
|
|
@@ -108,6 +108,7 @@ module RunApi
|
|
|
108
108
|
reject_unsupported!(params, unsupported, param(params, :model))
|
|
109
109
|
|
|
110
110
|
validate_mode_conflicts!(params)
|
|
111
|
+
validate_seedance_2_4k_mode!(params)
|
|
111
112
|
end
|
|
112
113
|
|
|
113
114
|
def validate_mode_conflicts!(params)
|
|
@@ -119,6 +120,17 @@ module RunApi
|
|
|
119
120
|
end
|
|
120
121
|
end
|
|
121
122
|
|
|
123
|
+
def validate_seedance_2_4k_mode!(params)
|
|
124
|
+
return unless param(params, :model) == "seedance-2.0"
|
|
125
|
+
return unless param(params, :output_resolution) == "4k"
|
|
126
|
+
|
|
127
|
+
unsupported = Types::FRAME_FIELDS + Types::REFERENCE_FIELDS
|
|
128
|
+
field = unsupported.find { |candidate| field_present?(params, candidate) }
|
|
129
|
+
return unless field
|
|
130
|
+
|
|
131
|
+
raise Core::ValidationError, "#{field} is not allowed when model is seedance-2.0 and output_resolution is 4k"
|
|
132
|
+
end
|
|
133
|
+
|
|
122
134
|
def reject_unsupported!(params, fields, model)
|
|
123
135
|
fields.each do |field|
|
|
124
136
|
if field_present?(params, field)
|
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.9
|
|
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: 0.2.
|
|
18
|
+
version: 0.2.10
|
|
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: 0.2.
|
|
25
|
+
version: 0.2.10
|
|
26
26
|
description: The Seedance Ruby SDK is the language-specific package for Seedance on
|
|
27
27
|
RunAPI. Use this package for video generation, animation, and video editing workflows
|
|
28
28
|
when your application needs request bodies, task status lookup, and consistent RunAPI
|