runapi-imagen-4 0.2.8 → 0.2.10
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: 2b520fd1454dcfd8afe091c9e2b2ba397baf564015660892d6b10564cadac8e9
|
|
4
|
+
data.tar.gz: 8a774175edc67f550c07a190c7ea300c8f60e0d5ed0ebe0a0797f9e388cdac0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 316ee70bb7b4e53352524ef8fdce3dcb20a0b1501a0e8ae8bbe34a9577e0ee8439c91d8cbc3bd065d7d11d5b2b76d05f232500b35611aec2b8f53480dd3d6793
|
|
7
|
+
data.tar.gz: c730f85447da42722b352f5f96372b05c95552a1abd8b08cf92b16122b61fc2e10b3ea721c821934498e2ff3b01997024c7c397524a762e5686fb3aac154269e
|
|
@@ -11,7 +11,6 @@ module RunApi
|
|
|
11
11
|
ENDPOINT = "/api/v1/imagen_4/remix_image"
|
|
12
12
|
RESPONSE_CLASS = Types::RemixImageResponse
|
|
13
13
|
COMPLETED_RESPONSE_CLASS = Types::CompletedRemixImageResponse
|
|
14
|
-
SOURCE_IMAGE_URLS_MAX = 8
|
|
15
14
|
|
|
16
15
|
def initialize(http)
|
|
17
16
|
@http = http
|
|
@@ -38,11 +37,6 @@ module RunApi
|
|
|
38
37
|
validate_contract!(CONTRACT["remix-image"], params)
|
|
39
38
|
|
|
40
39
|
raise Core::ValidationError, "prompt is required" unless param(params, :prompt)
|
|
41
|
-
|
|
42
|
-
urls = param(params, :source_image_urls)
|
|
43
|
-
return unless urls.respond_to?(:size) && urls.size > SOURCE_IMAGE_URLS_MAX
|
|
44
|
-
|
|
45
|
-
raise Core::ValidationError, "source_image_urls supports up to #{SOURCE_IMAGE_URLS_MAX} images"
|
|
46
40
|
end
|
|
47
41
|
end
|
|
48
42
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-imagen-4
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.10
|
|
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.3.0
|
|
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.3.0
|
|
26
26
|
description: The Imagen 4 Ruby SDK is the language-specific package for Imagen 4 on
|
|
27
27
|
RunAPI. Use this package for image generation, image editing, and creative production
|
|
28
28
|
workflows when your application needs request bodies, task status lookup, and consistent
|
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
requirements: []
|
|
70
|
-
rubygems_version: 4.0.
|
|
70
|
+
rubygems_version: 4.0.17
|
|
71
71
|
specification_version: 4
|
|
72
72
|
summary: Imagen 4 API Ruby SDK for RunAPI
|
|
73
73
|
test_files: []
|