jeeves-git-commit 2.4.0 → 2.4.2
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/lib/jeeves/version.rb +1 -1
- data/lib/jeeves.rb +8 -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: '09498630299c9576a17e3b30bd6bdfd132b3413f5e81e225ca30ea3ddce482fd'
|
4
|
+
data.tar.gz: 50a299e2961e9692aa6f342b32ba610aa86a17478c2d2513df505290a0f909c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f898df9267a32cd82ff7ef1ad5f892fabb553784aa34f514047127dc6b51a1e45333a2ec93c1aa9483feb6ae6e639473f98b46d31bd5e29c530f445ad9b095
|
7
|
+
data.tar.gz: a041d7254e516d3a353bfd790767e63143d8e3e819c82fdd3f38db9188afbc0e040d74bce4752d3a83b2b4a535516b04d2bd065fbb653459f7fdaceb64fd6a0a
|
data/lib/jeeves/version.rb
CHANGED
data/lib/jeeves.rb
CHANGED
@@ -121,6 +121,7 @@ module Jeeves
|
|
121
121
|
end
|
122
122
|
|
123
123
|
model = ENV['GIT_COMMIT_MODEL'] || 'x-ai/grok-code-fast-1'
|
124
|
+
puts "Using model: #{model}"
|
124
125
|
|
125
126
|
prompt_file_path = get_prompt_file_path
|
126
127
|
puts "Using prompt file: #{prompt_file_path}"
|
@@ -150,10 +151,15 @@ module Jeeves
|
|
150
151
|
request_body = {
|
151
152
|
model: model,
|
152
153
|
messages: messages,
|
153
|
-
max_tokens: 1000
|
154
|
-
stop: ["END_COMMIT"]
|
154
|
+
max_tokens: 1000
|
155
155
|
}
|
156
156
|
|
157
|
+
# Only add stop parameter for models that support it
|
158
|
+
# xAI models don't support the stop parameter
|
159
|
+
unless model.include?('x-ai/')
|
160
|
+
request_body[:stop] = ["END_COMMIT"]
|
161
|
+
end
|
162
|
+
|
157
163
|
# Remove any reasoning parameters that cause API errors
|
158
164
|
# GPT-5 mini will put reasoning in the reasoning field regardless
|
159
165
|
|