Ruby-OpenAI-CLI
A tool to query OpenAI's GPT APIs from the command line.
Usage
To run the tool, you need an API key from OpenAI, you can get one here:
https://platform.openai.com/account/api-keys
You will be asked to provide on first use of ruby-openai-cli
, or you can
provide it as OPENAI_API_KEY
in your environment.
To install the gem, run: gem install ruby-openai-cli
. Then you can
use the tool by calling ruby-openai-cli
on your command line.
Development
- Install dev dependencies:
gem install awesome_print byebug rubocop
- Build Rubygem:
gem build ruby-openai-cli.gemspec
- Publish Rubygem:
gem push ruby-openai-cli-1.0.gem