RubyLLM offers a seamless way to work with AI without the hassle of dealing with multiple providers’ different APIs, response formats, and error handling. This gem provides a beautiful API for various AI tasks like chatting with OpenAI, analyzing images and audio, generating images, creating vector embeddings, and even allowing AI to use your Ruby code. With minimal dependencies, such as Faraday and Zeitwerk, RubyLLM aims to make working with AI a joy, not a chore. The gem also integrates with Rails for efficient chat and message persistence. Get started by installing the gem, configuring API keys, and initiating captivating conversations effortlessly.
https://github.com/crmne/ruby_llm