ChatGptErrorHandler

This gem pops a little helpful ChatGPT message before your error stacktrace.

example

Usage

Add this line to your application's Gemfile:

gem "chat_gpt_error_handler"

Set your OpenAI API Token and enable the gem in an initializer:

# config/initializers/chat_gpt_error_handler.rb
ChatGptErrorHandler.openai_access_token = 'your_openai_access_token_here'
ChatGptErrorHandler.enabled = true

And you're off!

License

The gem is available as open source under the terms of the MIT License.