RubyLLM 1.13.2: Patch Fixes for Schema + Streaming 🐛🔧
A small patch release with three fixes.
🧩 Fix: Schema Names Are Always OpenAI-Compatible
Schema names now always produce a valid response_format.json_schema.name for OpenAI:
- namespaced names like
MyApp::Schemaare sanitized - blank names now safely fall back to
response
Fixes #654.
🌊 Fix: Streaming Ignores Non-Hash SSE Payloads
Streaming handlers now skip non-Hash JSON payloads (like true) before calling provider chunk builders, preventing intermittent crashes in Anthropic streaming.
Fixes #656.
🗓️ Fix: models.dev created_at Date Handling
Improved handling for missing models.dev dates when populating created_at metadata.
Installation
gem "ruby_llm", "1.13.2"Upgrading from 1.13.1
bundle update ruby_llmMerged PRs
- Fix missing models.dev date handling for created_at metadata by @afurm in #652
- [BUG] Fix schema name sanitization for OpenAI API compatibility by @alexey-hunter-io in #655
- Fix Anthropic streaming crash on non-hash SSE payloads by @crmne in #657
Full Changelog: 1.13.1...1.13.2