ruby-chatgpt 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/Gemfile.lock +1 -1
- data/README.md +26 -11
- data/lib/ruby/chatgpt/version.rb +1 -1
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cebb900d9cb94e14b4d1eed53454509b44e43447aa194825aab559a97523da5c
|
4
|
+
data.tar.gz: 480a699c71ae43d1afe7170c50dbfb088184c60ef432328973b8429f56555b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 770734dbc5a0710adba4d1a482e90e6465543f6361e473e6786a6cc208acf2d6fa006cffe0aa8e5cc84daef4a5a9c6971ae8a4584316185fd2a02b9ea5928b12
|
7
|
+
data.tar.gz: cbc5d7efa431da839c203eebb34a7570b34b3ac4b3c3eb80a3b301c0468a24cb56112dfc9571232956931c69a545c550dc461103bacab927096d22cbf6f7ca52
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,32 +1,47 @@
|
|
1
|
-
# Ruby
|
1
|
+
# Ruby ChatGPT
|
2
2
|
|
3
|
-
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/ruby-chatgpt.svg)](https://badge.fury.io/rb/ruby-chatgpt)
|
4
|
+
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/richo225/ruby-chatgpt/blob/main/LICENSE.txt)
|
4
5
|
|
5
|
-
|
6
|
+
CLI for interacting and conversing with [OpenAI](https://platform.openai.com/docs/api-reference/chat).
|
6
7
|
|
7
|
-
|
8
|
+
Stream text with GPT-3.5 from the command line! 🌊🤖
|
8
9
|
|
9
|
-
|
10
|
+
Demo for an article I wrote on my [blog](https://richardbates.dev/blog/2023-05-05).
|
10
11
|
|
11
|
-
|
12
|
+
## Installation
|
12
13
|
|
13
|
-
|
14
|
+
Install the gem:
|
14
15
|
|
15
|
-
|
16
|
+
```shell
|
17
|
+
$ gem install ruby-chatgpt
|
18
|
+
```
|
16
19
|
|
17
20
|
## Usage
|
18
21
|
|
19
|
-
|
22
|
+
- Get your API key from [https://platform.openai.com/account/api-keys](https://platform.openai.com/account/api-keys).
|
23
|
+
- Set this value to the `OPENAI_API_KEY` environment variable.
|
24
|
+
|
25
|
+
Run the `chatgpt` executable:
|
26
|
+
|
27
|
+
```shell
|
28
|
+
$ chatgpt
|
29
|
+
=> Enter a prompt (or "exit" to quit): What is the capital of Taiwan?
|
30
|
+
The capital of Taiwan is Taipei.
|
31
|
+
=> Enter a prompt (or "exit" to quit): How many people live in Taipei?
|
32
|
+
As an AI language model, I do not have access to real-time data. However, according to the United Nations, the estimated population of Taipei in 2021 is around 2.8 million.
|
33
|
+
=> Enter a prompt (or "exit" to quit):
|
34
|
+
```
|
20
35
|
|
21
36
|
## Development
|
22
37
|
|
23
38
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
24
39
|
|
25
|
-
To install this gem onto your local machine, run `bundle exec rake install`.
|
40
|
+
To install this gem onto your local machine, run `bundle exec rake install`.
|
26
41
|
|
27
42
|
## Contributing
|
28
43
|
|
29
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
44
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/richo225/ruby-chatgpt. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/ruby-chatgpt/blob/master/CODE_OF_CONDUCT.md).
|
30
45
|
|
31
46
|
## License
|
32
47
|
|
data/lib/ruby/chatgpt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-chatgpt
|
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
|
- Richard Bates
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruby-openai
|
@@ -24,7 +24,7 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.0'
|
27
|
-
description: CLI interface for OpenAI ChatGPT in Ruby
|
27
|
+
description: "CLI interface for OpenAI ChatGPT in Ruby \U0001F30A\U0001F916"
|
28
28
|
email:
|
29
29
|
- rich.bates@protonmail.com
|
30
30
|
executables:
|
@@ -46,10 +46,13 @@ files:
|
|
46
46
|
- lib/ruby/chatgpt/version.rb
|
47
47
|
- ruby-chatgpt-0.1.0.gem
|
48
48
|
- sig/ruby/chatgpt.rbs
|
49
|
-
homepage:
|
49
|
+
homepage: https://github.com/richo225/ruby-chatgpt
|
50
50
|
licenses:
|
51
51
|
- MIT
|
52
|
-
metadata:
|
52
|
+
metadata:
|
53
|
+
homepage_uri: https://github.com/richo225/ruby-chatgpt
|
54
|
+
source_code_uri: https://github.com/richo225/ruby-chatgpt
|
55
|
+
changelog_uri: https://github.com/richo225/ruby-chatgpt/blob/main/CHANGELOG.md
|
53
56
|
post_install_message:
|
54
57
|
rdoc_options: []
|
55
58
|
require_paths:
|
@@ -68,5 +71,5 @@ requirements: []
|
|
68
71
|
rubygems_version: 3.1.6
|
69
72
|
signing_key:
|
70
73
|
specification_version: 4
|
71
|
-
summary: CLI interface for OpenAI ChatGPT in Ruby
|
74
|
+
summary: "CLI interface for OpenAI ChatGPT in Ruby \U0001F30A\U0001F916"
|
72
75
|
test_files: []
|