RubyLLM: A Ruby framework for all major AI providers(rubyllm.com)
408 points by doener 23 hours ago | 70 comments
tl;dr: RubyLLM is a unified Ruby framework that provides a single interface for working with major AI providers (OpenAI, Anthropic, Gemini, Bedrock, Ollama, etc.), with only three dependencies (Faraday, Zeitwerk, Marcel). It supports chat, vision, audio transcription, document analysis, image generation, embeddings, tool calling, agents, structured output, and streaming. The framework includes Rails integration via `acts_as_chat`, generators for chat UIs, and a registry of 800+ models with capability and pricing detection.
HN Discussion:
  • Enthusiastic users praise the elegant API design and production usability
  • ~Users appreciate the framework but cite specific shortcomings like observability, caching, or retry history
  • Concerns about maintainer engagement and quality of merged vibe-coded PRs
  • Questions about whether RubyLLM adds value for single-provider use cases or how capabilities are negotiated
  • Developers building on or inspired by RubyLLM's design abstractions