dorian-chat
Send a prompt to the OpenAI chat completions API from the command line.
Install
gem install dorian-chatAlso included in the aggregate gem:
gem install dorianUsage
chat [prompt ...] [file ...]Run chat -h for generated option details and chat -v for the installed version.
Notes
- Reads the prompt from arguments, files, or stdin.
- Uses a token from
~/.chat; if that file is missing, it prompts once and writes it.
Examples
Ask a question
chat "Summarize this repository in one paragraph"Ask about a file
chat "Summarize" README.md