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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 437890c2af9e01a72a29380386b655cf00df2f512673f56237e7ca0567aa52db
4
- data.tar.gz: 6bb8314df1fe152733ac8537a16de83f6299db10b265860343fec9f7aa33ee87
3
+ metadata.gz: '09498630299c9576a17e3b30bd6bdfd132b3413f5e81e225ca30ea3ddce482fd'
4
+ data.tar.gz: 50a299e2961e9692aa6f342b32ba610aa86a17478c2d2513df505290a0f909c5
5
5
  SHA512:
6
- metadata.gz: 20b02819f4f01cc3610f13531fc67d5b974d9f051a431dcfe379c8644ce23779a34c66ada84df95931432cebe7c40c3afe8f70965023cd19a6bbec9e16434f99
7
- data.tar.gz: '059a47edeba1d3534a82ff9f188c64c286e76d866affa7f39e6a98f49bc72c39cc1915ae377ec89cb1298f15d685a967f085009853093df13a6a7814f973ff3a'
6
+ metadata.gz: 75f898df9267a32cd82ff7ef1ad5f892fabb553784aa34f514047127dc6b51a1e45333a2ec93c1aa9483feb6ae6e639473f98b46d31bd5e29c530f445ad9b095
7
+ data.tar.gz: a041d7254e516d3a353bfd790767e63143d8e3e819c82fdd3f38db9188afbc0e040d74bce4752d3a83b2b4a535516b04d2bd065fbb653459f7fdaceb64fd6a0a
@@ -1,3 +1,3 @@
1
1
  module Jeeves
2
- VERSION = '2.4.0'
2
+ VERSION = '2.4.2'
3
3
  end
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
 
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.4.0
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Bishop