You can talk with ChatGPT on Terminal.
Execute the following command from above.
$ git clone [email protected]:NakaokaRei/chat-terminal.git
$ cd chat-terminal
$ swift build -c release
$ cp .build/release/chat /usr/local/bin/chat
$ chat $OPENAI_KEY "Enter what you want to ask ChatGPT here"
OVERVIEW: You can talk with ChatGPT on Terminal
USAGE: chat <key> <prompt> [--max-tokens <max-tokens>]
ARGUMENTS:
<key> API Key
<prompt> Text to be sent to ChatGPT
OPTIONS:
-m, --max-tokens <max-tokens>
Maximum tokens (default: 100)
--version Show the version.
-h, --help Show help information.
MIT license. See the LICENSE file for details.