gpterm 0.6.4 → 0.6.5

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/client.rb +1 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ad1f6eabb19a5f3894f80cd8c84a74a9ec8108672cd428a0251113aef9c76a4
4
- data.tar.gz: d91084eb9b0ccf0833131bf4a92f186bba0e9624619588f2a3d6a524f12e8887
3
+ metadata.gz: e024b6f050f77e130bee02f5a1e56df3bd510c79cd7dedb84ae26b196ae9d942
4
+ data.tar.gz: dcbd7637acebad7bf14de4722eeb83a9bbb57cf5c52015529b07515e573dac3f
5
5
  SHA512:
6
- metadata.gz: 34becbe3683e7e36155e5f53398c3fb2983599d9ce64f7034f40140baab20973efb92bc33a426bb17a91084c64d0867db9c5944e5576d33c10014dc2603293b8
7
- data.tar.gz: 2d2c8faac10d19fca4ce26701c2add550587200f95c4ed1411074d1e708ac7cc08f0fb97224b7b10bea9c1199f44a0874f931712b5d66e9f04b1a13388a18030
6
+ metadata.gz: 74f6fe4934dc5060c52085d2483a74dc98595c3208aa6917b45f2d47883c72c4b47e37670e9750745f7eb252233d636a2442afe0fa70f0b75b1970907b70780b
7
+ data.tar.gz: e1bad1a098380d95e1855ddfd413b2300a9224e6bca5db6aad5f4d8938d7b0356e34e6bd9fc21d7d47544dcbe5c692d67912ac5fff1f801eb239ba0c0c3dffa6
data/lib/client.rb CHANGED
@@ -81,11 +81,10 @@ class Client
81
81
 
82
82
  model = @config["model"]
83
83
 
84
- if !model || model.length > 0
84
+ if !model || model.strip.length == 0
85
85
  model = "gpt-4-turbo-preview"
86
86
  end
87
87
 
88
-
89
88
  response = openai_client.chat(
90
89
  parameters: {
91
90
  model: model,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpterm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.4
4
+ version: 0.6.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Hough