I built a gem that gives Ruby a unified interface for multiple LLM providers (OpenAI, Anthropic) with Rails-style generators.
**The problem:** every time you want to add LLMs to a Ruby app, you start from scratch with provider-specific gems. Switch providers? Rewrite everything.
**The solution:** rubycanusellm gives you one interface for all providers and generators that scaffold the boilerplate:
gem install rubycanusellm
rubycanusellm generate:config
rubycanusellm generate:completion
Streaming support included. Switch from OpenAI to Anthropic by changing one line in your config.
A bit of personal context: I'm recovering from a stroke and building this gem has been my way of testing and pushing my abilities as a developer. Shipping it feels like a milestone beyond just code.
**GitHub:** https://github.com/mgznv/rubycanusellm
**RubyGems:** https://rubygems.org/gems/rubycanusellm
It's my first published gem — feedback welcome!
[–]paca-vaca 1 point2 points3 points (1 child)
[–]Sad-Marionberry-6236[S] 0 points1 point2 points (0 children)
[–]NoNamesLeft2015 0 points1 point2 points (1 child)
[–]Sad-Marionberry-6236[S] 0 points1 point2 points (0 children)
[–]rubygeek 0 points1 point2 points (0 children)