runapi-gpt-image 0.2.1 → 0.2.3
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/gpt_image/client.rb +2 -2
- data/lib/runapi/gpt_image/types.rb +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 06f0d0a85b6fc97d5b0c896f6f58e5ed669292003546e81005c3a052572e6d70
|
|
4
|
+
data.tar.gz: 4ed9190bc5ee799a3be8194ff191c7d4331b17f0282e62dada30750436ce9135
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05115bbace114b004745a1937420281db0996765803e878660656edc6bac9feed8b11d47754aa2aa10ec711bea1bfb825597cabc5b4cb8c794f419490808d05e
|
|
7
|
+
data.tar.gz: c6d80eaf49c615d4172e8b277eb1c68bbd694f1898ef816bdc28e40e5c6fcd1d5bfacaf01c04d363e8a512baf94fdfdaafc848242ca90b9eabdc0dc1c83ca40c
|
|
@@ -9,12 +9,12 @@ module RunApi
|
|
|
9
9
|
#
|
|
10
10
|
# # Text-to-image
|
|
11
11
|
# result = client.text_to_image.run(
|
|
12
|
-
# model: "gpt-image
|
|
12
|
+
# model: "gpt-image-1.5-text-to-image", prompt: "A futuristic cityscape"
|
|
13
13
|
# )
|
|
14
14
|
#
|
|
15
15
|
# # Image-to-image
|
|
16
16
|
# edited = client.edit_image.run(
|
|
17
|
-
# model: "gpt-image
|
|
17
|
+
# model: "gpt-image-1.5-image-to-image",
|
|
18
18
|
# prompt: "Transform into oil painting",
|
|
19
19
|
# input_urls: ["https://example.com/photo.jpg"]
|
|
20
20
|
# )
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
module RunApi
|
|
4
4
|
module GptImage
|
|
5
5
|
module Types
|
|
6
|
-
GENERATION_MODELS = %w[gpt-image
|
|
7
|
-
EDIT_MODELS = %w[gpt-image
|
|
6
|
+
GENERATION_MODELS = %w[gpt-image-1.5-text-to-image].freeze
|
|
7
|
+
EDIT_MODELS = %w[gpt-image-1.5-image-to-image].freeze
|
|
8
8
|
MODELS = (GENERATION_MODELS + EDIT_MODELS).freeze
|
|
9
9
|
|
|
10
10
|
ASPECT_RATIOS = %w[1:1 2:3 3:2].freeze
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: runapi-gpt-image
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
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.3
|
|
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.3
|
|
26
26
|
description: RunAPI GPT Image SDK for JavaScript, Ruby, and Go
|
|
27
27
|
email:
|
|
28
28
|
- contact@runapi.ai
|
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
60
|
version: '0'
|
|
61
61
|
requirements: []
|
|
62
|
-
rubygems_version: 4.0.
|
|
62
|
+
rubygems_version: 4.0.10
|
|
63
63
|
specification_version: 4
|
|
64
64
|
summary: GPT Image API SDKs for JavaScript, Ruby, and Go on RunAPI.
|
|
65
65
|
test_files: []
|