A simple command-line tool for conversing with ChatGPT.
"daberu" is a Japanese translation of "chatting".
```console $ daberu -h ChatGPT client tool that reads your message from stdin and writes the response to stdout
Usage: daberu [OPTIONS] --api-key
Options:
--api-key
cosnole
$ cargo install daberu
```console $ export OPENAIAPIKEY="YOUR API KEY"
// Conversation without history. $ echo hi | daberu Hello! How can I assist you today?
// Conversation with history. $ echo "Translate to Japanese: 'hi'" | daberu --log chat.log こんにちは
$ echo "Next, translate to Spanish" | daberu --log chat.log hola
$ jq . chat.log [ { "role": "user", "content": "Translate to Japanese: 'hi'\n" }, { "role": "assistant", "content": "こんにちは" }, { "role": "user", "content": "Next, translate to Spanish\n" }, { "role": "assistant", "content": "hola" } ] ```