gpt-cli 0.1.4 → 0.1.5
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/CHANGELOG.md +5 -1
- data/README.md +2 -2
- data/lib/gpt-cli/version.rb +1 -1
- data/lib/gpt-cli.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33ece0475b90d1a39ff89f1c9f889d843dbe17c45431054a47bcd368aa03f74d
|
|
4
|
+
data.tar.gz: 003306cca474d5b57a86ced368349efc6219b84dfb5db10e5f42acd15da29075
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca5aec69e41c2bfddd704c656948ed6f14b314315d77f5a33d595b0fee2148dee745cd346c6d7b646c67a3671f5460602e46577efdf61020fdaa6aaeb233c612
|
|
7
|
+
data.tar.gz: ae8cb560bc4f4e985f388217d51f9923421ce252d40eeaefc68c5453e945ce648a7708a67fcf5774373b7eb29a0d783d87086ed2a298fa7c3f8263cfe15934e7
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -7,9 +7,9 @@ Productivity stonks 📈📈📈
|
|
|
7
7
|
Consider 🌟 this repo if you find this tool useful 🔥
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
|
-
- Use the pipe to pass the output of commands to GPT or Dall-E.
|
|
10
|
+
- Use the pipe to pass the output of commands to GPT or Dall-E 2.
|
|
11
11
|
- Choose your GPT model, GPT4 supported if you have access.
|
|
12
|
-
- Dall-E support: generate images directly in your terminal.
|
|
12
|
+
- Dall-E 2 support: generate images directly in your terminal.
|
|
13
13
|
- Contexts prompts tailored for your needs: add/update predefined context prompts or write your own when running the command.
|
|
14
14
|
- Infinite conversation history: have chat sessions with GPT just like [chat.openai.com](https://chat.openai.com/) but in your terminal.
|
|
15
15
|
|
data/lib/gpt-cli/version.rb
CHANGED
data/lib/gpt-cli.rb
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
require_relative "gpt-cli/version"
|
|
4
4
|
|
|
5
|
-
require
|
|
5
|
+
require "digest/md5"
|
|
6
6
|
require "json"
|
|
7
7
|
require "quick_openai"
|
|
8
8
|
require "optparse"
|
|
9
9
|
|
|
10
10
|
class ChatGPT
|
|
11
11
|
attr_accessor :messages
|
|
12
|
-
MESSAGES_FILE = '
|
|
12
|
+
MESSAGES_FILE = File.join(Dir.home, 'gpt_cli_messages_history.json')
|
|
13
13
|
|
|
14
14
|
def initialize
|
|
15
15
|
@messages = load_messages
|