quick_openai 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29998848a279d5254494c77b0381b039d2e9dc0171f4740953cbeab517a9e9f6
4
- data.tar.gz: 9d44c2630df9557fc3c26cfb9058ec4d4082c74d12df674187a7e4701fd9740a
3
+ metadata.gz: 20a679365b256c1f19ce2f5809fc033dcfe3e99e0113c630556d5c5f87ca7988
4
+ data.tar.gz: 7c197baa51a408238f1834cdd5c290bd3b39d918caf379d32ead233248bf2d99
5
5
  SHA512:
6
- metadata.gz: f05ad7ba4632fafb68cf8e2e156e18d5bd5af12e7e2fb4c96cc7e5430cce5ee46d7f34939e3503653fd9d25bfe8e125bbbfd6e93bea9d9d53e3eab16503f6186
7
- data.tar.gz: 7b40b2825d4e0b5e4563f8dbeb91aa44e44e6f1952197899a190625789fda06e5079e6cb49d0c09925619e987bc25833ecccf32b4091d7f5727458f30fe8b197
6
+ metadata.gz: 988a59c07722e607b52282074cc47fdd380033315afa9a66e14b3170c81ddd901946c87dc95c1a46e42781bbf0a25d05a7ca9c4688f100e23dbca103446e1c16
7
+ data.tar.gz: 7af2b69216ea5210c9e3043d037b7c25150354118cbb453f7e975b1890a113b6f9b81273e2e4daa6b294332883f6c537bc2dd720cfa7126726269d95e59fb3c7
data/Gemfile CHANGED
@@ -14,3 +14,5 @@ gem "rspec", "~> 3.0"
14
14
  gem "rubocop", "~> 1.21"
15
15
 
16
16
  gem "vcr", "~> 6"
17
+
18
+ gem "webmock", "~> 3"
data/Gemfile.lock CHANGED
@@ -1,66 +1,78 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- quick_openai (0.1.2)
4
+ quick_openai (0.1.3)
5
5
  down (~> 5)
6
6
  ruby-openai (~> 3)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- addressable (2.8.1)
11
+ addressable (2.8.6)
12
12
  public_suffix (>= 2.0.2, < 6.0)
13
13
  ast (2.4.2)
14
+ crack (0.4.5)
15
+ rexml
14
16
  diff-lcs (1.5.0)
15
17
  dotenv (2.8.1)
16
- down (5.4.0)
18
+ down (5.4.1)
17
19
  addressable (~> 2.8)
20
+ hashdiff (1.1.0)
18
21
  httparty (0.21.0)
19
22
  mini_mime (>= 1.0.0)
20
23
  multi_xml (>= 0.5.2)
21
- json (2.6.3)
22
- mini_mime (1.1.2)
24
+ json (2.7.1)
25
+ language_server-protocol (3.17.0.3)
26
+ mini_mime (1.1.5)
23
27
  multi_xml (0.6.0)
24
- parallel (1.22.1)
25
- parser (3.1.3.0)
28
+ parallel (1.24.0)
29
+ parser (3.3.0.3)
26
30
  ast (~> 2.4.1)
27
- public_suffix (5.0.1)
31
+ racc
32
+ public_suffix (5.0.4)
33
+ racc (1.7.3)
28
34
  rainbow (3.1.1)
29
- rake (13.0.6)
30
- regexp_parser (2.6.1)
31
- rexml (3.2.5)
35
+ rake (13.1.0)
36
+ regexp_parser (2.9.0)
37
+ rexml (3.2.6)
32
38
  rspec (3.12.0)
33
39
  rspec-core (~> 3.12.0)
34
40
  rspec-expectations (~> 3.12.0)
35
41
  rspec-mocks (~> 3.12.0)
36
- rspec-core (3.12.0)
42
+ rspec-core (3.12.2)
37
43
  rspec-support (~> 3.12.0)
38
- rspec-expectations (3.12.0)
44
+ rspec-expectations (3.12.3)
39
45
  diff-lcs (>= 1.2.0, < 2.0)
40
46
  rspec-support (~> 3.12.0)
41
- rspec-mocks (3.12.1)
47
+ rspec-mocks (3.12.6)
42
48
  diff-lcs (>= 1.2.0, < 2.0)
43
49
  rspec-support (~> 3.12.0)
44
- rspec-support (3.12.0)
45
- rubocop (1.40.0)
50
+ rspec-support (3.12.1)
51
+ rubocop (1.59.0)
46
52
  json (~> 2.3)
53
+ language_server-protocol (>= 3.17.0)
47
54
  parallel (~> 1.10)
