Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schwad/chat_gpt_error_handler


https://github.com/schwad/chat_gpt_error_handler

Last synced: 7 days ago
JSON representation

Awesome Lists containing this project

README

        

# ChatGptErrorHandler

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

![example](images/example.png)

## Usage

Add this line to your application's Gemfile:

```ruby
gem "chat_gpt_error_handler"
```

Set your [OpenAI API Token](https://openai.com/product#made-for-developers) and enable the gem in an initializer:

```ruby
# 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](https://opensource.org/licenses/MIT).