openai-please 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffc331fe72fcbe5a6feec2f0ed039c7aeb453039e40ae533a05f2ff794447ef5
4
- data.tar.gz: 55771e4ff93f8b209cda88778ac2eb6ed8118201c3c8d77d2ef61143f747097e
3
+ metadata.gz: 9d2e77c2b839915788f9db15c6f6a75b90d3c52c4a9033f3145aa687ff0d21a3
4
+ data.tar.gz: b021e9384596d305d472224ee726cd9a4f16c514cc378c051d079b1ac9c58555
5
5
  SHA512:
6
- metadata.gz: 3d40360b108300c1c6e862ffa1ef0ed1339cb5860eb074a0a241f5fd0f631fd802c0f9573ba254fced1a5dfdccc13c71b3cadf39e2aeb05ea51136cfba3e5040
7
- data.tar.gz: 0c9978a654d714ff870863bbe5ba0a745073528906999ff0ba6d3513444cb5c31dcf1b34247359e13c76a4bcd92823b2c609b2b11493ccc43277d42d4382a1f7
6
+ metadata.gz: 3f349c795f25116281574e882f2299104654d399a29dc7481d1066ca576d8f6bb2f754b25dd12d6d9725aa4edc677fac7bb827e10307a69caee0da03f471cee9
7
+ data.tar.gz: 97014f5dfc48adb96767c9b52996511d1cc2d1666256c0f8720181503b9aa9780c5c81ad34ae384c8e880ac9c853e3c9b25f795a0ccad78a6fab27a002f02e32
@@ -49,25 +49,25 @@ module Please
49
49
 
50
50
  {
51
51
  instruction: 'Download a random dog picture',
52
- command: 'python3 -c \'import urllib.request; import json; import subprocess; data = urllib.request.urlopen("https://dog.ceo/api/breeds/image/random").read(); url = json.loads(data)["message"]; subprocess.call(["curl", url, "-o", "dog.jpg"])\'',
52
+ command: 'printf \'import urllib.request\nimport json\nimport subprocess\ndata = urllib.request.urlopen("https://dog.ceo/api/breeds/image/random").read()\nurl = json.loads(data)["message"]\nsubprocess.call(["curl", url, "-o", "dog.jpg"])\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
53
53
  result: '',
54
54
  },
55
55
 
56
56
  {
57
57
  instruction: 'Read from stdin until EOF, and then output the length of the string',
58
- command: 'python3 -c \'import sys; print(len(sys.stdin.read().strip()))\'',
58
+ command: 'printf \'import sys\nprint(len(sys.stdin.read().strip()))\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
59
59
  result: '',
60
60
  },
61
61
 
62
62
  {
63
- instruction: 'Read a single line from stdin and pipe it to cowsay',
64
- command: 'python3 -c \'print(input())\' | cowsay',
63
+ instruction: 'Run the fortune command 5 times',
64
+ command: 'for i in $(seq 5); do fortune; done',
65
65
  result: '',
66
66
  },
67
67
 
68
68
  {
69
- instruction: 'Run the fortune command 5 times',
70
- command: 'for i in {1..5}; do fortune; done',
69
+ instruction: 'Repeadedly read a single line from the user, reverse it, and print it back',
70
+ command: 'printf \'while True:\n\tline = input()\n\tprint(line[::-1])\' > /tmp/program.py; python3 /tmp/program.py; rm /tmp/program.py',
71
71
  result: '',
72
72
  },
73
73
  ]
@@ -23,7 +23,7 @@ module Please
23
23
  def default_parameters
24
24
  {
25
25
  temperature: 0,
26
- max_tokens: 300,
26
+ max_tokens: 512,
27
27
  top_p: 1,
28
28
  frequency_penalty: 0,
29
29
  presence_penalty: 0,
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Please
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openai-please
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Anderson