Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schwad/chat_gpt_error_handler
https://github.com/schwad/chat_gpt_error_handler
Last synced: 7 days 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 (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-20T13:27:25.000Z (over 1 year ago)
- Last Synced: 2024-10-30T01:30:54.582Z (10 days 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.
![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).