Schwad / chat_gpt_error_handler

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

License:MIT License


Languages

Language:Ruby 77.3%Language:HTML 17.7%Language:CSS 4.5%Language:JavaScript 0.5%