github crmne/ruby_llm 1.13.1

8 hours ago

RubyLLM 1.13.1: Quick Fixes 🐛🔧

A small patch release with three fixes.

🧩 Fix: Schema + Tool Calls No Longer Crash

Using with_schema and with_tool together caused intermediate tool-call responses to be eagerly JSON-parsed, crashing on the next API call. RubyLLM now only parses the final response content. Fixes #649.

📊 Gemini: Cached Token Usage

Gemini responses now populate cached_tokens for both regular and streaming responses.

🪟 Fix: Binary Attachment Reads on Windows

Path-based attachments now use File.binread instead of File.read, preventing text-mode truncation of binary files on Windows.

Installation

gem "ruby_llm", "1.13.1"

Upgrading from 1.13.0

bundle update ruby_llm

Merged PRs

  • Fix schema JSON parsing for intermediate tool-call responses by @trouni in #650

New Contributors

Full Changelog: 1.13.0...1.13.1

Don't miss a new ruby_llm release

NewReleases is sending notifications on new releases.