jeeves-git-commit 2.3.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/README.md +1 -1
- data/lib/jeeves/version.rb +1 -1
- data/lib/jeeves.rb +10 -4
- 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/README.md
CHANGED
@@ -118,7 +118,7 @@ Optionally, you can specify a different model by setting:
|
|
118
118
|
export GIT_COMMIT_MODEL="openai/gpt-4o"
|
119
119
|
```
|
120
120
|
|
121
|
-
The default model is `
|
121
|
+
The default model is `x-ai/grok-code-fast-1` if not specified.
|
122
122
|
|
123
123
|
### Prompt Configuration
|
124
124
|
|
data/lib/jeeves/version.rb
CHANGED
data/lib/jeeves.rb
CHANGED
@@ -120,7 +120,8 @@ module Jeeves
|
|
120
120
|
exit 1
|
121
121
|
end
|
122
122
|
|
123
|
-
model = ENV['GIT_COMMIT_MODEL'] || '
|
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
|
|
@@ -180,7 +186,7 @@ module Jeeves
|
|
180
186
|
else
|
181
187
|
puts "Error: API returned empty commit message"
|
182
188
|
puts "This model (#{model}) may not be compatible with direct output."
|
183
|
-
puts "Try using a different model with: export GIT_COMMIT_MODEL=\"
|
189
|
+
puts "Try using a different model with: export GIT_COMMIT_MODEL=\"x-ai/grok-code-fast-1\""
|
184
190
|
exit 1
|
185
191
|
end
|
186
192
|
else
|