openai_ruby 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fbcaf002cd9527eee42cef58128dadfcc4e2bb68ea1594f2897b6f512960cf04
4
- data.tar.gz: 2c53e131223a867ca02431988864f9a26e9127cb8c13f7dd7b00cac0938d5579
3
+ metadata.gz: 81e0258ab6bf88656d9b93a18c224102395e7554db4861bb48abe689b9feb35a
4
+ data.tar.gz: 34b12d1fdcc6504f8634448f31e6904a112c71aef3c74f6deebad44254e7694f
5
5
  SHA512:
6
- metadata.gz: 63d7d58dc8d47d73b35469e500fe0f10164291e4ca673c859c0af57a6c588f4147dd010d568c297cef5cff540655d6627607d2e85e7e0c4366e0961725755acc
7
- data.tar.gz: c2da02b0a4c211e8a4439b2c08b0b0f69694db28c6839baacc5aa2f33aa04611219eb38d7d363980efb726ea85cad33b5caa02a970a069c2f77189df4edf758b
6
+ metadata.gz: 5b17e84dc3fe67d9fa60cd7533535158fcc867989efd9edaee24b6f0b969ae8c744d86f67666652e5fce361f55edc4b27afa0872e76a6bdbf819be4a8105f3e0
7
+ data.tar.gz: 94e720225a951875150db51bb645a3af9e14b5c31ca5d792c87956beb41f60e536a920e4f223d73be6ffc214314342942571ec30873fb008b67fc6a053f0e3fd
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- openai_ruby (0.3.3)
4
+ openai_ruby (0.3.4)
5
5
  faraday (~> 2.7)
6
6
 
7
7
  GEM
@@ -0,0 +1,13 @@
1
+ module OpenAI
2
+ class Images
3
+ attr_reader :connection
4
+
5
+ def initialize(connection)
6
+ @connection = connection
7
+ end
8
+
9
+ def generate(params = {})
10
+ connection.post("/v1/images/generations", params.to_json)
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OpenAI
4
- VERSION = "0.3.4"
4
+ VERSION = "0.3.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Renny Ren
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-01 00:00:00.000000000 Z
11
+ date: 2023-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -42,6 +42,7 @@ files:
42
42
  - Rakefile
43
43
  - lib/openai_ruby.rb
44
44
  - lib/openai_ruby/client.rb
45
+ - lib/openai_ruby/images.rb
45
46
  - lib/openai_ruby/version.rb
46
47
  - sig/openai_ruby/ruby.rbs
47
48
  homepage: https://github.com/renny-ren/openai_ruby