RubyLLM 1.5.0: Mistral, Perplexity, and Generator Fixes 🚀
Two new providers join the family, bringing 68 new models and specialized capabilities. Plus critical bug fixes for Rails users.
🌟 New Providers
Mistral AI
Full support for Mistral's model lineup - 63 models including their latest releases:
RubyLLM.configure do |config|
config.mistral_api_key = ENV['MISTRAL_API_KEY']
end
# Chat with their flagship model
chat = RubyLLM.chat(model: 'mistral-large-latest')
# Use the efficient Ministral models
small_chat = RubyLLM.chat(model: 'ministral-8b-latest')
# Vision with Pixtral
vision = RubyLLM.chat(model: 'pixtral-12b-latest')
vision.ask("What's in this image?", with: "path/to/image.jpg")
# Embeddings
embed = RubyLLM.embed("Ruby metaprogramming", model: 'mistral-embed')
Streaming, tools, and all standard RubyLLM features work seamlessly.
Perplexity
Real-time web search meets LLMs with Perplexity's Sonar models:
RubyLLM.configure do |config|
config.perplexity_api_key = ENV['PERPLEXITY_API_KEY']
end
# Get current information with web search
chat = RubyLLM.chat(model: 'sonar-pro')
response = chat.ask("What are the latest Ruby 3.4 features?")
# Searches the web and returns current information
# Deep research mode for comprehensive answers
researcher = RubyLLM.chat(model: 'sonar-deep-research')
answer = researcher.ask("Compare Ruby's fiber scheduler implementations")
Choose from Sonar, Sonar Pro, Sonar Reasoning, and Deep Research models based on your needs.
🐛 Critical Rails Generator Fixes
Migration Order
The Rails generator now creates migrations in the correct dependency order:
- Chats
- Messages (depends on Chats)
- Tool Calls (depends on Messages)
No more foreign key errors during rails db:migrate
.
PostgreSQL Detection
Fixed namespace collision with RubyLLM::ActiveRecord
that prevented proper database detection. PostgreSQL users now correctly get jsonb
columns instead of json
.
📚 Documentation & Quality
- Rails guide enhanced with instant message display patterns using Action Cable
- Comprehensive feature list added to README
- Available models guide promoted to top-level navigation
- Model pricing and capabilities updated across all providers
- Fixed broken links after documentation reorganization
Installation
gem 'ruby_llm', '1.5.0'
Full backward compatibility maintained. Your existing code continues to work.
Full Changelog: 1.4.0...1.5.0