openai-term 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/openai +2 -7
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ceff9ceafa5d50d99036675fc0d85415da18a56e80bb0d6c0b408d4c6ca5325
4
- data.tar.gz: d3b401c41cbb07d81d00877e4425c69c4630c5ccecd3f82be4e1082cb50ee408
3
+ metadata.gz: 56441d49f93ea1425b4285c4c18e5f6e293c79f49f19ffa6120906a53b5d07f1
4
+ data.tar.gz: 408cfec628544d09ace443aa5e67e998430d8e7acefe060efcb30e8a25e470df
5
5
  SHA512:
6
- metadata.gz: 2c2796bf28a6de76dc9bde4db90772a1a360fa68c86c64b46c09fbe398177457574db59b4b0641fbee2ae9298734cf6d97e0ed8cb42c0a79eac84a1d452915ae
7
- data.tar.gz: 3c95325c3e3d4103fb2bcfe2b4390cc491e4b603c7398059a5eacca5eb8e8ea243cbd56cb2644c7a432e2dda2e0a5d6de9c237d7ff674c2652263a2cbeab8343
6
+ metadata.gz: 015c9d87cc89c8f3c913ac69349fe88407bad49e64f32e16fa9b3d39ec001ca9e3dfbbabecb69a6ca7691e63295064f13a5cca8116f7c3ef57f7c1f2b51af655
7
+ data.tar.gz: 6bec4745951211d8d623a6c43d57b146048b9c700780e08c7857fe38ab050a73f1b6660a012d0408a62f1c1dd823b041dada9473e9838939a4de87d47594069d
data/bin/openai CHANGED
@@ -13,13 +13,8 @@ require "ruby/openai"
13
13
 
14
14
  def model
15
15
  c = %w(text-davinci-003 code-cushman-001 text-curie-001 text-ada-001)
16
- m = @prompt.select("What AI model do you want to use?") do |menu|
17
- menu.choice c[0], 0
18
- menu.choice c[1], 1
19
- menu.choice c[2], 2
20
- menu.choice c[3], 3
21
- end
22
- return c[m]
16
+ m = @prompt.select("What AI model do you want to use? (see https://beta.openai.com/docs/models/codex for details)", c, cycle: true)
17
+ return m
23
18
  end
24
19
 
25
20
  # HANDLE COMMAND LINE OPTIONS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai-term
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -41,8 +41,8 @@ dependencies:
41
41
  description: 'This is a pretty straight forward interface to OpenAI with the option
42
42
  to select the AI model and the maximum token length (number of maximum words in
43
43
  the AI''s response). You will use the -t option to supply the query to OpenAI or
44
- the -f option to read the query from a text file instead. New in 0.1.3: Rescue error
45
- on OpenAI connection.'
44
+ the -f option to read the query from a text file instead. New in 0.1.4: Better menu
45
+ for choosing AI model (-m option).'
46
46
  email: g@isene.com
47
47
  executables:
48
48
  - openai