openai_pipe 0.1.1 → 0.1.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 +4 -4
- data/Gemfile.lock +18 -22
- data/README.md +1 -1
- data/lib/openai_pipe/version.rb +1 -1
- data/openai_pipe.gemspec +36 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d6786df03695ce9c0efd4f58d439d1a30ae6208fa465f22e7f4138d4cb51dd2
|
|
4
|
+
data.tar.gz: 1d6d7a97139657aca7e6c096d26121319bee36d463856aa64a86b336e5066909
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0bade1b59068e66480e3ae984bf97f4ed0bffc402635cb4d96fd8148e32c6f975ce60ebed394e994c657ad60c26f18a9c98c968183015aa6a95d5fc9ffb08ac6
|
|
7
|
+
data.tar.gz: 631dbc3ebbfb4394180380dc2febd25b22f4dc8d0189f5347142ca4e9317b96f48b538680c05b34560be117c8462ea39e12ee6da17cb5562fe55167296f7d973
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
openai_pipe (0.1.
|
|
4
|
+
openai_pipe (0.1.2)
|
|
5
5
|
quick_openai (~> 0.1)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -11,24 +11,21 @@ GEM
|
|
|
11
11
|
public_suffix (>= 2.0.2, < 6.0)
|
|
12
12
|
ast (2.4.2)
|
|
13
13
|
diff-lcs (1.5.0)
|
|
14
|
-
|
|
15
|
-
down (5.3.1)
|
|
14
|
+
down (5.4.0)
|
|
16
15
|
addressable (~> 2.8)
|
|
17
|
-
httparty (0.
|
|
18
|
-
|
|
16
|
+
httparty (0.21.0)
|
|
17
|
+
mini_mime (>= 1.0.0)
|
|
19
18
|
multi_xml (>= 0.5.2)
|
|
20
19
|
json (2.6.3)
|
|
21
|
-
|
|
22
|
-
mime-types-data (~> 3.2015)
|
|
23
|
-
mime-types-data (3.2022.0105)
|
|
20
|
+
mini_mime (1.1.2)
|
|
24
21
|
multi_xml (0.6.0)
|
|
25
22
|
parallel (1.22.1)
|
|
26
|
-
parser (3.
|
|
23
|
+
parser (3.2.0.0)
|
|
27
24
|
ast (~> 2.4.1)
|
|
28
25
|
public_suffix (5.0.1)
|
|
29
|
-
quick_openai (0.1.
|
|
26
|
+
quick_openai (0.1.2)
|
|
30
27
|
down (~> 5)
|
|
31
|
-
ruby-openai (~>
|
|
28
|
+
ruby-openai (~> 3)
|
|
32
29
|
rainbow (3.1.1)
|
|
33
30
|
rake (13.0.6)
|
|
34
31
|
regexp_parser (2.6.1)
|
|
@@ -39,30 +36,29 @@ GEM
|
|
|
39
36
|
rspec-mocks (~> 3.12.0)
|
|
40
37
|
rspec-core (3.12.0)
|
|
41
38
|
rspec-support (~> 3.12.0)
|
|
42
|
-
rspec-expectations (3.12.
|
|
39
|
+
rspec-expectations (3.12.2)
|
|
43
40
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
44
41
|
rspec-support (~> 3.12.0)
|
|
45
|
-
rspec-mocks (3.12.
|
|
42
|
+
rspec-mocks (3.12.3)
|
|
46
43
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
44
|
rspec-support (~> 3.12.0)
|
|
48
45
|
rspec-support (3.12.0)
|
|
49
|
-
rubocop (1.
|
|
46
|
+
rubocop (1.43.0)
|
|
50
47
|
json (~> 2.3)
|
|
51
48
|
parallel (~> 1.10)
|
|
52
|
-
parser (>= 3.
|
|
49
|
+
parser (>= 3.2.0.0)
|
|
53
50
|
rainbow (>= 2.2.2, < 4.0)
|
|
54
51
|
regexp_parser (>= 1.8, < 3.0)
|
|
55
52
|
rexml (>= 3.2.5, < 4.0)
|
|
56
|
-
rubocop-ast (>= 1.
|
|
53
|
+
rubocop-ast (>= 1.24.1, < 2.0)
|
|
57
54
|
ruby-progressbar (~> 1.7)
|
|
58
|
-
unicode-display_width (>=
|
|
59
|
-
rubocop-ast (1.24.
|
|
55
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
|
56
|
+
rubocop-ast (1.24.1)
|
|
60
57
|
parser (>= 3.1.1.0)
|
|
61
|
-
ruby-openai (
|
|
62
|
-
|
|
63
|
-
httparty (>= 0.18.1, < 0.21.0)
|
|
58
|
+
ruby-openai (3.0.3)
|
|
59
|
+
httparty (>= 0.18.1, < 0.22.0)
|
|
64
60
|
ruby-progressbar (1.11.0)
|
|
65
|
-
unicode-display_width (2.
|
|
61
|
+
unicode-display_width (2.4.2)
|
|
66
62
|
|
|
67
63
|
PLATFORMS
|
|
68
64
|
x86_64-linux
|
data/README.md
CHANGED
|
@@ -152,7 +152,7 @@ Install the gem by executing:
|
|
|
152
152
|
|
|
153
153
|
## Setup
|
|
154
154
|
|
|
155
|
-
This library uses [quick_openai](https://github.com/Aesthetikx/quick_openai
|
|
155
|
+
This library uses [quick_openai](https://github.com/Aesthetikx/quick_openai) which itself uses [ruby-openai](https://github.com/alexrudall/ruby-openai), so you may want to familiarise yourself with those projects first.
|
|
156
156
|
|
|
157
157
|
This library uses OpenAI GPT3 to generate responses, so you will need to have your access token available in ENV. In .bashrc or equivalent,
|
|
158
158
|
```bash
|
data/lib/openai_pipe/version.rb
CHANGED
data/openai_pipe.gemspec
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/openai_pipe/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "openai_pipe"
|
|
7
|
+
spec.version = OpenAIPipe::VERSION
|
|
8
|
+
spec.authors = ["John DeSilva"]
|
|
9
|
+
spec.email = ["desilvjo@umich.edu"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "A UNIX-ey interface to OpenAI"
|
|
12
|
+
spec.description = "Provides pipe and redirect functionality to quick_openai"
|
|
13
|
+
spec.homepage = "https://www.github.com/Aesthetikx/openai_pipe"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
spec.required_ruby_version = ">= 2.6.0"
|
|
16
|
+
|
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["source_code_uri"] = "https://www.github.com/Aesthetikx/openai_pipe"
|
|
19
|
+
spec.metadata["changelog_uri"] = "https://www.github.com/Aesthetikx/openai_pipe/blob/master/CHANGELOG.md"
|
|
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)|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 "quick_openai", "~> 0.1"
|
|
33
|
+
|
|
34
|
+
# For more information and examples about making a new gem, check out our
|
|
35
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
36
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: openai_pipe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John DeSilva
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-01-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: quick_openai
|
|
@@ -43,6 +43,7 @@ files:
|
|
|
43
43
|
- exe/openai_pipe
|
|
44
44
|
- lib/openai_pipe.rb
|
|
45
45
|
- lib/openai_pipe/version.rb
|
|
46
|
+
- openai_pipe.gemspec
|
|
46
47
|
- sig/openai_pipe.rbs
|
|
47
48
|
homepage: https://www.github.com/Aesthetikx/openai_pipe
|
|
48
49
|
licenses:
|