https://github.com/schwad/chat_gpt_error_handler
https://github.com/schwad/chat_gpt_error_handler
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/schwad/chat_gpt_error_handler
- Owner: Schwad
- License: mit
- Created: 2023-05-15T16:05:56.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-20T13:27:25.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T21:03:21.343Z (7 months ago)
- Language: Ruby
- Size: 994 KB
- Stars: 54
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: MIT-LICENSE
Awesome Lists containing this project
- awesome-ChatGPT-repositories - chat_gpt_error_handler - Try out my new gem "chat_gpt_error_handler" today!It pops a (hopefully) helpful ChatGPT snippet before your error stacktrace (Others)
README
# ChatGptErrorHandler
This gem pops a little helpful ChatGPT message before your error stacktrace.

## 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).