boxcars 0.10.6 → 0.10.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fc15fa70bdb6da8cdae9945d05a508bd8882779582530e8f5f6a24ce5b62a19b
4
- data.tar.gz: a36f7e588daa927e69a77b744d5cc4baaca2426266a8ddd9b0f72a0920b3b26f
3
+ metadata.gz: 700260c078ea4da94359ed7f7a02a83e93aa24f98bdc1a0a3feb25e42aafb44f
4
+ data.tar.gz: 6ef83f15dd40ed03909bdc4378dfa5d94b816cf183b7d15b49069fdb3ea3b8d8
5
5
  SHA512:
6
- metadata.gz: 907b3de845e2fc89c471cd0a9d5b2eba57a5e376080b068e01486cf4e5d6ee9fbe31b6e7964c7d0d67d230aac8cc3dad14cd0f5e730ead37bafbc7b35e8990c4
7
- data.tar.gz: 520f592bb3723fd75013d89c30a670987176755f1cd7bb736c9a11672a1f11bb44ed85c10c76cc869d388562d486aad9176406d665cddbebb5c00605ef270c9f
6
+ metadata.gz: 9a3bb33c2e9cdc3c6fc2ca784431c1779f8356f2d919828bc269d757ca2d88adf80c946abbdea9076ea54ca8724c11516c9e375e4a5100fbff5042287261bd07
7
+ data.tar.gz: d02519ed72fd17356ae8f346b1221d0caad3030f1ded75f713b19192838fcebe0d0f923aebeb12b69b77ff359e068110eb11ea9925949b88594bec774d2448fd
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## [Unreleased]
4
4
 
5
+ ## [0.10.7] - 2026-03-31
6
+
7
+ ### Fixed
8
+
9
+ - `Boxcars::Engines.json_engine` now resolves the effective model before deciding whether to add `response_format`, so configured default `gpt-5.x` models follow the existing blocked path the same way explicit `gpt-5.x` models do.
10
+
5
11
  ## [0.10.5] - 2026-03-03
6
12
 
7
13
  ### Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boxcars (0.10.6)
4
+ boxcars (0.10.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -98,7 +98,8 @@ module Boxcars
98
98
  # @return [Boxcars::Engine] An instance of the appropriate engine class
99
99
  def self.json_engine(model: nil, **kw_args)
100
100
  default_options = { temperature: 0.1 }
101
- name = model.to_s
101
+ effective_model = model || Boxcars.configuration.default_model || DEFAULT_MODEL
102
+ name = effective_model.to_s
102
103
  blocked = name.start_with?("gpt-5", "llama") || name.match?(/sonnet|opus|sonar/)
103
104
  default_options[:response_format] = { type: "json_object" } unless blocked
104
105
  options = default_options.merge(kw_args)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Boxcars
4
4
  # The current version of the gem.
5
- VERSION = "0.10.6"
5
+ VERSION = "0.10.7"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boxcars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francis Sullivan