alexrudall / ruby-openai

OpenAI API + Ruby! 🤖❤️ NEW: Assistant Vector Stores
MIT License
2.61k stars 302 forks source link

ActiveSupport::Notifications #475

Open nhorton opened 1 month ago

nhorton commented 1 month ago

The logging support via Faraday is definitely handy in this gem. One thing that would be hugely helpful though would be adding a complimentary gem (that could grow over time) for Rails integration. The specific thing that would be massively helpful would be ActiveSupport::Notifications that are sent on all the actual calls to OpenAI, ideally with separation of the ones like Runs and Completions that have material charges and including the token use info in the Notification.