ollama-ruby 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +26 -17
- data/lib/ollama/dto.rb +1 -1
- data/lib/ollama/tool/function/parameters/property.rb +1 -1
- data/lib/ollama/version.rb +1 -1
- data/ollama-ruby.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1a8729b76057bbe9bda6d774b3d5ee4e9227ed0c6f3eaa6518b40efe5b0e979a
|
|
4
|
+
data.tar.gz: c56b35df0a1afe4cdf12cc06a95763d62d4fdcdc5fc96093c0b28484c4174d6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9f51f5d86982a8d32c69df5f6660fd4a51e6c054fbfb9ef245c40fc46cac1d18cf42c00544649839377ccc7f2383cf9bb040e37a4a1f72fe517dde1b66708add
|
|
7
|
+
data.tar.gz: f870f0e817b8c33072ceac03e73d076f93c0b396942a689068fccbb8b14fa217b68105e152f087ea0fc3871a71a927f2612831a7b2c8538a1ae91ec6bb76118c
|
data/CHANGES.md
CHANGED
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-10-17 v1.25.0
|
|
4
|
+
|
|
5
|
+
* `DTO#to_hash` now only rejects `nil` attribute values instead of also
|
|
6
|
+
rejecting empty collections, so empty hashes and arrays such as
|
|
7
|
+
`properties: {}` or `required: []` survive serialization
|
|
8
|
+
* `Property#initialize` converts `enum` with `enum&.to_a` instead of
|
|
9
|
+
`Array(enum)`, leaving `enum` as `nil` when not provided so no empty `enum:
|
|
10
|
+
[]` leaks into the output
|
|
11
|
+
|
|
3
12
|
## 2026-10-16 v1.24.0
|
|
4
13
|
|
|
5
|
-
*
|
|
6
|
-
|
|
7
|
-
*
|
|
8
|
-
|
|
9
|
-
*
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
*
|
|
13
|
-
|
|
14
|
-
*
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
|
|
21
|
-
*
|
|
14
|
+
* Add `Options.from_string` to parse `show`-format parameter strings with
|
|
15
|
+
type inference for `Boolean`, `Integer`, `Float`, and `Array` types.
|
|
16
|
+
* Add `draft_num_predict: Integer` to the `@@types` registry and freeze the
|
|
17
|
+
`@@types` hash to prevent accidental mutation.
|
|
18
|
+
* Fix an infinite loop in `bin/ollama_ps` by correcting the `while` condition
|
|
19
|
+
to `duration > 0` and ensuring explicit exit codes (`exit 0` for success,
|
|
20
|
+
`exit 1` for failure).
|
|
21
|
+
* Add `rescue Interrupt` handling in `bin/ollama_ps` for clean `Ctrl+C` exit
|
|
22
|
+
messages.
|
|
23
|
+
* Update YARD documentation for the `think` parameter in
|
|
24
|
+
`Ollama::Commands::Chat` and `Ollama::Commands::Generate` to include
|
|
25
|
+
`"max"` as an accepted thinking level.
|
|
26
|
+
* Document the `show` → `create` parameter import workflow in `README.md`.
|
|
27
|
+
* Add `-i INTERVAL` to the `ollama_ps` usage block in `README.md`.
|
|
28
|
+
* Fix backtick formatting for `Q4_K_M` and `F16` in the `ollama_ps` QUANT
|
|
29
|
+
column documentation.
|
|
30
|
+
* Remove vim modeline comments from `Gemfile` and `Rakefile`.
|
|
22
31
|
|
|
23
32
|
## 2026-08-12 v1.23.2
|
|
24
33
|
|
data/lib/ollama/dto.rb
CHANGED
|
@@ -128,7 +128,7 @@ module Ollama::DTO
|
|
|
128
128
|
# non-empty attributes
|
|
129
129
|
def to_hash(*ignored)
|
|
130
130
|
self.class.attributes.each_with_object({}) { |a, h| h[a] = send(a) }.
|
|
131
|
-
reject { _2.nil?
|
|
131
|
+
reject { _2.nil? }
|
|
132
132
|
end
|
|
133
133
|
|
|
134
134
|
# The as_json method converts the object's attributes into a JSON-compatible
|
|
@@ -58,6 +58,6 @@ class Ollama::Tool::Function::Parameters::Property
|
|
|
58
58
|
# @param properties [ Hash, nil ] optional nested properties for 'object' types
|
|
59
59
|
# @param items [ Object, nil ] optional schema definition for 'array' type elements
|
|
60
60
|
def initialize(type:, description:, enum: nil, properties: nil, items: nil)
|
|
61
|
-
@type, @description, @enum, @properties, @items = type, description,
|
|
61
|
+
@type, @description, @enum, @properties, @items = type, description, enum&.to_a, properties, items
|
|
62
62
|
end
|
|
63
63
|
end
|
data/lib/ollama/version.rb
CHANGED
data/ollama-ruby.gemspec
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: ollama-ruby 1.
|
|
2
|
+
# stub: ollama-ruby 1.25.0 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "ollama-ruby".freeze
|
|
6
|
-
s.version = "1.
|
|
6
|
+
s.version = "1.25.0".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|