Skip to content

Releases: flori/ollama-ruby

v1.18.0

19 Dec 15:52

Choose a tag to compare

  • Updated gem_hadar development dependency from version 2.8 to 2.9

v1.17.0

19 Dec 13:13

Choose a tag to compare

  • Changed s.required_ruby_version in the gemspec from "~> 3.1" to ">= 3.1" to
    allow usage with Ruby 3.1 and higher, including 4.0
  • Updated s.rubygems_version from 3.7.2 to 4.0.2
  • Replaced bundle update with bundle update --all in the update command
  • Added 4.0-rc release candidate to the Ruby version matrix (commented out)
  • Enhanced Ollama::Options class with detailed inline comments for all
    configuration parameters including numa, num_ctx, num_batch, num_gpu,
    main_gpu, low_vram, f16_kv, logits_all, vocab_only, use_mmap,
    use_mlock, num_thread, num_keep, seed, num_predict, top_k,
    top_p, min_p, tfs_z, typical_p, repeat_last_n, temperature,
    repeat_penalty, presence_penalty, frequency_penalty, mirostat,
    mirostat_tau, mirostat_eta, penalize_newline, and stop
  • Updated documentation link format from .md to .mdx

v1.16.0

09 Dec 01:09

Choose a tag to compare

  • Added support for handling HTTP 400 Bad Request errors
  • Introduced new error class Ollama::Errors::BadRequestError for 400 status codes
  • Updated Ollama::Client#request method to raise BadRequestError for 400 responses
  • Added test case in spec/ollama/client_spec.rb to verify 400 status code handling
  • Documented the new error class with example usage for think mode errors
  • Maintained existing error handling for 404 and other status codes

v1.15.0

04 Dec 18:13

Choose a tag to compare

  • Added documentation for ollama_ps executable utility in README
  • Implemented usage method in ollama_ps script with -h flag support
  • Enhanced ollama_ps script with improved CLI using Tins::GO
  • Added support for -f json and -f yaml output formats in ollama_ps
  • Refactored ollama_ps into fetch_ps_models, interpret_models, and ps_table functions
  • Implemented dynamic table headings and safe navigation (&.) for optional model fields
  • Added -I IMAGE flag to ollama_cli for sending images to visual models
  • Enabled multiple image file support with repeated -I flag usage
  • Integrated image handling with Ollama::Image infrastructure
  • Added debug mode (-d) and version info (-i) options to ollama_cli documentation
  • Updated README.md with image support documentation and usage examples
  • Updated command-line usage help text to document new -I option
  • Maintained backward compatibility with existing ollama_cli functionality

v1.14.0

03 Dec 20:24

Choose a tag to compare

  • Added as_json method to Ollama::Image class that returns base64 string
    for Ollama API compatibility
  • Added test case verifying image.to_json produces quoted base64 string
  • Method signature uses *_args to accept ignored parameters for JSON
    compatibility
  • Documented method behavior for JSON serialization compatibility

v1.13.0

03 Dec 19:09

Choose a tag to compare

  • Updated Ollama::Image#for_string method to use Base64.strict_encode64 for image encoding
  • Modified test expectations in image_spec.rb with new size 132196 and checksum 20420
  • Updated message_spec.rb JSON payload to remove trailing newline from image data
  • Enhanced base64 encoding strictness for image handling in Ollama library

v1.12.0

30 Nov 17:02

Choose a tag to compare

  • ollama_cli
    • Added -i flag to display Ollama server version using ollama.version.version
    • Refactored model options handling to use Ollama::Options.from_hash or Ollama::Options.new
    • Stored client configuration in ollama variable for reuse
    • Added -d flag for debug mode in ollama_cli instead of using environment variable
  • Included Ollama::DTO in Client::Config class for consistent behavior
  • Improved documentation formatting in dto.rb file
  • Added documentation that think can be "high", "medium", "low" instead of just true

v1.11.0

05 Nov 15:33

Choose a tag to compare

  • Replaced tabulo gem with terminal-table version 3.0 for table
    rendering
    • Updated Rakefile and ollama-ruby.gemspec to reflect new
      terminal-table dependency
    • Migrated table rendering logic from Tabulo::Table to Terminal::Table
    • Added early return handling for empty model list case
  • Updated YARD documentation guidelines for attribute accessors
    • Changed meta key from guidelins to guidelines
    • Added specific guidelines for documenting attr_accessor, attr_reader,
      and attr_writer using @attr, @attr_reader, and @attr_writer tags
    • Replaced @return tags with @attr, @attr_reader, and @attr_writer
      for attribute accessors
    • Maintained existing YARD documentation practices

v1.10.1

28 Oct 17:01

Choose a tag to compare

  • Added ollama_ps executable to the gem
  • Included ollama_ps in the list of executables and files for the gem build

v1.10.0

28 Oct 16:07

Choose a tag to compare

  • Added ollama_ps utility script to display running Ollama models with
    detailed information including size, processor allocation, context,
    parameters, quantization, and expiration time
  • Enhanced ollama_browse script with detailed documentation explaining its
    purpose and functionality
  • Improved ollama_console script with comprehensive documentation and
    environment variable descriptions
  • Updated ollama_cli script with detailed comments about features,
    environment variables, and configuration options
  • Added documentation to ollama_update script explaining its purpose of
    updating all Ollama models to latest versions
  • Added nokogiri dependency to gemspec and Rakefile
  • Added tabulo dependency to gemspec and Rakefile for enhanced table
    formatting
  • Updated gemspec to include bin/ollama_ps and lib/ollama/commands/ps.rb in
    the files list
  • Fixed potential nil values when extracting tagged names from HTML elements in
    ollama_browse script
  • Added &.text safety check and hash.strip for cleaning hash values in
    ollama_browse script