a5-stable / 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 in an initializer:

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

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 76.3%Language:HTML 18.5%Language:CSS 4.7%Language:JavaScript 0.5%