runapi-hailuo 0.2.11 → 0.3.0
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 +4 -4
- data/lib/runapi/hailuo/contract_gen.rb +18 -1
- data/lib/runapi/hailuo/resources/image_to_video.rb +0 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b251c3cc9b5a89008e6b7f2bc24f4eda93183ba3a3b4c381722abdf644baa11d
|
|
4
|
+
data.tar.gz: 40eb0926a80011f9f9214a9eda067d5b37eec2bf6aa0ecad05e02d8d268391f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8e1e8af820981d850d85a854d4cf176560d127ff6a2f8b1eae71d16ed50727c28bdfd08374cc47dfe82f2d81a46a1f758e7e72dcda605f5dd7074bd61d35444
|
|
7
|
+
data.tar.gz: ede40ef0d00ab1719a2bdcc42e078b0357b68107a559870abc5ab154ae647fc4a9c4e6ce50019f6d0dbf6d36084605f0ed0065c8e6b81cf448edc7ffd49222e6
|
|
@@ -50,7 +50,24 @@ module RunApi
|
|
|
50
50
|
"enum" => ["768p", "1080p"]
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"rules" => [{
|
|
55
|
+
"enum" => {
|
|
56
|
+
"output_resolution" => ["768p"]
|
|
57
|
+
},
|
|
58
|
+
"when" => {
|
|
59
|
+
"model" => "hailuo-2.3-image-to-video-pro",
|
|
60
|
+
"duration_seconds" => 10
|
|
61
|
+
}
|
|
62
|
+
}, {
|
|
63
|
+
"enum" => {
|
|
64
|
+
"output_resolution" => ["768p"]
|
|
65
|
+
},
|
|
66
|
+
"when" => {
|
|
67
|
+
"model" => "hailuo-2.3-image-to-video-standard",
|
|
68
|
+
"duration_seconds" => 10
|
|
69
|
+
}
|
|
70
|
+
}]
|
|
54
71
|
},
|
|
55
72
|
"text-to-video" => {
|
|
56
73
|
"models" => ["hailuo-02-text-to-video-pro", "hailuo-02-text-to-video-standard"],
|
|
@@ -62,9 +62,6 @@ module RunApi
|
|
|
62
62
|
when "hailuo-2.3-image-to-video-pro", "hailuo-2.3-image-to-video-standard"
|
|
63
63
|
raise Core::ValidationError, "last_frame_image_url is not supported for #{model}" if param(params, :last_frame_image_url)
|
|
64
64
|
raise Core::ValidationError, "prompt_optimizer is not supported for #{model}" if param(params, :prompt_optimizer)
|
|
65
|
-
if duration_seconds == 10 && output_resolution.to_s == "1080p"
|
|
66
|
-
raise Core::ValidationError, "1080p does not support 10-second duration"
|
|
67
|
-
end
|
|
68
65
|
end
|
|
69
66
|
end
|
|
70
67
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-hailuo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
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.
|
|
18
|
+
version: 0.5.2
|
|
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.
|
|
25
|
+
version: 0.5.2
|
|
26
26
|
description: The Hailuo Ruby SDK is the language-specific package for Hailuo on RunAPI.
|
|
27
27
|
Use this package for video generation, animation, and video editing workflows when
|
|
28
28
|
your application needs request bodies, task status lookup, and consistent RunAPI
|