generate_image 1.0.0 → 1.0.2

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: 2de351fd26b27b162f1cadf99e8bebec19eab834a7326add766aa99494ef72d1
4
- data.tar.gz: 7fd43c333077f86d8fef116b80b6868ea7da18b1d22ba82b7c43c77a211ea14a
3
+ metadata.gz: b68744b05be00b7b8981dbd9e1dd485d8dec78bbeaadedb6f6135f29f60e4b67
4
+ data.tar.gz: f7433aaedf3b64fc54cd32ce2b42de89022317068b35cf81249e302b1ffc50f7
5
5
  SHA512:
6
- metadata.gz: 20050a7726574a61d88718d29b0f1fb3dde18968a07cd4191f0f4bfaef9bc41b294378da6464e8456008d1804a0960061457dac6baf1e83f32e4d2be3dcf0fb7
7
- data.tar.gz: 4ccd64ccd20b3393f471a0df141427e302a0b59d50e051739624ba7df16c81485845dc07d9cb8c8ea67a90a9890a830ee4e5961e35ba5848874bd2357af9fedf
6
+ metadata.gz: 0dc0fdabbfdb06f22fc794b7df09aa71c099268e5e8fd572f92dda99e5cd9c2d806d9106b977ae8983057c6984132e00fdbdc486fa4fc2dc6c2212750880c1b7
7
+ data.tar.gz: b6f11b9f69a873bcd3d749d5b893c521d9f0993d0bcf7110cec661311b19afeb2be35205eab0172072536f7a4ae8db990c117479562af048a2c11b2c92feb208
@@ -1,3 +1,3 @@
1
1
  module GenerateImage
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -1,6 +1,3 @@
1
- require 'net/http'
2
- require 'json'
3
-
4
1
  module GenerateImage
5
2
  class RequestFailed < StandardError; end
6
3
 
@@ -22,13 +19,13 @@ module GenerateImage
22
19
  model: options[:model] || IMAGE_MODEL_NAME,
23
20
  prompt: text,
24
21
  num_images: options[:num_images] || 1,
25
- size: options[:size] || '512x512',
22
+ size: options[:size] || '1024x1024',
26
23
  response_format: options[:response_format] || 'url',
27
24
  style: options[:style] || nil,
28
25
  scale: options[:scale] || 1,
29
26
  seed: options[:seed] || nil,
30
- quality: options[:quality] || 80,
31
- text_model: options[:text_model] || TEXT_MODEL_NAME,
27
+ quality: options[:quality] || 100,
28
+ text_model: options[:text_model] || 'text-davinci-002',
32
29
  text_prompt: options[:text_prompt] || nil,
33
30
  text_length: options[:text_length] || nil
34
31
  }.to_json
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generate_image
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - AMQOR Merouane
@@ -14,64 +14,65 @@ dependencies:
14
14
  name: net-http
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.3.2
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.3.2
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: sinatra
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 3.0.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 3.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: json
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 2.6.3
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 2.6.3
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: openai
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
69
- description: Unleash your imagination and create stunning images with the 'generate_image'
70
- gem. This Ruby gem provides a seamless interface for accessing the powerful DALL-E
71
- API and generates images based on the text you provide. Perfect for Ruby on Rails
72
- projects, but can also be used in other Ruby projects.
68
+ version: 0.3.0
69
+ description: The 'generate_image' gem provides a simple and easy-to-use interface
70
+ for generating images using the powerful DALL-E API from OpenAI. This Ruby gem can
71
+ be used in Ruby on Rails projects or any other Ruby projects to create stunning
72
+ images based on the text you provide. Unleash your imagination and generate images
73
+ for any use case, from social media posts to marketing materials and beyond.
73
74
  email:
74
- - marouane.amqor6@gmail.com
75
+ - marouane.amqor@gmail.com
75
76
  executables:
76
77
  - console
77
78
  - setup