Use the OpenAI API with Ruby.
Add this line to your application's Gemfile:
gem "openai_api_proxy", git: "git@github.com:as181920/openai_api_proxy.git", branch: "main"
Or install with:
# gem install openai_api_proxy
bundle exec rake install
- Get your API key from https://beta.openai.com/account/api-keys
- If you belong to multiple organizations, you can get your Organization ID from https://beta.openai.com/account/org-settings
TODO: write usage here.
After checking out the repo, run bin/setup
to install dependencies. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
.
Bug reports and pull requests are welcome on GitHub at https://github.com/as181920/openai_api_proxy.
The gem is available as open source under the terms of the MIT License.