48
- parser (>= 3.1.2.1)
55
+ parser (>= 3.2.2.4)
49
56
  rainbow (>= 2.2.2, < 4.0)
50
57
  regexp_parser (>= 1.8, < 3.0)
51
58
  rexml (>= 3.2.5, < 4.0)
52
- rubocop-ast (>= 1.23.0, < 2.0)
59
+ rubocop-ast (>= 1.30.0, < 2.0)
53
60
  ruby-progressbar (~> 1.7)
54
- unicode-display_width (>= 1.4.0, < 3.0)
55
- rubocop-ast (1.24.0)
56
- parser (>= 3.1.1.0)
57
- ruby-openai (3.0.3)
58
- httparty (>= 0.18.1, < 0.22.0)
59
- ruby-progressbar (1.11.0)
60
- unicode-display_width (2.3.0)
61
- vcr (6.1.0)
61
+ unicode-display_width (>= 2.4.0, < 3.0)
62
+ rubocop-ast (1.30.0)
63
+ parser (>= 3.2.1.0)
64
+ ruby-openai (3.7.0)
65
+ httparty (>= 0.18.1)
66
+ ruby-progressbar (1.13.0)
67
+ unicode-display_width (2.5.0)
68
+ vcr (6.2.0)
69
+ webmock (3.19.1)
70
+ addressable (>= 2.8.0)
71
+ crack (>= 0.3.2)
72
+ hashdiff (>= 0.4.0, < 2.0.0)
62
73
 
63
74
  PLATFORMS
75
+ x86_64-freebsd-13
64
76
  x86_64-linux
65
77
 
66
78
  DEPENDENCIES
@@ -70,6 +82,7 @@ DEPENDENCIES
70
82
  rspec (~> 3.0)
71
83
  rubocop (~> 1.21)
72
84
  vcr (~> 6)
85
+ webmock (~> 3)
73
86
 
74
87
  BUNDLED WITH
75
88
  2.3.12
@@ -4,7 +4,7 @@ module QuickOpenAI
4
4
  module Gpt3
5
5
  def self.gpt3(prompt, **options)
6
6
  parameters = {
7
- model: "text-davinci-003",
7
+ model: "gpt-3.5-turbo-instruct",
8
8
  max_tokens: 2048,
9
9
  prompt: prompt,
10
10
  **options
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module QuickOpenAI
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_openai
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - John DeSilva
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2024-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: down
@@ -59,7 +59,6 @@ files:
59
59
  - lib/quick_openai/extensions/string.rb
60
60
  - lib/quick_openai/gpt3.rb
61
61
  - lib/quick_openai/version.rb
62
- - quick_openai.gemspec
63
62
  - sig/quick_openai.rbs
64
63
  homepage: https://github.com/Aesthetikx/quick_openai
65
64
  licenses:
@@ -82,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
81
  - !ruby/object:Gem::Version
83
82
  version: '0'
84
83
  requirements: []
85
- rubygems_version: 3.3.7
84
+ rubygems_version: 3.4.10
86
85
  signing_key:
87
86
  specification_version: 4
88
87
  summary: Convenience extensions for using OpenAI with Ruby
data/quick_openai.gemspec DELETED
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "lib/quick_openai/version"
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = "quick_openai"
7
- spec.version = QuickOpenAI::VERSION
8
- spec.authors = ["John DeSilva"]
9
- spec.email = ["desilvjo@umich.edu"]
10
-
11
- spec.summary = "Convenience extensions for using OpenAI with Ruby"
12
- spec.description = "Provides monkey patches for quick usage of GPT3 and DALLE2"
13
- spec.homepage = "https://github.com/Aesthetikx/quick_openai"
14
- spec.license = "MIT"
15
- spec.required_ruby_version = ">= 2.7.0"
16
-
17
- spec.metadata["homepage_uri"] = spec.homepage
18
- spec.metadata["source_code_uri"] = "https://github.com/Aesthetikx/quick_openai"
19
- # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = Dir.chdir(__dir__) do
24
- `git ls-files -z`.split("\x0").reject do |f|
25
- (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci|github)|appveyor)})
26
- end
27
- end
28
- spec.bindir = "exe"
29
- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
- spec.require_paths = ["lib"]
31
-
32
- spec.add_dependency "down", "~> 5"
33
- spec.add_dependency "ruby-openai", "~> 3"
34
-
35
- # For more information and examples about making a new gem, check out our
36
- # guide at: https://bundler.io/guides/creating_gem.html
37
- end