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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 725ae19b8c7069cc0d12dab6471c6f7ca51f65a53dab234c42ce3cb5ab4a1b93
4
- data.tar.gz: 4106c6800a87d158ea8e3c6dd3eda5fc262d88e5dee8defa0a362d3444c074bb
3
+ metadata.gz: b251c3cc9b5a89008e6b7f2bc24f4eda93183ba3a3b4c381722abdf644baa11d
4
+ data.tar.gz: 40eb0926a80011f9f9214a9eda067d5b37eec2bf6aa0ecad05e02d8d268391f6
5
5
  SHA512:
6
- metadata.gz: a3d1d1b55a88500655847739e384a4d121af04a622497feeac5760238e10258402c0ba53334c0d7e6d1e9db78bd8e5ccc0d8d0d1002e77ab2974d8b164a6b07d
7
- data.tar.gz: d02de0eab56316d866b14ed8b7c7b1809078dadb8069ff43305fd0b4e502d427c851948bc23a8c3d63c0484195d50a2fd658e7d23449b8c008c79482ab7f2493
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.2.11
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.4.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.4.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