I released RubyLLM 1.15 today. It ships image editing, cost tracking, cleaner token accounting, inferred tool parameters, additive callbacks, and Rails fixes. The theme is simple: stop making me write glue code. If the computer can infer it, RubyLLM should infer it. If a provider reports usage, RubyLLM should turn it into cost. If Rails already has a blob, RubyLLM should not download it and upload it again. Image Editing RubyLLM.paint could already generate images: image = RubyLLM.paint("A watercolor robot holding a Ruby gem") Now with: turns it into an image edit: image = RubyLLM.paint( "Turn the logo green and keep the background transparent", model: "gpt-image-1", with: "logo.png" ) Same method, same attachment shape. The source can be a path, a URL, an IO-like object, or an Active Storage attachment. Multiple source images work too: image = RubyLLM.paint( "Combine these references into a postcard illustration", model: "gpt-image-1", with: ["person.png", "style-reference.png"] )…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.