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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f9cafa5a9ee72892de5d30d61a265d6aafe57a992c2be8ca86619a9db35a9ee
4
- data.tar.gz: 6cc58003d2999ee7c5346782fab3ffd2d74857da5752f99a72653876b83c27a5
3
+ metadata.gz: '09498630299c9576a17e3b30bd6bdfd132b3413f5e81e225ca30ea3ddce482fd'
4
+ data.tar.gz: 50a299e2961e9692aa6f342b32ba610aa86a17478c2d2513df505290a0f909c5
5
5
  SHA512:
6
- metadata.gz: feb83d49fee7a876c25260eb8f9d34538f9022266b5f866f3edcd625f6c3cf10453284b4e059b405377bf860baba5d6ef7fe0590b0e3e40314c0c256b253aff5
7
- data.tar.gz: bd432c77c41aa452ab0699e87444fa310c34ffbcf5663f78332933218706ad2f79fc388dd6e973c69204129d0c34e7a1ac1cd129babfceb606d92297ba928a06
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 `openai/gpt-4o-mini` if not specified.
121
+ The default model is `x-ai/grok-code-fast-1` if not specified.
122
122
 
123
123
  ### Prompt Configuration
124
124
 
@@ -1,3 +1,3 @@
1
1
  module Jeeves
2
- VERSION = '2.3.0'
2
+ VERSION = '2.4.2'
3
3
  end
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'] || 'openai/gpt-4o-mini'
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=\"openai/gpt-4o-mini\""
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jeeves-git-commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bishop