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 +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/lib/boxcars/engines.rb +2 -1
- data/lib/boxcars/version.rb +1 -1
- 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: 700260c078ea4da94359ed7f7a02a83e93aa24f98bdc1a0a3feb25e42aafb44f
|
|
4
|
+
data.tar.gz: 6ef83f15dd40ed03909bdc4378dfa5d94b816cf183b7d15b49069fdb3ea3b8d8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/boxcars/engines.rb
CHANGED
|
@@ -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
|
-
|
|
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)
|
data/lib/boxcars/version.rb
CHANGED