Releases: flori/ollama-ruby
Releases · flori/ollama-ruby
v1.18.0
v1.17.0
- Changed
s.required_ruby_versionin the gemspec from "~> 3.1" to ">= 3.1" to
allow usage with Ruby 3.1 and higher, including 4.0 - Updated
s.rubygems_versionfrom 3.7.2 to 4.0.2 - Replaced
bundle updatewithbundle update --allin the update command - Added 4.0-rc release candidate to the Ruby version matrix (commented out)
- Enhanced
Ollama::Optionsclass with detailed inline comments for all
configuration parameters includingnuma,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, andstop - Updated documentation link format from
.mdto.mdx
v1.16.0
- Added support for handling HTTP 400 Bad Request errors
- Introduced new error class
Ollama::Errors::BadRequestErrorfor 400 status codes - Updated
Ollama::Client#requestmethod to raiseBadRequestErrorfor 400 responses - Added test case in
spec/ollama/client_spec.rbto 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
- Added documentation for
ollama_psexecutable utility in README - Implemented
usagemethod inollama_psscript with-hflag support - Enhanced
ollama_psscript with improved CLI usingTins::GO - Added support for
-f jsonand-f yamloutput formats inollama_ps - Refactored
ollama_psintofetch_ps_models,interpret_models, andps_tablefunctions - Implemented dynamic table headings and safe navigation (
&.) for optional model fields - Added
-I IMAGEflag toollama_clifor sending images to visual models - Enabled multiple image file support with repeated
-Iflag usage - Integrated image handling with
Ollama::Imageinfrastructure - Added debug mode (-d) and version info (-i) options to
ollama_clidocumentation - Updated README.md with image support documentation and usage examples
- Updated command-line usage help text to document new
-Ioption - Maintained backward compatibility with existing
ollama_clifunctionality
v1.14.0
- Added
as_jsonmethod toOllama::Imageclass that returns base64 string
for Ollama API compatibility - Added test case verifying
image.to_jsonproduces quoted base64 string - Method signature uses
*_argsto accept ignored parameters for JSON
compatibility - Documented method behavior for JSON serialization compatibility
v1.13.0
- Updated
Ollama::Image#for_stringmethod to useBase64.strict_encode64for image encoding - Modified test expectations in
image_spec.rbwith new size 132196 and checksum 20420 - Updated
message_spec.rbJSON payload to remove trailing newline from image data - Enhanced base64 encoding strictness for image handling in Ollama library
v1.12.0
ollama_cli- Added
-iflag to display Ollama server version usingollama.version.version - Refactored model options handling to use
Ollama::Options.from_hashorOllama::Options.new - Stored client configuration in
ollamavariable for reuse - Added
-dflag for debug mode inollama_cliinstead of using environment variable
- Added
- Included
Ollama::DTOinClient::Configclass for consistent behavior - Improved documentation formatting in
dto.rbfile - Added documentation that
thinkcan be "high", "medium", "low" instead of justtrue
v1.11.0
- Replaced
tabulogem withterminal-tableversion 3.0 for table
rendering- Updated
Rakefileandollama-ruby.gemspecto reflect new
terminal-tabledependency - Migrated table rendering logic from
Tabulo::TabletoTerminal::Table - Added early return handling for empty model list case
- Updated
- Updated YARD documentation guidelines for attribute accessors
- Changed meta key from
guidelinstoguidelines - Added specific guidelines for documenting
attr_accessor,attr_reader,
andattr_writerusing@attr,@attr_reader, and@attr_writertags - Replaced
@returntags with@attr,@attr_reader, and@attr_writer
for attribute accessors - Maintained existing YARD documentation practices
- Changed meta key from
v1.10.1
v1.10.0
- Added
ollama_psutility script to display running Ollama models with
detailed information including size, processor allocation, context,
parameters, quantization, and expiration time - Enhanced
ollama_browsescript with detailed documentation explaining its
purpose and functionality - Improved
ollama_consolescript with comprehensive documentation and
environment variable descriptions - Updated
ollama_cliscript with detailed comments about features,
environment variables, and configuration options - Added documentation to
ollama_updatescript explaining its purpose of
updating all Ollama models to latest versions - Added
nokogiridependency to gemspec and Rakefile - Added
tabulodependency to gemspec and Rakefile for enhanced table
formatting - Updated gemspec to include
bin/ollama_psandlib/ollama/commands/ps.rbin
the files list - Fixed potential nil values when extracting tagged names from HTML elements in
ollama_browsescript - Added
&.textsafety check andhash.stripfor cleaning hash values in
ollama_browsescript