boxcars 0.7.6 → 0.7.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 +41 -0
- data/Gemfile.lock +1 -1
- data/lib/boxcars/engine/openai.rb +10 -10
- data/lib/boxcars/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c0b63da11bca5d10f8de95aa51f42d6acea996881e636e3006b98337f01e564
|
4
|
+
data.tar.gz: 63d7554f52d4c29f0e58511c827f490f38215b26b45003413309f12df150e534
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da06e0a21403d259342a5e516519bed361328737ab3601a262a926009ea5199e26d36d0a3a52b77f7089f016741bc991bc46c605f6502d17fcdc48cedb9f10fa
|
7
|
+
data.tar.gz: 828c9799e4a9405a72b2975819f70656c7fb284868f103b0ea090e27319d1a54c828b51f7af6ebdb11cbe0b2028f5c2ff691a70b8bbc6c9426f88f6f0cabe5ba
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,46 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [v0.7.6](https://github.com/BoxcarsAI/boxcars/tree/v0.7.6) (2025-04-22)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.7.5...v0.7.6)
|
6
|
+
|
7
|
+
## [v0.7.5](https://github.com/BoxcarsAI/boxcars/tree/v0.7.5) (2025-04-21)
|
8
|
+
|
9
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.7.4...v0.7.5)
|
10
|
+
|
11
|
+
**Merged pull requests:**
|
12
|
+
|
13
|
+
- Together AI Engine [\#250](https://github.com/BoxcarsAI/boxcars/pull/250) ([francis](https://github.com/francis))
|
14
|
+
|
15
|
+
## [v0.7.4](https://github.com/BoxcarsAI/boxcars/tree/v0.7.4) (2025-04-16)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.7.3...v0.7.4)
|
18
|
+
|
19
|
+
## [v0.7.3](https://github.com/BoxcarsAI/boxcars/tree/v0.7.3) (2025-01-20)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.7.2...v0.7.3)
|
22
|
+
|
23
|
+
**Merged pull requests:**
|
24
|
+
|
25
|
+
- add cerebras tests [\#246](https://github.com/BoxcarsAI/boxcars/pull/246) ([francis](https://github.com/francis))
|
26
|
+
|
27
|
+
## [v0.7.2](https://github.com/BoxcarsAI/boxcars/tree/v0.7.2) (2025-01-17)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.7.1...v0.7.2)
|
30
|
+
|
31
|
+
**Merged pull requests:**
|
32
|
+
|
33
|
+
- cerebras bug fixes [\#245](https://github.com/BoxcarsAI/boxcars/pull/245) ([francis](https://github.com/francis))
|
34
|
+
|
35
|
+
## [v0.7.1](https://github.com/BoxcarsAI/boxcars/tree/v0.7.1) (2025-01-17)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.6.9...v0.7.1)
|
38
|
+
|
39
|
+
**Merged pull requests:**
|
40
|
+
|
41
|
+
- add Cerebras [\#244](https://github.com/BoxcarsAI/boxcars/pull/244) ([francis](https://github.com/francis))
|
42
|
+
- \[infra\] Bump pg from 1.5.8 to 1.5.9 [\#231](https://github.com/BoxcarsAI/boxcars/pull/231) ([dependabot[bot]](https://github.com/apps/dependabot))
|
43
|
+
|
3
44
|
## [v0.6.9](https://github.com/BoxcarsAI/boxcars/tree/v0.6.9) (2024-12-19)
|
4
45
|
|
5
46
|
[Full Changelog](https://github.com/BoxcarsAI/boxcars/compare/v0.6.8...v0.6.9)
|
data/Gemfile.lock
CHANGED
@@ -116,6 +116,16 @@ module Boxcars
|
|
116
116
|
raise ValueError, "Expecting key #{key} in response" unless response.key?(key)
|
117
117
|
end
|
118
118
|
end
|
119
|
+
|
120
|
+
def get_params(prompt, inputs, params)
|
121
|
+
params = prompt.as_messages(inputs).merge(params)
|
122
|
+
# Handle models like o1-mini that don't support the system role
|
123
|
+
params[:messages].first[:role] = :user if params[:model] =~ /^o/ && params[:messages].first&.fetch(:role) == :system
|
124
|
+
if Boxcars.configuration.log_prompts
|
125
|
+
Boxcars.debug(params[:messages].last(2).map { |p| ">>>>>> Role: #{p[:role]} <<<<<<\n#{p[:content]}" }.join("\n"), :cyan)
|
126
|
+
end
|
127
|
+
params
|
128
|
+
end
|
119
129
|
end
|
120
130
|
|
121
131
|
# the engine type
|
@@ -148,14 +158,4 @@ module Boxcars
|
|
148
158
|
max_size = modelname_to_contextsize(model_name)
|
149
159
|
max_size - num_tokens
|
150
160
|
end
|
151
|
-
|
152
|
-
def get_params(prompt, inputs, params)
|
153
|
-
params = prompt.as_messages(inputs).merge(params)
|
154
|
-
# Handle models like o1-mini that don't support the system role
|
155
|
-
params[:messages].first[:role] = :user if params[:model] =~ /^o/ && params[:messages].first&.fetch(:role) == :system
|
156
|
-
if Boxcars.configuration.log_prompts
|
157
|
-
Boxcars.debug(params[:messages].last(2).map { |p| ">>>>>> Role: #{p[:role]} <<<<<<\n#{p[:content]}" }.join("\n"), :cyan)
|
158
|
-
end
|
159
|
-
params
|
160
|
-
end
|
161
161
|
end
|
data/lib/boxcars/version.rb
CHANGED
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.7.
|
4
|
+
version: 0.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Francis Sullivan
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-04-
|
12
|
+
date: 2025-04-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google_search_results
|