RubyLLM 1.8.2: Enhanced Tool Calling & Reliability ๐งโจ
Minor release improving tool calling visualization in Rails chat UIs, fixing namespaced model support, and enhancing stability.
๐ง Tool Call Visualization
Enhanced chat UI with basic visualization of tool/function calls:
- Tool call display: Messages now show function calls with name and arguments in JSON format
- Improved readability: Styled with monospace font and gray background for clear distinction
- Seamless integration: Tool calls integrate naturally into the conversation flow
๐ Bug Fixes & Improvements
Chat UI Generator
- Namespaced model support: Fixed chat UI generator to properly handle namespaced models (fixes #425)
- Cleaner output: Refined model class injection for better code generation
Network Reliability
- Faraday adapter: Explicitly set
net_http
adapter instead of relying on environment defaults (fixes #428) - Improved stability: Ensures consistent network behavior across different environments
๐ Documentation & Testing
- CI optimization: Test suite now runs more efficiently, with coverage reports from latest Ruby/Rails only
- Generator tests: Optimized to run only on latest Ruby and Rails versions
- Coverage accuracy: Excluded generator code from coverage metrics for more accurate reporting
Installation
gem 'ruby_llm', '1.8.2'
Upgrading from 1.8.1
bundle update ruby_llm
All changes are backward compatible. To benefit from the tool call visualization, regenerate your chat UI with rails generate ruby_llm:chat_ui
.
Merged PRs
- Display tool calls in message template by @marckohlbrugge in #416
- Set adapter to be net_http instead of Faraday.default_adapter. by @jkogara in #429
New Contributors
- @marckohlbrugge made their first contribution in #416
- @jkogara made their first contribution in #429
Full Changelog: 1.8.1...1.8.2